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

9.2 PWR block diagram

Figure 27. Power control block diagram

Power control block diagram showing the PWR block and its connections to regulators, RCC, MPU, MCU, and EXTI.

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-blocks: Register interface, POR/PDR, Backup domain, VBAT charging, PWR control, BOR, VBAT thresholds, TEMP thresholds, Power managment, WAKEUP, and PVD & AVD. It is connected to external regulators (1V8 Regulator, 1V1 Regulator, 3V3 USB Detector) and voltage sources (VDD3V3_USBFS, VDDA1V1_REG, VDD, VDDA1V8_REG). The Register interface connects to the RCC via reg18en, reg18rdy, reg11en, reg11rdy, usb33den, and usb33rdy signals. The POR/PDR block handles reset signals (PDR_ON, NRST, PDR_ON_CORE, NRST_CORE) and connects to the RCC's nrst_por, ready_run, por_vsw, and nrst_bor signals. The Backup domain and VBAT charging blocks manage power from VDD and VBAT. The PWR control block handles PWR_ON and PWR_LP signals. The Power managment block includes mpu cstandby and connects to the RCC's hclk4, pwrwake_mpu, pwrwake_mcu, and pwrwake_sys signals. The WAKEUP block handles wake-up interrupts (mpu_int_wkup, mcu_int_wkup, async_wkup[6:1]) and connects to the EXTI wakeup events. The PVD & AVD block monitors voltage levels (pvdo, avdo) and connects to the EXTI wakeup events. The MPU and MCU blocks are connected via (gic) and (nvic) interfaces. The EXTI block handles wakeup events from the WAKEUP and PVD & AVD blocks.

MSv46534V1

Power control block diagram showing the PWR block and its connections to regulators, RCC, MPU, MCU, and EXTI.

9.2.1 PWR pin overview

Table 29. PWR pin overview

Pin nameI/ODescription
VDDPMain IO and VDD domain supply input
VDD_PLLPPLLs supply input, shall be connected to VDD(not used by PWR)
VBATPBackup battery supply input
VDDCOREPCore domain supply
VDDAPAnalog domain supply
VDDA1V8_REGP1V8 regulator supply output
VDDA1V1_REGP1V1 regulator supply output
VDD3V3_USBFSPUSB FS IO 3V3 supply input
VDD3V3_USBHSPUSB HS PHY 3V3 supply input, shall be connected to VDD3V3_USBFS (not used by PWR)
VDDQ_DDRPDDR PHY supply input (not used by PWR)
VSSPMain ground
VSSAPAnalog ground
VSS_USBHSPUSB HS PHY ground (not used by PWR)
AHBI/OAHB register interface
PWR_ONOCore supply enable output
PWR_LPOCore supply Low-power Stop mode selection output
PDR_ONIVDD Power On Reset enable
NRSTIOApplication pad reset input/output
PDR_ON_COREIVDDCORE Power On Reset enable
NRST_COREIVDDCORE reset input (to be used when VDDCORE Power On Reset is disabled)
BYPASS_REG1V8I1V8 regulator bypass
WKUP[6:1]IWakeup inputs
PVD_INIPVD external input
hclk4IPWR AHB bus clock input from RCC
pvdoOProgrammable voltage detector output
avdoOAnalog voltage detector output
nrst_porOVDD Power-on reset
nrst_borOVDD Brownout reset
sys_ds_exitISystem wakeup request from EXTI (sys_wakeup)
mpu_ds_exitIMPU wakeup request from EXTI (c1_wakeup)
mcu_ds_exitIMCU wakeup request from EXTI (c2_wakeup)
mpu_cstandbyOMPU CStandby mode indication

Table 29. PWR pin overview (continued)

Pin nameI/ODescription
pwrwake_mpuOClock wakeup request for MPU
pwrwake_mcuOClock wakeup request for MCU
mpu_int_wkupOWakeup interrupt to MPU
mcu_int_wkupOWakeup interrupt to MCU
async_wkup[6:1]OAsynchronous wakeup to EXTI
rcc_tzenITrustZone 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):

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

Block diagram of Figure 28: Power supply overview showing power domains (Core domain, VDD domain, VSW domain, Analog domain), internal regulators (1V1 regulator, 1V8 regulator, Retention regulator, Backup regulator), PLLs, IOs, RAM, and related supply rails.

MSv46560V2

Block diagram of Figure 28: Power supply overview showing power domains (Core domain, VDD domain, VSW domain, Analog domain), internal regulators (1V1 regulator, 1V8 regulator, Retention regulator, Backup regulator), PLLs, IOs, RAM, and related supply rails.

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).

9.3.2 PWR supply system startup sequence

The system startup sequence is shown in Figure 29.

  1. 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. 2. As long as the \(V_{DDCORE}\) is below the vddcore_ok threshold, the system is kept in reset.
  3. 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. 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

Timing diagram showing the device startup supply sequence. It tracks VDD, nrst_por, PWR_ON, PWR_LP, VDDCORE, vddcore_ok, Operating mode, and HSI over five stages: (1) Power down or VBAT mode, (2) POR Reset, (3) Wait HSI oscillator, (4) HW system Init, and (5) Run. VDD rises first, crossing the POR threshold. Then VDDCORE rises, crossing the vddcore_ok threshold. PWR_ON and PWR_LP transition from HiZ to active. nrst_por transitions from low to high. HSI starts oscillating in stage (3).

