AnsweredAssumed Answered

Standby mode and rtc with STM32L

Question asked by JR7777 on Sep 5, 2014
Latest reply on Apr 15, 2016 by FTITI.Walid

i'm using the STM32L151 for a little project.
I use an external crystal for the rtc to show time and date in a display. If battery is low i want to save battery power, so in this case i activate the standby mode.
Problem: After wakeup all works fine, but the clock has lost the current date and time. In stop mode the controller is not making a reset to wakeup, so the clock is correct.
Is it possible to easily recover the date and time in case of a wakeup from standby?

Code is similar to this implementation: