cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L496: HardFault in FreeRTOS's xPortPendSVHandler when booting on bank 2

milidam
Associate

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.

0 REPLIES 0