2025-04-02 4:13 AM - last edited on 2025-04-02 6:18 AM by mƎALLEm
Hi,
I am trying to use the dual-bank mechanism of a STM32L496 MCU.
Using `BFB2` bit of User Configuration register, I am able to switch between bank 1 and bank 2.
My application, using FreeRTOS, runs without problem in bank 1.
However, when I set the `BFB2` bit, it properly boots from bank 2 (I can follow traces sent on the UART proving it), but I systematically get a HardFault, forced from a UNALIGNED fault, that seems to occur during the execution of FreeRTOS's `xPortPendSVHandler`.
Any idea what could be the cause of it ? or how to workaround it?
Thanks in advance for your help.