GDB Commands for LPC Flash Debugging

There is a lot of information about cfg files now which is great.

I cannot find any information on this Forum or the Belinos site about what GDB commands are needed for a particular target in a particular mode.

I am doing Flash Debugging on the LPC2103 at the moment.

I use

target  remote localhost:3333
monitor  soft_reset_halt
monitor arm7_9 force_hw_bkpts enable
symbol-file  main.elf
thbreak  main
continue

which gives me the warning

Warning: arm7_9_common.c:679 arm7_9_assert_reset(): srst resets test logic, too

I got this from searching on the web and Jim Lynch’s tutorials.

Do we not need to add a page for this on the Wiki ?

My commands are working but should I be using others ?

I am using the Yagarto tool chain with a Signalzer at the moment.

You will see I am not programming the flash by JTAG at this time. I use the Philips Utility via the serial port at the moment.

Thank you Dominic and others for a great tool.

Hey,

I’ve just added this question to the FAQ page in the Berlios Wiki: http://openfacts.berlios.de/index-en.ph … penOCD_FAQ

The warning is caused by your .cfg file, not by the GDB commands issued, and can’t be avoided when working with a LPC2000 target. Your GDB commands should be fine for debugging in flash.

Regards,

Dominic