Need a demo project for Eclipse & LPC-2478-STK & ARM

Hi

Sorry but I am a newbie here.

I am an experience embedded software engineer, but a novice with ARM.

I have just bought an Olimex LPC-2478-STK board and an ARM-USB-OCD

Firstly what I can get working:-

I can get serial comms (throught the serial port on the ARM-USB-OCD), I can run U-Boot, and load and run uClinux from a USB FLASH stick. I have even managed to mess up the FLASH and use “Flash Magic” to restore U-Boot code. So far so good.

I have loaded Eclipse, OpenOCD, and yagarto from the CD’s. Also have cygwin and have just updated Eclipse.

In Eclipse I don’t seem to be able to find an example project for this board, so I copied the project for LPC2148 and modified the I/O to flash the Leds on the LPC-2478-STK board. I can build this OK, linked to run in RAM. All looks as expected in the link map.

From within eclipse I can load openOCD, but when I do I get a warning message, like this:-

Info:    openocd.c:93 main(): Open On-Chip Debugger (2007-09-05 09:00 CEST)
Warning: embeddedice.c:175 embeddedice_build_reg_cache(): EmbeddedICE version 7 detected, EmbeddedICE handling might be broken

Is this OK, can I just ignore it?

From this point I can telnet to openOCD, load and run my test code in RAM using the telnet session, and all seems to go OK, leds flash as expected. I can halt and step and resume, all seems OK.

What I can’t do:-

I can’t seem to get the debugger to run from within Eclipse. I have a couple of times managed to get it to work, but then can’t repeat it, and it seem very unreliable. I know the basic H/W is working ok, I know openOCD is working as I can control it through the Telnet I/F.

I know I’m close but I think that the problem is my lack of understanding of the correct place and syntax for the startup scripts. I have seen various examples, but they seem to give conflicting advise.

I am letting U-Boot run, to do the hardware initialisation, then halting it, loading my own code, setting the PC to its start address in RAM and running. As I say this seeems ok when done from the telnet i/f.

So please can anyone tell me how to configure Eclipse and maybe give me some example config scripts for this H/W that will allow me to load and run some test code in RAM reliably.

Thanks

Kevin