Question
Standby mode and rtc with STM32L
Posted on September 05, 2014 at 13:07
Hi,
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: http://www.coocox.org/Show_Exam.php?id=365&comname=PWR #rtc #stm32 #standby #stm32l