9. Power control (PWR)
The power control (PWR) provides an overview of the supply architecture of the different power domains, and the control of the supply configuration.
It provides an overview of the power supply supervisor features and provides the control of the \(V_{DDCORE}\) supply domain according to the operating modes. In the PWR section, the Cortex®-A7 is called MPU and the Cortex®-M4 is called MCU.
9.1 PWR main features
- • System supply external regulation control
- – \(V_{DDCORE}\) supply request PWR_ON
- – \(V_{DDCORE}\) low power mode control PWR_LP
- • Peripheral supply regulation
- – 1.8 V regulator (external to PWR IP)
- – 1.1 V regulator (external to PWR IP)
- • Power supply supervision
- – POR/PDR monitor
- – BOR monitor
- – PVD monitor
- – AVD monitor
- – VBAT thresholds
- – Temperature thresholds
- – \(V_{DDCORE}\) monitor
- • VBAT charging
- • Power management
- – Operating modes
- – Low-power modes
- • Register access TrustZone® security
9.2 PWR block diagram
Figure 27. Power control block diagram

The diagram illustrates the Power control (PWR) block and its interactions with various system components. The PWR block is a central unit containing several sub-modules: Register interface, POR/PDR, Backup domain, VBAT charging, PWR control, BOR, VBAT thresholds, TEMP thresholds, Power management (labelled Power managment), WAKEUP, and PVD & AVD. External components include 1V8 Regulator, 1V1 Regulator, and 3V3 USB Detector. Connected pins/signals on the left include: VDD3V3_USBFS, VDDA1V1_REG, VDD, VDDA1V8_REG, BYPASS_REG1V8, AHB bus, PDR_ON, NRST, PDR_ON_CORE, NRST_CORE, VDD, VBAT, PWR_ON, PWR_LP, VDDCORE, VSS, VDDA, VSSA, WKUP[6:1], and PVD_IN. Connected blocks on the right include RCC (with signals rcc_tzen, nrst_por, ready_run, por_vsw, nrst_bor, hclk4, pwrwake_mpu, pwrwake_mcu, pwrwake_sys), MPU (gic), MCU (nvic), and EXTI (with sys_wakeup, c1_wakeup, c2_wakeup, and wakeup events).
MSv46534V1
9.2.1 PWR pin overview
Table 29. PWR pin overview
| Pin name | I/O | Description |
|---|---|---|
| VDD | P | Main IO and VDD domain supply input |
| VDD_PLL | P | PLLs supply input, shall be connected to VDD(not used by PWR) |
| VBAT | P | Backup battery supply input |
| VDDCORE | P | Core domain supply |
| VDDA | P | Analog domain supply |
| VDDA1V8_REG | P | 1V8 regulator supply output |
| VDDA1V1_REG | P | 1V1 regulator supply output |
| VDD3V3_USBFS | P | USB FS IO 3V3 supply input |
| VDD3V3_USBHS | P | USB HS PHY 3V3 supply input, shall be connected to VDD3V3_USBFS (not used by PWR) |
| VDDQ_DDR | P | DDR PHY supply input (not used by PWR) |
| VSS | P | Main ground |
| VSSA | P | Analog ground |
| VSS_USBHS | P | USB HS PHY ground (not used by PWR) |
| AHB | I/O | AHB register interface |
| PWR_ON | O | Core supply enable output |
| PWR_LP | O | Core supply Low-power Stop mode selection output |
| PDR_ON | I | VDD Power On Reset enable |
| NRST | IO | Application pad reset input/output |
| PDR_ON_CORE | I | VDDCORE Power On Reset enable |
| NRST_CORE | I | VDDCORE reset input (to be used when VDDCORE Power On Reset is disabled) |
| BYPASS_REG1V8 | I | 1V8 regulator bypass |
| WKUP[6:1] | I | Wakeup inputs |
| PVD_IN | I | PVD external input |
| hclk4 | I | PWR AHB bus clock input from RCC |
| pvdo | O | Programmable voltage detector output |
| avdo | O | Analog voltage detector output |
| nrst_por | O | VDD Power-on reset |
| nrst_bor | O | VDD Brownout reset |
| sys_ds_exit | I | System wakeup request from EXTI (sys_wakeup) |
| mpu_ds_exit | I | MPU wakeup request from EXTI (c1_wakeup) |
| mcu_ds_exit | I | MCU wakeup request from EXTI (c2_wakeup) |
| mpu_cstandby | O | MPU CStandby mode indication |
Table 29. PWR pin overview (continued)
| Pin name | I/O | Description |
|---|---|---|
| pwrwake_mpu | O | Clock wakeup request for MPU |
| pwrwake_mcu | O | Clock wakeup request for MCU |
| mpu_int_wkup | O | Wakeup interrupt to MPU |
| mcu_int_wkup | O | Wakeup interrupt to MCU |
| async_wkup[6:1] | O | Asynchronous wakeup to EXTI |
| rcc_tzen | I | TrustZone security enable (from TZEN register bit in RCC) |
9.3 PWR power supplies
The system requires supply on \(V_{DD}\) and \(V_{DDCORE}\), and provides independent supplies for \(V_{DDA}\), \(V_{BAT}\), \(V_{DD1V8\_REG}\), \(V_{DD1V1\_REG}\), \(V_{DD3V3\_USBFS}\), \(V_{DD3V3\_USBHS}\) and \(V_{DDQ\_DDR}\). It provides regulated supplies for specific functions (1V8 regulator):
- • \(V_{DD}\) power supply input for I/Os and system analog such as reset, power management and oscillators and PLLs.
- • \(V_{DD\_PLL}\) power supply input for PLLs, to be connected to the same supply as used for \(V_{DD}\).
- • \(V_{BAT}\) optional power supply input for backup domain when \(V_{DD}\) is not present (VBAT mode).
- • \(V_{DDCORE}\) digital core domain supply, dependent on \(V_{DD}\) supply. VDD shall be present before \(V_{DDCORE}\).
- • \(V_{DDA}\) analog power supply input for ADCs, DACs and voltage reference buffers, independent from any other supply.
- • \(V_{REF+}\) external reference voltage for ADC and DAC, independent from any other supply.
- – When the voltage reference buffer is enabled, supply output.
- – When the voltage reference buffer is disabled, independent external reference supply input.
- • \(V_{SSA}\) separate analog and reference voltage ground.
- • \(V_{DDA1V8\_REG}\) 1V8 regulator supply, independent from any other supply.
- – When the 1V8 regulator is enabled, supply output.
- – When the 1V8 regulator is disabled, independent external supply input.
- • \(V_{DDA1V1\_REG}\) 1V1 regulator supply, independent from any other supply.
- • \(V_{DD3V3\_USBFS}\) supply input for USB FS IOs, independent from any other supply.
- • \(V_{DD3V3\_USBHS}\) supply input for USB HS PHY, to be connected to the same supply as used for \(V_{DD3V3\_USBFS}\).
- • \(V_{SS\_USBHS}\) separate USB HS PHY ground.
- • \(V_{DDQ\_DDR}\) supply input for DDR PHY, independent from any other supply.
- • \(V_{SS}\) common ground for all supplies except for analog.
Note: Depending on the operating power supply range, some peripheral may be used with limited functionality and performance. For more details refer to section “General operating conditions” in the datasheet.
Note: An external DDR memory is to be supplied from an external regulator which is NOT controlled by the PWR. When the system enters low-power modes it is up to the firmware to control the DDR memory supply directly through the external regulator. When the system enters Standby mode the PWR_ON pin may be used by the external DDR memory regulator to power down the DDR memory supply.
Figure 28. Power supply overview

MSv46560V2
9.3.1 PWR core domain
The VDDCORE core domain supply is provided from an external regulator. The VDDCORE supplies all the digital circuitries except the backup domain and the standby circuitry when in Standby mode.
Following a VDD power-on reset, the external regulator is enabled via PWR_ON and supplies the VDDCORE.
The external regulator may operate in different modes (Main, Low-power, Off) which is used depending on the system operating modes (Run, Stop, LP-Stop, LPLV-Stop and Standby).
- • In Run mode
- – The regulator supplies full power to the \(V_{DDCORE}\) domain (core, memories and digital peripherals), in its Main mode, both PWR_ON and PWR_LP are set high.
- • In Stop mode
- – The regulator supplies the \(V_{DDCORE}\) domain to retain the content of registers and internal memories. The external regulator is kept in Main mode to allow a fast exit. The Low-power mode signaling is disabled with the LPDS register bit in PWR control register 1 (PWR_CR1). Both PWR_ON and PWR_LP are kept set high.
- • In LP-Stop mode
- – The regulator supplies the \(V_{DDCORE}\) domain to retain the content of registers and internal memories. The external regulator is allowed to enter Low-power mode. The Low-power mode signaling on PWR_LP is enabled with the LPDS register bit in PWR control register 1 (PWR_CR1). The PWR_ON is kept set high or follows PWR_LP as selected in LPCFG in PWR control register 1 (PWR_CR1), and PWR_LP is cleared to low.
- • In LPLV-Stop mode
- – The regulator supplies the \(V_{DDCORE}\) domain to retain the content of registers and internal memories. The external regulator is allowed to enter Low-power low-voltage mode. The Low-power mode signaling on PWR_LP is enabled with the LPDS register bit in PWR control register 1 (PWR_CR1). The PWR_ON is kept set high or follows PWR_LP as selected in LPCFG in PWR control register 1 (PWR_CR1), and PWR_LP is cleared to low. The Low-power Low-voltage mode is enabled by the LVDS register bit in PWR control register 1 (PWR_CR1), the \(V_{DDCORE}\) supply level may be lowered during LPLV-Stop mode.
- • In Standby mode
- – The PWR_ON and PWR_LP signals are both set low, the external regulator is switched off and the \(V_{DDCORE}\) domain is powered down. The content of the registers and memories are lost except for the backup domain and the Standby circuitry.
9.3.2 PWR supply system startup sequence
The system startup sequence is shown in Figure 29.
- 1. From power-on the POR monitors the \(V_{DD}\) supply. Once the supply is above the POR threshold level, the external Voltage regulator providing the \(V_{DDCORE}\) supply is enabled via the PWR_ON signal.
- 2. As long as the \(V_{DDCORE}\) is below the vddcore_ok threshold, the system is kept in reset.
- 3. Once the \(V_{DDCORE}\) supply is above the vddcore_ok threshold level, the system is taken out of reset, where after the HSI oscillator is enabled.
- 4. Once the HSI oscillator is stable, the hardware initializes the system (option bytes loading), then the Run mode is entered.
Figure 29. Device startup supply sequence

The diagram illustrates the startup sequence of the device. It shows the following signals and their transitions:
- \(V_{DD}\): Rises from a low level, crossing the POR threshold.
- nrst_por: Transitions from low to high when \(V_{DD}\) crosses the POR threshold.
- PWR_ON and PWR_LP: Both are in HiZ state during the initial power-down phase and transition to a high state after the POR threshold is reached.
- \(V_{DDCORE}\): Rises after the POR threshold is reached, crossing the vddcore_ok threshold.
- vddcore_ok: Transitions from low to high once \(V_{DDCORE}\) crosses its threshold.
- Operating mode: The system progresses through five stages: (1) Power down or VBAT mode, (2) POR Reset, (3) Wait HSI oscillator, (4) HW system Init, and (5) Run.
- HSI: The HSI oscillator signal starts during the 'Wait HSI oscillator' stage and becomes stable during the 'HW system Init' stage.
MSv46508V1
9.3.3 PWR supply Stop sequence
The system Stop mode sequence is shown in Figure 30. The Stop mode is entered when selected by the LPDS register bit in PWR control register 1 (PWR_CR1).
- 1. When entering Stop mode, the hclk4 is stopped. The oscillators can be stopped in order to reduce the power consumption. For detailed oscillators status in Stop mode, see Section 10.4.2: Oscillators description and Section 10.4.7: Clock generation in Stop and Standby modes.
- 2. In Stop mode both the PWR_ON and PWR_LP are kept high. The external regulator remains in main mode.
- 3. On a wakeup event, the clock restore process is performed. See RCC: The clock restore sequence description for more details.
- 4. Once the oscillator is stable, the system enters into Run mode.
Figure 30. Device low-power Stop supply sequence

The figure is a timing diagram illustrating the device low-power Stop supply sequence. It consists of six horizontal signal lines and a central 'Operating mode' bar, all contained within a rectangular frame. The signals are labeled on the left: PWR_ON (H), PWR_LP (H), VDDCORE (vddcore), vddcore_ok (H), Operating mode, and hclk4. The 'Operating mode' bar is divided into four phases by vertical dashed lines: (1) Run, (2) Stop, (3) Wait HSI oscillator, and (4) Run. In phase (1), PWR_ON (H), PWR_LP (H), and vddcore_ok (H) are high, VDDCORE (vddcore) is high, and hclk4 is an active signal. In phase (2), PWR_ON (H), PWR_LP (H), and vddcore_ok (H) remain high, VDDCORE (vddcore) is high, and hclk4 is low. In phase (3), PWR_ON (H), PWR_LP (H), and vddcore_ok (H) remain high, VDDCORE (vddcore) is high, and hclk4 is low. In phase (4), PWR_ON (H), PWR_LP (H), and vddcore_ok (H) remain high, VDDCORE (vddcore) is high, and hclk4 is an active signal. The label 'MSv46509V1' is located in the bottom right corner of the diagram area.
9.3.4 PWR supply LP-Stop sequence
The system LP-Stop mode sequence is shown in Figure 31. The LP-Stop mode is entered when selected by the LPDS register bit in PWR control register 1 (PWR_CR1).
- 1. When entering LP-Stop mode the hclk4 is stopped. The oscillators can be stopped in order to reduce the power consumption. For detailed oscillators status in Stop mode, see Section 10.4.2: Oscillators description and Section 10.4.7: Clock generation in Stop and Standby modes
- 2. In the LP-Stop mode the PWR_ON is either kept high (pwr_on) or follows the PWR_LP (pwr_onlp) as selected with the LPCFG register bit in PWR control register 1 (PWR_CR1). The PWR_LP is asserted, signaling LP-Stop. After, the external regulator may enter Low-power mode.
- 3. On a wakeup event the external regulator is taken out of Low-power mode via PWR_LP, and the clock restore process is performed. See RCC: The clock restore sequence description for more details.
- 4. Once the oscillator is stable, the PWRLP_TEMPO delay is timed out to allow the external regulator to switch to main mode (see Section 10.7.92: RCC PWR_LP delay control register (RCC_PWRLPDLYCR)).
- 5. After the delay timeout the system enters into Run mode.
Figure 31. Device low-power LP-Stop supply sequence

