Skip to main content
dario2
Associate II
May 13, 2019
Question

What about RTC after a bank switch?

  • May 13, 2019
  • 1 reply
  • 661 views

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

This topic has been closed for replies.

1 reply

dario2
dario2Author
Associate II
May 13, 2019

MCU is STM32L486RGT6.