The diagram illustrates the startup sequence of a device. It shows the timing relationships between various signals and the operating mode. The sequence is divided into five stages: (1) Power down or VBAT mode, (2) POR Reset, (3) Wait HSI oscillator, (4) HW system Init, and (5) Run. The signals shown are \(V_{DD}\), nrst_por, PWR_ON, PWR_LP, \(V_{DDCORE}\), vddcore_ok, Operating mode, and HSI. \(V_{DD}\) rises first, crossing the POR threshold. \(V_{DDCORE}\) rises next, crossing the vddcore_ok threshold. PWR_ON and PWR_LP transition from HiZ to active. nrst_por transitions from low to high. HSI starts oscillating in stage (3). The Operating mode transitions from Power down or VBAT mode to POR Reset, then to Wait HSI oscillator, then to HW system Init, and finally to Run.

MSv46508V1

Timing diagram showing the device startup supply sequence. It tracks VDD, nrst_por, PWR_ON, PWR_LP, VDDCORE, vddcore_ok, Operating mode, and HSI over five stages: (1) Power down or VBAT mode, (2) POR Reset, (3) Wait HSI oscillator, (4) HW system Init, and (5) Run. VDD rises first, crossing the POR threshold. Then VDDCORE rises, crossing the vddcore_ok threshold. PWR_ON and PWR_LP transition from HiZ to active. nrst_por transitions from low to high. HSI starts oscillating in stage (3).

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. 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. 2. In Stop mode both the PWR_ON and PWR_LP are kept high. The external regulator remains in main mode.
  3. 3. On a wakeup event, the clock restore process is performed. See RCC: The clock restore sequence description for more details.
  4. 4. Once the oscillator is stable, the system enters into Run mode.

Figure 30. Device low-power Stop supply sequence

Timing diagram for device low-power Stop supply sequence showing signals PWR_ON (H), PWR_LP (H), VDDCORE (vddcore), vddcore_ok (H), Operating mode, and hclk4 across four phases: (1) Run, (2) Stop, (3) Wait HSI oscillator, and (4) Run.

The figure is a timing diagram illustrating the device low-power Stop supply sequence. It consists of six horizontal signal lines and a row of operating mode boxes, all contained within a rectangular frame. From top to bottom, the signals are: PWR_ON (H), PWR_LP (H), VDDCORE (vddcore), vddcore_ok (H), Operating mode, and hclk4. The PWR_ON (H), PWR_LP (H), and vddcore_ok (H) signals are represented by solid horizontal lines at a high level. The VDDCORE (vddcore) signal is also a solid horizontal line at a high level. The Operating mode row contains four rectangular boxes labeled 'Run', 'Stop', 'Wait HSI oscillator', and 'Run' from left to right, separated by vertical dashed lines. Below these boxes, the hclk4 signal is shown as a square wave in the first 'Run' box, labeled '(1)'. In the 'Stop' box, labeled '(2)', the hclk4 signal is a solid horizontal line at a low level. In the 'Wait HSI oscillator' box, labeled '(3)', the hclk4 signal remains a solid horizontal line at a low level. In the final 'Run' box, labeled '(4)', the hclk4 signal resumes its square wave pattern. The label 'MSv46509V1' is located in the bottom right corner of the diagram frame.

Timing diagram for device low-power Stop supply sequence showing signals PWR_ON (H), PWR_LP (H), VDDCORE (vddcore), vddcore_ok (H), Operating mode, and hclk4 across four phases: (1) Run, (2) Stop, (3) Wait HSI oscillator, and (4) Run.

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. 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. 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. 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. 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.91: RCC PWR_LP delay control register (RCC_PWRLPDLYCR)).
  5. 5. After the delay timeout the system enters into Run mode.

Figure 31. Device low-power LP-Stop supply sequence

Timing diagram for device low-power LP-Stop supply sequence showing signals PWR_ON, PWR_LP, VDDCORE, vddcore_ok (H), Operating mode, and hclk4 across five stages: (1) Run, (2) LP-Stop, (3) Wait HSI oscillator, (4) Wait REG Main, and (5) Run.

The figure is a timing diagram illustrating the sequence of events when entering and exiting LP-Stop mode. It includes the following signals and states:

The diagram is divided into five numbered regions: (1) Run, (2) LP-Stop, (3) Wait HSI oscillator, (4) Wait REG Main, and (5) Run. The transition from Run to LP-Stop occurs when PWR_LP goes low. The transition from LP-Stop back to Run occurs after the Wait HSI oscillator and Wait REG Main phases, when PWR_LP goes high again.

Timing diagram for device low-power LP-Stop supply sequence showing signals PWR_ON, PWR_LP, VDDCORE, vddcore_ok (H), Operating mode, and hclk4 across five stages: (1) Run, (2) LP-Stop, (3) Wait HSI oscillator, (4) Wait REG Main, and (5) Run.

MSv46510V1

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. 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. 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. 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. 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. 5. Once the oscillator is stable, the system enters Run mode.

Figure 32. Device low-power LPLV-Stop supply sequence

Timing diagram for LPLV-Stop supply sequence showing PWR_ON, PWR_LP, VDDCORE, vddcore_ok (1), Operating mode, and hclk4 signals across five phases: (1) Run, (2) LPLV-Stop, (3) Wait VDDCORE timeout, (4) Wait HSI oscillator, and (5) Run.

The diagram illustrates the sequence of events when transitioning from Run mode to LPLV-Stop mode and back to Run mode. It includes the following signals and phases:

MSv47351V1

Timing diagram for LPLV-Stop supply sequence showing PWR_ON, PWR_LP, VDDCORE, vddcore_ok (1), Operating mode, and hclk4 signals across five phases: (1) Run, (2) LPLV-Stop, (3) Wait VDDCORE timeout, (4) Wait HSI oscillator, and (5) Run.

9.3.6 PWR supply Standby sequence