The diagram illustrates the sequence of events for entering and exiting LP-Stop mode. It consists of six horizontal signal lines and a row of operating mode boxes, all aligned with five numbered phases: (1) Run, (2) LP-Stop, (3) Wait HSI oscillator, (4) Wait REG Main, and (5) Run. Vertical dashed lines separate these phases.
- PWR_ON: A high-level signal that transitions to a dashed line during phase (2).
- PWR_LP: A signal that transitions from high to low at the start of phase (2) and returns to high at the end of phase (2).
- VDDCORE: A high-level signal that remains constant.
- vddcore_ok (H): A high-level signal that remains constant.
- Operating mode: A row of boxes labeled 'Run' for phases (1) and (5), 'LP-Stop' for phase (2), 'Wait HSI oscillator' for phase (3), and 'Wait REG Main' for phase (4).
- hclk4: A clock signal that is active (square wave) in phases (1) and (5), and inactive (low) in phases (2), (3), and (4).
The reference code 'MSv46510V1' is located in the bottom right corner of the diagram area.
9.3.5 PWR supply LPLV-Stop sequence
The system LPLV-Stop mode sequence is shown in Figure 32. The LPLV-Stop mode is entered when selected by the LPDS and LVDS register bits in PWR control register 1 (PWR_CR1).
- 1. When entering LPLV-Stop mode the hclk4 is stopped. The oscillators can be stopped in order to reduce the power consumption. For detailed oscillators status in Stop mode, see Section 10.4.2: Oscillators description and Section 10.4.7: Clock generation in Stop and Standby modes.
- 2. In the LPLV-Stop mode the PWR_ON is either kept high (pwr_on) or follows the PWR_LP (pwr_omlp) as selected with the LPCFG register bit in PWR control register 1 (PWR_CR1). The PWR_LP is asserted, signaling LPLV-Stop. After, the external regulator may enter Low-power low-voltage mode and lower the VDDCORE supply.
- 3. On a wakeup event the external regulator is taken out of Low-power low-voltage mode via PWR_LP and a delay tSEL_VDDCORETEMPO, is started to wait for the VDDCORE to reach the Run mode operating supply level.
- 4. After this delay the HSI is enabled and the clock restore process is performed. See RCC: The clock restore sequence description for more details.
- 5. Once the oscillator is stable, the system enters Run mode.
Figure 32. Device low-power LPLV-Stop supply sequence

The figure is a timing diagram illustrating the device low-power LPLV-Stop supply sequence. It consists of six horizontal signal lines and a row of operating mode boxes at the bottom, all contained within a rectangular frame.
- PWR_ON: A high-level signal that transitions to a dashed line during the LPLV-Stop phase, indicating it is held high or follows PWR_LP.
- PWR_LP: A signal that transitions from high to low at the start of the LPLV-Stop phase and returns to high at the end of the LPLV-Stop phase.
- VDDCORE: A signal that ramps down from its Run mode level to a lower level during the LPLV-Stop phase and then ramps back up to the Run mode level during the Wait VDDCORE timeout phase.
- vddcore_ok (1): A signal that remains high throughout the entire sequence.
- Operating mode: A row of five boxes representing the system's state:
- (1) Run: The initial state with hclk4 active.
- (2) LPLV-Stop: Entered when PWR_LP goes low and VDDCORE ramps down.
- (3) Wait VDDCORE timeout: The state after PWR_LP goes high and VDDCORE is ramping back up.
- (4) Wait HSI oscillator: The state after VDDCORE has reached its Run level, while the system waits for the HSI oscillator.
- (5) Run: The final state once the oscillator is stable and hclk4 is restored.
- hclk4: A clock signal that is active (square wave) in the Run phases (1 and 5) and inactive (low) during the LPLV-Stop, Wait VDDCORE timeout, and Wait HSI oscillator phases.
MSv47351V1
9.3.6 PWR supply Standby sequence
The system Standby mode sequence is shown in Figure 33.
- 1. When entering Standby mode, the PWR_ON signal requests the VDDCORE supply to be powered off, the hclk4 is stopped. The oscillators are also stopped.
If needed, a guaranteed minimum PWR_ON pulse low time can be defined in PWR control register 3 (PWR_CR3) bits POPL. - 2. On a wakeup event, the external regulator is requested, via the PWR_ON signal, to switch on the VDDCORE supply. As long as the VDDCORE is below the vddcore_ok threshold, the system is kept in Standby.
When a wakeup event occurs before the guaranteed minimum PWR_ON pulse low time, the external regulator is only requested to switch on the VDDCORE supply till after the minimum PWR_ON pulse low time. - 3. Once the VDDCORE supply is above the vddcore_ok threshold level, the HSI oscillator is enabled.
- 4. Once the oscillator is stable, the hardware initializes the system (option bytes loading), after which Run mode is entered.
Figure 33. Device Standby mode power control.

The diagram illustrates the power control sequence for Standby mode. It shows the following signals and states over time:
- PWR_ON: A low pulse initiates the transition from Run to Standby mode. It returns high during the Standby phase and remains high through the subsequent phases.
- PWR_LP: A low pulse initiates the transition from Run to Standby mode. It returns high during the Standby phase and remains high through the subsequent phases.
- VDDCORE: Falls when PWR_ON and PWR_LP are low (transition to Standby). Rises when they return high (wakeup). It crosses the 'vddcore_ok threshold' during the 'Wait HSI oscillator' phase.
- vddcore_ok: Falls when VDDCORE falls. Returns high once VDDCORE exceeds the threshold.
- Operating mode: A bar chart showing the system state: Run (1), Standby (2), POR Reset (3), Wait HSI oscillator (4), HW system Init (5), and Run (6).
- hclk4: Active (square wave) during Run phases (1 and 6). Inactive (low) during Standby (2), POR Reset (3), and HW system Init (5). Returns active during the 'Wait HSI oscillator' phase (4).
MSv46511V1
In Standby mode when the VDDCORE OK monitoring (vddcore_ok) is disabled by PDR_ON_CORE, the NRST_CORE signal shall be activated whenever VDDCORE is powered down.
PDR_ON_CORE is reserved for STMicroelectronics production tests and must always be connected to VDD in an application.
9.3.7 PWR supply VBAT sequence from Standby.
The system VBAT mode sequence after Standby is shown in Figure 34.
- 1. When in Standby mode, the device can be set in VBAT mode by powering down the \(V_{DD}\) supply. The
pwr_onsignal keeps requesting the \(V_{DDCORE}\) supply to be powered off. - 2. When powering down \(V_{DD}\), the device enters VBAT mode. The
PWR_ONandPWR_LPsignals become HiZ. - 3. To exit VBAT mode, the \(V_{DD}\) supply shall be reestablished, the POR monitors the \(V_{DD}\) supply. Once the supply is above the POR threshold level the External Voltage regulator providing the \(V_{DDCORE}\) supply is enabled via the
pwr_onsignal: As long as the \(V_{DDCORE}\) is below thevddcore_okthreshold the system is kept in reset. - 4. Once the \(V_{DDCORE}\) supply is above the
vddcore_okthreshold level, the system is taken out of reset, where after the HSI oscillator is enabled. - 5. Once the oscillator is stable, the hardware initializes the system (option bytes loading), after which Run mode is entered.
Figure 34. Device VBAT mode power control

The diagram illustrates the power control sequence for a device entering VBAT mode from Standby and then returning to Run mode. The signals shown are \(V_{DD}\), nrst_por, PWR_ON, PWR_LP, \(V_{DDCORE}\), vddcore_ok, and hclk4. The sequence is divided into six phases: (1) Standby, (2) VBAT mode, (3) POR Reset, (4) Wait HSI oscillator, (5) HW system Init, and (6) Run. In Standby, \(V_{DD}\) is high and \(V_{DDCORE}\) is low. In VBAT mode, \(V_{DD}\) is low, \(V_{DDCORE}\) is low, and PWR_ON and PWR_LP are HiZ. During POR Reset, \(V_{DD}\) rises above the POR threshold, \(V_{DDCORE}\) rises above the vddcore_ok threshold, and nrst_por goes low. In the Wait HSI oscillator phase, nrst_por goes high and hclk4 starts oscillating. During HW system Init, hclk4 continues to oscillate. Finally, in Run mode, all signals are in their active states.
When VBAT mode is entered from Run, Stop, LP-Stop or LPLV-Stop mode, the \(V_{DD}\) and \(V_{DDCORE}\) supplies shall both be powered down.
9.3.8 PWR \(V_{SW}\) domain
To retain the content of the \(V_{SW}\) domain (RTC, backup registers, backup RAM, and retention RAM) when \(V_{DD}\) is turned off, VBAT pin can be connected to an optional standby voltage supplied from a battery or an another source.
Switching to the \(V_{BAT}\) supply (VBAT mode) is controlled by the power-down reset (PDR) embedded in the reset block, monitoring the \(V_{DD}\) supply.
Warning: During \(t_{RSTTEMPO}\) (temporization at \(V_{DD}\) startup) or after a PDR is detected, the power switch between \(V_{BAT}\) and \(V_{DD}\) remains connected to \(V_{BAT}\).
During the startup phase, if \(V_{DD}\) is established in less than \(t_{RSTTEMPO}\) (refer to the datasheet for the value of \(t_{RSTTEMPO}\)) and \(V_{DD} > V_{BAT} + 0.6\) V, a current may be injected into \(V_{BAT}\) through an internal diode connected between \(V_{DD}\) and the power switch (\(V_{BAT}\)).
If the power supply/battery connected to the VBAT pin cannot support this current injection, it is strongly recommended to connect an external low-drop diode between this power supply and the VBAT pin.
When the \(V_{DD}\) supply is present, the \(V_{SW}\) domain is supplied from \(V_{DD}\). This allows to save \(V_{BAT}\) power supply battery life time.
If no external backup battery is used in the application, it is recommended to connect VBAT externally to \(V_{DD}\).
Whenever the \(V_{DD}\) supply is present and above the PDR threshold, the backup domain I/Os are supplied by \(V_{DD}\), the following functions are available:
- • PC14 and PC15 can be used as either GPIO (if \(V_{DDCORE}\) is present) or as LSE pins.
- • PC13, PI8 and PC1 can be used as either GPIO (if \(V_{DDCORE}\) is present) or as RTC or TAMP pins.
Note: Due to the fact that the VSW switch only sinks a limited amount of current, the use of PC1, PC13 to PC15, and PI8 as GPIOs is restricted. See Datasheet for details.
When the \(V_{DD}\) supply is absent and a supply is present on VBAT, the backup domain I/Os are supplied by \(V_{BAT}\), the following functions are available in VBAT mode:
- • PC14 and PC15 can be used as LSE pins only.
- • PC13, PI8 and PC1 can be used as RTC or TAMP pins.
PWR \(V_{SW}\) domain access
After a system reset the RTC registers and RTC backup registers are protected against possible unwanted write accesses. To enable access to the \(V_{SW}\) domain, proceed as follows:
- 1. Set the DBP bit in the PWR control register 1 (PWR_CR1) to enable access to the \(V_{SW}\) domain.
For more detail on RTC and backup registers access see Section 48: Real-time clock (RTC) in reference manual.
PWR Backup RAM
The backup domain includes 4 Kbytes of backup RAM accessible in 32-bit, 16-bit or 8-bit data mode.
- • In Run, Stop, LP-Stop and LPLV-Stop modes the backup RAM is supplied from the \(V_{DDCORE}\) supply.
- • In Standby and VBAT modes, the backup RAM is supplied through the Backup regulator in the \(V_{SW}\) domain.
When the backup regulator is enabled by BREN register bit in PWR control register 2 (PWR_CR2), the backup RAM content is retained even in Standby and/or VBAT mode (it can be considered as an internal EEPROM when \(V_{BAT}\) is always present). The backup regulator can be ON or OFF depending whether the application needs the backup RAM function in Standby or VBAT modes.
When enabling the backup regulator, the readiness of the backup supply shall be checked with the BRRDY register bit in PWR control register 2 (PWR_CR2), before entering Standby or VBAT mode.
The backup RAM is not mass erased by a tamper event, instead it is read protected to prevent confidential data, such as cryptographic private key, from being accessed. To re-gain access to the backup RAM after a tamper event, it needs to be first erased. The backup RAM can be erased:
- • After a tamper event, by performing a dummy write with zero as data to the backup RAM.
PWR retention RAM
The retention domain includes 64 Kbytes of retention RAM accessible in 32-bit, 16-bit or 8-bit data mode.
- • In Run, Stop, LP-Stop and LPLV-Stop modes the retention RAM is supplied from the \(V_{DDCORE}\) supply.
- • In Standby and VBAT modes, the retention RAM is supplied through the retention regulator in the \(V_{SW}\) domain.
When the retention regulator is enabled by the RREN register bit in PWR control register 2 (PWR_CR2), the retention RAM content is retained even in Standby and/or VBAT mode (it can be considered as an Non-volatile memory when \(V_{BAT}\) is always present). The retention regulator can be ON or OFF depending whether the application needs the retention RAM function in Standby or VBAT modes.
When enabling the retention regulator, the readiness of the retention supply shall be checked with the RRRDY register bit in PWR control register 2 (PWR_CR2), before entering Standby or VBAT mode.
In Standby and VBAT mode, when the retention supply drops below a threshold level, the RRRDY bit is reset. The retention regulator shall be disabled and then re-enabled to have the RRRDY bit set again. This function may be used to detect issues with the retention RAM integrity.
Figure 35. Backup domain

