hello Dominic,
I’m trying debug my application on Olimex LPC-2378-STK board. And getting the following results…
→ The ISP on the board is working nice.
→ Now when i’m trying to debug the application directly through JTAG (enabling the neccessary links), it doesn’t work.
→ But if i first download the precompiled hex file of the same application (through NXP’s FlashMagic Utility ) and then debug with the JTAG, it works without any error.
so what i can see here is, whenever i run the openocd and give the debug command, the debugger itself is unable to write the binary (.bin) file to the flash ROM . But this should not happen in normal case.
As my debug console shows…
(gdb) target state: halted
target halted in ARM state due to debug request, current mode: User
cpsr: 0x20000010 pc: 0x000013ac
flash ‘lpc2000’ found at 0x00000000
erased sectors 0 through 0 on flash bank 0 in 0s 281250us
failed writing file main.bin to flash bank 0 at offset 0x00000000
flash program error
requesting target halt and executing a soft reset
force hardware breakpoints enabled
i’m also getting a warning when invoke openocd as
Is there anything wrong with my settings or issuing debugger commands??Info: openocd.c:84 main(): Open On-Chip Debugger (2007-01-31 12:00 CET)
Warning: embeddedice.c:175 embeddedice_build_reg_cache(): EmbeddedICE version 7 detected, EmbeddedICE handling might be broken
Warning: arm7_9_common.c:683 arm7_9_assert_reset(): srst resets test logic, too
Best Regards,
maks