STM32WL5 Power Management Overview
STM32WL5 Power Management Overview
Power Controller
Revision 1.0
1
RUN (Range1) at 48 MHz 70 / 101 µA / MHz***
Overview
Wake-up RUN (Range2) at 16 MHz 119 / 87 µA / MHz*** • FlexPowerControl
time to Run
LPRUN at 2 MHz 110 µA / MHz • Efficient running
• 8 low-power modes, several
6 cycles SLEEP at 48 MHz 29 µA / MHz
sub-modes
6 cycles LPSLEEP at 2 MHz 30 µA / MHz
• High flexibility
1.7 µs STOP 0 (full retention) 400 µA
RF Operation
29 µs STANDBY + 32 KB RAM 255 nA / 360 nA* Cortex-M4 70 uA / MHz
29 µs STANDBY 71 nA / 190 nA* Additional Cortex-M0+ 28 uA /
MHz
267 µs SHUTDOWN 31 nA / 175 nA*
• Outstanding power efficiency
VBAT 5 nA / 200 nA*
• ULPMark-CP = 359 @ 1.8V
VDD = 3 V, @ 25 °C
* : without / with RTC
** : from FLASH / from SRAM1 2
*** : SMPS OFF / SMPS ON
2
running also CoreaMark, together with outstanding power
efficiency, demonstrated by the ULPMark-CoreProfile score
equal to 359 at 1.8V and 223 @ 3V.
2
Key features
3
Power schemes
VDDA 2 COMP VDDRF
ADC, DAC
VREF+ VREF buffer CPU1, CPU2
SRAM1,2
sub-GHz Radio
VFBSMSP Digital HSE
Voltage Regulators Peripherals
Radio sub-system
VDDSMPS
SMPS
VCORE
Flash
VDD I/O ring VBAT
Reset block
Temp. sensor Backup domain
PLL, HSI16, MSI LSE, RTC, backup
Standby circuitry registers
(wakeup, IWDG)
4
A backup battery can be connected to the VBAT pin to supply
the backup domain.
4
SMPS
Improving Power Efficiently
5
Supply configurations
Flexible selection between performance and cost
6
Power schemes
Optimized power and performance thanks to independent power supplies
• VDD , VDDSMPS and VDDRF from 1.71 to 3.6 V (down to 1.6 V at power-down)
• 1.95 V min. for sub-GHz radio operation
• VFBSMPS regulated 1.5 V
• VDDA from 1.62 to 3.6 V
• 1.62 V min. when ADCs or COMPs are used
• 1.8 V min. when DAC is used
• 2.4 V min. when VREFBUF is used
• VBAT from 1.55 to 3.6 V including the RTC and backup registers
7
A backup domain is supplied by VBAT, which must be greater
than 1.55 V. The backup domain contains the RTC, the
32.768-kHz LSE external oscillator and the backup registers.
7
Voltage supply supervision (1/2)
8
the core when the supply is too low (<1.4 V).
On the sub-GHz radio VDDRF supply an sub-GHz radio End Of
Live detector is available. The sub-GHz radio supply detector
can be enabled to be operational when the sub-GHz radio is
active.
8
Power supply supervisor (2/2)
• Power voltage detector active in all modes except Standby and Shutdown
• 7 thresholds, selectable by software
9
Peripheral voltage monitor
• Peripheral Voltage Monitor for VDDA comparator, with wakeup capability from
Stop modes.
• By default, independent power supplies are electrically isolated and the peripherals/IO
powered by them are not available. The power isolation must be removed by SW.
10
10
Power schemes
Independent voltage reference supplies
for analog performance
• The application SW can decide to disable the SMPS when performing analog
signal conversions to reduce noise. SMPS mode change can be done on the fly.
11
11
VBAT battery charging
Time Keeper operation
Backup domain
VDD VBAT
1.5 kΩ
VBE
VDD domain
VBRS 5 kΩ
12
Battery charging
12
System overview
CPU1
CPU2 sub-GHz Radio
CPU1
PER1.1 system • 3 sub-systems
• CPU1 Corex-M4 (Blue)
CPU1 bus matrix
HSEM
AES2
SRAM2
PWR
IPCC
EXTI
RNG
RCC
PKA
13
CPU sharing power modes
• Each CPU can decide independently which system low-power mode to use
(Stop0, Stop1, Stop2, Standby, or Shutdown).
• Each CPU can decide which wakeup source will wake it up.
• When both CPUs enter WFI and/or WFE the HW mechanism executes the
compatible request. It select the highest low-power mode compatible with the two
CPU requirements.
• One CPU can wake up without the need to wake up the other one.
• When the STM32WL5 wakes up from Stop modes, according the wakeup source, only the CPU
registered for this wakeup source is restarted, the other one stays in WFI (or WFE) with its clock
stopped.
• When the STM32WL5 wakes up from Standby modes, according with the source, only the CPU
registered for this wakeup source is restarted, the other one stays under reset mode.
14
14
Run mode (Run Range 1, Run Range 2 and Low Power Run)
and Frequency selection changes are centralized to avoid
conflicting configurations. This includes selection of the
System clocks as well as low power enable and Voltage
Range and Flash Memory configurations.
14
Sub-GHz radio power modes
• The sub-GHZ radio can autonomously enter and exit its peripheral low-power
modes.
• The sub-GHz radio can be woken-up by the sub-GHz radio low-power timer and
by a CPU.
• The sub-GHz radio does not impact the CPUs/system low power modes. The sub-
GHz radio may be active even when the system is in Stop or Standby mode.
• The sub-GHz radio can wakeup a CPU and the system from Stop and Standby
modes with its wakeup interrupt.
15
15
CPU state requirement versus allocation
Power State matrix
System state
16
sub-GHz radio may be active
16
Power management
• Operating modes
• CPU modes (CRun, CSleep, and CStop)
• CPU enters low-power mode via WFI or WFE
• CPU wakes up from interrupt, event, or reset.
• Radio(CRun, CStop)
• Radio enters low-power mode automatically.
• Radio wakes up from sub-GHz radio RTC wakeup timer trigger.
• System modes (Run, Stop, Standby, and Shutdown)
• System enters low-power mode according to the operating mode of the 2 CPUs sub-systems
• System wakes up from wakeup sources via EXTI or PWR.
• Voltage scaling
• RUN mode Voltage Scaling (VOS), provides 2 ranges and a low-power Run mode.
• Range 1 (High performance) up to 48 MHz.
• Range 2 (low consumption) up to 16 MHz.
• Low-power Run mode up to 2 MHz. 17
17
CPU entering cstop
18
18
CPU wakeup from cstop
• To determine the system low-power mode when the CPU wakes up from CStop
mode, flags are provided.
• Each CPU has its own set of flags
• CxSTOPF, CxSTOP2F
• System has woken up from Stop mode
• Wakeup interrupt to the CPU will be pending in EXTI or peripheral
• CxSBF
• System has woken up from Standby mode
• CPU start from reset.
• The flags of both CPUs must be checked to determine the system operating
mode.
19
19
Wakeup system mode detection
C1STOPnF
C2STOPnF
C1SBF
C2SBF
System mode CPU1 wakeup
20
Sub-system modes Bus modes System modes Power control states
RUN
LP-RUN
Wakeup from STOP with CPU HOLD
CPU2 sub-system having
CPU1 CSTOP
• Power state is controlled from both CPUs.
CPU2 CRUN or CSLEEP
HCLK1 RUN
CPU2 CRUN or CSLEEP
• Run modes:
HCLK3 RUN
C2_wakeup C1_wakeup HCLK1 peripheral
allocation
• At least one CPU is in CRun or Csleep mode
reset
HCLK1 peripheral
• Stop modes
C2STOP C1STOP delocation
CPU1 CRUN or CSLEEP CPU1 CSTOP • Both CPUs are in CStop mode and LPMS selects Stop.
CPU2 CSTOP CPU2 CRUN or CSLEEP
CPU2 CSTOP
C2STOP • Shutdown
HCLK1 STOP
LP-STOP
HCLK3 STOP
• Both CPUs are in CStop mode and LPMS selects
Shutdown.
Enter STANDBY
STANDBY • From Stop and Standby each sub-system may wake up
Wakeup CPU1 STANDBY Wakeup CPU2
independently.
SHUTDOWN Enter SHUTDOWN
• From Shutdown and Reset, only the CPU1 Cortex-M4 is
Wakeup
SHUTDOWN
woken up.
21
21
Run and low-power run modes
22
WKUP[3:1] External wakeup to GPIO Wakeup pins. Run, Stop and Standby
PVDO Programmable Voltage detection via EXTI Run, Stop and Standby
PVMO[3] Peripheral Voltage monitoring via EXTI Run and Stop
CPU2 Hold CPU1 wakeup to re-initialize system before releasing CPU2 Stop and Standby
sub-GHz radio busy Start or end of sub-GHz radio busy. Run, Stop and Standby
23
HCLK1
Voltage range CPU MSI HSI16 PLL
HCLK2
24
25
• LSE (32.768 kHz external oscillator) and LSI (32 kHz internal oscillator) can be
enabled
• Several peripherals can be active and wake up from Stop modes
• System clock at wakeup can be HSI16 or MSI up to 48 MHz (1 µs wakeup time on
RAM, 5 µs on Flash memory
• Stop 1 consumption is lower, Stop 0 supports more active peripherals.
27
27
• LSE (32.768 kHz external oscillator) and LSI (32 kHz internal oscillator) can be enabled
• Several peripherals can be active and wake up from Stop modes
• System clock at wakeup can be:
• HSI16 or MSI up to 48 MHz (1 µs wakeup time on RAM, 5 µs on Flash memory
29
29
The UART byte reception is functional in all Stop modes and
can generate a wakeup event in case of Start detection or
Byte reception or Address match event. Only the low-power
UART is supported in Stop2 mode. In other Stop modes, all
UARTs and the low-power UART can generate a wakeup
event.
When clocked by the internal or external low-speed oscillator,
or when clocked by an external pin, the low-power timer can
wake up the MCU with all its events. In Stop 0 and Stop 1
modes, all low-power timers are supported whereas only
LPTIM1 is supported in Stop 2 mode.
29
Stop hold mode
30
30
Standby mode
Lowest power mode with SRAM2 retention, switch to VBAT and I/O control
31
31
The wakeup clock is MSI with a frequency of 4 MHz.
31
Shutdown mode
• Wakeup sources:
• 3 wakeup pins
• RTC and 3 Tamper
• Wakeup clock is MSI 4 MHz. 32
32
VBAT mode
RTC still running and backup registers preserved in case of VDD loss
• If VBAT goes below the VBKUP threshold, the backup domain is reset
• Automatic internal switch between VBAT and VDD when VDD is powered down
and powered up.
33
33
be charged from the VDD supply.
33
Power modes summary
Mode Regulator Radio CPU Flash SRAM Clocks Peripherals
R1 All
Run Yes Yes On On Any
R2 All except true RNG
Any
LPRun LPR Yes Yes On On except PLL
All except true RNG
R1 All
Sleep Yes No On On Any
R2 All except true RNG
Any
LPSleep LPR Yes No On(1) On(2) except PLL
All except true RNG
34
34
Option bytes
• 3 option bits can be configured in Flash options bytes to prohibit a given low-
power mode:
• nRST_SHDW: When cleared, a reset is generated when entering Shutdown mode
• nRST_STDBY: When cleared, a reset is generated when entering Standby mode
• nRST_STOP: When cleared, a reset is generated when entering any Stop modes
35
35
Low-power debug information
• 3 bits in DBGMCU_CR register allows debug in Sleep, Stop, and Standby modes:
• DBG_SLEEP: When set, HCLK and FCLK remain ON in Sleep and Low-power sleep modes.
• DBG_STOP: When set, HCLK and FCLK remain ON in Stop modes, and power remains on all
logic.
• DBG_STANDBY: When set, the digital part is not unpowered in Standby mode, and HCLK and
FCLK remain ON. In addition, the MCU in under system reset during Standby.
• When those bits are set, the connection with the debugger is kept during the low-
power mode. After wake-up, the debug is still possible.
36
36
Related peripherals
37
37