Hi,
I’m using OpenOCD 423 from yagarto.de and a LPC2212 with the JTAGkey-tiny from Amontec.
Everything is working fine, I’m able to debug, flash etc.
I’m trying to flash a pretty big file:
$ arm-elf-size -x -A main.elf
main.elf :
section size addr
.init 0x270 0x0
.code 0x15868 0x270
.data 0x8a4 0x82000000
.bss 0x3da4 0x820008a4
.ARM.attributes 0x10 0x0
.debug_line 0x5ae6 0x0
.debug_info 0x1d0fb 0x0
.debug_abbrev 0x53d9 0x0
.debug_aranges 0x848 0x0
.debug_ranges 0x328 0x0
.debug_frame 0x2568 0x0
.debug_loc 0x86dd 0x0
.debug_pubnames 0x17ce 0x0
.debug_str 0x1a55 0x0
.comment 0x44a 0x0
Total 0x50f0c
But it doesn’t seem to work:
...
Info: options.c:50 configuration_output_handler(): lpc2000 flash driver variant: 1, clk: 12000
Warning: lpc2000.c:603 lpc2000_write(): lpc2000 returned 9
Error: flash.c:96 flash_driver_write(): error writing to flash at address 0x00000000 at offset 0x00000000
Warning: arm7_9_common.c:724 arm7_9_poll(): DBGACK set, but the target did not end up in the halted stated 1
Info: options.c:50 configuration_output_handler(): Timed out waiting for reset
Flash Programming Finished.
I have try to increment the debug level but with no help (for me)
I have flashed the big file previousely converted to hex with LPC2000 flash utility without problem.
If I try to flash a smaller file with openocd, there is no problem.
Thanks for your ideas!
Yann
edit: Ok, my fault. I’m using LPC2212 and LPC2119 and I didn’t figured that They don’t have the same internal flash. One is 128kb an the other is 256kb. I had just to correct the flash configuration on openocd and all is working again!