Skip to main content
Bfren.9
Associate II
February 10, 2019
Question

how booting from bank 2 stm of 32l475?

  • February 10, 2019
  • 3 replies
  • 1204 views

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

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
February 10, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..
Bfren.9
Bfren.9Author
Associate II
February 11, 2019

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
Bfren.9Author
Associate II
February 15, 2019

A suggestion ?

Tesla DeLorean
Guru
February 15, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..