cancel
Showing results for 
Search instead for 
Did you mean: 

how booting from bank 2 stm of 32l475?

Bfren.9
Associate II

Hello

I would like to boot my bank 1 or bank 2 card by activating / deactivating the BFB2.

I created a program to flash an LED, I put the code in bank 1 at address 0x08000000 by flashing the LED at a certain frequency and then I put the same code but changing the frequency blinking of the LED in bank 2 at address 0x08080000.

When I turn off the BFB2, the first bank code works, but when I turn on the BFB2, none of the two codes work.

Is it normal?

Thank you

4 REPLIES 4

Code placed at 0x08080000 should be linked to run at 0x08000000

Is this a custom board? What pin are the LED(s) attached too?

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Bfren.9
Associate II

Hello

it's a STM32L475 Discovery Kit IOT node.

The LED is on the PB14 pin.

How should I proceed to link address 0x08080000 to address 0x08000000?

Can we put two code on the flash memory and play with the BFB2 to choose which program I want to launch?

Thank you.

Bfren.9
Associate II

A suggestion ?

Test this, one .HEX, two different images built by the linker to run at 0x08000000, and combined such that one half gets written to the second bank at 0x08080000.

The LED should blink at a different rate based on the which bank BFB2 pulls

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..