STM32L082 dual bank, BFB2 bit reset at power up ?
Dear all,
I am requesting your help to understand well how the dual bank mechanism works before I start writing the firmware:
- I will use the internal bootloader to allow me to start from Bank1 or Bank2.
- Bank1 will store the factory firmware, and Bank2 will be used for the new version.
- Bank1 will receive the firmware via RF and write it in the Bank2 and check it.
- Bank1 will set the BFB2 bit and reboot the MCU to boot on Bank2.
My questions :
- If the MCU boots on Bank 2 but the firmware is uncorrect, how can I reboot on Bank1? Is it possible to reset the BFB2 bit with power cycling? I want to be sure I cannot brick my device.
- Could you confirm that I do not have to relocate the interrupt vector table if I use the internal bootloader?
- How should I generate the binary to be sent to the device to be written in bank 2?
Thank you all very much for your help and your contribution to this forum.
Best
