WKUP pin rising edge, RTC alarm (Alarm A and Alarm B), RTC wakeup, tamper
event, time-stamp event, external reset in NRST pin, IWDG reset.
Auto-wakeup (AWU) from low-power mode
The MCU can be woken up from low-power mode by an RTC Alarm event, a tamper
event, a time-stamp event, or a comparator event, without depending on an external
interrupt (Auto-wakeup mode).
RTC auto-wakeup (AWU) from the Stop mode
To wake up from the Stop mode with an RTC alarm event, it is necessary to:
Configure the EXTI Line 17 to be sensitive to rising edges (Interrupt or
Event modes) using the EXTI_Init() function.
Enable the RTC Alarm Interrupt using the RTC_ITConfig() function
Configure the RTC to generate the RTC alarm using the RTC_SetAlarm()
and RTC_AlarmCmd() functions.
To wake up from the Stop mode with an RTC Tamper or time stamp event, it is
necessary to:
Configure the EXTI Line 19 to be sensitive to rising edges (Interrupt or
Event modes) using the EXTI_Init() function.
Enable the RTC Tamper or time stamp Interrupt using the RTC_ITConfig()
function.
Configure the RTC to detect the tamper or time stamp event using the
RTC_TimeStampConfig(), RTC_TamperTriggerConfig() and
RTC_TamperCmd() functions.
RTC auto-wakeup (AWU) from the Standby mode
To wake up from the Standby mode with an RTC alarm event, it is necessary to:
Enable the RTC Alarm Interrupt using the RTC_ITConfig() function.
Configure the RTC to generate the RTC alarm using the RTC_SetAlarm()
and RTC_AlarmCmd() functions.
To wake up from the Standby mode with an RTC Tamper or time stamp event, it
is necessary to:
Enable the RTC Tamper or time stamp Interrupt using the RTC_ITConfig()
function.
Configure the RTC to detect the tamper or time stamp event using the
RTC_TimeStampConfig(), RTC_TamperTriggerConfig() and
RTC_TamperCmd() functions.
Comparator auto-wakeup (AWU) from the Stop mode
To wake up from the Stop mode with a comparator wakeup event, it is necessary
to:
Configure the correspondant comparator EXTI Line to be sensitive to the
selected edges (falling, rising or falling and rising) (Interrupt or Event modes)
using the EXTI_Init() function.
Configure the comparator to generate the event.
PWR_EnterSleepMode()
PWR_EnterSTOPMode()
PWR_EnterSTANDBYMode()
17.2.5 Flags management functions
PWR_GetFlagStatus()
PWR_ClearFlag()