Hi,
I'm using Code::Blocks together with the Yagarto ARM toolchain. Compiling and linking is working just fine using my custom Makefile.
Now I'm trying to get JTAG programming and debugging to work. As JTAG adapter I use a Segger JLINK EDU. Flashing works fine, but debugging always fails :-(
In the "Before connection" field of the GDB config in Code::Blocks I have:
file ./obj/lpc2387_88_test.elf
set mem inaccessible-by-default off
target remote localhost:2331
monitor flash device = LPC2387
monitor flash breakpoints = 1
monitor flash download = 1
monitor endian little
monitor speed auto
monitor reset
monitor long 0xE01FC040 = 1
load
The "After connection" field contains:
monitor reset
thbreak main
continue
My program gets uploaded and starts running if I remove the "thbreak main" line. If I leave this line in, the program gets uploaded and even seems to stop at main(), but from that point on no other debug function in Code::Blocks works. All the stepping options are greyed out and I cannot terminate the debug session. I have to close and restart Code::Blocks and the Segger GDB server.
Any ideas how to get debugging to work in Code::Blocks?
Best regards,
Bernd