Program flash then debug in eclipse - how?

I have been struggling to get an Eclipse OpenRTOS tools chain with Olimex ARM-USB-OCD working. Chip is AT91SAM7S256 on an EmbestATEBSAM7S board. I have a few questions…

  1. Is it possible to set things up (perhaps in a makefile) so that when “all” is made in eclipse, it is programmed into the flash? The problem I have is that the OCD interface on the PC runs as a daemon, and I don’t see an easy way to get commands to it to flash the chip. I can put stuff in a makefile, and it will run, flash the chip, and then quit, but then I have to start the interface again before I can debug.

I have played with a script that uses telnet to 4444 to do it, and it sort of works, but is ugly and touchy.

My desired development cycle is:

…make and flash

…debug

—or—

…make

…flash and debug

Are others doing this?

  1. How fast is it to flash the part? It seems to take forever for my little bitty RTOS test (which includes FreeRTOS in the binary)

  2. Is there a better way (without buying software)?

Thanks in advance

You coud try opening the Olimex box by making it an “external tool” in Eclipse I believe. I have had success doing this with avarice with AVR chips.

Also, if you have the Zylin Embedded Debug plugins installed in Eclipse, there are places for initialization commands and run commands for debugging. You may be able to set up your programmer for flashing there.

I also had success in a managed make project. You might try looking at using “post build steps” under the project properties - C/C++ Build menue in Eclipse.

jc