The diagram illustrates the Backup domain architecture. It shows the VSW domain (VSW domain) and the Backup domain (Backup domain). The VSW domain contains the Backup Regulator, Retention Regulator, Backup RAM, Retention RAM, RTC, LSE, and Backup IOs. The Backup domain contains the Backup Interface. The Backup Interface is connected to VBAT, VDD, and VDDCORE. The Backup Interface is also connected to the Backup RAM and Retention RAM. The Backup RAM is connected to the Backup Regulator. The Retention RAM is connected to the Retention Regulator. The RTC and LSE are connected to the Backup RAM and Retention RAM. The Backup IOs are connected to the Backup RAM and Retention RAM. The Backup domain is labeled VDDCORE.
MSv46513V1
9.3.9 PWR VBAT battery charging
When \(V_{DD}\) is present, it is possible to charge the external battery on VBAT through an internal resistance between the 2 supplies.
The VBAT charging is done either through a 5 kOhm resistor, or through a 1.5 kOhm resistor depending on the VBRS bit value in PWR control register 3 (PWR_CR3).
The battery charging is enabled by setting the VBE bit in PWR control register 3 (PWR_CR3). It is automatically disabled when entering VBAT mode.
9.3.10 PWR analog supply
PWR separate analog \(V_{DDA}\) supply.
The analog supply domain has separate \(V_{DDA}\) and \(V_{SSA}\) pads to allow the supply to be filtered and shielded from noise on the PCB. This allows to improve the ADC and DAC conversion accuracy.
- • The analog voltage supply input is available on a separate \(V_{DDA}\) pin.
- • An isolated supply ground connection is provided on pin \(V_{SSA}\).
PWR analog reference voltage \(V_{REF}\).
To allow better accuracy on low voltage signals, the ADC and DAC have furthermore a separate reference voltage \(V_{REF+}\) pin. The user may connect a separate external reference voltage on \(V_{REF+}\). The \(V_{REF+}\) controls the highest voltage, represented by the full scale value. The lower voltage reference \(V_{REF-}\) is connected together with \(V_{SSA}\).
When enabled by the voltage reference buffer ENVR bit in the Section 31.3.1: VREFBUF control and status register (VREFBUF_CSR), the \(V_{REF+}\) is provided from the internal voltage reference buffer. The internal voltage reference buffer can also provide a reference voltage to external components through the pin, see Section 31: Voltage reference buffer (VREFBUF).
When the internal voltage reference buffer is disabled by ENVR, the \(V_{REF+}\) can also be used as a reference supply to external circuits.
9.3.11 PWR 1V8 regulator
The 1V8 regulator is supplied from the \(V_{DD}\) supply and generates the \(V_{DDA1V8\_REG}\) supply. The USB HS PHY is directly connected to this supply.
The use of the integrated 1V8 regulator has to be enabled by the BYPASS_REG1V8 pin.
When enabled by the BYPASS_REG1V8 pin and the REG18EN register bit in PWR control register 3 (PWR_CR3), the \(V_{DDA1V8\_REG}\) is provided from the 1V8 regulator. Before using the \(V_{DDA1V8\_REG}\), the availability shall be checked with the REG18RDY register bit in PWR control register 3 (PWR_CR3).
When the 1V8 regulator is disabled (bypass) by the BYPASS_REG1V8 pin or the REG18EN register bit, the \(V_{DDA1V8\_REG}\) can be provided from an external supply.
For more information on the 1V8 regulator see Section 9.3: PWR power supplies.
9.3.12 PWR 1V1 regulator
The 1V1 regulator is supplied from the \(V_{DD}\) supply and generates the \(V_{DDA1V1\_REG}\) supply. The USB HS PHY is directly connected to this supply.
The 1V1 regulator is enabled by the REG11EN register bit in PWR control register 3 (PWR_CR3). Before using the supply from the 1V1 regulator, the availability shall be checked with the REG11RDY register bit in PWR control register 3 (PWR_CR3).
For more information on the 1V1 regulator see Section 9.3: PWR power supplies.
9.4 PWR power supply supervision
The power supply level monitoring is available on the following supplies:
- • VDD via POR/PDR Section 9.4.1, BOR Section 9.4.2., and PVD monitor Section 9.4.3.
- – The POR/PDR monitoring flag is available from the PORRSTF register bit in the RCC.
- – The BOR monitoring flag is available from the BORRSTF register bit in the RCC.
- – The PVD monitoring flag is available from the PVDO register bit in PWR control status register 1 (PWR_CSR1). In addition an interrupt and wakeup can be generated via the EXTI.
- • VDDA via AVD monitor, Section 9.4.5.
- – The AVD monitoring flag is available from the AVDO register bit in PWR control status register 1 (PWR_CSR1). In addition an interrupt and wakeup can be generated via the EXTI.
- • VBAT via VBAT threshold, Section 9.4.6.
- – The VBAT monitoring could be enabled in PWR control register 2 (PWR_CR2). The monitoring could generate tamper event via the TAMP.
- • VDDCORE via vddcore_ok which keeps VDDCORE domain in reset as long as the level is not OK, Section 9.5.
- – The VDDCORE OK monitoring flags are available from the SBF register bit in PWR MCU control register (PWR_MCUCR), in PWR MCU control register (PWR_MCUCR) and from the VCORERSTF register bit in the RCC.
- • VSW via rst_vsw, which keeps VSW domain in reset as long as the level is not OK.
- – The VSW monitoring has no flag. The VSW registers reset value could be used.
- • VBKP via a BRRDY in PWR control register 2 (PWR_CR2)
- • VRET via a RRRDY in PWR control register 2 (PWR_CR2).
- • VDD3V3_USBFS via USB33RDYPWR control register 3 (PWR_CR3).
- • VDDA1V8_REG via REG18RDYPWR control register 3 (PWR_CR3)
- • VDDA1V1_REG via REG11RDYPWR control register 3 (PWR_CR3)
9.4.1 PWR power-on reset (POR)/power-down reset (PDR)
The system has an integrated POR/PDR circuitry that allows a proper startup operation.
The system remains in Reset mode when VDD is below a specified VPOR threshold, without the need for an external reset circuit. Once the VDD supply level is above the VPOR threshold, the system is taken out of reset. More details concerning the power-on/power-down reset threshold, refer to the electrical characteristics in the datasheet.
The POR/PDR generates also an application reset (NRST).
The POR/PDR can be enabled/disabled by the device input pin PDR_ON. When disabled, the VDD power on reset shall be provided on the NRST device input pin.
PDR_ON is reserved for STMicroelectronics production tests and must always be connected to VDD in an application.
Figure 36. Power-on reset/power-down reset waveform

- 1. For the thresholds and hysteresis values, refer to the datasheet.
9.4.2 PWR brownout reset (BOR)
During power-on, the brownout reset (BOR) keeps the system under reset until the \(V_{DD}\) supply voltage reaches the specified \(V_{BOR}\) threshold.
The \(V_{BOR}\) threshold is configured through the system option bytes. By default, BOR is off. When selecting another BOR threshold, this takes effect only after the option bytes are loaded by the device. The following programmable \(V_{BOR}\) thresholds can be selected:
- • BOR off (VBOR0): reset threshold level for full range voltage operation.
- • BOR Level 1 (VBOR1): reset threshold level for above 2.10 V typ. voltage operation.
- • BOR Level 2 (VBOR2): reset threshold level for above 2.40 V typ. voltage operation.
- • BOR Level 3 (VBOR3): reset threshold level for above 2.70 V typ. voltage operation.
Refer to Datasheet for more information on the BOR thresholds.
The BOR generates also an application reset (NRST).
When the BOR is enabled and the \(V_{DD}\) supply voltage drops below the selected \(V_{BOR}\) threshold, an Application reset (NRST) is generated.
The BOR can be disabled by programming the system option bytes. To disable the BOR function, \(V_{DD}\) must have been higher than \(V_{BOR0}\) to start the system option byte programming sequence. The power down is then monitored by the PDR (see Section 9.4.1)
The BOR threshold hysteresis for level 1, 2, and 3 is ~100 mV, for level 0 it is ~40 mV (between the rising and the falling edge of the supply voltage).
Figure 37. BOR thresholds

- 1. For the thresholds and hysteresis values, refer to the datasheet.
9.4.3 PWR VDDCORE OK reset
The system has an integrated circuitry that allows proper startup operation of the \(V_{DDCORE}\) domain.
The \(V_{DDCORE}\) domain remains in Reset mode when \(V_{DDCORE}\) is below the operation threshold vddcore_ok. Once the \(V_{DDCORE}\) supply level is above the operation threshold vddcore_ok, the \(V_{DDCORE}\) domain is taken out of reset. For more details concerning the \(V_{DDCORE}\) OK reset threshold, refer to the electrical characteristics of the datasheet.
The \(V_{DDCORE}\) OK detector can be enabled/disabled by the device input pin PDR_ON_CORE. When disabled, the \(V_{DDCORE}\) domain reset shall be provided on the NRST_CORE device input pin.
PDR_ON_CORE is reserved for STMicroelectronics production tests and must always be connected to \(V_{DD}\) in an application
When the \(V_{DDCORE}\) OK detector is disabled, the \(V_{DDCORE}\) supply level can be lowered in LPLV-Stop mode.
When the \(V_{DDCORE}\) OK detector is disabled, the NRST_CORE signal shall be used in Standby mode see Figure 38.
The NRST_CORE is operational irrespective of the PDR_ON_CORE state. Hence it also resets the \(V_{DDCORE}\) domain when the \(V_{DDCORE}\) OK detector is enabled by PDR_ON_CORE.
Figure 38. NRST_CORE control in Standby

The diagram illustrates the control of the NRST_CORE signal during Standby mode. It shows the timing of \(V_{DDCORE}\), pwr_on, pwr_lp, and NRST_CORE signals relative to the operating modes: Run, Standby, Wait Oscillator, HW system Init, and Run. \(V_{DDCORE}\) transitions from high to low during Standby and back to high during HW system Init. pwr_on and pwr_lp are low during Standby and high otherwise. NRST_CORE is low during Standby and high otherwise. A dashed line indicates the External regulator threshold for \(V_{DDCORE}\).
MSv46516V1
9.4.4 PWR programmable voltage detector (PVD)
The PVD can be used to monitor the \(V_{DD}\) power supply by comparing it to a threshold selected by the PLS[2:0] bits in the PWR control register 1 (PWR_CR1).
The PVD can also be used to monitor a voltage level on the PVD_IN pin. In this case, the voltage level on PVD_IN is compared to the internal VREFINT level.
The PVD is enabled by setting the PVDEN bit in PWR control register 1 (PWR_CR1).
The PVD is not available in Standby mode.
A PVDO flag is available, in the PWR control status register 1 (PWR_CSR1), to indicate whether \(V_{DD}\) or voltage level on PVD_IN is higher or lower than the PVD threshold. This event is internally connected to the EXTI and can generate an interrupt if enabled through the EXTI registers. The PVDO output interrupt can be generated when \(V_{DD}\) or voltage level on PVD_IN drops below the PVD threshold and/or when \(V_{DD}\) or voltage level on PVD_IN rises above the PVD threshold depending on EXTI rising/falling edge configuration. As an example, the service routine could perform emergency shutdown tasks.
Figure 39. PVD thresholds

MSV46517V1
- 1. For the thresholds and hysteresis values, refer to the datasheet.
9.4.5 PWR analog voltage detector (AVD)
The AVD can be used to monitor the \(V_{DDA}\) supply by comparing it to a threshold selected by the ALS[1:0] bits in the PWR control register 1 (PWR_CR1).
The AVD is enabled by setting the AVDEN bit in PWR control register 1 (PWR_CR1).
The AVD is not available in Standby mode.
An AVDO flag is available, in the PWR control status register 1 (PWR_CSR1), to indicate whether \(V_{DDA}\) is higher or lower than the AVD threshold. This event is internally connected to the EXTI and can generate an interrupt if enabled through the EXTI registers. The AVDO interrupt can be generated when \(V_{DDA}\) drops below the AVD threshold and/or when \(V_{DDA}\) rises above the AVD threshold depending on EXTI rising/falling edge configuration. As an example, the service routine could indicate when the \(V_{DDA}\) supply drops below a minimum level.
Figure 40. AVD thresholds

1. For the thresholds and hysteresis values, refer to the datasheet.
9.4.6 PWR battery voltage thresholds
During VBAT mode, the battery voltage \(V_{BAT}\) supply can be monitored by comparing it with two threshold levels. The VBAT supply monitor can be enabled/disabled with MONEN bit in PWR control register 2 (PWR_CR2). When enabled, the battery voltage thresholds increases power consumption.
The VBATL and VBATH are available on tamper signals (see Section 49: Tamper and backup registers (TAMP)).
Figure 41. VBAT thresholds

MSv46519V1
1. For the thresholds and hysteresis values, refer to the datasheet.
9.4.7 PWR temperature thresholds
The temperature can be monitored by comparing it with two threshold levels. TEMPH flag and TEMPL flag are available, in the PWR control register 2 (PWR_CR2), to indicate if the device temperature is higher or lower than the threshold. The temperature monitor can be enabled/disabled with MONEN bit in PWR control register 2 (PWR_CR2). When enabled, the temperature thresholds increases power consumption. As an example the levels could be used to trigger a routine to perform temperature control tasks.
The temperature thresholds, when enabled, are also available in Standby and VBAT modes.
The TEMPL and TEMPH are available on tamper signals (see Section 48: Real-time clock (RTC)).
Figure 42. Temperature thresholds

