Hi all,
I would like to share my latest discoveries with my Olimex LPC-2378-STK board and my Olimex ARM-USB-OCD. After lots of trying searching and worying I finally seem to get things working correctly. I can debug and do whatever I wish for.
I never achieved this using all open source tools (Eclipse, openocd, gcc, …) and was getting quite desperate. I got JTAG connection with the board but I never succeeded in actually debugging. I always ended up with the first breakpoint being hit and the debugger was always stating : No source found for “”. I didn’t matter if I tried flashing the device with flash magic first.
I registered for an evaluation version of Rowley Crossworks for ARM 1.7. I got connection with my board relatively easy and within (literally) minutes I hit a breakpoint in the example code. I was thrilled!
The joy however was very short. I stepped through the code, everything worked fine. I removed the breakpoint and let the device run when all of a sudden the debugger crashed at some supervisor mode assembly lines (I don’t recall exactly). I didn’t matter what I tried afterwards, I couldn’t load nor debug anymore. I was always getting “Loader verify failed”
I flashed the device with flashmagic and everything went fine again. Untill the same crash happened again.
I continued playing around and trying and read somewhere about a tool call SILL : http://water.cse.unsw.edu.au/esdk/sill.html
I don’t recall where exactly but it must be with SILL or with Flash Magic that I had to power the board using USB and not the power cable from ARM-USB-OCD. I also read about the crossworks “loader verify failed” can be caused because of insufficient power supply.
I took an educated guess and powered the board using USB in stead of through ARM-USB-OCD (I removed also the small power cable between the board and the ARM-USB-OCD), but I kept the ARM-USB-OCD JTAG connected to debug.
Guess what? I now can do whatever I want.
It seems that the ARM-USB-OCD is not capable of delivering enough power long enough. If this is true then I’m quite sure that this was the solution to some other questions on this forum and also other users will have been struggling with this.
I didn’t make an exact measurement. I’m too fed up with trying to start debugging, I now want to play with the board.
Can anybody confirm this or is this just coincidence? Is this also the case with other boards using ARM-USB-OCD?
I hope this posting can be of help for other users.
kind regards,
Jef