OpenOCD uploads only 4096 bytes (LPC214x/Wiggler/WinARM)

Hi guys,

I’m trying to upload my code to LPC2146 uC using Wiggler-clone parallel port interface + openocd. It works successfully when code size is below 4096 bytes. If code is longer then openocd (latest ver installed) upload skips to transfer data above 0x1000. I did lot of tests by modifying scripts but no solution yet. Code is compiled by latest WinARM package (20060606).

Any suggestion where to look for a error?

openocd reports that all is fine:

c:\Apps\openocd-2006re100\bin\openocd-pp.exe -d2 -f oocd_flash2146_wig.cfg

Info: openocd.c:82 main(): Open On-Chip Debugger (2006-09-28 20:00 CEST)

Info: target.c:219 target_init_handler(): executing reset script ‘oocd_flash2146.script’

Thank you!

Linnar

You can run it again with -d3 to get full debug output:

c:\Apps\openocd-2006re100\bin\openocd-pp.exe -d3 -f oocd_flash2146_wig.cfg

Regards,

Magnus

I found a solution:

flash erase 0 0 *

where * > 0, then it erases next sectors also and is able to write!!! I had 0 in my script and this was reason of failure.