Topic : rflasher with STR912FAW47 (2meg part)

Forum : ARM

Original Post
Post Information Post
March 17, 2009 - 12:20am
Guest

I am trying to use rflasher to write the smaller block of flash with a boot

using the latest rflasher 7 i am able to select block 1 and successfully write it but upon reset the chip does not jump to block 1, i do not see anything else to select the jump, i know i am writting the block 1 successfully because if i use a jlink to just set the jump bit it enters the boot i loaded with the rflasher ok after powerup, how do i setup the correct jump?

i have tried using the older rflasher 6 which has the "hardware button" which seems to have a checkbox but i am also unsuccesful with this,

thanks kb

Replies
Post Information Post
+1
0
-1
March 17, 2009 - 10:03am
Raisonance Support Team

Hi,

The "Flash bank selection" option, in the "Advanced ARM Options"/"Processor" options, is used to tell RFlasher which flash bank, 0 or 1, should be set at address 0.
Then the "High Bank Address" is used to tell RFlasher the address of the other bank.

Be careful, because the memory of RFlasher is consistent with the CPU point of view. That means if you select bank1 as boot bank, then the data for it is at address 0, just like the CPU accesses it. (you shouldn't worry about that if you are using obj files from CAPS, but if you are using hex files, make sure that your linker is aware of all this)

Finally, remember that the bit that selects the boot bank is located in the Configuration region. So you must make sure that you also program the Configuration region, by checking the associated checkbox in the STR9-specific options. And you can also check the state of the bit by reading the configuration out from the "Read Configuration now!" button in the STR9-specific options. (and you can program the configuration alone from this window, too. That allows to set the bit after programming the flash)

I hope it helps.

Best Regards,

Vincent

+1
0
-1
March 17, 2009 - 6:40pm
Guest

VincentC wrote:
Hi,
Finally, remember that the bit that selects the boot bank is located in the Configuration region. So you must make sure that you also program the Configuration region, by checking the associated checkbox in the STR9-specific options. And you can also check the state of the bit by reading the configuration out from the "Read Configuration now!" button in the STR9-specific options. (and you can program the configuration alone from this window, too. That allows to set the bit after programming the flash)

Thank you for the help but the above configuration is the problem. I am using Rflasher7. After clicking STR9 specfic options I see a window with checkboxes for main flash, sec flash, user code, configuration, set lvd, protection selections for main and secondary flash, security and otp. I do not see any "associated checkbox" which would select the boot bank.

Clicking on "Read Configuration now" provides a display of configuration:0x0000000000000D00 lvd_th otplockbit and protect bits for main and flash. Do you want to use this value for programmation?

I don't see how to set anything here.

KB

+1
0
-1
March 18, 2009 - 10:54am
Raisonance Support Team

Hi,

Sorry if I wasn't clear enough in my answer...

The boot bank selection is NOT in the STR9-specific options.
It is in "Advanced ARM Options"/"Processor" options:
STR9 boot bank selection

The "Associated Checkbox" I refered to was associated to the programming or not of the configuration region:
STR9 config prog selection

I just wanted to remind that if you want the boot bank option to be taken into account, then you must also check the programming of the configuration.

I hope it is clearer.

Best Regards,

Vincent