<Stack is not available: No registers...>

I got my ARM-USB-OCD dongle to work exactly once. FWIW, the LEDs flash…

Subsequent attempts to download code or do anything else with debug under Eclipse result in the error

So, I powered down the target, shut down the PC, rebooted, started Eclipse and tried again. Same result.

I have installed all of the software from the CD and the example is as given.

Any thoughts on why this error occurs and why I can’t get around it? Even with a complete restart?

Richard

Hello Richard,

please use the latest software available from www.yagarto.de - I have no idea which versions Olimex has on their CDs, usually, they’re several months behind.

You should first make sure that your OpenOCD .cfg is correct, by trying to use the OpenOCD via its telnet interface. If you’re able to reliably halt and resume the target from telnet you can move on to GDB/Eclipse.

What’s the target you’re working with? When it worked, did you write anything to flash? If this is a ARM7TDMI-S core like the LPC2000 make sure the JTAG frequency is less than 1/6th of the core frequency. For FT2232 based interfaces (ARM-USB-OCD, JTAGkey, etc.), the frequency is (6MHz / (1 + jtag_speed)).

Regards,

Dominic

Dominic,

I’ll try the latest Yagarto. There is a version on the CD but I don’t believe it is installed by default. I’ll download it and see what happens.

When the dongle worked, it did indeed write the example code to flash and that code worked. I know this worked properly because there was another, MUCH larger, program on the board.

I am using the Olimex LPC-P2148 Prototype Board Rev A

How do you define “core frequency”? I have a 12 MHz crystal but I generally have the PLL running the core at 5 times this value or 60 MHz. The configuration file has the speed set for 2 but even when I raised it to 10, the problem remained.

I’ll post again after I install the latest YAGARTO.

Thanks!

Richard

I installed the latest and greatest from www.yagarto.com and everything works perfectly. The tutorial is excellent.

So, install everything from the CD, plug in the dongle to install the drivers and then delete the entire GCCFD subdirectory.

Got any words of advice for getting this to work under Linux? My Linux box is MUCH faster than my WinXP box.

Thanks for everything!

Richard

Hello Richard,

glad you got it working :slight_smile:

There are packages for Debian/Ubuntu, but building from sources isn’t hard, either. The Wiki has some information building the OpenOCD: http://openfacts.berlios.de/index-en.ph … ng_OpenOCD

Tom Walsh’s site has installation instructions, too:

http://openhardware.net/Embedded_ARM/OpenOCD_JTAG/

Regards,

Dominic