MSv46520V1
- 1. For the thresholds and hysteresis value, refer to the datasheet.
9.5 PWR power management
The power management controls the \(V_{DDCORE}\) supply in accordance with the system operation modes (see Section 9.5.1: PWR operating modes).
There is a single \(V_{DDCORE}\) domain for both the MPU and MCU systems. The system, MPU and MCU can be in one of the following operating modes:
- • Run, CRUN/CSleep (power On, clock On)
- • Stop, LP-Stop, LPLV-Stop, CStop (power On, clock Off)
- • CStandby (power On, clock Off, MPU reset).
- • Standby (power Off, clock Off).
At the PWR controller level, the Dual core Cortex-A7 is seen as a single MPU.
The system operating mode depends on both MPU and MCU systems. For the system to be in Stop, LP-Stop, LPLV-Stop or Standby, both MPU and MCU need to be in CStop or CStandby, see Table 33: System Low-power mode summary.
The \(V_{DDCORE}\) is supplied from a single supply at a common level. The \(V_{DDCORE}\) supply level follows the system operating mode (Run, Stop, LP-Stop, LPLV-Stop and Standby).
9.5.1 PWR operating modes
Several system operating modes are available to tune the system according to the performance needs, i.e. when the MPU and MCU do not need to execute code and are waiting for an external event. It is up to the user to select the operating mode that gives the best compromise between low-power consumption, short startup time and available wakeup sources.
The operating modes allow the control of the clock distribution to the different system parts and the power of the system. The system operation mode is driven by the MPU sub-system and MCU sub-system. The MPU and MCU sub-systems may include multiple bus matrix depending on its peripheral allocation (see Section 10: Reset and clock control (RCC)). The following operating modes for the different system parts are defined:
- • MPU and MCU sub-system modes:
- – CRun
- - The MPU/MCU and the MPU/MCU sub-system peripheral(s) according to RCC PERxEN are clocked.
- – CSleep:
- - The MPU/MCU clocks are stalled and the MPU/MCU sub-system allocated peripheral(s) clock operate according to RCC PERxLPEN. When the MPU/MCU enters CSleep with WFE, the MPU/MCU sub-system allocated peripheral(s) clock operate as in MPU/MCU CRun mode, irrespective of RCC PERxLPEN.
- – CStop:
- - The MPU/MCU and the MPU/MCU sub-system peripheral(s) clock are stalled. The wakeup depends on the system mode.
- 1) When the system mode Run has been kept or Stop, LP-Stop or LPLV-Stop has been entered, the MPU/MCU wakes up with an interrupt or event.
- 2) When the system mode Standby has been entered, the MPU/MCU wakes up with a reset.
- - The MPU/MCU and the MPU/MCU sub-system peripheral(s) clock are stalled. The wakeup depends on the system mode.
- – CStandby (for MPU only)
- - The MPU and the MPU sub-system peripheral(s) clock are stalled, and the MPU always wakes up with a reset.
- 1) When the system mode Run has been kept or Stop, LP-Stop or LPLV-Stop has been entered, the MPU wakes up with a local MPU reset, see Section 10.3.3: The local resets.
- 2) When the system mode Standby has been entered, the MPU wakes up with a reset.
- - The MPU and the MPU sub-system peripheral(s) clock are stalled, and the MPU always wakes up with a reset.
- – CRun
- • System modes
- – Run
- The various sub-system clocks are running according to RCC configuration.
- - The MPU or MCU sub-system is in CRun or CSleep
- – Stop
- The LPDS bit in PWR control register 1 (PWR_CR1) selects Stop.
- The various sub-system clocks are stalled.
- - Both MPU and MCU sub-systems are in CStop or CStandby.
- and
- - At least one PDDS(a) bit selects Stop.
- – LP-Stop
- The LPDS bit in PWR control register 1 (PWR_CR1) selects LP-Stop. The LVDS bit in PWR control register 1 (PWR_CR1) selects normal voltage.
- – Run
The various sub-system clocks are stalled.
- - Both MPU and MCU sub-systems are in CStop or CStandby.
and
- - At least one PDDS(a) bit select Stop.
- – LPLV-Stop
The LPDS and LVDS bits in PWR control register 1 (PWR_CR1) select LPLV-Stop.
The various sub-system clocks are stalled.
- - Both MPU and MCU sub-systems are in CStop or CStandby
and
- - At least one PDDS(a) bit selects Stop.
- – Standby
The system is powered down.
- - MPU sub-system is in CStandby or CStop with CSTBYDIS = 1 and MCU sub-system is in CStop
and
- - All PDDS(a) bits select Standby.
In Run mode power consumption can be reduced by:
- • Gating the clocks to the AHBx and APBx peripherals when they are unused with PERxEN (see Section 10: Reset and clock control (RCC)).
a. PDDS bit in the PWR MPU control register (PWR_MPUCR) and PWR MCU control register (PWR_MCUCR) registers.
PWR MPU Low-power mode summary
The Dual Cortex-A7 core MPU system supports the following Low-power modes:
Table 30. MPU Low-power mode summary| MPU | Processor0 | Processor1 | L2 cache | Entry(1) | Wakeup | Processor0 clock | Processor1 clock | Bus matrix clocks |
|---|---|---|---|---|---|---|---|---|
| CRun | P0Run | P1Run | L2Run | - | - | ON | ON | ON |
| P0Run | P1Stop | WFE | A MPU Processor1 interrupt or event or reset | OFF | ||||
| WFI | A MPU Processor1 interrupt or reset | |||||||
| P0Stop | P1Run | WFE | A MPU Processor0 interrupt or event or reset | OFF | ON | |||
| WFI | A MPU Processor0 interrupt or reset | |||||||
| WFE(2) | A MPU(3) interrupt or event or reset | |||||||
| CSleep | P0Stop | P1Stop | L2Stop | STPREQ_P[1:0] =not b'11 WFI(4) | A MPU(3) interrupt or reset | OFF | ON/OFF(5) | |
| CStop | STPREQ_P[1:0] = b'11 MPU PDDS = 0 WFI(4) | A MPU(3) EXTI interrupt or reset | OFF/ON(6) | |||||
| STPREQ_P[1:0] = b'11 MPU CSTBYDIS = 1 WFI(4) | ||||||||
| STPREQ_P[1:0] = b'11 MPU PDDS = 1 MPU CSTBYDIS = 0 WFI(4) | A MPU(3) EXTI interrupt or reset via a MPU reset. | |||||||
| CStandby | ||||||||
- 1. For STPREQ_P[1:0] register bits functionality refer to the RCC.
- 2. At least one MPU processors is in WFE and the other MPU processor is in WFE or WFI.
- 3. Wakes up the respective processor associated with the event or interrupt.
- 4. All CPU processors are in WFI.
- 5. The MPU sub-system peripherals having a PERxLPEN bit operates accordingly.
- 6. The AXI bus clock may be ON due to the MCU with allocated peripherals activity.
Note: The Dual Cortex-A7 core MPU system does not support the individual processor shutdown mode from Arm.
PWR MCU Low-power mode summary
Table 31. MCU Low-power mode summary
| MCU | Entry | Wakeup | Processor clock | Bus matrix clocks |
|---|---|---|---|---|
| CRun | - | - | ON | ON |
| CSleep | Arm Cortex-M4 SCR SLEEPDEEP = 0 WFE | Any MCU interrupt or event or reset | OFF | ON/OFF(1) |
| Arm Cortex-M4 SCR SLEEPDEEP = 0 WFI or return from ISR | Any MCU interrupt or reset | |||
| CStop | Arm Cortex-M4 SCR SLEEPDEEP = 1 WFE | Any MCU EXTI interrupt or event or reset | OFF/ON(2) | |
| Arm Cortex-M4 SCR SLEEPDEEP = 1 WFI or return from ISR | Any MCU EXTI interrupt or reset |
- 1. The MCU sub-system peripherals having a PERxLPEN bit operates accordingly.
- 2. The AHB bus clock may be ON due to the MPU activity.
PWR system Low-power modes summary
The system Low-power modes are derived from the MPU and MCU Low-power modes.
Table 32. PWR system mode summary
| MPU | ||||||
|---|---|---|---|---|---|---|
| CRun | CSleep | CStop PDDS = 0 | CStop PDDS = 1 CSTBYDIS = 1 | CStandby | ||
| MCU | CRun | Run | Run | Run | Run | Run |
| CSleep | Run | Run | Run | Run | Run | |
| CStop PDDS = 0 | Run | Run | Stop LP-Stop LPLV-Stop | Stop LP-Stop LPLV-Stop | Stop LP-Stop LPLV-Stop | |
| CStop PDDS = 1 | Run | Run | Stop LP-Stop LPLV-Stop | Standby | Standby | |
Table 33. System Low-power mode summary
| System | MPU | DDR(1) | MCU | Wakeup | Sys-oscillators(2) | hclk4 | PWR_LP | PWR_ON | |
|---|---|---|---|---|---|---|---|---|---|
| LPCFG = 0 | LPCFG = 1 | ||||||||
| Run | CRun or CSleep | Active / Auto refresh | CRun or CSleep | See Table 34, Table 31 | ON | ON | 1 | 1 | 1 |
| CStop or CStandby | Auto refresh | ||||||||
| CRun or CSleep | Active / Auto refresh | CStop | ON/OFF(4) | OFF | 0(5) | 1 | 0(5) | ||
| (3) Stop (LPDS = 0) | CStop or CStandby | Self refresh | CStop | ||||||
| (3) LP-Stop, LPLV-Stop (LPDS = 1) | 0(5) | 0(5) | 0(5) | ||||||
| Standby | CStandby or (CStop & MPU PDDS = 1 & MPU CSTBYDIS = 1) | Off / Self refresh | CStop & MCU PDDS = 1 | WKUP pins, RTC alarm, RTC wakeup, RTC tamper events, or Application reset (NRST, IWDG, ...) | OFF | OFF | 0(6) | 0(6) | 0(6) |
- The DDR operation state is only presented for information. i.e. The DDR may be Off when MPU is in CRun, e.g. when executing from BOOTROM or it may be in self refresh when the system is in any of its operation modes.
- The sys-oscillators: HSI/HSE/CSI oscillators configured ON in RCC.
- At least 1 PDDS bit selects the Stop mode (PPDS bit in registers PWR MPU control register (PWR_MPUCR) and PWR MCU control register (PWR_MCUCR)).
- 4. When the system oscillator HSI, CSI or HSE is used, the state is controlled by respective xxxKERON, else the system oscillator is OFF (see Section 10: Reset and clock control (RCC)).
- 5. Settings in PWR control register 3 (PWR_CR3) bits POPL have no impact on the LP-Stop and LPLV-Stop mode PWR_ON and PWR_LP pulse low time.
- 6. A guaranteed minimum PWR_ON and PWR_LP pulse low time can be defined in PWR control register 3 (PWR_CR3) bits POPL.
| Peripheral | Run | Sleep | Stop and LP-Stop | LPLV-Stop | Standby | VBAT | |||
|---|---|---|---|---|---|---|---|---|---|
| - | Wakeup capability | - | Wakeup capability | - | Wakeup capability | ||||
| MPU | Y | - | R | - | R | - | - | - | - |
| MCU | Y | - | R | - | R | - | - | - | - |
| DBG | O | O | O | O | R | - | - | - | - |
| ROM memory | Y | Y | R | - | R | - | R | - | R |
| SYSRAM | Y(2) | O(2) | R | - | R | - | - | - | - |
| SRAMx (x = 1:3) | Y | O(2) | R | - | R | - | - | - | - |
| BKPSRAM | O(2) | O(2) | R | - | R | - | O(3) | - | - |
| RETSRAM | O(2) | O(2) | R | - | R | - | O(3) | - | - |
| DDRCTRL | O | O | R | - | R | - | - | - | - |
| QUADSPI | O | O | R | - | R | - | - | - | - |
| FMC | O | O | R | - | R | - | - | - | - |
| Backup Registers | Y | Y | R | - | R | - | R | - | R |
| Brown-out reset (BOR) | Y | Y | Y | Y | Y | Y | Y | Y | - |
| Programmable Voltage Detector (PVD) | O | O | O | O | O | O | - | - | - |
| Analog Voltage monitor (AVD) | O | O | O | O | O | O | - | - | - |
| VBATH/VBATL monitoring | - | - | - | - | - | - | - | - | O |
| TEMPH/TEMPL monitoring | O | O | O | O | O | O | O | O | O |
| MDMA | O | O | R | - | R | - | - | - | - |
| DMAx (x=1,2) | O | O | R | - | R | - | - | - | - |
| DMAMUX | O | O | R | - | R | - | - | - | - |
| High Speed Internal (HSI) | O | O | O(4) | - | - | - | - | - | - |
| High Speed External (HSE) | O | O | - | - | - | - | - | - | - |
| Low Speed Internal (LSI) | O | O | O | - | O | - | O | - | - |
| Low Speed External (LSE) | O | O | O | - | O | - | O | - | O |
| Multi-Speed Internal (CSI) | O | O | - | - | - | - | - | - | - |
| HSE CSS Clock Security System | O | O | - | - | - | - | - | - | - |
| LSE CSS Clock Security System | O | O | O | O | O | O | O | O | - |
| RTC / Auto wakeup | O | O | O | O | O | O | O | O | O |
| Number of Tamper pins | 3 | 3 | 3 | O | 3 | O | 3 | O | 3 |
| USBH, OTG | O | O | R | O | R | - | - | - | - |
| Peripheral | Run | Sleep | Stop and LP-Stop | LPLV-Stop | Standby | VBAT | |||
|---|---|---|---|---|---|---|---|---|---|
| - | Wakeup capability | - | Wakeup capability | - | Wakeup capability | ||||
| SDMMCx (x=1:3) | O | O | R | - | R | - | - | - | - |
| FDCAN | O | O | R | - | R | - | - | - | - |
| CEC | O | O | R | O | R | - | - | - | - |
| ETH | O | O | R | O | R | - | - | - | - |
| MDIOS | O | O | O | O | R | - | - | - | - |
| USARTx (x = 1:8) | O | O | O(5) | O(5) | R | - | - | - | - |
| I2Cx (x = 1:6) | O | O | O(6) | O(6) | R | - | - | - | - |
| SPIx (x=1:6) | O | O | O(7) | O(7) | R | - | - | - | - |
| SAIx (x = 1:4) | O | O | R | - | R | - | - | - | - |
| DFSDM | O | O | R | - | R | - | - | - | - |
| DCMI | O | O | R | - | R | - | - | - | - |
| HDP | O | O | R | - | R | - | - | - | - |
| LTDC | O | O | R | - | R | - | - | - | - |
| DAC1-2 | O | O | R | - | R | - | - | - | - |
| ADC1-2 | O | O | R | - | R | - | - | - | - |
| VREFBUF | O | O | O | - | - | - | - | - | - |
| DTS | O | O | R | O | R | O | - | - | - |
| STGEN | O | O | R | - | R | - | - | - | - |
| TIMx (x = 1:17) | O | O | R | - | R | - | - | - | - |
| LPTIMx (x = 1:5) | O | O | O | O | R | O(8) | - | - | - |
| IWDGx (x=1,2) | O | O | O | O | O | O | O | O | - |
| WWDG | O | O | R | - | R | - | - | - | - |
| SysTick timer | O | O | R | - | R | - | - | - | - |
| RNGx (x = 1:2) | O | O | R | - | R | - | - | - | - |
| CRYPx(9) (x = 1:2) | O | O | R | - | R | - | - | - | - |
| HASHx (x = 1:2) | O | O | R | - | R | - | - | - | - |
| CRCx (x = 1:2) | O | O | R | - | R | - | - | - | - |
| IPCC | O | O | R | - | R | - | - | - | - |
| Peripheral | Run | Sleep | Stop and LP-Stop | LPLV-Stop | Standby | VBAT | |||
|---|---|---|---|---|---|---|---|---|---|
| - | Wakeup capability | - | Wakeup capability | - | Wakeup capability | ||||
| HSEM | O | O | R | - | R | - | - | - | - |
| GPIOs | O | O | R | O | R | O | - | 5 pins (10) | - |
- Legend: Y = Yes (Enable). O = Optional (Disable by default. Can be enabled by software). R = data/state retained. - = Not available; highlighted in gray for wakeup mode.
- The SRAM clock can be gated on or off.
- The BKPSRAM and RETSRAM content can optionally be retained when enabled.
- Some peripherals with wakeup from Stop capability can request HSI to be enabled. In this case, HSI is woken up by the peripheral, and only feeds the peripheral which requested it. HSI is automatically put off when the peripheral does not need it anymore.
- UART reception is functional in Stop mode, and generates a wakeup interrupt on Start, address match or received frame event.
- I2C address detection is functional in Stop mode, and generates a wakeup interrupt in case of address match
- SPI transmission and reception is functional in Stop mode, and generates a wakeup interrupt in case of FIFO thresholds, end of transfer, errors, ....
- Only with LSE or LSI as kernel clock source.
- Not present on all the product part numbers, see the related datasheet for more information.
- The I/Os with wakeup from Standby/Shutdown capability is only available from a limited number of pins.
9.5.2 PWR power modes
The power control handles the \(V_{DDCORE}\) supply for system Run, Stop, LP-Stop, LPLV-Stop and Standby modes. The system mode depends on the individual MPU and MCU sub-system modes (CRun, CSleep, CStop, CStandby).
- In Run mode the \(V_{DDCORE}\) is supplied.
- In Stop and LP-Stop modes the \(V_{DDCORE}\) is supplied.
- In LPLV-Stop mode the \(V_{DDCORE}\) may be supplied at a lower level.
- In Standby mode the \(V_{DDCORE}\) supply is switched off.
In system Stop mode, the PWR_LP is kept set high. In system LP-Stop mode, the PWR_LP is cleared to low, allowing an external regulator to switch between main power and Low-power mode with a reduced load capability and in LPLV-Stop mode to lower the \(V_{DDCORE}\) supply level.
In system Stop mode, the PWR_ON is kept asserted. In system LP-Stop mode, the PWR_ON is kept asserted or may be de-asserted according the register bit LPCFG in PWR control register 1 (PWR_CR1), allowing an external regulator to switch between main power and Low-power mode with a reduced load capability and in LPLV-Stop mode to lower the \(V_{DDCORE}\) supply level. The definition (Power Off or Low-power mode) of the PWR_ON signal shall have be defined in the external regulator before entering LP-Stop or LPLV-Stop mode.
Figure 43. Power states and external regulator control

The diagram illustrates the power states and transitions for a system. It is organized into three main sections: Standby, Run, and Stop.
- Standby: Contains the POWER DOWN state where PWR_ON = 0,PWR_LP = 0.
- Run: Contains the MAIN state where PWR_ON = 1,PWR_LP = 1. A 'reset' input leads to this state.
- Stop: Contains the MAIN state where PWR_ON = 1,PWR_LP = 1.
- LP-Stop / LPLV-Stop: Contains the LOW POWER state where PWR_ON = 1 when LPCFG = 0, PWR_ON = 0 when LPCFG = 1, and PWR_LP = 0.
Transitions are indicated by arrows:
- A blue arrow (Stop mode) goes from Run MAIN to Stop MAIN.
- A yellow arrow (Wakeup) goes from Stop MAIN to Run MAIN.
- A yellow arrow (Wakeup) goes from LP-Stop/LPLV-Stop LOW POWER to Run MAIN.
- A pink arrow (Standby mode) goes from Run MAIN to Standby POWER DOWN.
- A yellow arrow (Wakeup) goes from Standby POWER DOWN to Run MAIN.
MSv46521V1
The system mode selection between Stop, LP-Stop or LPLV-Stop and Standby is controlled by the MPU PDDS /MCU PDDS bits and the MPU CSTBYDIS bits in PWR MPU control register (PWR_MPUCR) and PWR MCU control register (PWR_MCUCR). The system only enters Standby when both the MPU and MCU PDDS bits allow so.
Table 35. PDDS low-power mode control
| MPU CSTBYDIS | MPU PDDS | MCU PDDS | System operation mode |
|---|---|---|---|
| x | 0 | x | Stop, LP-Stop, LPLV-Stop (with MPU in CStop) |
| 0 | 1 | 0 | Stop, LP-Stop, LPLV-Stop (with MPU in CStandby) |
| 0 | 1 | 1 | Standby (with MPU in CStandby) |
| 1 | 1 | 1 | Standby (with MPU in CStop) |
Figure 44. Power control modes detailed state diagram