The system Standby mode sequence is shown in Figure 33.

  1. 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. 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. 3. Once the VDDCORE supply is above the vddcore_ok threshold level, the HSI oscillator is enabled.
  4. 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.

Timing diagram for Device Standby mode power control. It shows the relationship between PWR_ON, PWR_LP, VDDCORE, vddcore_ok, Operating mode, and hclk4 signals over six phases: (1) Run, (2) Standby, (3) POR Reset, (4) Wait HSI oscillator, (5) HW system Init, and (6) Run. PWR_ON transitions from high to low to enter Standby and back to high to wake up. PWR_LP transitions from low to high during Standby. VDDCORE drops during Standby and rises back above the vddcore_ok threshold during POR Reset. vddcore_ok transitions from high to low during Standby and back to high during HW system Init. hclk4 is active in Run modes and inactive during Standby and POR Reset. The Operating mode bar shows the sequence: Run, Standby, POR Reset, Wait HSI oscillator, HW system Init, Run.
Timing diagram for Device Standby mode power control. It shows the relationship between PWR_ON, PWR_LP, VDDCORE, vddcore_ok, Operating mode, and hclk4 signals over six phases: (1) Run, (2) Standby, (3) POR Reset, (4) Wait HSI oscillator, (5) HW system Init, and (6) Run. PWR_ON transitions from high to low to enter Standby and back to high to wake up. PWR_LP transitions from low to high during Standby. VDDCORE drops during Standby and rises back above the vddcore_ok threshold during POR Reset. vddcore_ok transitions from high to low during Standby and back to high during HW system Init. hclk4 is active in Run modes and inactive during Standby and POR Reset. The Operating mode bar shows the sequence: Run, Standby, POR Reset, Wait HSI oscillator, HW system Init, Run.

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. 1. When in Standby mode, the device can be set in VBAT mode by powering down the \(V_{DD}\) supply. The pwr_on signal keeps requesting the \(V_{DDCORE}\) supply to be powered off.
  2. 2. When powering down \(V_{DD}\), the device enters VBAT mode. The PWR_ON and PWR_LP signals become HiZ.
  3. 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_on signal: As long as the \(V_{DDCORE}\) is below the vddcore_ok threshold the system is kept in reset.
  4. 4. 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.
  5. 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

Timing diagram for Device VBAT mode power control. It shows the sequence of events from Standby to Run mode. VDD is powered down, then re-established. PWR_ON and PWR_LP go to HiZ during VBAT mode. VDDCORE is powered down, then re-established. The vddcore_ok signal goes high once VDDCORE is above its threshold. The operating mode transitions through Standby, VBAT mode, POR Reset, Wait HSI oscillator, HW system Init, and Run. hclk4 is shown as a clock signal starting in the Run mode.

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 operating mode is indicated by a blue bar at the bottom, divided into six phases: (1) Standby, (2) VBAT mode, (3) POR Reset, (4) Wait HSI oscillator, (5) HW system Init, and (6) Run. Vertical dashed lines mark the transitions between these phases. \(V_{DD}\) is shown being powered down at the start of phase (2) and re-established at the start of phase (3), crossing the POR threshold. PWR_ON and PWR_LP are in HiZ state during phase (2). \(V_{DDCORE}\) is powered down at the start of phase (3) and re-established at the start of phase (4), crossing the vddcore_ok threshold. hclk4 is a clock signal that starts in phase (6).

MSv46512V1

Timing diagram for Device VBAT mode power control. It shows the sequence of events from Standby to Run mode. VDD is powered down, then re-established. PWR_ON and PWR_LP go to HiZ during VBAT mode. VDDCORE is powered down, then re-established. The vddcore_ok signal goes high once VDDCORE is above its threshold. The operating mode transitions through Standby, VBAT mode, POR Reset, Wait HSI oscillator, HW system Init, and Run. hclk4 is shown as a clock signal starting in the Run mode.

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:

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:

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. 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.

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:

PWR retention RAM

The retention domain includes 64 Kbytes of retention RAM accessible in 32-bit, 16-bit or 8-bit data mode.

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 Block diagram of the backup domain showing VSW domain, Backup domain, Retention domain, Backup/Retention Regulators, RAM, RTC, LSE, and Backup IO's.
Block diagram of the backup domain showing VSW domain, Backup domain, Retention domain, Backup/Retention Regulators, RAM, RTC, LSE, and Backup IO's.

9.3.9 PWR VBAT battery charging

When VDD 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 VDDA supply.

The analog supply domain has separate VDDA and VSSA 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.

PWR analog reference voltage VREF.

To allow better accuracy on low voltage signals, the ADC and DAC have furthermore a separate reference voltage VREF+ pin. The user may connect a separate external reference voltage on VREF+. The VREF+ controls the highest voltage, represented by the full scale value. The lower voltage reference VREF- is connected together with VSSA.

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:

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 \(V_{DD}\) is below a specified \(V_{POR}\) threshold, without the need for an external reset circuit. Once the \(V_{DD}\) supply level is above the \(V_{POR}\) 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 \(V_{DD}\) 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 \(V_{DD}\) in an application.

Figure 36. Power-on reset/power-down reset waveform

Figure 36: Power-on reset/power-down reset waveform. The graph shows the supply voltage V_DD rising and falling over time T. The rising edge crosses the V_POR threshold, and the falling edge crosses the V_PDR threshold. The difference between V_POR and V_PDR is labeled 'hysteresis'. A delay T_RSTTEMPO is shown from the point where V_DD crosses V_POR until the nrst_por signal transitions from low to high. The nrst_por signal is low during the reset period and high otherwise.

MSv46514V2

