Hi to all, as suggest to me by tcomins I insert this line in the open ocd cmd file:
flash bank lpc2000 0x00000000 0x20000 0 0 0 lpc2000_v2 14746 calc_checksum
and then i insert this lines in the gdb commmand tad inside eclipse:
target remote localhost:3333
monitor reset halt
monitor sleep 500
monitor poll
monitor soft_reset_halt
load
break main
continue
info breakpoints
but I’m not able to enter in debug mode, and these are messages present in the eclipse console tab:
target remote localhost:3333
0x7fffe13e in ?? ()
monitor reset halt
JTAG tap: lpc2368.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
srst pulls trst - can not reset into halted mode. Issuing halt after reset.
target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0xa00000f3 pc: 0x7fffe140
monitor sleep 500
monitor poll
target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0xa00000f3 pc: 0x7fffe140
monitor soft_reset_halt
requesting target halt and executing a soft reset
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0xa00000d3 pc: 0x00000000
load
Loading section prog, size 0x27a37 lma 0x2a4
Ignoring packet error, continuing…
Ignoring packet error, continuing…
Loading section .data, size 0x220 lma 0x27cdc
Ignoring packet error, continuing…
Error erasing flash with vFlashErase packet
Breakpoint 1 at 0x534: file main.c, line 121.
break main
Note: automatically using hardware breakpoints for read-only addresses.
continue
Warning:
Cannot insert hardware breakpoint 1.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.
Num Type Disp Enb Address What
1 breakpoint keep y 0x00000534 in main at main.c:121
info breakpoints
Cannot access memory at address 0x7fffe142
WHAT IS WRONG?
THNKS