Using command line GDB

The underlying debugger within Red Suite/LPCXpresso is GDB. This page shows how to connect to a debug target with GDB using the Code Red debug driver.

The Code Red Debug Driver implements the GDB "remote" protocol to allow connection to debug targets. To start a debug session using GDB, we suggest following steps:

arm-none-eabi-gdb executable.axf                      ; start GDB and name the debug image
target extended-remote | <debug driver and options>   ; start debug driver, connect to target
load                                                  ; load image and download to target

The <debug driver and options> command is as follows:

debug_driver options

where debug driver is one of:

and options are:

Thus typical invocations would be:

1. target extended-remote | crt_emu_cm3_nxp -2 -pLPC1768 -wire=winusb
2. target extended-remote | crt_emu_cm3_lmi -2 -pLM3S6965
  1. establishes a connection to an NXP LPC1768 using RDB1768v2 or LPC-Link
  2. establishes a connection to a TI LM3S6965 using Red Probe+, Red Probe, RDB1768v1 or TI Stellaris Evaluation board

UsingGDB (last edited 2011-03-16 15:35:39 by CrSupportAb)