Content originally posted in LPCWare by can.finner on Thu Apr 14 19:53:04 MST 2011
I tried to debug LPC1769 in gdb command line by both jtag and swd.
1, using swd command line:
target extended-remote | ./crt_emu_cm3_nxp -g -0 -pLPC1768 -wire=hid
In this case debug process goes ok;
2, using jtag command line:
target extended-remote | ./crt_emu_cm3_nxp -g -0 -pLPC1768 -wire=hidjtag
strangely, sometimes after this command, target stops at PC:0x1fff0080, which seems to in boot ROM of LPC1769.
more strangely, I could not download axf file into flash, the command
(gdb) load adc_semihosting.axf
comes with error message like:
Loading section .text, size 0x47fc lma 0x0
Loading section .data, size 0x204 lma 0x47fc
Ps: ( 0) Page 0 at 00000000
......
Nc: nSRST assert (if available)
Nc: Executing in bootloader.
Error finishing flash operation.
the download error only occurs when pc stops at 0x1fff00xx, but problem mentioned in the previous post is always there.
have no clue about it, please help.
Many thanks.