Figure 36: Power-on reset/power-down reset waveform. The graph shows the supply voltage V_DD rising and falling over time T. The rising edge crosses the V_POR threshold, and the falling edge crosses the V_PDR threshold. The difference between V_POR and V_PDR is labeled 'hysteresis'. A delay T_RSTTEMPO is shown from the point where V_DD crosses V_POR until the nrst_por signal transitions from low to high. The nrst_por signal is low during the reset period and high otherwise.
  1. 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:

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

Figure 37: BOR thresholds diagram. The graph shows the relationship between supply voltage (V_DD) and temperature (T). The V_DD axis has two threshold levels: V_BOR_rise and V_BOR_fall. A trapezoidal region represents the BOR active state. The vertical distance between V_BOR_rise and V_BOR_fall is labeled 'hysteresis'. The horizontal axis is labeled 'T'. Below the graph, a signal 'nrst_bor' is shown as a low pulse that occurs when the V_DD level is between the two thresholds.
Figure 37: BOR thresholds diagram. The graph shows the relationship between supply voltage (V_DD) and temperature (T). The V_DD axis has two threshold levels: V_BOR_rise and V_BOR_fall. A trapezoidal region represents the BOR active state. The vertical distance between V_BOR_rise and V_BOR_fall is labeled 'hysteresis'. The horizontal axis is labeled 'T'. Below the graph, a signal 'nrst_bor' is shown as a low pulse that occurs when the V_DD level is between the two thresholds.
  1. 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

Timing diagram showing VDDCORE, pwr_on, pwr_lp, and NRST_CORE signals during Standby mode. VDDCORE drops to a low level during Standby and rises back to an external regulator threshold. pwr_on and pwr_lp are low during Standby and high otherwise. NRST_CORE is low during Standby and high otherwise. Operating modes shown are Run, Standby, Wait Oscillator, HW system Init, and Run.

The diagram illustrates the control of the NRST_CORE signal during Standby mode. It shows four signals over time: VDDCORE, pwr_on, pwr_lp, and NRST_CORE. The operating modes are indicated at the bottom: Run, Standby, Wait Oscillator, HW system Init, and Run. VDDCORE starts high, drops to a low level during the Standby mode, and then rises back to an 'External regulator threshold'. The pwr_on and pwr_lp signals are low during the Standby mode and high during all other modes. The NRST_CORE signal is low during the Standby mode and high during all other modes. Vertical dashed lines mark the transitions between operating modes.

MSv46516V1

Timing diagram showing VDDCORE, pwr_on, pwr_lp, and NRST_CORE signals during Standby mode. VDDCORE drops to a low level during Standby and rises back to an external regulator threshold. pwr_on and pwr_lp are low during Standby and high otherwise. NRST_CORE is low during Standby and high otherwise. Operating modes shown are Run, Standby, Wait Oscillator, HW system Init, and Run.

9.4.4 PWR programmable voltage detector (PVD)

The PVD can be used to monitor the VDD 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 VDD 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 VDD or voltage level on PVD_IN drops below the PVD threshold and/or when VDD 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

Figure 39: PVD thresholds diagram. The top graph shows V_DD or PVD_IN voltage over time (T), with a rising edge crossing PVD_Rise and a falling edge crossing PVD_Fall. The vertical distance between these two thresholds is labeled 'hysteresis'. The bottom graph shows the PVDO output signal, which is high when V_DD is above PVD_Rise and low when it is below PVD_Fall. The PVDEN signal is shown as a control signal that enables the PVD. The SW enable signal is shown as a control signal that enables the PVD. The PDR reset signal is shown as a control signal that resets the PVD.

MSV46517V1

Figure 39: PVD thresholds diagram. The top graph shows V_DD or PVD_IN voltage over time (T), with a rising edge crossing PVD_Rise and a falling edge crossing PVD_Fall. The vertical distance between these two thresholds is labeled 'hysteresis'. The bottom graph shows the PVDO output signal, which is high when V_DD is above PVD_Rise and low when it is below PVD_Fall. The PVDEN signal is shown as a control signal that enables the PVD. The SW enable signal is shown as a control signal that enables the PVD. The PDR reset signal is shown as a control signal that resets the PVD.
  1. 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

Figure 40: AVD thresholds diagram. The top part shows a trapezoidal graph of VDDA vs. Time (T). The rising edge crosses AVDrise, and the falling edge crosses AVDfall. The vertical distance between these two levels is labeled 'hysteresis'. The bottom part shows two digital signals: AVDO and AVDEN. AVDO is a pulse that starts at 'SW enable' and ends at 'SW disable'. AVDEN is a pulse that starts at 'SW enable' and ends at 'SW disable', with its duration matching AVDO. The label 'MSv46518V1' is in the bottom right corner.
Figure 40: AVD thresholds diagram. The top part shows a trapezoidal graph of VDDA vs. Time (T). The rising edge crosses AVDrise, and the falling edge crosses AVDfall. The vertical distance between these two levels is labeled 'hysteresis'. The bottom part shows two digital signals: AVDO and AVDEN. AVDO is a pulse that starts at 'SW enable' and ends at 'SW disable'. AVDEN is a pulse that starts at 'SW enable' and ends at 'SW disable', with its duration matching AVDO. The label 'MSv46518V1' is in the bottom right corner.

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

