Programming an STR710 in flash

Hi there.

I have been debugging an STR710 with OPENOCD in ram (based on a tutorial from yagarto). It works quite well. :slight_smile:

But does OPENOCD support flash downloading/debugging of these devices? (On my hitex starter kit I have an STR710FZ2Tb)

If so, what code might be required in the target_script?

Raymond

Hi

http://openfacts.berlios.de/index-en.ph … D_commands

and

http://gandalf.arubi.uni-kl.de/avr_proj … index.html

Regards,

Magnus

Thanks for the links Magnus.

I see that STR7 is supported in version SVN 100 of openocd.

I have downloaded the version openocd-2006re100-setup-rc01.exe from “http://www.yagarto.de/”. But on the page “http://www.yagarto.de/howto/openocd/index.html#feature” I see that

///////////////////////////

The installer includes a snapshot (revision 100 from the SVN tree) of the OpenOCD which is not an offical release.

///////////////////////////

I guess it is not supported in my version of openocd yet?

Raymond

This version should work with the STR7x. I guess Michael just wanted to point out the work-in-progress nature of the OpenOCD, i.e. the large number of incremental releases, where only the most current one is supposed to be used. R100 is reasonably new and should work without problems in most cases.

Regards,

Dominic

Hi

STR7 has been supported for a long time, but there has been som bug fixes.

Configure openocd to use STR7 flash and everything should be OK

flash bank str7x 0x40000000 0x00040000 0 0 STR71x 0

Se:

http://openfacts.berlios.de/index-en.ph … CD_scripts

Magnus

OK.

I am trying to port he’s example STR7Test to flash, but have been unsuksessfull yet.

Is it only .bin files that is supported for download to flash? Can I use .hex files too?

In he’s example I have commented out the lines in the startup file that is mapping the ram to the boot sector, futher I have added memory type flash to the linker script (text goes there) and I have made a .bin file out of that in the makefile (by looking on how lynchilla did it in he’s tutorial).

Does anyone knows if it is difficult to port that design to flash?

I am new to this so there is alot I don’t understand yet. But I feel that I can’t move on until I have managed to do that.

Thanks for your respond and Dominic, I think it is great that you have commed up with openocd. :smiley: As far as I can see it has been the heavily needed “thing” to make programming ARM’s with opensource complete.

Raymond