The diagram illustrates the power control modes and transitions for a system. The main states are Run, Stop, LP-Stop, LPLV-Stop, and Standby. Each state is composed of sub-system modes for the CPU (MPU, MCU), Bus matrix (AXI, AHB), and DDR.
- Run State:
- MPU: CRun or CSleep
- MCU: CStop(1)
- DDR: Active / Auto refresh(2)
- Bus matrix: AXI DRun, AHB DRun
- Stop / LP-Stop / LPLV-Stop State:
- MPU: CStandby or CStop
- MCU: CStop
- DDR: Off(2) or DDR self refresh(2)
- Bus matrix: AXI DStop, AHB DStop
- Standby State: A system mode reached when all PDDS bits select Standby and MCU is in CStop.
Transitions are triggered by events such as reset, wakeup from Standby (MCU HOLD_BOOT)(1), wakeup from Stop with HOLDMPU or HOLDMCU, MPU_wakeup, MCU_wakeup, MPU_Reset, and AXI peripheral allocation/deallocation. A legend indicates that white rounded rectangles represent CPU sub-system modes, green/orange rounded rectangles represent Bus matrix modes, magenta represents Standby, and grey boxes represent System modes.
MSv46525V2
- 1. After a wakeup from Standby the MPU and MCU boot as described in Section 10: Reset and clock control (RCC) processor hold from standby. When ever MCU is in HOLD_BOOT it does not prevent the system to enter Stop, LP-Stop, LPLV-Stop or Standby.
- 2. The DDR operation state is only presented for information. i.e. The DDR may be Off when MPU is in CRun, e.g. when executing from Boot ROM.
Power control state transitions are initiated by:
- • MPU or MCU going to CStop.
- • MPU going to CStandby
- – Figure 44 Dotted Red line transitions, entered system mode depend also on MCU mode.
- • EXTI wakeup event.
- • Wakeup event
- – Figure 44 Dotted Red line transitions MPU wakes up from CStandby. The MPU SBFMPU is set.
- - When the system remained in Run no additional flags are set.
- - When the system wakes up from Stop, LP-Stop or LPLV-Stop additionally the STOPF is set.
- – Figure 44 Red transitions MPU and MCU wakes up from Standby. The SBF is set.
- – Figure 44 Dotted Red line transitions MPU wakes up from CStandby. The MPU SBFMPU is set.
- • Peripheral allocation or deallocation
- – Figure 44 Orange transitions MPU is in CStop or CStandby and MCU allocates a first or deallocates the last peripheral on the AXI bus.
The flags provided to determine from which mode the system exits are shown in Table 34. The MPU and MCU have their own set of flags which can be read from PWR MPU control register (PWR_MPUCR) and PWR MCU control register (PWR_MCUCR). The MPU and MCU have their own register reset bit CSSF to clear it's own wakeup flags. The MPU and MCU CSSF register bit is located in the same register as the MPU and MCU flags:
Table 36. Low-power mode exit flags
| System mode | MPU mode | MCU mode | SBF | SBFMPU | STOPF | Comment |
|---|---|---|---|---|---|---|
| Run | CRun / CStop | CRun / CStop | 0 | 0 | 0 | System contents retained |
| CStandby | 0 | 1 | 0 | |||
| Stop LP-Stop LPLV-Stop | CStop | CStop | 0 | 0 | 1 | System contents retained, clock system stopped. |
| CStandby | 0 | 1 | 1 | |||
| CStandby | 1 | 1 | 0 | |||
| Standby | CStandby | 1 | 1 | 0 | System contents lost | |
| VBAT(1) | n.a. | n.a. | 0 | 0 | 0 | System contents lost |
1. Exit from VBAT mode may be derived from the retained registers in the VSW domain, which are not reset.
9.5.3 PWR system wakeup
From an application reset (NRST, IWDG, ...) and a wakeup from Standby, the system wakes up the MPU and the MCU is kept in HOLD. From this point the MPU BOOTROM manages the startup (see Processor hold from Standby in Section 10: Reset and clock control)
(RCC). From Stop, LP-Stop and LPLV-Stop the system can be configured to wake up the MPU or MCU independently.
9.6 PWR low-power modes
Several Low-power modes are available to save power when the MPU and/or MCU do not need to execute code (i.e. when waiting for an external event). It is up to the user to select the mode that gives the best compromise between low-power consumption, short startup time and available wakeup sources.
- • Slowing down the CPU clock and/or the bus matrix clocks (see Section 10: Reset and clock control (RCC))
- • Controlling individual peripheral clocks (see Section 10: Reset and clock control (RCC))
- • Low-power modes
- – CSleep (MPU/MCU clock stopped)
- – CStop (MPU/MCU sub-system clock stopped)
- – CStandby (MPU sub-system clock stopped and wakeup via reset)
- – Stop (bus matrix clocks stalled, the oscillators can be stopped, for detailed oscillators status in Stop mode, see Section 10.4.2: Oscillators description and Section 10.4.7: Clock generation in Stop and Standby modes, normal mode signaled to external regulator).
- – LP-Stop and LPLV-Stop (bus matrix clocks stalled, the oscillators can be stopped, for detailed oscillators status in Stop mode, see Section 10.4.2: Oscillators description and Section 10.4.7: Clock generation in Stop and Standby modes, Low-power mode signaled to external regulator).
- – Standby (System powered down)
9.6.1 PWR slowing down the CPU clocks and/or the bus matrix clocks
In Run mode, the speed of the MPU, MCU and/or the bus matrix clocks can be reduced, for more details refer to Section 10: Reset and clock control (RCC).
9.6.2 PWR controlling peripheral clocks
In Run mode, the bus clock for individual peripherals can be stopped by the RCC PERxEN register bits at any time to reduce power consumption.
To reduce power consumption in CSleep mode the individual peripheral clocks can be disabled by the RCC PERxLPEN register bit. For the peripherals still receiving a clock in CSleep mode, their clock can be slowed down before entering to CSleep mode.
9.6.3 PWR entering to low-power modes
MPU sub-system Low-power modes CSleep, CStop and CStandby are entered by the MPU when executing the WFI (Wait For Interrupt), or WFE (Wait for Event) instructions.
MCU sub-system Low-power modes CSleep and CStop are entered by the MCU when executing the WFI (Wait For Interrupt), or WFE (Wait for Event) instructions, or when the SLEEPONEXIT bit in the Cortex®-M4 System Control register is set on Return from ISR.
The system may enter Stop, LP-Stop, LPLV-Stop or Standby when all EXTI wakeup sources are cleared and both the MPU and MCU are in CStop or CStandby.
9.6.4 PWR exiting from low-power modes
From CSleep mode the MPU and MCU sub-systems exit from low-power mode through any interrupt or event depending how the low-power mode was entered:
- • If the WFI instruction or Return from ISR was used to enter to low-power mode, any peripheral interrupt acknowledged by the GIC/NVIC can wake up the system.
- • If the WFE instruction is used to enter to low-power mode, the MPU and MCU exits from low-power mode as soon as an event occurs. The wakeup event can be generated either by:
- – GIC/NVIC IRQ interrupt.
- - For MPU, by enabling an interrupt in the peripheral control register and in the GIC.
Only GIC interrupts with sufficient priority wake up and interrupt the MPU. - - For MCU, when SEVONPEND = 0 in the Cortex®-M4 System Control register. By enabling an interrupt in the peripheral control register and in the NVIC. When the MCU resumes from WFE, the peripheral interrupt pending bit and the NVIC peripheral IRQ channel pending bit (in the NVIC interrupt clear pending register) have to be cleared.
Only NVIC interrupts with sufficient priority wake up and interrupt the MCU. - - For MCU when SEVONPEND = 1 in the Cortex®-M4 System Control register. By enabling an interrupt in the peripheral control register and optionally in the NVIC. When the MCU resumes from WFE, the peripheral interrupt pending bit and when enabled the NVIC peripheral IRQ channel pending bit (in the NVIC interrupt clear pending register) have to be cleared.
All NVIC interrupts wake up the MCU, even the disabled ones.
Only enabled NVIC interrupts with sufficient priority wake up and interrupt the MCU.
- - For MPU, by enabling an interrupt in the peripheral control register and in the GIC.
- – Event
- - For MPU and MCU configuring an EXTI line in event mode. When the MPU or MCU resumes from WFE, it is not necessary to clear the EXTI peripheral interrupt pending bit or the NVIC IRQ channel pending bit as the pending bits corresponding to the event line is not set. It may be necessary to clear the interrupt flag in the peripheral.
- – GIC/NVIC IRQ interrupt.
From CStop, Stop, LP-Stop and LPLV-Stop modes the MPU and/or MCU sub-systems exits from low-power mode only through an enabled EXTI interrupt or event depending on how the low-power mode was entered (see above).
From CStandby mode, when the system is in Run, Stop, LP-Stop or LPLV-Stop the MPU sub-system exits from low-power mode only through an enabled EXTI interrupt. Program execution restarts with a MPU reset.
From Standby mode the MPU sub-system exits from low-power mode only through an application reset (NRST, IWDG, ...), WKUPx pins event or a RTC event. Program execution restarts in the same way as after a power on reset (option bytes loading, reset vector fetched, etc.). When the system exits Standby mode the MCU is in HOLD. From this point the MPU BOOTROM manages the startup (see Processor hold from Standby in Section 10: Reset and clock control (RCC)).
9.6.5 PWR CSleep mode
The CSleep mode applies to the MPU and/or MCU sub-systems. In CSleep mode the MPU/MCU clock is stopped. The MPU and/or MCU sub-systems peripherals clocks operate according to the PERxLPEN bits.
PWR entering to CSleep mode
The CSleep mode is entered according to Section 9.6.3: PWR entering to low-power modes.
- • For MPU one of the STPREQ_P[1:0] register bits in (see Section 10: Reset and clock control (RCC)) is cleared.
- • For MCU the SLEEPDEEP bit in the Cortex®-M4 System Control register is cleared.
Refer to Table 37 for MPU and Table 38 for MCU, for details on how to enter to CSleep mode.
PWR exiting from CSleep mode
The CSleep mode is exited according to Section 9.6.4: PWR exiting from low-power modes.
Refer to Table 37 for MPU and Table 38 for MCU, for more details on how to exit from CSleep mode.
Table 37. MPU CSleep
| CSleep mode | Description |
|---|---|
| Mode entry | WFI (Wait for Interrupt) while:
|
WFE (Wait for Event) while:
| |
| Mode exit | If WFI was used for entry:
|
| Wakeup latency | None |
Table 38. MCU CSleep
| CSleep mode | Description |
|---|---|
| Mode entry | WFI (Wait for Interrupt) or WFE (Wait for Event) while:
|
On return from ISR while:
|
Table 38. MCU CSleep (continued)
| CSleep mode | Description |
|---|---|
| Mode exit | If WFI or return from ISR was used for entry: – Any Interrupt enabled in NVIC: Refer to Section 20.2: GIC Interrupts If WFE was used for entry and SEVONPEND = 0: – Any event: Refer to Section 9.6.4: PWR exiting from low-power modes If WFE was used for entry and SEVONPEND = 1: – Any Interrupt even when disabled in NVIC: refer to Section 20.2: GIC Interrupts or any event: refer to Section 9.6.4: PWR exiting from low-power modes |
| Wakeup latency | None |
9.6.6 PWR CStop mode
The CStop mode applies to the MPU and/or MCU sub-systems. In CStop mode the MPU/MCU clock and MPU and/or MCU sub-systems peripherals clocks are stopped.
In CStop mode, MPU and/or MCU sub-systems peripherals having a kernel clock request are still able to request their kernel clock, when selecting a clock in the RCC which is able to run in CStop mode.
PWR entering to CStop mode
The CStop mode is entered according to Section 9.6.3: PWR entering to low-power modes,
- • For MPU when both STPREQ_P[1:0] register bits in the RCC are set and the PDDS register bit in PWR MPU control register (PWR_MPUCR) is cleared.
or
When both STPREQ_P[1:0] register bits in the RCC are set and the CSTBYDIS register bit is set and the PDDS register bit in PWR MPU control register (PWR_MPUCR) is set. - • For MCU when the SLEEPDEEP bit in the Cortex®-M4 System Control register is set.
Refer to Table 39 for MPU and Table 40 for MCU, for details on how to enter to CStop mode.
PWR exiting from CStop mode
The CStop mode is exited according to Section 9.6.4: PWR exiting from low-power modes.
Refer to Table 39 for MPU and Table 40 for MCU, for more details on how to exit from CStop mode.
Table 39. MPU CStop
| CStop mode | Description |
|---|---|
| Mode entry | WFI (Wait for Interrupt) – STPREQ_P = 'b11 and MPU PDDS = 0 or STPREQ_P = 'b11 and MPU CSTBYDIS = 1 – MPU GIC interrupts and events cleared. – All MPU EXTI Wakeup sources are cleared. |
| Mode exit | EXTI Interrupt enabled in GIC: Refer to Section 20.2: GIC Interrupts, for the peripherals which are not stopped. |
| Wakeup latency | EXTI and RCC wakeup synchronization (see Section 10: Reset and clock control (RCC)). |
Table 40. MCU CStop
| CStop mode | Description |
|---|---|
| Mode entry | WFI (Wait for Interrupt) or WFE (Wait for Event) while: – SLEEPDEEP = 1 (Refer to the Cortex®-M4 System Control register.) – MCU NVIC interrupts and events cleared. – All MCU EXTI Wakeup sources are cleared. On return from ISR while: – SLEEPDEEP = 1 and – SLEEPONEXIT = 1 (Refer to the Cortex®-M4 System Control register.) – MCU NVIC interrupts and events cleared. – All MCU EXTI Wakeup sources are cleared. |
| Mode exit(1) | If WFI or return from ISR was used for entry: – EXTI Interrupt enabled in NVIC: Refer to Section 20.2: GIC Interrupts, for peripheral which are not stopped. If WFE was used for entry and SEVONPEND = 0: – EXTI event: Refer to Section 9.6.4: PWR exiting from low-power modes, for peripheral which are not stopped. If WFE was used for entry and SEVONPEND = 1: – EXTI Interrupt even when disabled in NVIC: refer to Section 20.2: GIC Interrupts or EXTI event: refer to Section 9.6.4: PWR exiting from low-power modes, for peripheral which are not stopped. |
| Wakeup latency | EXTI and RCC wakeup synchronization (see Section 10: Reset and clock control (RCC)). |
- 1. The IWDG1 and IWDG2 configured to generate a system debug wakeup event wake up the MPU and MCU, and trigger the debug CTI interface.
9.6.7 PWR CStandby mode
The CStandby mode applies only to the MPU sub-system. In CStandby mode the MPU clock and MPU sub-system peripherals clocks are stopped.
In CStandby mode, MPU sub-system peripherals having a kernel clock request are still able to request their kernel clock, when selecting a clock in the RCC which is able to run in CStop mode.
The MPU exits CStandby mode with a MPU reset.
PWR entering to CStandby mode
The CStandby mode is entered according to Section 9.6.3: PWR entering to low-power modes, when both MPU STPREQ_P[1:0] register bits in the RCC are set and the CSTBYDIS register bit is clear and the PDDS register bit in PWR MPU control register (PWR_MPUCR) is set.
Refer to Table 41 for MPU, for details on how to enter to CStandby mode.
PWR exiting from CStandby mode
The CStandby mode is exited according to Section 9.6.10: PWR Standby mode.
Refer to Table 41 for MPU, for more details on how to exit from CStandby mode.
Table 41. MPU CStandby
| CStandby mode | Description |
|---|---|
| Mode entry | WFI (Wait for Interrupt) – STPREQ_P[1:0] = b'11 and MPU CSTBYDIS = 0 & PDDS = 1 – MPU GIC interrupts and events cleared. – All MPU EXTI wakeup sources are cleared. |
| Mode exit | EXTI Interrupt enabled in GIC: refer to Section 20.2: GIC Interrupts, for peripheral which are not stopped. |
| Wakeup latency | EXTI and RCC wakeup synchronization (see Section 10: Reset and clock control (RCC)). |
9.6.8 PWR Stop mode
The system enters to Stop mode only when both the MPU and MCU sub-systems are in CStop mode or CStandby mode and the EXTI wakeup sources are inactive, and at least one of the MPU or MCU PDDS bit in PWR MPU control register (PWR_MPUCR) or PWR MCU control register (PWR_MCUCR) request Stop. In Stop mode, the bus matrix clocks are stalled. The oscillators can be stopped, for detailed oscillators status in Stop mode, see Section 10.4.2: Oscillators description and Section 10.4.7: Clock generation in Stop and Standby modes. For more information on the other clocks refer to RCC.
In Stop mode, the peripherals using the LSI or the LSE clock and peripherals having a kernel clock request selecting a clock source in the RCC which is able to run in Stop mode, are still able to operate.
In system Stop mode, the following features can be selected to be kept active by programming individual control bits:
- • Independent watchdog (IWDG): the IWDG is started by writing to its Key register or by hardware option. Once started it cannot be stopped except by an Application reset. See Section 46: Independent watchdog (IWDG).
- • Real-time clock (RTC): this is configured by the RTCEN bit in the RCC backup domain control register (RCC_BDCR)
- • Internal RC oscillator (LSI RC): this is configured by the LSION bit in the RCC reset duration and LSI control register (RCC_RDLSICR).
- • External 32.768 kHz oscillator (LSE OSC): this is configured by the LSEON bit in the RCC backup domain control register (RCC_BDCR).
- • Peripherals capable of running on the LSI or LSE clock.
- • Peripherals having a kernel clock request.
- • Internal RC oscillators (HSI, CSI) and HSE oscillator: this is configured by the corresponding xxxKERON bit in the RCC oscillator clock enable set register (RCC_OCENSETR)
- • The ADC or DAC can also consume power during the Stop mode, unless they are disabled before entering to it. To disable them, the ADON bit in the ADC_CR2 register and the ENx bit in the DAC_CR register must both be written to 0.
PWR entering to Stop mode
The Stop mode is entered according to Section 9.6.3: PWR entering to low-power modes, when at least one PDDS bit in PWR MPU control register (PWR_MPUCR) or PWR MCU control register (PWR_MCUCR) requests Stop.
Refer to Table 42 for details on how to enter to Stop mode.
If an access to a bus matrix is ongoing, the Stop mode entry is delayed until the bus matrix access is finished.
PWR exiting from Stop mode
The Stop mode is exited according to Section 9.6.4: PWR exiting from low-power modes.
Refer to Table 42 for more details on how to exit from Stop mode.
When exiting from Stop mode the RCC enables HSI for the MCU, and restores the MPU and AXI bus matrix clocks. Refer to Section 10: Reset and clock control (RCC) Leaving Stop mode.
The STOPF status flag in PWR MPU control register (PWR_MPUCR) and PWR MCU control register (PWR_MCUCR) registers indicate that the system has exit from Stop mode. The MPU and MCU have their own set of flag.
Table 42. Stop
| Stop mode | Description |
|---|---|
| Mode entry |
|
Table 42. Stop (continued)
| Stop mode | Description |
|---|---|
| Mode exit | – On an EXTI wakeup. |
| Wakeup latency | Clocks restored, see RCC for more information. + EXTI and RCC wakeup synchronization and PWRLP_TEMPO (see Section 10: Reset and clock control (RCC)). |
PWR I/O states in Stop mode
In Stop mode, all I/O pins keep their configuration.
9.6.9 PWR LP-Stop and LPLV-Stop modes
The LP-Stop mode is handled in the same way as Stop mode, when LP-Stop mode is selected by the LPDS register bit in PWR control register 1 (PWR_CR1). See Section 9.6.8: PWR Stop mode.
Refer to Table 43 for more details on how to enter to and exit from LP-Stop mode.
Table 43. LP-Stop
| Stop mode | Description |
|---|---|
| Mode entry | – When the MPU and MCU are in CStop mode or CStandby mode, or the MCU is in HOLD_BOOT, and there is no active EXTI wakeup source. – At least one PDDS bit selects Stop. – LPDS selects LP-Stop |
| Mode exit | – On an EXTI wakeup. |
| Wakeup latency | Clocks restored, see RCC for more information. + LP-Stop timeout (external regulator to switch to main mode) + EXTI and RCC wakeup synchronization and PWRLP_TEMPO (see Section 10: Reset and clock control (RCC)). |
The LVDS register bit in PWR control register 1 (PWR_CR1) allows to select whether the \(V_{DDCORE}\) supply level during LP-Stop mode is kept at the Run mode level, or is lowered (LP-Stop with low voltage mode).
In LPLV-Stop mode, the peripherals able to wake up from Stop mode (such as UART, I2C, SPI) except LPTIM (using LSE or LSI), RTC, Tamper and wakeup pins, shall all be disabled, and the DDR retention shall be enabled by DDRRETEN in PWR control register 3 (PWR_CR3).
Refer to Table 44 for more details on how to enter to and exit from LPLV-Stop mode.
Table 44. LPLV-Stop
| Stop mode | Description |
|---|---|
| Mode entry |
|
| Mode exit |
|
| Wakeup latency |
|
9.6.10 PWR Standby mode
The Standby mode allows to achieve the lowest power consumption. It is based on the MPU and MCU sub-systems CStop mode and CStandby mode, as for the Stop mode, but with the \(V_{DDCORE}\) supply regulator powered off.
The system enters to Standby mode only when the MPU is in CStandby or CStop and the MCU is in CStop mode and both PDDS bits in PWR MPU control register (PWR_MPUCR) and PWR MCU control register (PWR_MCUCR) request Standby. When the system enters to Standby mode the PWR_ON and PWR_LP pins are set low. It is expected that the External Voltage regulator providing the \(V_{DDCORE}\) supply is disabled, the complete \(V_{DDCORE}\) domain is consequently powered off. The PLLs, HSI, CSI oscillator and the HSE oscillator are also switched off, SRAM and register contents are lost except for the \(V_{DD}\), VSW, backup domain, and retention domain (i.e. RTC registers, RTC backup register, LSE, backup RAM and Retention RAM), and Standby circuitry (see Section 9.3.2: PWR supply system startup sequence).
In system Standby mode, the following features can be selected by programming individual control bits:
- • Independent watchdog (IWDG): the IWDG is started by writing to its Key register or by hardware option. Once started it cannot be stopped except by an Application reset. See Section 46: Independent watchdog (IWDG).
- • Real-time clock (RTC): this is configured by the RTCEN bit in the backup domain control register (RCC_BDCR)
- • Internal RC oscillator (LSI RC): this is configured by the LSION bit in the Control/status register (RCC_CSR).
- • External 32.768 kHz oscillator (LSE OSC): this is configured by the LSEON bit in the backup domain control register (RCC_BDCR)
PWR entering to Standby mode
The Standby mode is entered according to Section 9.6.3: PWR entering to low-power modes, when all PDDS bits in PWR MPU control register (PWR_MPUCR) and PWR MCU control register (PWR_MCUCR) request Standby.
Refer to Table 45 for more details on how to enter to Standby mode.
PWR exiting from Standby mode
The Standby mode is exited according to Section 9.6.4: PWR exiting from low-power modes.
Refer to Table 45 for more details on how to exit from Standby mode.
The system exits from Standby mode when an application reset (NRST, IWDG, ...), a WKUP pin event, a RTC alarm, a tamper event, or a time stamp event is detected. All registers are reset after wakeup from Standby except for the power control and status registers PWR control register 2 (PWR_CR2), PWR control register 3 (PWR_CR3), the SBF bit in PWR MPU control register (PWR_MPUCR) and PWR MCU control register (PWR_MCUCR), PWR wakeup flag register (PWR_WKUPFR), and PWR MPU wakeup enable register (PWR_MPUWKUPENR).
After waking up from Standby mode, program execution restarts in the same way as after a Power On reset (boot option sampling, boot vector reset fetched, etc.). The MPU starts up booting and the MCU is kept in HOLD. From this point the MPU BOOTROM manages the startup (see Processor hold from Standby in Section 10: Reset and clock control (RCC)).
The exit from Standby/CStandby status flags can be retrieved thanks to the STDBYRSTF and CSTDBYRSTF bits in RCC MPU reset status clear register (RCC_MP_RSTSCLRR). Those bits are set by the BOOTROM code from the SBF/SBFMPU bits in PWR MPU control register (PWR_MPUCR). The SBF/SBFMPU bits are dedicated to the BOOTROM usage and should not be used elsewhere.
Table 45. Standby
| Standby mode | Description |
|---|---|
| Mode entry |
|
| Mode exit |
|
| Wakeup latency | System reset phase (see Section 10: Reset and clock control (RCC)). |
1. The IWDG1 and IWDG2 when configured to generate an Application reset and when configured to generate a system debug wakeup event, reset in both cases the system.
PWR I/O states in Standby mode
In Standby mode, all I/O pins are high impedance no pull except for:
- • NRST reset pin, PWR_ON pin, and PWR_LP pin (still available)
- • RTC_AF1 pin if configured for tamper, time stamp, RTC Alarm out, or RTC clock calibration out
- • WKUP pins, if enabled, the WKUP pin pulls can be configured by WKUPPUPD register bits in PWR wakeup control register (PWR_WKUPCR).
9.6.11 PWR debug Stop
When the system enters low-power mode Stop, operation depend on the DBG_STOP configuration in the DBG module.
When the Stop mode debug is enabled, when entering Stop mode the PWR does not signal low-power mode on the PWR_ON and PWR_LP signals. This keeps the \(V_{DDCORE}\) domain to be supplied from the regulator in main mode.
When exiting from Stop mode the system MPU and logic is enabled as from normal Stop mode, the STOPF flag is set and when the MPU has entered CStandby mode the SBFMPU flag is set as well.
9.6.12 PWR debug Standby
When the system enters low-power mode Standby, operation depend on the DBG_Standby configuration in the DBG module.
When the Standby mode debug is enabled, when entering Standby mode the PWR keeps the pwr_on active, allowing the \(V_{DDCORE}\) domain to remain supplied. In Standby mode the \(V_{DDCORE}\) domain is not reset, allowing the CPU and bus clocks to be active.
When exiting from Standby mode a reset is generated, which resets the \(V_{DDCORE}\) logic excluding the debug logic. Waking up from debug Standby mode the system MPU and MCU and logic is reset as from normal Standby mode and the SBF flag are set. When the MPU has entered CStandby mode the SBFMPU flag is set as well.
9.7 PWR WKUP pins
The WKUP polarity shall only be changed in WKUPP when the wakeup interrupt is disabled, in WKUPEN.
To avoid falls interrupts, the WKUPF shall be cleared with WKUPC, before enabling the wakeup interrupt in WKUPEN.
9.8 PWR_ON and PWR_LP pins
The PWR_ON pin may signal pwr_on or pwr_onlp depending the selection in LPCFG register bit in PWR control register 1 (PWR_CR1). The PWR_LP pin signals pwr_onlp.
Figure 45. PWR_ON and PWR_LP pins multiplexing

