I had a similar problem when I switched from using the Signalyzer dongle to
use the ARM-USB-TINY from Olimex.
Initially using the Signalyzer with Eclipse worked flawless, but after
switching to the ARM-USB-TINY I could not download anymore.
I could connect to the target, red/write registers and memory without any
problems. What I found is that once the core was running, issuing a HALT
command would cause a "TIMEOUT waiting for the AMR to halt" (or
If the cor is not halted, GDB still continues to work off the commands in
the list but will report that the download did not succed.
What I ended up doing is issuing two reset commands on startup of the
debugger seperated by a 1000ms pause. So far this seems to work fine for me.
Here are my commands from the ECLIPS command tab in the debug configuration
I'm new to OpenOCD myself and struggled getting it to work for my LPC2103
project. I can't offer specifics for your board but I can share what worked for
me. I tried to identify the bare minimum that worked and spent quite a bit of
time with the OpenOCD documentation and doing experiments. There are some
"defaults" that I rely on OpenOCD to establish (the defaults can be
found in the documentation). One such example is "monitor arm7_9
force_hw_brkpts enable". The current version of OpenOCD figures that out
and sets it by default.
I'm using the Olimex LPC-P2103 board and the Olimex USB JTAG Tiny for debugging.
I use FlashMagic and a USB-RS232 port for code flash.
To work around path issues I simply put a copy of OpenOCD.cfg in each project
directory in my Eclipse workspace.
Here are my GDB "initialize" commands:
target remote localhost:3333
set $pc = 0x0
Here are my GDB "run" commands:
I hope this helps you (or others...).
Reply by Kevin Townsend●March 14, 20092009-03-14
I've been having a heck of a time getting the latest build of OpenOCD to work
with a P2478 board, and was wondering if anyone here has had any success
configuring with this combination?
I'm using OpenOCD 0.1.0 (the latest downloadable binaries), an Olimex
ARM-USB-OCD, and an Olimex P2478-STK board. I can get OpenOCD up and running
'seemingly' properly, and can connect over GDB, etc., in Eclipse, but I am
unable to soft reset, load the code, etc., as visible in the following
target remote 127.0.0.1:3333
Load$$ER_FLASH$$Base () at
102 msr cpsr_c, #PSR_MODE_SYSTEM @ go into System mode, interrupts
Current language: auto; currently asm
JTAG tap: lpc2478.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part:
0xf1f0, Version: 0x4)
JTAG Tap/device matched
monitor sleep 500
target state: running
requesting target halt and executing a soft reset
Failed to halt CPU after 1 sec
monitor arm7_9 force_hw_bkpts enable
invalid command name "arm7_9_force_hw_bkpts"
called at file "command.c", line 456
called at file "embedded:startup.tcl", line 89
called at file "embedded:startup.tcl", line 93
Breakpoint 1 at 0x4: file
Loading section ER_STACK_BOTTOM, size 0x4 lma 0x40000400
Note: automatically using hardware breakpoints for read-only addresses.
Cannot insert hardware breakpoint 1.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.
Just for reference sake, these are the commands I'm trying to send: