Topic : Booting from Bank 1 (32k)

Forum : Ride IDE

Original Post
Post Information Post
September 15, 2009 - 4:15pm
Guest

Hi

A simple test project is working when downloaded into bank 0 (the default bank) but I need it to be located in bank 1 (the 32k one) an dteh chip boot from it.

Using RFlasher7 I could read the configuration and set up the target so that it should configure to boot from the bank but couldn't get the project to run. If I debug and manually configure the FLASH banks I believe that I do see the downloaded code in the smaller block but it is located at a high address and doesn't boot from this code.

After loading a verify test is good too but the code just isn't visible in the debugger at address 0x00000000.

Then I tried using ST CAPs (which doesn't run on Vista, meaning always reverting to an old PC to be able to do it) and it worked as expected. The configuration read back was 0x00000f00 (presumably the bit(s) to boot from bank 1 are set). When attempting with RFlasher7 the configuration is always 0x00000c00 - seemingly missing two bits.

Can RFlasher7 be used to do this correctly? What is the technique to set it up?

Regards

Mark

Replies
Post Information Post
+1
0
-1
September 15, 2009 - 4:43pm
Raisonance Support Team

Hi,

The "Flash bank selection" and "High bank address" options are in the "Advanced ARM Option"->"Processor" Did you use these?

You will find more information here:
\doc\ARM\GettingStartedARM_Ride7.pdf
search it for "Flash Bank Selection".

Best Regards,

Vincent

+1
0
-1
September 15, 2009 - 5:12pm
Guest

Hi Vincent

Yes, I have tried these but they are not causing the chip to boot from the correct bank. If I first program the FLASH configuration in CAPs I can then use the RFlasher7 to program the FLASH but if I allow it to configure the FLASH it sets it back to the wrong one (which ever setting I choose).

I will update the RIDE-7/RFlash7 package to see whether it is better in a newer one.

Regards

Mark

+1
0
-1
September 15, 2009 - 5:36pm
Raisonance Support Team

Hi,

I just checked, using the current version of the Ride7 and RKit-ARM kits, to change the configuration of the \examples\ARM\REva\ADC_STR9 example for booting in Bank 1. I just had to change the "Flash Bank selection" option, launch debug, exit debug, and then I could read the value 0x00....0100 in the configuration, meaning the bank 1 is now the boot bank.

Please update your kits and if the problem is still there, send me a project that shows it.
It is probably a simple configuration issue.

Best Regards,

Vincent

+1
0
-1
September 15, 2009 - 6:20pm
Guest

Hi Vincent

I upgraded to Ride7 7.24.09.0251 and can confirm that it no correctly sets the boot from bank 1 bit when configured for this.
This problem is thus solved when using this version.

Regards

Mark