1. See LPDS bit in PWR control register 1 (PWR_CR1).
PWR_ON pin
When LPCFG select pwr_on signaling, the PWR_ON pad is only low in Standby mode.
When LPCFG select pwr_onlp signaling on PWR_ON, the definition (Standby, LP-Stop or LPLV-Stop) of the signal being low shall be communicated to the external power management prior entering low-power mode. The PWR_ON pad is low in Standby, LP-Stop and LPLV-Stop modes.
9.9 PWR interrupts
The PWR provides the following interrupts:
- • Wakeup interrupt to MPU.
- – Enabled by WKUPEN[6:1] register bit in PWR MPU wakeup enable register (PWR_MPUWKUPENR).
- – The interrupt status flag WKUPF[6:1] are available from PWR wakeup flag register (PWR_WKUPFR).
- • Wakeup interrupt to MCU.
- – Enabled by WKUPEN[6:1] register bit in PWR MCU wakeup enable register (PWR_MCUWKUPENR).
- – The same interrupt status flag WKUPF[6:1] as for the MPU are available from PWR wakeup flag register (PWR_WKUPFR).
Other status flag associated with Stop and Standby modes and monitoring functions are also available, see Table 46:
Table 46. PWR status flags
| Status Flag | Description | Interrupt | Clear through |
|---|---|---|---|
| STOPF | Exit from Stop mode | Wakeup from Stop mode events | CSSF |
| SBF(1) | Exit from Standby mode | Wakeup from Standby events. | CSSF |
Table 46. PWR status flags (continued)
| Status Flag | Description | Interrupt | Clear through |
|---|---|---|---|
| SBFMPU(1) | MPU exit CStandby mode | Wakeup from CStandby, events. | CSSF |
| WKUPF[6:1] | Wakeup flags | MPU and MCU wakeup from Standby and Stop events. | WKUPC[6:1] |
| PVDO | Programmable voltage detector | interrupt via EXTI | n.a. |
| AVDO | Analog voltage detector | interrupt via EXTI | n.a. |
| TEMPL, TEMPH | Temperature monitoring | interrupt via EXTI | n.a. |
| BRRDY | Backup regulator ready | no associated interrupt | n.a. |
| RRRDY | Retention regulator ready | no associated interrupt | n.a. |
| USB33RDY | USB FS 3V3 supply ready | no associated interrupt | n.a. |
| REG18RDY | Regulator 1V8 supply ready | no associated interrupt | n.a. |
| REG11RDY | Regulator 1V1 supply ready | no associated interrupt | n.a. |
- 1. SBF and SBFMPU are dedicated to the BOOTROM usage and should not be used elsewhere. The STDBYRSTF and CSTDBYRSTF bits in RCC MPU reset status clear register (RCC_MP_RSTSCLRR) should be used by application code as part of reset source identification process. See Section 10.3.13: Reset source identification.
9.10 PWR TrustZone security
The PWR is able to secure registers from being modified by non-secure accesses. The TrustZone security is activated by the RCC TZEN register bit in Section 10.7.2: RCC TrustZone control register (RCC_TZCR). At PWR level the security consist in preventing a non-secure write access to:
- • Change the settings of the VBAT and TEMP Monitor, PVD and AVD.
- • Change the low-power Deepsleep and RAM low-power settings.
- • Change the backup domain write protection.
- • Change the Backup regulator, Retention regulator, 1V8 regulator, 1V1 regulator and USB 3.3V voltage level detector settings.
- • Change the backup battery charging settings.
- • Change the MPU power control register settings.
- • Change the Standby wakeup settings and flags.
The PWR TrustZone security enables write access security for all features simultaneously.
Table 47. Register security overview
| Register name | Access type | Security(1) |
|---|---|---|
| PWR_CR1 | RW | Write security |
| PWR_CSR1 | R | Non secure |
| PWR_CR2 | RW | Write secure |
| PWR_CR3 | RW | Write secure |
Table 47. Register security overview (continued)
| Register name | Access type | Security(1) |
|---|---|---|
| PWR_MPUCR | RW | Write secure |
| PWR_MCUCR | RW | Non secure |
| PWR_WKUPCR | RW | Write secure(2) |
| PWR_WKUPFR | R | Non secure |
| PWR_MPUWKUPENR | RW | Write secure |
| PWR_MCUWKUPENR | RW | Non secure |
| PWR_VER | R | Non secure |
| PWR_ID | R | Non secure |
| PWR_SID | R | Non secure |
- 1. Security is enabled with the RCC TZEN register bit.
- 2. Security is additionally channel wise enabled with WKUPEN bits in PWR MPU wakeup enable register (PWR_MPUWKUPENR) register.
9.11 PWR registers
The PWR registers can be accessed in word, half-word and byte format, unless explicitly specified differently.
9.11.1 PWR control register 1 (PWR_CR1)
Address offset: 0x000
Reset value: 0x0000 0000
Reset on any system reset.
This register provides write access security when enabled by TZEN register bit in Section 10: Reset and clock control (RCC). When security is enabled a non-secure write access generates a bus error. Secure and non-secure read accesses are granted and return the register value.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ALS[1:0] | AVDEN | |
| rw | rw | rw | |||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBP | PLS[2:0] | PVDEN | Res. | LVDS | LPCFG | LPDS | ||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:19 Reserved, must be kept at reset value.
Bits 18:17 ALS[1:0]: Analog Voltage Detector level selection.
These bits select the voltage threshold detected by the AVD.
00: 1.7V
01: 2.1V
10: 2.5V
11: 2.8V
Bit 16 AVDEN: Peripheral Voltage Monitor on \(V_{DDA}\) enable.
0: Peripheral Voltage Monitor on \(V_{DDA}\) disabled
1: Peripheral Voltage Monitor on \(V_{DDA}\) enabled
Bits 15:9 Reserved, must be kept at reset value.
Bit 8 DBP: Disable backup domain write protection.
In reset state, the RCC_BDCR, PWR_CR2, RTC, and backup registers are protected against parasitic write access. This bit must be set to enable write access to these.
0: Write access to RTC and backup domain registers disabled.
1: Write access to RTC and backup domain registers enabled.
Bits 7:5 PLS[2:0]: Programmable Voltage Detector level selection.
These bits are read only when the SYSCFG register bit PVDL is set (when PVDL is set, there is no bus errors generated when writing this register).
These bits select the voltage threshold detected by the PVD.
000: 1.95 V
001: 2.1 V
010: 2.25 V
011: 2.4 V
100: 2.55 V
101: 2.7 V
110: 2.85 V
111: External voltage level on PVD_IN (compared to internal VREFINT)
Bit 4 PVDEN: Programmable Voltage detector enable.
This bit is read only when the SYSCFG register bit PVDL is set (when PVDL is set, there is no bus errors generated when writing this register).
0: Programmable Voltage detector disabled.
1: Programmable Voltage detector enabled.
Bit 3 Reserved, must be kept at reset value.
Bit 2 LVDS: Low Voltage Deepsleep LPLV-Stop mode selection.
This bit has only effect when the low power stop mode is selected in LPDS and changes the \(V_{DDCORE}\) domain supply reset level.
0: LP-Stop mode \(V_{DDCORE}\) domain supply reset level at same level as Run mode. The \(V_{DDCORE}\) domain supply level in LP-Stop mode shall be kept at same level as Run mode.
1: LPLV-Stop mode \(V_{DDCORE}\) domain supply reset level at lower level than Run mode. Allows to lower \(V_{DDCORE}\) domain supply level in LPLV-Stop mode (see the datasheet for voltage levels).
Bit 1 LPCFG: PWR_ON pin configuration.
0: PWR_ON pin signals Standby mode (PWR_ON =1 in Run, Stop, LP-Stop, LPLV-Stop, and 0 in Standby).
1: PWR_ON pin signals Standby, LP-Stop and LPLV-Stop modes (PWR_ON = 1 in Run, Stop, and 0 in LP-Stop, LPLV-Stop and Standby).
Bit 0 LPDS: Low Power Deepsleep Stop mode selection.
0: Stop mode selected, External regulator kept in Main power mode (pwr_lp = 1).
1: low-power stop mode selected External regulator may enter Low-power mode (pwr_lp = 0). Further low power mode selection is provided by LVDS.
9.11.2 PWR control status register 1 (PWR_CSR1)
Address offset: 0x004
Reset value: 0x0000 0000
Reset on any system reset.
| Bit_Range | Field_Name | Description | Access | Reserved | Mask | Value | Type | Mode | State | Reset | Offset | Address | Register | Section | Page |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | AVDO r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PVDO r | Res. | Res. | Res. | Res. |
| Res. | Res. | Bit 16 | AVDO: | Analog Voltage detector Output on VDDA. AVDEN bit. |
Bits 31:17 Reserved, must be kept at reset value.
Bit 16 AVDO: Analog Voltage detector Output on \(V_{DDA}\).
This bit is set and cleared by hardware. It is valid only if AVD on \(V_{DDA}\) is enabled by the AVDEN bit.
0: \(V_{DDA}\) is equal or higher than the AVD threshold selected with the ALS[2:0] bits.
1: \(V_{DDA}\) is lower than the AVD threshold selected with the ALS[2:0] bits
Note: The AVD is disabled in Standby mode and after system reset. For this reason, this bit is equal to 0 after Standby and reset.
Bits 15:5 Reserved, must be kept at reset value.
Bit 4 PVDO: Programmable Voltage Detect Output
This bit is set and cleared by hardware. It is valid only if PVD is enabled by the PVDEN bit.
0: \(V_{DD}\) or voltage level on PVD_IN is equal or higher than the PVD threshold selected with the PLS[2:0] bits.
1: \(V_{DD}\) or voltage level on PVD_IN is lower than the PVD threshold selected with the PLS[2:0] bits.
Note: The PVD is disabled in Standby mode and after a system reset. For this reason, this bit is equal to 0 after Standby and system reset.
Bits 3:0 Reserved, must be kept at reset value.
9.11.3 PWR control register 2 (PWR_CR2)
Address offset: 0x008
Reset value: 0x0000 0000
Not reset by wakeup from Standby mode, Application reset (NRST, IWDG, ...) and \(V_{DD}\) POR, but reset only by \(V_{SW}\) POR and VSWRST.
Access 6 wait states when writing this register.
After reset the register is write-protected and the DBP bit in the PWR control register 1 (PWR_CR1) has to be set before it can be written. When DBP is cleared, there is no bus errors generated when writing this register.
This register shall not be accessed when the RCC VSWRST register bit in Section 10.7.86: RCC backup domain control register (RCC_BDCR) resets the VSW domain.
This register provides Write access security when enabled by TZEN register bit in Section 10.7.2: RCC TrustZone control register (RCC_TZCR). When security is enabled a non-secure write access generates a bus error. Secure and non-secure read accesses are granted and return the register value.
When a system reset occurs during the register write cycle the written data is not guaranteed.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TEMPH | TEMPL | Res. | Res. | Res. | Res. | RR RDY | BRRDY |
| r | r | r | r | ||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MON EN | Res. | Res. | RREN | BREN |
| rw | rw | rw |
Bits 31:24 Reserved, must be kept at reset value.
Bit 23 TEMPH: Monitored temperature level above high threshold
0: Temperature below high threshold level, or Monitor disabled.
1: Temperature equal or above high threshold level.
Bit 22 TEMPL: Monitored temperature level above low threshold
0: Temperature above low threshold level, or Monitor disabled.
1: Temperature equal or below low threshold level.
Bits 21:18 Reserved, must be kept at reset value.
Bit 17 RRRDY: Retention Regulator ready
Set by hardware to indicate that the Retention Regulator is ready. Entering Standby or VBAT mode before the Retention Regulator is ready may cause loss of Retention RAM content.
0: Retention Regulator not ready.
1: Retention Regulator ready.
Bit 16 BRRDY: Backup Regulator ready
Set by hardware to indicate that the Backup Regulator is ready. Entering Standby or VBAT mode before the Backup Regulator is ready may cause loss of Backup RAM content.
0: Backup Regulator not ready.
1: Backup Regulator ready.
Bits 15:5 Reserved, must be kept at reset value.
Bit 4 MONEN: VBAT and temperature monitoring enable
When set, the \(V_{BAT}\) supply and temperature monitoring is enabled.
0: \(V_{BAT}\) and temperature monitoring disabled.
1: \(V_{BAT}\) and temperature monitoring enabled.
Bits 3:2 Reserved, must be kept at reset value.
Bit 1 RREN: Retention regulator enable
When set, the retention regulator (used to maintain retention RAM content in Standby and VBAT modes) is enabled.
If RREN is reset, the Retention Regulator is switched off. The retention RAM can still be used in Run mode and Stop mode but its content is lost in the Standby and VBAT modes.
Once set, the application must wait that the retention regulator Ready flag (RRRDY) is set to indicate that the data written into the SRAM is maintained in the Standby and VBAT modes.
0: Retention regulator disabled
1: Retention regulator enabled
Bit 0 BREN: Backup regulator enable
When set, the backup regulator (used to maintain backup RAM content in Standby and VBAT modes) is enabled.
If BREN is reset, the backup regulator is switched off. The backup RAM can still be used in Run mode and Stop mode but its content is lost in the Standby and VBAT modes. Once set, the application must wait that the Backup Regulator Ready flag (BRRDY) is set to indicate that the data written into the SRAM is maintained in the Standby and VBAT modes.
0: Backup regulator disabled
1: Backup regulator enabled
9.11.4 PWR control register 3 (PWR_CR3)
Address offset: 0x00C
Reset value: 0x5000 0000
Not reset by wakeup from Standby mode and Application reset (such as NRST, IWDG) but only reset by \(V_{DD}\) POR.
Access 6 wait states when writing this register.
This register provides Write access security when enabled by TZEN register bit in Section 10: Reset and clock control (RCC). When security is enabled a non-secure write access generates
a bus error. Secure and non-secure read accesses are granted and return the register value.
When a system reset occurs during the register write cycle the written data is not guaranteed.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| REG11RDY | REG11EN | REG18RDY | REG18EN | Res. | USB33RDY | Res. | USB33DEN | Res. | Res. | POPL[4:0] | Res. | ||||
| r | rw | r | rw | r | rw | rw | rw | rw | rw | rw | |||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | DDRR ETEN | DDRS RDIS | DDRS REN | VBRS | VBE | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| rw | rw | rw | rw | rw | |||||||||||
- Bit 31 REG11RDY: 1V1 regulator supply ready
0: 1V1 supply not ready
1: 1V1 supply ready - Bit 30 REG11EN: 1V1 regulator enable
0: 1V1 regulator disabled
1: 1V1 regulator enabled (when in Standby mode the 1V1 regulator is disabled) - Bit 29 REG18RDY: 1V8 regulator supply ready
0: 1V8 supply not ready
1: 1V8 supply ready - Bit 28 REG18EN: 1V8 regulator enable
0: 1V8 regulator disabled
1: 1V8 regulator enabled, when also pin BYPASS_REG1V8 is low (when in Standby mode the 1V8 regulator is disabled). - Bit 27 Reserved, must be kept at reset value.
- Bit 26 USB33RDY: USB 3.3V supply ready
0: USB 3.3V supply not ready
1: USB 3.3V supply ready - Bit 25 Reserved, must be kept at reset value.
- Bit 24 USB33DEN: USB 3.3V voltage level detector enable
0: USB 3.3V voltage level detector disabled
1: USB 3.3V voltage level detector enabled - Bits 23:22 Reserved, must be kept at reset value.
- Bits 21:17 POPL[4:0]: pwr_on pulse low configuration
These bits are set and cleared by software. They define the minimum guaranteed duration of the pwr_on low pulse in Standby mode (there is no impact on the LP-Stop and LPLV-Stop modes).
The LSI oscillator is automatically enabled when needed by the POPL pulse low configuration.
00000: No guaranteed minimum low time
00001: ~ 1 ms guaranteed minimum low time (1 x 32 LSI cycles)
00010: ~ 2 ms guaranteed minimum low time (2 x 32 LSI cycles)
...
11111: ~ 31 ms guaranteed minimum low time (31 x 32 LSI cycles) - Bits 16:13 Reserved, must be kept at reset value.
Bit 12 DDRRETEN: DDR retention enable
Set by Hardware on NRST pad reset, when the reset delay control is enabled in the RCC_MP_APRSTCR.RDCTLEN register bit, or when written 'b1 by software, the DDR PHY puts its pads in retention.
To disable retention software shall write this bit to 'b0.
0: DDR self-refresh retention disabled.
1: DDR self-refresh retention enabled.
Bit 11 DDRSRDIS: DDR self-refresh retention after standby disable
When written 'b1, the DDR PHY pads retention, enabled due to DDRSREN, is disabled.
0: No action
1: When DDRSREN is 'b1: Disable DDR self-refresh retention after standby mode. This bit is reset by hardware once DDR self-refresh retention has been disabled.
When DRRSREN is 'b0 no action.
Bit 10 DDRSREN: DDR self-refresh in standby mode enable
When set, the DDR PHY puts its pads in retention when entering Standby mode.
0: DDR self-refresh retention when entering standby mode disabled.
1: DDR self-refresh retention when entering standby mode enabled (DDR self-refresh retention after Standby shall be disabled by DDRSRDIS).
Bit 9 VBRS: VBAT charging resistor selection
0: Charges VBAT through a 5 kOhm resistor.
1: Charges VBAT through a 1.5 kOhm resistor.
Bit 8 VBE: VBAT charging enable
0: VBAT battery charging disabled.
1: VBAT battery charging enabled.
Bits 7:0 Reserved, must be kept at reset value.
9.11.5 PWR MPU control register (PWR_MPUCR)
Address offset: 0x010
Reset value: 0x0000 0000
See individual bits for reset condition.
Access 6 wait states when writing this register.
This register provides Write access security when enabled by TZEN register bit in Section 10: Reset and clock control (RCC). When security is enabled a non-secure write access generates a bus error. Secure and non-secure read accesses are granted and return the register value.
When a system reset occurs during the register write cycle the written data is not guaranteed.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| STAND BYWFI L2 | Res. | Res. | Res. | Res. | Res. | CSSF | Res. | SBFMP U | SBF | STOPF | Res. | CSTBY DIS | Res. | Res. | PDDS |
| r | rw | r | r | r | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bit 15 STANDBYWFIL2: MPU system idle indication
This bit is set and reset by hardware based on the MPU operation mode.
0: MPU system CRun or CSleep
1: MPU system CStop or CStandby
Bits 14:10 Reserved, must be kept at reset value.
Bit 9 CSSF: Clear MPU Standby, Stop flags.(Always read as 0)
This bit is reset on any system reset.
0: No effect
1: When written, clears the MPU flags (STOPF, SBF, and SBFMPU). The register bit is cleared to 0 by hardware.
Bit 8 Reserved, must be kept at reset value.
Bit 7 SBFMPU: MPU Standby flag
This bit is set by hardware and cleared only by a \(V_{DD}\) POR reset or by setting the MPU CSSF bit (not reset when exit from Standby mode). This bit is cleared by the MPU Boot ROM.
0: MPU has not been in CStandby mode.
1: MPU has been in CStandby mode.
Bit 6 SBF: System Standby flag
This bit is set by hardware and cleared only by a \(V_{DD}\) POR reset or by setting the MPU CSSF bit (not reset when exit from Standby mode). This bit is cleared by the MPU Boot ROM.
0: System has not been in Standby mode.
1: System has been in Standby mode, system contents has been lost.
Bit 5 STOPF: Stop flag
This bit is set by hardware and cleared only by any system reset or by setting the MPU CSSF bit. This bit is cleared by the MPU Boot ROM.
0: System has not been in Stop mode
1: System has been in Stop mode, clock system has been stopped.
Bit 4 Reserved, must be kept at reset value.
Bit 3 CSTBYDIS: MPU CStandby mode disable
This bit is reset only by a \(V_{DD}\) POR reset (not reset when exit from Standby mode).
Allows to define the use of the MPU CStandby mode. Under some conditions, this bit is cleared by the MPU Boot ROM.
0: MPU CStandby mode enabled
1: MPU CStandby mode disabled
Bits 2:1 Reserved, must be kept at reset value.
Bit 0 PDDS: System Power Down Deepsleep selection
This bit is reset only by a \(V_{DD}\) POR reset (not reset when exit from Standby mode).
Allows MPU to define the Deepsleep mode for the system.
0: Keeps Stop mode when MPU enters to CStop.
1: Allows Standby mode when MPU enters to CStop. When CSTBYDIS = 0 allows MPU to enter CStandby mode.
9.11.6 PWR MCU control register (PWR_MCUCR)
Address offset: 0x014
Reset value: 0x0000 0000
See individual bits for reset condition.
Access 6 wait states when writing this register.
This register is always non-secure.
When a system reset occurs during the register write cycle the written data is not guaranteed.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DEEPSLEEP | Res. | Res. | Res. | Res. | Res. | CSSF | Res. | Res. | SBF | STOPF | Res. | Res. | Res. | Res. | PDDS |
| r | rw | r | r | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bit 15 DEEPSLEEP: MCU system idle indication
This bit is set and reset by hardware based on the MCU operation mode.
0: MCU system CRun or CSleep
1: MCU system CStop
Bits 14:10 Reserved, must be kept at reset value.
Bit 9 CSSF: Clear MCU Standby, Stop flags (always read as 0)
This bit is reset on any system reset.
0: No effect
1: When written, clear the MCU flags (STOPF, and SBF). Register bit is cleared to 0 by hardware.
Bits 8:7 Reserved, must be kept at reset value.
Bit 6 SBF: System Standby Flag
This bit is set by hardware and cleared only by a \(V_{DD}\) POR reset or by setting the MCU CSSF bit (not reset when exit from Standby mode).
0: System has not been in Standby mode.
1: System has been in Standby mode, system contents has been lost.
Bit 5 STOPF: Stop Flag
This bit is set by hardware and cleared only by any system reset or by setting the MCU CSSF bit.
0: System has not been in Stop mode.
1: System has been in Stop mode, clock system has been stopped.
Bits 4:1 Reserved, must be kept at reset value.
Bit 0 PDDS: System Power Down Deepsleep selection.
This bit is reset only by a \(V_{DD}\) POR reset (not reset when exit from Standby mode).
Allows MCU to define the Deepsleep mode for the system.
0: Keeps Stop mode when MCU enters to CStop.
1: Allows Standby mode when MCU enters to CStop.
9.11.7 PWR wakeup control register (PWR_WKUPCR)
Address offset: 0x020
Reset value: 0x0000 0000
Not reset by wakeup from Standby mode, but by any application reset (such as NRST, IWDG).
Access 6 wait states when writing this register (when clearing a WKUPF, the AHB write access completes after the WKUPF has cleared).
This register provides Write access security when enabled by TZEN register bit in Section 10: Reset and clock control (RCC). When security is enabled a non-secure write access on individual WKUPC[6:1], WKUPP[6:1] bits and WKUPPUPD[6:1] bit pairs are discarded when the corresponding WKUPEN[6:1] bit in PWR MPU wakeup enable register (PWR_MPUWKUPENR) is set. No bus error is generated. Secure and non-secure read accesses are granted and return the register value.
When a system reset occurs during the register write cycle the written data is not guaranteed.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | WKUPPUPD6 [1:0] | WKUPPUPD5 [1:0] | WKUPPUPD4 [1:0] | WKUPPUPD3 [1:0] | WKUPPUPD2 [1:0] | WKUPPUPD1 [1:0] | ||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | WKUP P6 | WKUP P5 | WKUP P4 | WKUP P3 | WKUP P2 | WKUP P1 | Res. | Res. | WKUP C6 | WKUP C5 | WKUP C4 | WKUP C3 | WKUP C2 | WKUP C1 |
| rw | rw | rw | rw | rw | rw | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 | ||||
Bits 31:28 Reserved, must be kept at reset value.
Bits 27:16 WKUPPUPD[6:1][1:0]: Wakeup pull configuration for WKUPn pin, n range [6:1]
These bits define the IO pad pull configuration used when WKUPENn = 1 (note that the associated GPIO port pull configuration shall be set to the same value or 00). The wakeup pin pull configuration is maintained in Standby mode.
When TZEN is enabled in the RCC and WKUPENn in PWR MPU wakeup enable register (PWR_MPUWKUPENR) is set, bit pair n can only be written by a secure access, a non-secure write on this bit pair is discarded.
When TZEN is disabled in the RCC or WKUPENn in PWR MPU wakeup enable register (PWR_MPUWKUPENR) is clear, bit pair n can be written by a secure and non-secure access.
00: No pulls
01: Pull-up
10: Pull-down
11: Reserved
Bits 15:14 Reserved, must be kept at reset value.
Bits 13:8 WKUPP[6:1]: Wakeup Polarity bit for WKUPn pin, n range [6:1]
These bits define the polarity used for event detection on external wake-up WKUPn pin.
When TZEN is enabled in the RCC and WKUPENn in PWR MPU wakeup enable register (PWR_MPUWKUPENR) is set, bit n can only be written by a secure access, a non-secure write on this bit is discarded.
When TZEN is disabled in the RCC or WKUPENn in PWR MPU wakeup enable register (PWR_MPUWKUPENR) is clear, bit n can be written by a secure and non-secure access.
0: Detection on high level (rising edge)
1: Detection on low level (falling edge)
Bits 7:6 Reserved, must be kept at reset value.
Bits 5:0 WKUPC[6:1]: Clear Wakeup Flag for WKUPn pin, n range [6:1]
When TZEN is enabled in the RCC and WKUPENn in PWR MPU wakeup enable register (PWR_MPUWKUPENR) is set, bit n can only be written by a secure access, a non-secure write on this bit is discarded.
When TZEN is disabled in the RCC or WKUPENn in PWR MPU wakeup enable register (PWR_MPUWKUPENR) is clear, bit n can be written by a secure and non-secure access.
These bits are always read as 0.
0: No effect
1: Writing 1 clears the WKUPFn wakeup flag (the bit is cleared to 0 by hardware).
9.11.8 PWR wakeup flag register (PWR_WKUPFR)
Address offset: 0x024
Reset value: 0x0000 0000
Not reset by wakeup from Standby mode but by any Application reset (NRST, IWDG, ...)
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WKUP F6 | WKUP F5 | WKUP F4 | WKUP F3 | WKUP F2 | WKUP F1 |
| r | r | r | r | r | r |
Bits 31:6 Reserved, must be kept at reset value.
Bits 5:0 WKUPF[6:1]: Wakeup flag for WKUPn pin before enable, n range [6:1].
This bit is set by hardware and cleared only by a NRST Reset or by setting the WKUPCn bit in the PWR wakeup control register (PWR_WKUPCR)
- 0: No wakeup event occurred
- 1: A wakeup event was received from WKUPCn pin
9.11.9 PWR MPU wakeup enable register (PWR_MPUWKUPENR)
Address offset: 0x028
Reset value: 0x0000 0000
Not reset by wakeup from Standby mode but by any Application reset (NRST, IWDG, ...).
Access 6 wait states when writing this register.
This register provides Write access security when enabled by TZEN register bit in Section 10: Reset and clock control (RCC). When security is enabled a non-secure write access is discarded and a bus error is generated. Secure and non-secure read accesses are granted and return the register value.
When a system reset occurs during the register write cycle the written data is not guaranteed.
| 9.11.9 | Bits 5:0 | column_3 | WKUPF[6:1]: guaranteed. | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | RM0442 Section 10: |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WKUP | WKUP | WKUP | WKUP | WKUP | WKUP |
| EN6 | EN5 | EN4 | EN3 | EN2 | EN1 | ||||||||||
| rw | rw | rw | rw | rw | rw | ||||||||||
| Bits 5:0 | WKUPEN[6:1] | : Enable Wakeup WKUPn pin and interrupt for MPU, n range [6:1] |
Bits 31:6 Reserved, must be kept at reset value.
Bits 5:0 WKUPEN[6:1]: Enable Wakeup WKUPn pin and interrupt for MPU, n range [6:1]
Each bit is set and cleared by software.
When TZEN is enabled in the RCC, these bits can only be written by a secure access, a non-secure write is discarded.
When TZEN is disabled in the RCC, these bits can be written by a secure and non-secure access.
- 0: An event on WKUPn pin does not wake up the system from Standby and Stop mode, nor generates an interrupt to MPU.
- 1: A rising or falling edge on WKUPn pin wakes up the system from Standby and Stop mode and generates an interrupt to MPU.
9.11.10 PWR MCU wakeup enable register (PWR_MCUWKUPENR)
Address offset: 0x02C
Reset value: 0x0000 0000
Not reset by wakeup from Standby mode but by any Application reset (NRST, IWDG, ...)
Access 6 wait states when writing this register.
When a system reset occurs during the register write cycle the written data is not guaranteed.
| RM0442 | column_2 | column_3 | guaranteed. | column_5 | column_6 | column_7 | column_8 | column_9 | column_10 | column_11 | column_12 | column_13 | column_14 | column_15 | column_16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WKUP | WKUP | WKUP | WKUP | WKUP | WKUP |
| EN6 | EN5 | EN4 | EN3 | EN2 | EN1 | ||||||||||
| rw | rw | rw | rw | rw | rw | ||||||||||
| Bits 5:0 | WKUPEN[6:1] | : Enable Wakeup WKUPn pin and interrupt for MCU, n range [6:1] | |||||||||||||
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MAJREV[3:0] | MINREV[3:0] | ||||||
| r | r | r | r | r | r | r | r | ||||||||
| Bits 7:4 | MAJREV[3:0]: | Major revision number | |||||||||||||
| Bits 3:0 | MINREV[3:0]: | Minor revision number |
Bits 31:6 Reserved, must be kept at reset value.
Bits 5:0 WKUPEN[6:1]: Enable Wakeup WKUPn pin and interrupt for MCU, n range [6:1]
Each bit is set and cleared by software.
0: An event on WKUPn pin does not wake up the system from Standby and Stop mode, nor generate an interrupt to MCU.
1: A rising or falling edge on WKUPn pin wakes up the system from Standby and Stop mode, and generate an interrupt to MCU.
9.11.11 PWR IP version register (PWR_VER)
Address offset: 0x3F4
Reset value: 0x0000 0011
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:4 MAJREV[3:0]: Major revision number
Bits 3:0 MINREV[3:0]: Minor revision number
9.11.12 PWR IP identification register (PWR_ID)
Address offset: 0x3F8
Reset value: 0x0001 0001
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| IPID[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| IPID[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 IPID[31:0]: IP identification
9.11.13 PWR size ID register (PWR_SID)
Address offset: 0x3FC
Reset value: 0xA3C5 DD01
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| SID[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SID[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 SID[31:0]: Size identification
9.11.14 PWR register map
Table 48. Power control register map and reset values
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x000 | PWR_CR1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ALS[1:0] | AVDEN | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBP | PLS[2:0] | PVDEN | Res. | LVDS | LPCFG | LPDS | |||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||
| 0x004 | PWR_CSR1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | AVDO | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PVDO | Res. | Res. | Res. | Res. |
| Reset value | 0 | 0 | |||||||||||||||||||||||||||||||
| 0x008 | PWR_CR2 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TEMPH | TEMPL | Res. | Res. | Res. | Res. | RRRDY | BRRDY | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MONEN | Res. | Res. | RREN | BREN |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||
| 0x00C | PWR_CR3 | REG11RDY | REG11EN | REG18RDY | REG18EN | Res. | USB33RDY | Res. | USB33DEN | Res. | Res. | POPL[4:0] | Res. | Res. | Res. | DDRRETEN | DDRSRDIS | DDRSREN | VBRS | VBE | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | |||||
| Reset value | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
Table 48. Power control register map and reset values (continued)
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x010 | PWR_MPUCR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | STANDBYWFIL2 | Res. | Res. | Res. | Res. | Res. | CSSF | Res. | SBFMPU | SBF | STOPF | Res. | CSTBYDIS | Res. | Res. | PDDS |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||
| 0x014 | PWR_MCUCR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DEEPSLEEP | Res. | Res. | Res. | Res. | Res. | CSSF | Res. | Res. | SBF | STOPF | Res. | Res. | Res. | Res. | PDDS |
| Reset value | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||
| 0x018-0x01C | Reserved | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 0x020 | PWR_WKUPCR | Res. | Res. | Res. | Res. | Res. | WKUPPUPD6 [1:0] | WKUPPUPD5 [1:0] | WKUPPUPD4 [1:0] | WKUPPUPD3 [1:0] | WKUPPUPD2 [1:0] | WKUPPUPD1 [1:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||
| 0x024 | PWR_WKUPFR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WKUPF6 | WKUPF5 | WKUPF4 | WKUPF3 | WKUPF2 | WKUPF1 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x028 | PWR_MPUWKUPENR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WKUPEN6 | WKUPEN5 | WKUPEN4 | WKUPEN3 | WKUPEN2 | WKUPEN1 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x02C | PWR_MCUWKUPENR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | WKUPEN6 | WKUPEN5 | WKUPEN4 | WKUPEN3 | WKUPEN2 | WKUPEN1 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x030-0x3F0 | Reserved | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 0x3F4 | PWR_VER | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MAJREV[3:0] | MINREV[3:0] | |||||
| Reset value | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | |||||||||||||||||||||||||
| 0x3F8 | PWR_ID | IPID[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |
| 0x3FC | PWR_SID | SID[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |