str91x flash configuration register

Hi I was wondering if anyone here could help me.

I am using the str910FW32 micro from ST.

I have OpenOCD compiled and running using the Amontec JTAG key and have managed to flash the chip with some running code.

What I would like to do is get the chip to boot from flash bank 1. This can only be done via the JTAG interface. Does anyone here know how to do that ?

I assume it can be done through telnet using the irscan/drscan instructions but my knowledge of JTAG is a little lacking.

any help would be much appreciated

Ben

This is not currently supported, i am working on a solution at the moment.

Spen

@ntfreak

Hello,

do you have an idea when you might be ready with a solution for switching the boot banks?

Thank you and greetings from Berlin

HG

in short no, very busy with work - but hopefully in the next few weeks.

The config registers can only be programmed by using jtag and the flash controller tap - so a new flash device config needs creating.

Regards

Spen

I have just commited a driver to svn, that will enable the option bytes to be written.

The new driver is used as follows:

flash bank str9xpec 0x00000000 0x00080000 0 0 0

then to boot from bank1 you would do the following:

jtag_reset 0 1

str9xpec enable_turbo 0

str9xpec options_read 0

str9xpec options_cmap 0 bank1

str9xpec options_write 0

str9xpec disable_turbo 0

jtag_reset 0 0

Because we are now talking to the flash controller directly we can hold the core in reset.

This driver also supports programming but it is not as fast as the standard str9 driver, so use that one for programming.

The wiki has been update to include all the new commands.

Regards

Spen

thats great news. will give a go when I get the time.

Ben