Forum: ARM programming with GCC/GNU tools OpenOCD uploads only 4096 bytes (LPC214x/Wiggler)

von Led L. (ledelectronics)

Rate this post
0 useful
not useful
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

Any suggestion where to look for a error?

openocd reports that all is fine:

c:\Apps\openocd-2006re100\bin\openocd-pp.exe -d2 -f
Info:    openocd.c:82 main(): Open On-Chip Debugger (2006-09-28 20:00
Info:    target.c:219 target_init_handler(): executing reset script

Thank you!

von Led L. (ledelectronics)

Rate this post
0 useful
not useful
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.


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.