Figure 41: VBAT thresholds. A graph showing the relationship between VBAT voltage and temperature T. The top part of the graph shows a trapezoidal curve representing the VBAT threshold. The y-axis is labeled VBAT and the x-axis is labeled T. The curve has a rising slope, a flat top, and a falling slope. Two horizontal dashed lines are drawn across the curve, labeled VBATHigh (the upper one) and VBATlow (the lower one). Vertical dashed lines extend from the intersection points of these horizontal lines with the curve down to the bottom part of the graph. The bottom part of the graph shows two digital signal waveforms: VBATH and VBATL. VBATH is a high-level pulse that is active when the temperature is between the two threshold levels. VBATL is a low-level pulse that is active when the temperature is between the two threshold levels. The waveforms are synchronized with the temperature thresholds shown above.
Figure 41: VBAT thresholds. A graph showing the relationship between VBAT voltage and temperature T. The top part of the graph shows a trapezoidal curve representing the VBAT threshold. The y-axis is labeled VBAT and the x-axis is labeled T. The curve has a rising slope, a flat top, and a falling slope. Two horizontal dashed lines are drawn across the curve, labeled VBATHigh (the upper one) and VBATlow (the lower one). Vertical dashed lines extend from the intersection points of these horizontal lines with the curve down to the bottom part of the graph. The bottom part of the graph shows two digital signal waveforms: VBATH and VBATL. VBATH is a high-level pulse that is active when the temperature is between the two threshold levels. VBATL is a low-level pulse that is active when the temperature is between the two threshold levels. The waveforms are synchronized with the temperature thresholds shown above.

MSv46519V1

  1. 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

Figure 42: Temperature thresholds diagram. The graph shows Temperature (Y-axis) versus Time (T, X-axis). A trapezoidal line represents the temperature profile. Two horizontal dashed lines indicate thresholds: TEMPhigh (upper) and TEMPlow (lower). Below the graph, two step functions represent the system's response: TEMPH (high level) and TEMPL (low level). The TEMPH signal is high when the temperature is above TEMPhigh and low otherwise. The TEMPL signal is low when the temperature is below TEMPlow and high otherwise. The diagram illustrates hysteresis between the high and low thresholds.
Figure 42: Temperature thresholds diagram. The graph shows Temperature (Y-axis) versus Time (T, X-axis). A trapezoidal line represents the temperature profile. Two horizontal dashed lines indicate thresholds: TEMPhigh (upper) and TEMPlow (lower). Below the graph, two step functions represent the system's response: TEMPH (high level) and TEMPL (low level). The TEMPH signal is high when the temperature is above TEMPhigh and low otherwise. The TEMPL signal is low when the temperature is below TEMPlow and high otherwise. The diagram illustrates hysteresis between the high and low thresholds.

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:

At the PWR controller level, the Single 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:

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:


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 Single Cortex-A7 core MPU system supports the following Low-power modes:

Table 30. MPU Low-power mode summary

MPUProcessor0L2 cacheEntry(1)WakeupProcessor clockBus matrix clocks
CRunP0RunL2Run--ONON
CSleepP0StopWFEA MPU interrupt or event or resetOFF
L2StopSTPREQ_P[1:0] =not b'11
WFI
A MPU interrupt or resetON/OFF(2)
CStopSTPREQ_P[1:0] = b'11
MPU PDDS = 0
WFI
A MPU EXTI interrupt or re setOFF/ON(3)
STPREQ_P[1:0] = b'11
MPU CSTBYDIS = 1
WFI
CStandbySTPREQ_P[1:0] = b'11
MPU PDDS = 1
MPU CSTBYDIS = 0
WFI
A MPU EXTI interrupt or reset
via a MPU reset.

PWR MCU Low-power mode summary

Table 31. MCU Low-power mode summary

MCUEntryWakeupProcessor clockBus matrix clocks
CRun--ONON
ST logo
ST logo

Table 31. MCU Low-power mode summary (continued)

MCUEntryWakeupProcessor clockBus matrix clocks
CSleepArm Cortex-M4 SCR SLEEPDEEP = 0
WFE
Any MCU interrupt or event or resetOFFON/OFF(1)
Arm Cortex-M4 SCR SLEEPDEEP = 0
WFI or return from ISR
Any MCU interrupt or reset
CStopArm Cortex-M4 SCR SLEEPDEEP = 1
WFE
Any MCU EXTI interrupt or event or resetOFF/ON(2)
Arm Cortex-M4 SCR SLEEPDEEP = 1
WFI or return from ISR
Any MCU EXTI interrupt or reset
  1. 1. The MCU sub-system peripherals having a PERxLPEN bit operates accordingly.
  2. 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
CRunCSleepCStop
PDDS = 0
CStop
PDDS = 1
CSTBYDIS = 1
CStandby
MCUCRunRunRunRunRunRun
CSleepRunRunRunRunRun
CStop
PDDS = 0
RunRunStop
LP-Stop
LPLV-Stop
Stop
LP-Stop
LPLV-Stop
Stop
LP-Stop
LPLV-Stop
CStop
PDDS = 1
RunRunStop
LP-Stop
LPLV-Stop
StandbyStandby

Table 33. System Low-power mode summary

SystemMPUDDR(1)MCUWakeupSys-oscillators(2)hclk4PWR_LPPWR_ON
LPCFG = 0LPCFG = 1
RunCRun or CSleepActive / Auto refreshCRun or CSleepSee Table 34,
Table 31
ONON111
CStop or CStandbyAuto refresh
CRun or CSleepActive / Auto refreshCStopON/OFF(4)OFF0(5)10(5)
(3)
Stop
(LPDS = 0)
CStop or CStandbySelf refreshCStop
(3)
LP-Stop,
LPLV-Stop
(LPDS = 1)
0(5)0(5)0(5)
StandbyCStandby or
(CStop &
MPU PDDS = 1 & MPU
CSTBYDIS = 1)
Off / Self refreshCStop &
MCU PDDS = 1
WKUP pins, RTC
alarm, RTC
wakeup, RTC
tamper events, or
Application reset
(NRST, IWDG, ...)
OFFOFF0(6)0(6)0(6)
  1. 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.
  2. The sys-oscillators: HSI/HSE/CSI oscillators configured ON in RCC.
  3. 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)).
  1. 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)).
  2. 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.
  3. 6. A guaranteed minimum PWR_ON and PWR_LP pulse low time can be defined in PWR control register 3 (PWR_CR3) bits POPL.
