Power control (PWR)
REGLPS bit can be used to check that the low-power regulator is ready (see the table
below).
Stop 1
Mode entry
Mode exit
Wakeup latency
5.4.9
Stop 2 mode
The Stop 2 mode is based on the CPU Deep-Sleep mode combined with peripheral clock
gating and partial power down of the V
domain are stopped. PLL, MSI, HSI16 and HSE32 oscillators are disabled. Some of the
logic is powered down except for the CPU and some peripherals with wakeup capability
(I2C3, LPTIM1 and LPUART1), that can switch on the HSI16 to receive a frame, and switch
off HSI16 after receiving the frame if it is not a wakeup frame. In this case, the HSI16 clock
is propagated only to the peripheral requesting it. The Stop 2 mode uses the low-power
regulator, hence the device only enters Stop 2 mode once the low-power regulator is ready.
The REGLPS bit can be used to check that the low-power regulator is ready.
SRAM1, SRAM2, PWR, flash memory interface, RCC, EXTI, IWDG, WWDG, GPIO, CRC,
SYSCFG, RTC and TAMP contents and registers in the Backup domain are also preserved.
The content of all other peripherals is reset and must be reprogrammed.
206/1306
Table 44. Stop 1 mode
WFI (wait for interrupt) or WFE (wait for event) while:
– SLEEPDEEP bit is set in Cortex system control register
– No interrupt (for WFI) or event (for WFE) is pending
– LPMS = 0b001 in PWR_CR1
On return from ISR while:
– SLEEPDEEP bit is set in Cortex system control register
– SLEEPONEXIT = 1
– No interrupt is pending
– LPMS = 0b001 in PWR_CR1
Note: To enter Stop 1 mode, all EXTI line pending bits (in
(EXTI_PR1)), and the peripheral flags generating wakeup interrupts must
be cleared. Otherwise, the Stop 1 mode entry procedure is ignored and
program execution continues.
If WFI or return from ISR was used for entry
Any EXTI line configured in Interrupt mode (the corresponding EXTI interrupt
vector must be enabled in the NVIC). The interrupt source can be external
interrupts or peripherals with wakeup capability. Refer to
If WFE was used for entry and SEVONPEND = 0:
Any EXTI line configured in event mode. Refer to
configurable event input
If WFE was used for entry and SEVONPEND = 1:
Any EXTI line configured in Interrupt mode (even if the corresponding EXTI
interrupt vector is disabled in the NVIC). The interrupt source can be external
interrupts or peripherals with wakeup capability. Refer to
Wakeup event: refer to
Longest wakeup time between: MSI or HSI16 wakeup time and regulator wakeup
time from Low-power mode + flash memory wakeup time from Stop 1 mode.
CORE
RM0461 Rev 5
Description
wakeup.
Table 81: Wakeup interrupts
domain. In Stop 2 mode, all clocks in the V
RM0461
EXTI pending register
Table 78: Vector
Section 14.4.1: EXTI
Table 78: Vector
table.
table.
CORE
Need help?
Do you have a question about the STM32WLEx and is the answer not in the manual?