cancel
Showing results for 
Search instead for 
Did you mean: 

What about RTC after a bank switch?

dario2
Associate III

I use dual flash bank in STM32L4. I perform a flash bank switch by programming bit BFB2 in OPTR.

Sometimes, after the new software has started, RTC seems to be returned to reset state: date and time are lost and RTC internal registers are cleared! In spite of the fact that a battery is present and an external clock is provided.

Date and time are correctly preserved on power cycle.

Is it as expected? have I to perform some programming on RTC before switching to the new software?

Thanks and regards

1 REPLY 1
dario2
Associate III

MCU is STM32L486RGT6.