Table 34. Functionalities depending on system operating mode(1)
PeripheralRunSleepStop and LP-StopLPLV-StopStandbyVBAT
-Wakeup capability-Wakeup capability-Wakeup capability
MPUY-R-R----
MCUY-R-R----
DBGOOOOR----
ROM memoryYYR-R-R-R
SYSRAMY(2)O(2)R-R----
SRAMx (x = 1:3)YO(2)R-R----
BKPSRAMO(2)O(2)R-R-O(3)--
RETSRAMO(2)O(2)R-R-O(3)--
DDRCTRLOOR-R----
QUADSPIOOR-R----
FMCOOR-R----
Backup RegistersYYR-R-R-R
Brown-out reset (BOR)YYYYYYYY-
Programmable Voltage Detector (PVD)OOOOOO---
Analog Voltage monitor (AVD)OOOOOO---
VBATH/VBATL monitoring--------O
TEMPH/TEMPL monitoringOOOOOOOOO
MDMAOOR-R----
DMAx (x=1,2)OOR-R----
DMAMUXOOR-R----
High Speed Internal (HSI)OOO(4)------
High Speed External (HSE)OO-------
Low Speed Internal (LSI)OOO-O-O--
Low Speed External (LSE)OOO-O-O-O
Multi-Speed Internal (CSI)OO-------
HSE CSS Clock Security SystemOO-------
LSE CSS Clock Security SystemOOOOOOOO-
RTC / Auto wakeupOOOOOOOOO
Number of Tamper pins333O3O3O3
USBH, OTGOOROR----
Table 34. Functionalities depending on system operating mode(1) (continued)
PeripheralRunSleepStop and LP-StopLPLV-StopStandbyVBAT
-Wakeup capability-Wakeup capability-Wakeup capability
SDMMCx (x=1:3)OOR-R----
CECOOROR----
ETHOOROR----
MDIOSOOOOR----
USARTx (x = 1:8)OOO(5)O(5)R----
I2Cx (x = 1:6)OOO(6)O(6)R----
SPIx (x=1:6)OOO(7)O(7)R----
SAIx (x = 1:4)OOR-R----
DFSDMOOR-R----
DCMIOOR-R----
HDPOOR-R----
LTDCOOR-R----
DAC1-2OOR-R----
ADC1-2OOR-R----
VREFBUFOOO------
DTSOORORO---
STGENOOR-R----
TIMx (x = 1:17)OOR-R----
LPTIMx (x = 1:5)OOOORO(8)---
IWDGx (x=1,2)OOOOOOOO-
WWDGOOR-R----
SysTick timerOOR-R----
RNGx (x = 1:2)OOR-R----
CRYPx(9) (x = 1:2)OOR-R----
HASHx (x = 1:2)OOR-R----
CRCx (x = 1:2)OOR-R----
IPCCOOR-R----
Table 34. Functionalities depending on system operating mode(1) (continued)
PeripheralRunSleepStop and LP-StopLPLV-StopStandbyVBAT
-Wakeup capability-Wakeup capability-Wakeup capability
HSEMOOR-R----
GPIOsOORORO-5 pins (10)-
  1. 1. 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.
  2. 2. The SRAM clock can be gated on or off.
  3. 3. The BKPSRAM and RETSRAM content can optionally be retained when enabled.
  4. 4. 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.
  5. 5. UART reception is functional in Stop mode, and generates a wakeup interrupt on Start, address match or received frame event.
  6. 6. I2C address detection is functional in Stop mode, and generates a wakeup interrupt in case of address match
  7. 7. SPI transmission and reception is functional in Stop mode, and generates a wakeup interrupt in case of FIFO thresholds, end of transfer, errors, ....
  8. 8. Only with LSE or LSI as kernel clock source.
  9. 9. Not present on all the product part numbers, see the related datasheet for more information.
  10. 10. 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 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

Power states and external regulator control diagram

MSv46521V1

Power states and external regulator control diagram

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 CSTBYDISMPU PDDSMCU PDDSSystem operation mode
x0xStop, LP-Stop, LPLV-Stop (with MPU in CStop)
010Stop, LP-Stop, LPLV-Stop (with MPU in CStandby)
011Standby (with MPU in CStandby)
111Standby (with MPU in CStop)

Figure 44. Power control modes detailed state diagram

Figure 44: Power control modes detailed state diagram showing state transitions between Run, Stop, LP-Stop, LPLV-Stop, and Standby modes with CPU sub-system states (MPU, MCU), Bus matrix modes (AXI, AHB), and DDR memory states.

Detailed state diagram illustrating transitions between power modes: Run, Stop / LP-Stop / LPLV-Stop, and Standby.

MSv46525V2

Figure 44: Power control modes detailed state diagram showing state transitions between Run, Stop, LP-Stop, LPLV-Stop, and Standby modes with CPU sub-system states (MPU, MCU), Bus matrix modes (AXI, AHB), and DDR memory states.
  1. 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. 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:

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 modeMPU modeMCU modeSBFSBFMPUSTOPFComment
RunCRun / CStopCRun / CStop000System contents retained
CStandby010
Stop
LP-Stop
LPLV-Stop
CStopCStop001System contents retained, clock system stopped.
CStandby011
CStandby110
StandbyCStandby110System contents lost
VBAT(1)n.a.n.a.000System 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.

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:

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.

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 modeDescription
Mode entryWFI (Wait for Interrupt) while:
WFE (Wait for Event) while:
  • – MPU GIC interrupts and events cleared.
