Hi, I’m completely new to ARM and this is my first time working with JTAG interfaces. I’ve created a board with an LPC2138 and have been trying to get it programmed. I bought an Olimex [ARM-USB-TINY and installed the “WinARM + OpenOCD debugger + Eclipse” tool they provided. I feel like I’m very very close to making an LED blink, but after several hours I have’t made much headway. Here’s what my procedure looks like:
-
Open Eclipse and the Olimex LPC2138 sample project
-
Clean and Build
-
Launch the External Tool “OpenOCD Tiny” and get back:
Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Info: options.c:50 configuration_output_handler(): jtag_speed: 20, 20
Info: options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
Info: jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Info: jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
- Appears fine, I then run the debugger:
Warning: /cygdrive/C/gccfd/projects/lpc2138/.settings: No such file or directory.
Warning: /cygdrive/C/gccfd/projects/lpc2138: No such file or directory.
mi_cmd_break_watch: Missing <expression>
No registers.
target remote localhost:3333
0x7fffd2da in ?? ()
monitor sleep 500
monitor poll
target state: halted
target halted in Thumb state due to debug request, current mode: Supervisor
cpsr: 0x800000f3 pc: 0x7fffd2da
monitor flash probe 0
flash 'lpc2000' found at 0x00000000
monitor flash erase_sector 0 0 0
erased sectors 0 through 0 on flash bank 0 in 0.219012s
monitor flash write_image main.bin 0x0
wrote 604 byte from file main.bin in 0.365021s (1.615917 kb/s)
monitor reset run
JTAG device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
monitor sleep 500
monitor soft_reset_halt
requesting target halt and executing a soft reset
monitor arm7_9 force_hw_bkpts enable
force hardware breakpoints enabled
symbol-file main.out
thbreak main
Hardware assisted breakpoint 1 at 0xe8: file main.c, line 32.
continue
And this is where things stop for me…It looks like it was going well, I could see it clearing the flash, and successfully writing the main.bin into flash, but for some reason it keeps stopping at this non-existent breakpoint. At the bottom right in eclipse I see a little message saying “Launching LCP2138: (27%)” and it just says there. So to me it seems like I just need to get rid of this breakpoint or step through it, but I can’t figure out how to do either.
Then again, it says continue after that so perhaps that isn’t problem…in which case I’m even more puzzled. I’ve also tried messing with a few things in the .cfg file that seem to solve lots of other peoples problems, but both times I’ve done that it had no effect.
Any thoughts?](http://www.sparkfun.com/products/8278)