2020-12-09 04:35 AM
My controller can be waked up from Standby mode by Alarm A or Alarm B: Alarm A every day and Alarm B every minute. Are there any flags (or another means) to know, what event (Alarm A or B) was cause of the waking? That is the problem, because all registers (excluded PWR_CSR and RTC Backup) "dying" after MCU entering in Standby mode...
Solved! Go to Solution.
2020-12-09 05:23 AM
> Are there any flags (or another means) to know, what event (Alarm A or B) was cause of the waking?
Read the current RTC value and determine if it's consistent with an every minute or every day wakeup time.
2020-12-09 05:23 AM
> Are there any flags (or another means) to know, what event (Alarm A or B) was cause of the waking?
Read the current RTC value and determine if it's consistent with an every minute or every day wakeup time.
2020-12-11 10:36 AM
Many thanks!
It looks like it will have to be done... STM32L053 has no any alarm flags, which can survive the standby mode.