Mode exitIf WFI was used for entry:If WFE was used for entry:
Wakeup latencyNone

Table 38. MCU CSleep

CSleep modeDescription
Mode entryWFI (Wait for Interrupt) or WFE (Wait for Event) while:
  • – SLEEPDEEP = 0 (Refer to the Cortex®-M4 System Control register.)
  • – MCU NVIC interrupts and events cleared.
On return from ISR while:
  • – SLEEPDEEP = 0 and
  • – SLEEPONEXIT = 1 (Refer to the Cortex®-M4 System Control register.)
  • – MCU NVIC interrupts and events cleared.

Table 38. MCU CSleep (continued)

CSleep modeDescription
Mode exitIf 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 latencyNone

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,

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 modeDescription
Mode entryWFI (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 exitEXTI Interrupt enabled in GIC: Refer to Section 20.2: GIC Interrupts, for the peripherals which are not stopped.
Wakeup latencyEXTI and RCC wakeup synchronization (see Section 10: Reset and clock control (RCC)).

Table 40. MCU CStop

CStop modeDescription
Mode entryWFI (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 latencyEXTI and RCC wakeup synchronization (see Section 10: Reset and clock control (RCC)).

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 modeDescription
Mode entryWFI (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 exitEXTI Interrupt enabled in GIC: refer to Section 20.2: GIC Interrupts, for peripheral which are not stopped.
Wakeup latencyEXTI 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:

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 modeDescription
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 Stop

Table 42. Stop (continued)

Stop modeDescription
Mode exit– On an EXTI wakeup.
Wakeup latencyClocks 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 modeDescription
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 latencyClocks 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 modeDescription
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 low power stop
  • – LVDS selects LPLV-Stop
Mode exit
  • – WKUP pins, RTC alarm (Alarm A and Alarm B), RTC wakeup, tamper event, time stamp event, Application reset (NRST, IWDG, ...).
Wakeup latency
  • Clocks restored, see RCC for more information.
  • + LPLV-Stop timeout (external regulator to restore Run mode operating supply level)
  • + EXTI and RCC wakeup synchronization.

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:

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 modeDescription
Mode entry
  • – The MPU sub-system is in CStandby or CStop and MCU sub-system is in CStop mode or HOLD_BOOT, and there is no active EXTI wakeup source.
  • – All PDDS bits select Standby.
  • – All WKUPF bits in Power Control/Status register (PWR_WKUPFR) are cleared.
  • – All RTC wakeup events are cleared.
Mode exit
  • – WKUP pins, RTC alarm (Alarm A and Alarm B), RTC wakeup, tamper event, time stamp event, application reset (such as NRST, IWDG(1)).
Wakeup latencySystem 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:

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

Block diagram showing the multiplexing of PWR_ON and PWR_LP pins. PWR_ON and PWR_LP pins are connected to a multiplexer. The multiplexer output is connected to an AND gate and a Minimum pulse width block. The AND gate output is connected to pwr_onlp and pwr_lp(1). The Minimum pulse width block output is connected to pwr_on and POPL. The LPCFG pin is connected to the AND gate.

The diagram illustrates the multiplexing logic for PWR_ON and PWR_LP pins. PWR_ON and PWR_LP pins are connected to a multiplexer. The multiplexer output is connected to an AND gate and a Minimum pulse width block. The AND gate output is connected to pwr_onlp and pwr_lp(1). The Minimum pulse width block output is connected to pwr_on and POPL. The LPCFG pin is connected to the AND gate.

Block diagram showing the multiplexing of PWR_ON and PWR_LP pins. PWR_ON and PWR_LP pins are connected to a multiplexer. The multiplexer output is connected to an AND gate and a Minimum pulse width block. The AND gate output is connected to pwr_onlp and pwr_lp(1). The Minimum pulse width block output is connected to pwr_on and POPL. The LPCFG pin is connected to the AND gate.

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:

Other status flag associated with Stop and Standby modes and monitoring functions are also available, see Table 46:

Table 46. PWR status flags

Status FlagDescriptionInterruptClear through
STOPFExit from Stop modeWakeup from Stop mode eventsCSSF
SBF(1)Exit from Standby modeWakeup from Standby events.CSSF

Table 46. PWR status flags (continued)

Status FlagDescriptionInterruptClear through
SBFMPU(1)MPU exit CStandby modeWakeup from CStandby, events.CSSF
WKUPF[6:1]Wakeup flagsMPU and MCU wakeup from Standby and Stop events.WKUPC[6:1]
PVDOProgrammable voltage detectorinterrupt via EXTIn.a.
AVDOAnalog voltage detectorinterrupt via EXTIn.a.
TEMPL, TEMPHTemperature monitoringinterrupt via EXTIn.a.
BRRDYBackup regulator readyno associated interruptn.a.
RRRDYRetention regulator readyno associated interruptn.a.
USB33RDYUSB FS 3V3 supply readyno associated interruptn.a.
REG18RDYRegulator 1V8 supply readyno associated interruptn.a.
REG11RDYRegulator 1V1 supply readyno associated interruptn.a.

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:

The PWR TrustZone security enables write access security for all features simultaneously.

Table 47. Register security overview

Register nameAccess typeSecurity(1)
PWR_CR1RWWrite security
PWR_CSR1RNon secure
PWR_CR2RWWrite secure
PWR_CR3RWWrite secure

Table 47. Register security overview (continued)

Register nameAccess typeSecurity(1)
PWR_MPUCRRWWrite secure
PWR_MCUCRRWNon secure
PWR_WKUPCRRWWrite secure(2)
PWR_WKUPFRRNon secure
PWR_MPUWKUPENRRWWrite secure
PWR_MCUWKUPENRRWNon secure
PWR_VERRNon secure
PWR_IDRNon secure
PWR_SIDRNon secure
  1. 1. Security is enabled with the RCC TZEN register bit.
  2. 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.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ALS[1:0]rwAVDEN
rwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.DBPPLS[2:0]PVDENRes.LVDSLPCFGLPDS
rwrwrwrwrwrwrwrw

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.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AVDO
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PVDORes.Res.Res.Res.
r

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.85: 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.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.TEMPHTEMPLRes.Res.Res.Res.RR RDYBRRDY
rrrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MON ENRes.Res.RRENBREN
rwrwrw

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.

31302928272625242322212019181716
REG11RDYREG11ENREG18RDYREG18ENRes.USB33RDYRes.USB33DENRes.Res.POPL[4:0]Res.
rrwrrwrrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.DDRR
ETEN
DDRS
RDIS
DDRS
REN
VBRsVBERes.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrw

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 DDRSREN 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.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
STAND
BYWFI
L2
Res.Res.Res.Res.Res.CSSFRes.SBFMP
U
SBFSTOPFRes.CSTBY
DIS
Res.Res.PDDS
rrwrrrrwrw

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.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
DEEPSLEEPRes.Res.Res.Res.Res.CSSFRes.Res.SBFSTOPFRes.Res.Res.Res.PDDS
rrwrrrw

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.

31302928272625242322212019181716
Res.Res.Res.Res.WKUPPUPD6
[1:0]
WKUPPUPD5
[1:0]
WKUPPUPD4
[1:0]
WKUPPUPD3
[1:0]
WKUPPUPD2
[1:0]
WKUPPUPD1
[1:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
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
rwrwrwrwrwrwrc_w1rc_w1rc_w1rc_w1rc_w1rc_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, ...)

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WKUP
F6
WKUP
F5
WKUP
F4
WKUP
F3
WKUP
F2
WKUP
F1
rrrrrr

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)

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.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WKUP
EN6
WKUP
EN5
WKUP
EN4
WKUP
EN3
WKUP
EN2
WKUP
EN1
rwrwrwrwrwrw

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.

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.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WKUP
EN6
WKUP
EN5
WKUP
EN4
WKUP
EN3
WKUP
EN2
WKUP
EN1
rwrwrwrwrwrw

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

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MAJREV[3:0]MINREV[3:0]
rrrrrrrr

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

31302928272625242322212019181716
IPID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
IPID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 IPID[31:0]: IP identification

9.11.13 PWR size ID register (PWR_SID)

Address offset: 0x3FC

Reset value: 0xA3C5 DD01

31302928272625242322212019181716
SID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 SID[31:0]: Size identification

9.11.14 PWR register map

Table 48. Power control register map and reset values

OffsetRegister313029282726252423222120191817161514131211109876543210
0x000PWR_CR1ResResResResResResResResResResResResResAL[1:0]AVDENAVDENResResResResResResResDBPPLS[2:0]PVDENResLVDSLPCFGLPDS
Reset value000000000000
0x004PWR_CSR1ResResResResResResResResResResResResResResAVDOAVDOResResResResResResResResResResPVDOResResResResRes
Reset value000
0x008PWR_CR2ResResResResResResResResTEMPHTEMPLResResResResRRRDYBRRDYResResResResResResResResResResMONENResResRRENBREN
Reset value0000000
0x00CPWR_CR3REG11RDYREG11ENREG18RDYREG18ENResUSB33RDYResUSB33DENResResPOPL[4:0]ResResResResResDDRRETEDDRSRDISDDRSRENVBRVBEResResResResResResRes
Reset value0101000000000000

Table 48. Power control register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x010PWR_MPUCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STANDBYWFIL2Res.Res.Res.Res.Res.CSSFRes.SBFMPUSBFSTOPFRes.CSTBYDISRes.Res.PDDS
Reset value0000000
0x014PWR_MCUCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DEEPSLEEPRes.Res.Res.Res.Res.CSSFRes.Res.SBFSTOPFRes.Res.Res.Res.PDDS
Reset value00000
0x018-0x01CReservedRes.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.
0x020PWR_WKUPCRRes.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.WKUPP6WKUPP5WKUPP4WKUPP3WKUPP2WKUPP1Res.Res.Res.WKUPC6WKUPC5WKUPC4WKUPC3WKUPC2WKUPC1
Reset value000000000000000000
0x024PWR_WKUPFRRes.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.WKUPF6WKUPF5WKUPF4WKUPF3WKUPF2WKUPF1
Reset value000000
0x028PWR_MPUWKUPENRRes.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.WKUPEN6WKUPEN5WKUPEN4WKUPEN3WKUPEN2WKUPEN1
Reset value000000
0x02CPWR_MCUWKUPENRRes.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.WKUPEN6WKUPEN5WKUPEN4WKUPEN3WKUPEN2WKUPEN1
Reset value000000
0x030-0x3F0ReservedRes.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.
0x3F4PWR_VERRes.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 value00010001
0x3F8PWR_IDIPID[31:0]
Reset value00000000000000001000000000000001
0x3FCPWR_SIDSID[31:0]
Reset value10100011110001011101110100000001
Refer to Section 2.5 on page 149 for the register boundary addresses.