**** Advance Notice ****

This site will be closed on 31 December 2015,

Important Information for users of NXP LPCXpresso

This site is for users of Code Red branded products.

NXP LPCXpresso users should visit the LPCXpresso FAQ's for up-to-date information relevant to that product.

Using command line GDB

The underlying debugger within Red Suite/LPCXpresso/Precision32 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:

; start GDB and name the debug image
arm-none-eabi-gdb executable.axf                      
; start debug driver, connect to target
target extended-remote | <debug driver and options>   
; 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
3. target extended-remote | crt_emu_cm3_ng -2 -pSiM3U167 -vendor=Silabs -vc  -wire=sladi
4. select extended-remote | crt_emu_cm3_stm32f1 -2 -pSTM32F107VC -vendor=STM
5. target extended-remote | crt_emu_cm3_gen -2 -pSTM32F051x8 -vendor=STM
  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
  3. establishes a connection to an Silabs SiM3U167 using the Silicon Labs USB Debug Adapter

  4. establishes a connection to an STM32F107VC part using Red Probe+
  5. establishes a connection to an STM32F051x8 part using Red Probe+

UsingGDB (last edited 2013-12-11 11:29:44 by DerekMorris)