19. 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 VDDCPU and VDDCORE supply domains according to the operating modes. In the whole document:

19.1 PWR main features

19.2 PWR block diagram

The figure below gives a PWR simplified view and the key signals exchanged with the other blocks.

Figure 50. Power control block diagram

Block diagram of the Power control (PWR) system showing its internal components and external interfaces with the RCC, CPU1, CPU2, EXTI1/2, and various power supply pins.

The diagram illustrates the Power control (PWR) block and its interactions with other system components. The PWR block contains several sub-modules:

The RCC block manages system clocks and resets, receiving signals from the PWR block and providing clock signals (ck_mcuss) and wake-up signals to the CPU1 and CPU2 blocks. The EXTI1/2 block handles external interrupts and wake-up events from the EXTI1/2 pins, Wakeup block, and PVD/PVM block.

Block diagram of the Power control (PWR) system showing its internal components and external interfaces with the RCC, CPU1, CPU2, EXTI1/2, and various power supply pins.

MSv73127V2

19.2.1 PWR pin overview

The table below lists the PWR signals connected to pads or balls.

Table 85. PWR pin overview

Pin nameI/ODescription
VDDPowerMain I/O and \(V_{DD}\) domain supply input
VDDA18AONPowerMain analog supply input
VBATPowerBackup battery supply input
VDDCPUPowerCPU (Cortex-A35) domain supply
VDDCOREPowerCore domain supply
VDDA18ADCPowerADC analog supply
VDDIO1PowerIndependent I/O supply 1 (PE[5:0])
VDDIO2PowerIndependent I/O supply 2 (PE[15:6])
VDDIO3PowerIndependent I/O supply 3 (PD[11:0])
VDD33USBPowerUSB HS PHY IO 3.3 V supply input
VSSPowerMain ground
VSSAPowerAnalog ground
PWR_ONOutputCore supply enable output
PWR_LPOutputCore/CPU supply low-power Stop mode selection output
PWR_CPU_ONOutputCPU supply enable output
NRSTInput/outputApplication pad reset input/output.
PDR_ONInputUsed during STMicroelectronics production tests, must always be connected to \(V_{DDA18AON}\) in final application.

19.3 PWR power supplies

The system requires supply on VDD, VDDA18AON, VDDCPU and VDDCORE, and provides independent supplies for VDDA18ADC, VBAT, VDD33USB, VDDIO1, VDDIO2, VDDIO3, and VDDQDDR:

Note: Depending on the operating power supply range, some peripheral can be used with limited functionality and performance. For more details, refer to section “General operating conditions” in the device datasheet.

An external DDR memory must 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 can be used by the external DDR memory regulator to power down the DDR memory supply.

The figure below gives an overview of the power supply.

Figure 51. Power supply overview

Figure 51. Power supply overview block diagram showing various power domains including D1 domain (CPU1), D2 domain (CPU2, peripherals, RAM, EXTI1/2, system logic, MSI), VDD/retention domain (WKUP, IWDG1/2/3/4, BSEC, RIFSC, IAC, LSI), VSW/backup domain (Backup regulator, RETRAM, Backup RAM, LSE, RTC, AWU, tamper, backup registers, reset), and Analog domain (VREFBUF, ADCs). Also shows external supply pins such as VDDIO1, VDDIO2, VDDIO3, VDDQDDR, VDD18DDR, VDDA18USB, VDD33USB, VDDCSI, VDDA18CSI, VDDCPU, VDDCORE, VSS, VDDA18AON, VDDA18PLLx, V08CAP, VBAT, VDD, VDDA18ADC, VREF+, VREF-, VSSA, and PHY blocks DDR PHY, USB HS PHY1/2, CSI PHY.
Figure 51. Power supply overview block diagram showing various power domains including D1 domain (CPU1), D2 domain (CPU2, peripherals, RAM, EXTI1/2, system logic, MSI), VDD/retention domain (WKUP, IWDG1/2/3/4, BSEC, RIFSC, IAC, LSI), VSW/backup domain (Backup regulator, RETRAM, Backup RAM, LSE, RTC, AWU, tamper, backup registers, reset), and Analog domain (VREFBUF, ADCs). Also shows external supply pins such as VDDIO1, VDDIO2, VDDIO3, VDDQDDR, VDD18DDR, VDDA18USB, VDD33USB, VDDCSI, VDDA18CSI, VDDCPU, VDDCORE, VSS, VDDA18AON, VDDA18PLLx, V08CAP, VBAT, VDD, VDDA18ADC, VREF+, VREF-, VSSA, and PHY blocks DDR PHY, USB HS PHY1/2, CSI PHY.

MSv73129V1

19.3.1 PWR CPU and CORE domains

The \(V_{DDCPU}\) CPU domain supply is provided from an external regulator. The \(V_{DDCPU}\) supplies the Cortex-A35 platform (CPU1). This domain is called D1 domain.

The \(V_{DDCORE}\) core domain supply is provided from an external regulator. The \(V_{DDCORE}\) supplies all the digital circuitries (including the Cortex-M33) except for the backup, retention when in Standby. This domain is called system D2 domain.

Following a \(V_{DD}\) power-on reset, the external regulators are enabled via PWR_ON or PWR_CPU_ON, and supply the \(V_{DDCORE}\) and \(V_{DDCPU}\).

The \(V_{DDCPU}\) and \(V_{DDCORE}\) supplies require special explanation. To save power, these power voltages are changed during the run time of the use cases. The target voltage levels of the \(V_{DDCPU}\) can vary for different modes according to the use cases. The modes are the nominal and the overdrive modes. The voltage levels of these supplies can be reduced in low-power modes (low voltage mode) or switched off.

Table 86. \(V_{DDCPU}/V_{DDCORE}\) voltage levels (for reference only)

Power railTyp value (V)Description
\(V_{DDCPU}\)0.9Overdrive mode
0.8Nominal mode
0.67Low-voltage mode
\(V_{DDCORE}\)0.8Nominal mode
0.67Low-voltage mode

The external regulators can operate in different modes (main, low-power, off) which are used depending on the system operating modes (Run, Stop, LP-Stop, and Standby):

The PWR_CPU_ON is kept set high. PWR_ON is also kept set high, or follows PWR_LP as selected by LPCFG_D2 in PWR_D2CR. PWR_LP is cleared to low.

When the low-voltage Deepsleep mode is enabled by LVDS_D1 in PWR_CPU1R and by LVDS_D2 in PWR_CPU2R, the \(V_{DDCORE}\) and \(V_{DDCPU}\) supply level can be lowered during LPLV-Stop mode.

19.3.2 PWR supply system startup sequence

The system startup sequence is detailed below and shown in Figure 52:

  1. 1. From power-on, the POR monitors \(V_{DD}\) and \(V_{DDA18AON}\) supplies.
    Once these supplies are above the POR threshold level, the external voltage regulators providing the \(V_{DDCORE}\) supply is enabled via the PWR_ON signal.
  2. 2. As long as \(V_{DDCORE}\) is below the vddcore_ok threshold, the system is kept in reset.
  3. 3. Once \(V_{DDCORE}\) supply is above the vddcore_ok threshold level, the system is taken out of reset, where after the HSI oscillator is enabled. The external voltage regulator providing the \(V_{DDCPU}\) supply is enabled via PWR_CPU_ON signal.
  4. 4. Once the oscillator is stable, the hardware initializes the system (option bytes loading), after which Run1 mode is entered if the \(V_{DDCPU}\) supply is above the vddcpu_ok threshold.

Figure 52. Device startup supply sequence.

Timing diagram for device startup supply sequence showing the relationship between VDDA18AON, VDD, nrst_por, PWR_ON / PWR_LP, VDDCORE, vddcore_ok, PWR_CPU_ON, VDDCPU, and ck_sys (hsi) signals across various system states.

The diagram illustrates the device startup supply sequence. It shows the timing of various signals relative to system states: Power down or VBAT mode, POR, System reset, Wait oscillator, Hardware system init, and Run1.

Vertical dashed lines mark the transitions between states. The states are labeled at the bottom: Power down or VBAT mode, POR, System reset, Wait oscillator, Hardware system init, and Run1. The diagram is labeled MSv73125V1.

Timing diagram for device startup supply sequence showing the relationship between VDDA18AON, VDD, nrst_por, PWR_ON / PWR_LP, VDDCORE, vddcore_ok, PWR_CPU_ON, VDDCPU, and ck_sys (hsi) signals across various system states.

19.3.3 PWR supply Run2 sequence

The system Run2 sequence is detailed below and shown in Figure 53.

  1. 1. When entering Run2 mode, all CPU1 clocks are stopped.
  2. 2. The PWR_CPU_ON signals request the VDDCPU supply to be powered off. If needed, a guaranteed minimum PWR_CPU_ON pulse low time can be defined by POPL_D1 in PWR_D1CR. The PWR_ON and PWR_LP are kept high. The external regulator supplying the VDDCORE remains in Main mode.
  3. 3. On a CPU1 wake-up event, the external regulator supplying VDDCPU is requested, via the PWR_CPU_ON signal. As long as VDDCPU is below the vddcpu_ok threshold, the system is kept in Run2 mode. When a wake-up event occurs before the guaranteed minimum PWR_CPU_ON pulse low time, the external regulator is only requested to switch on the VDDCPU supply till after the minimum PWR_CPU_ON pulse low time.
  4. 4. Once VDDCPU supply is above the vddcpu_ok threshold level, the CPU1 clocks are enabled and the system enters Run1 mode.

Figure 53. Device Run2 supply sequence.

Timing diagram for Device Run2 supply sequence showing signals: PWR_CPU_ON, PWR_CPU_LP, VDDCPU, vddcpu_ok, PWR_ON (1), PWR_LP (1), VDDCORE (vddcore), vddcore_ok (1), Operating mode, and ck_cpu1. The sequence transitions from Run1 to Run2, then Wait REG, and back to Run1. VDDCPU drops to 0V and then rises to a threshold. ck_cpu1 stops during Run2 and Wait REG.

The diagram illustrates the Device Run2 supply sequence. It shows the timing relationships between several signals:

Vertical dashed red lines mark the transitions between the four phases: (1) Run1, (2) Run2, (3) Wait REG, and (4) Run1. The label MSv67419V2 is present in the bottom right corner of the diagram area.

Timing diagram for Device Run2 supply sequence showing signals: PWR_CPU_ON, PWR_CPU_LP, VDDCPU, vddcpu_ok, PWR_ON (1), PWR_LP (1), VDDCORE (vddcore), vddcore_ok (1), Operating mode, and ck_cpu1. The sequence transitions from Run1 to Run2, then Wait REG, and back to Run1. VDDCPU drops to 0V and then rises to a threshold. ck_cpu1 stops during Run2 and Wait REG.

19.3.4 PWR supply Stop sequences

Stop1

The system Stop1 sequence is detailed below and shown in Figure 54. Stop1 mode is entered when selected by LPDS_D1 in PWR_CPU1CR, and by LPDS_D2 in PWR_CPU2CR:

  1. 1. When entering Stop1 mode, the ck_mcuss (ck_sys) is stopped.
  2. 2. In Stop1 mode, the PWR_ON, PWR_CPU_ON, but also PWR_LP are kept high. The external regulators supplying the VDDCORE and VDDCPU remain in Main mode.
  3. 3. On a wake-up event, the selected oscillators are enabled.
  4. 4. Once the oscillator is stable, the system enters Run1 mode.
Figure 54. Device low-power Stop1 supply sequence Timing diagram for Device low-power Stop1 supply sequence. Signals shown: PWR_CPU_ON (1), PWR_CPU_LP (1), VDDCPU (vddcpu), vddcpu_ok (1), PWR_ON (1), PWR_LP (1), VDDCORE (vddcore), vddcore_ok (1), Operating mode, and ck_sys. Operating mode phases: (1) Run1, (2) Stop1, (3) Wait oscillator, (4) Run1. MSv67423V1

MSv67423V1

Timing diagram for Device low-power Stop1 supply sequence. Signals shown: PWR_CPU_ON (1), PWR_CPU_LP (1), VDDCPU (vddcpu), vddcpu_ok (1), PWR_ON (1), PWR_LP (1), VDDCORE (vddcore), vddcore_ok (1), Operating mode, and ck_sys. Operating mode phases: (1) Run1, (2) Stop1, (3) Wait oscillator, (4) Run1. MSv67423V1

Stop2

The PWR_CPU_ON signal can request the VDDCPU supply to be powered off when D1 Standby mode is selected by PDDS_D1 in PWR_CPU1CR. This mode is called Stop2. The system Stop2 mode sequence is detailed below and shown in Figure 55:

  1. 1. When entering Stop2 mode, the ck_mcuss (ck_sys) is stopped.
  2. 2. The PWR_CPU_ON signal requests the VDDCPU supply to be powered off. If needed, a guaranteed minimum PWR_CPU_ON pulse low time can be defined by POPL_D1 in PWR_D1CR. PWR_ON and PWR_LP are kept high. The external regulator supplying the VDDCORE remains in main mode.
  3. 3. On a CPU1 wake-up event, the external voltage regulators providing the VDDCPU supply are enabled via the PWR_CPU_ON signal, and the selected oscillators are enabled.
  4. 4. Once the oscillator is stable, and as long as the VDDCPU is below the vddcpu_ok threshold, the CORE domain is kept under system reset.
  5. 5. Once the VDDCPU is above the vddcpu_ok threshold level, the system enters Run1 mode.

Figure 55. Device low-power Stop2 supply sequence

Timing diagram for Device low-power Stop2 supply sequence. The diagram shows the following signals over time: PWR_CPU_ON (high to low to high), PWR_CPU_LP (high to low to high), VDDCPU (low to high, crossing vddcpu_ok threshold), vddcpu_ok (low to high), PWR_ON (1) (high), PWR_LP (1) (high), VDDCORE (vddcore) (high), vddcore_ok (1) (high), Operating mode (Run1, Stop2, Wait oscillator, Wait REG, Run1), and ck_sys (active during Run1 phases). The sequence is divided into five phases: (1) Run1, (2) Stop2, (3) Wait oscillator, (4) Wait REG, and (5) Run1. The vddcpu_ok signal transitions from low to high after the Stop2 phase, and the ck_sys signal resumes after the Wait REG phase.

MSv67424V1

Timing diagram for Device low-power Stop2 supply sequence. The diagram shows the following signals over time: PWR_CPU_ON (high to low to high), PWR_CPU_LP (high to low to high), VDDCPU (low to high, crossing vddcpu_ok threshold), vddcpu_ok (low to high), PWR_ON (1) (high), PWR_LP (1) (high), VDDCORE (vddcore) (high), vddcore_ok (1) (high), Operating mode (Run1, Stop2, Wait oscillator, Wait REG, Run1), and ck_sys (active during Run1 phases). The sequence is divided into five phases: (1) Run1, (2) Stop2, (3) Wait oscillator, (4) Wait REG, and (5) Run1. The vddcpu_ok signal transitions from low to high after the Stop2 phase, and the ck_sys signal resumes after the Wait REG phase.

19.3.5 PWR supply LP/LPV-Stop sequences

LP-Stop1/LPV_Stop1

The system LP-Stop1 mode sequence is detailed below and shown in Figure 56. LP-Stop1 mode is entered when selected by LPDS_D1 in PWR_CPU1CR and by LPDS_D2 in PWR_CPU2CR:

  1. 1. When entering LP-Stop1 mode, the ck_mcuss (ck_sys) is stopped.
  2. 2. In LP-Stop1 mode, PWR_CPU_ON and PWR_ON are either kept high (pwr_on) or follow the PWR_LP as selected with LPCFG_D1 in PWR_CPU1CR and LPCFG_D2 in PWR_CPU2CR. The PWR_LP is de-asserted, signaling LP-Stop1. After that, the external regulators can enter low-power mode.
    In LPLV-Stop1 (LVDS bits set), \(V_{DDCPU}\) and \(V_{DDCORE}\) supplies can be lowered.
  3. 3. On a wake-up event, the external regulators are taken out of low-power mode via PWR_LP, and the selected oscillators are enabled.
    In LPLV-Stop1 mode, a delay \(t_{LPLVDLY}\) (defined by LPLVDLY_D2 in PWR_D2CR) is started to wait for \(V_{DDCPU}\) and \(V_{DDCORE}\) to reach the Run mode operating supply level. After this delay, the oscillators are enabled.
  4. 4. Once the oscillator is stable, a delay is timed out to allow the external regulator to switch to Main mode.
  5. 5. After the delay timeout, the system enters Run1 mode.

Figure 56. Device low-power LP-Stop1/LPLV-Stop1 supply sequence

Timing diagram for LP-Stop1/LPLV-Stop1 supply sequence showing signals PWR_CPU_ON, VDDCPU, vddcpu_ok (1), PWR_ON, PWR_LP, VDDCORE, vddcore_ok (1), Operating mode, and ck_sys over five phases: (1) Run1, (2) LP-Stop1/LPLV-Stop1, (3) Wait oscillator, (4) Wait both REGs, and (5) Run1.

The diagram illustrates the supply sequence for LP-Stop1 and LPLV-Stop1 modes. It shows the following signals and their transitions:

Note: In LPLV-Stop1 (green dashed lines) mode, to be able to lower VDDCORE and VDDCPU supplies, the LVDS bits must be set.

MSv67417V2

Timing diagram for LP-Stop1/LPLV-Stop1 supply sequence showing signals PWR_CPU_ON, VDDCPU, vddcpu_ok (1), PWR_ON, PWR_LP, VDDCORE, vddcore_ok (1), Operating mode, and ck_sys over five phases: (1) Run1, (2) LP-Stop1/LPLV-Stop1, (3) Wait oscillator, (4) Wait both REGs, and (5) Run1.

LP-Stop2/LPLV-Stop2

The PWR_CPU_ON signal can request the VDDCPU supply to be powered off when D1 Standby mode is selected by PDDS_D1 in PWR_CPU1CR. This mode is called LP-Stop2. The system LP-Stop2 mode sequence is detailed below and shown in Figure 57:

  1. 1. When entering LP-Stop2 mode, the ck_mcuss (ck_sys) is stopped.
  2. 2. The PWR_CPU_ON signal requests the VDDCPU supply to be powered off. If needed, a guaranteed minimum PWR_CPU_ON pulse low time can be defined by POPL_D1 in PWR_D1CR. The PWR_ON is either kept high (pwr_on) or follows the PWR_LP (pwr_onlp) as selected with LPCFG_D2 in PWR_CPU2CR. The PWR_LP is asserted, signaling LP-Stop2. After that, the external regulator can enter low-power mode.
  3. 3. On a CPU1 wake-up event, the external regulator supplying VDDCORE is taken out of low-power mode via PWR_LP signal. The selected oscillators are enabled.
    In LPLV-Stop2 mode, a delay tLPLVDLY (defined by LPLVDLY_D2 in PWR_D2CR) is started to wait for VDDCORE to reach the Run mode operating supply level. After this delay, the oscillators are enabled.
  4. 4. Once the oscillator is stable, the external Voltage regulator providing the VDDCPU supply is enabled via the PWR_CPU_ON signal.
  5. 5. After the delay timeout, and once VDDCPU is above the vddcpu_ok threshold, the system enters Run1 mode.

Note: If the CPU1 wake-up event is generated from one of the WKUP pins, the PWR_CPU_ON will rise at same time than PWR_LP. The vddcpu_ok delay is then running concurrently than the LPLVDLY and oscillator wait delays, which mean the overall wakeup time to RUN1 is slightly better.

Figure 57. Device low-power LP-Stop2 supply sequence

Timing diagram for device low-power LP-Stop2 supply sequence. It shows signals PWR_CPU_ON, VDDCPU, vddcpu_ok, PWR_ON, PWR_LP, VDDCORE, vddcore_ok (1), Operating mode, and ck_sys. The sequence is divided into five phases: (1) Run1, (2) LP-Stop2 / LPLV-Stop2, (3) Wait LPLVDLY delay, (4) Wait oscillator, and (5) Wait REG. Green dashed lines indicate low voltage states for VDDCORE and PWR_ON during the LP-Stop2 phase. A note at the bottom explains that in LPLV-Stop2 mode, LVDS bits must be set to lower VDDCORE and VDDCPU supplies.

Note: In LPLV-Stop2 (green dashed lines) mode, to be able to lower \(V_{DDCORE}\) and \(V_{DDCPU}\) supplies, the LVDS bits must be set.

MSv73124V1

Timing diagram for device low-power LP-Stop2 supply sequence. It shows signals PWR_CPU_ON, VDDCPU, vddcpu_ok, PWR_ON, PWR_LP, VDDCORE, vddcore_ok (1), Operating mode, and ck_sys. The sequence is divided into five phases: (1) Run1, (2) LP-Stop2 / LPLV-Stop2, (3) Wait LPLVDLY delay, (4) Wait oscillator, and (5) Wait REG. Green dashed lines indicate low voltage states for VDDCORE and PWR_ON during the LP-Stop2 phase. A note at the bottom explains that in LPLV-Stop2 mode, LVDS bits must be set to lower VDDCORE and VDDCPU supplies.

19.3.6 PWR supply Standby sequence

The system Standby mode sequence is detailed below and shown in Figure 58:

  1. 1. When entering Standby mode, the PWR_CPU_ON signal requests the \(V_{DDCPU}\) supply to be powered off, after a delay defined by PODH_D2 in PWR_D2CR. If needed, a guaranteed minimum PWR_ON/PWR_CPU_ON pulse low time can be defined by POPL_D1/2 in PWR_D1CR/PWR_D2CR.
  2. 2. On a wake-up event, the external regulator supplying the \(V_{DDCORE}\) is requested via the PWR_ON signals. As long as \(V_{DDCORE}\) is below the vddcore_ok threshold, the system is kept in Standby mode, and \(V_{DDCPU}\) is not requested. When a wake-up event occurs before the guaranteed minimum PWR_ON pulse low time, the external regulator is only requested to switch on the \(V_{DDCORE}\) supply till after the minimum PWR_ON pulse low time.
  3. 3. Once \(V_{DDCORE}\) is above the vddcore_ok threshold level, the HSI oscillator is enabled. The PWR_CPU_ON signal requests the \(V_{DDCPU}\) supply to be powered on.
  4. 4. Once the oscillator is stable, and as long as the \(V_{DDCPU}\) supply is requested and below the vddcpu_ok threshold, the system does not enter Run1 mode.

Figure 58. Device Standby mode power control

Timing diagram for device standby mode power control showing signals PWR_CPU_ON, VDDCPU, PWR_ON, PWR_LP, VDDCORE, vddcore_ok, Operating mode, and ck_sys. The diagram shows the system transitioning from Run1 to Standby, then to POR, and finally to a state waiting for oscillator and vddcpu_ok before returning to Run1.

The diagram illustrates the power control sequence for device standby mode. It shows the following signals and their transitions:

MSv67420V2

Timing diagram for device standby mode power control showing signals PWR_CPU_ON, VDDCPU, PWR_ON, PWR_LP, VDDCORE, vddcore_ok, Operating mode, and ck_sys. The diagram shows the system transitioning from Run1 to Standby, then to POR, and finally to a state waiting for oscillator and vddcpu_ok before returning to Run1.

On a CPU2 wake-up event, and if CPU2 standalone wake-up is allowed by configuration, only the external regulator supplying VDDCORE is switched on via the PWR_ON signals.

The system enters in Run2 mode once the oscillator is stable (as shown in the figure below).

Figure 59. Device Standby mode power control CPU2 wake-up alone

Timing diagram for device standby mode power control during a CPU2 wake-up alone. It shows signals PWR_CPU_ON, VDDCPU, PWR_ON, PWR_LP, VDDCORE, vddcore_ok, Operating mode, and ck_sys. The system transitions from Run1 to Standby, then to POR, and finally to Run2 after the oscillator is stable.

The diagram illustrates the power control sequence for a CPU2 wake-up alone from standby mode. It shows the following signals and their transitions:

MSv67421V2

Timing diagram for device standby mode power control during a CPU2 wake-up alone. It shows signals PWR_CPU_ON, VDDCPU, PWR_ON, PWR_LP, VDDCORE, vddcore_ok, Operating mode, and ck_sys. The system transitions from Run1 to Standby, then to POR, and finally to Run2 after the oscillator is stable.

19.3.7 PWR supply \(V_{BAT}\) sequence from Standby

The system \(V_{BAT}\) mode sequence after Standby is detailed below and shown in Figure 60.

  1. 1. When in Standby mode, the device can be set in \(V_{BAT}\) mode by powering down \(V_{DD}\) and \(V_{DDA18AON}\) supplies. The PWR_ON and PWR_CPU_ON signals keep requesting \(V_{DDCORE}\) and \(V_{DDCPU}\) supplies to be powered off.
  2. 2. When powering down \(V_{DD}\), the device enters \(V_{BAT}\) mode. PWR_ON, PWR_CPU_ON, and PWR_LP signals become HiZ.

Figure 60. Device \(V_{BAT}\) mode power control

Timing diagram for Figure 60 showing the transition from Standby to VBAT mode. The diagram includes signals: VDD / VDDA18AON (decreasing), nrst_por (low pulse), PWR_ON / PWR_CPU_ON (becomes HiZ), PWR_LP (becomes HiZ), VDDCORE (0) / VDDCPU (0) (low), vddcore_ok (0) / vddcpu_ok (0) (low), Operating mode (transitioning from Standby to VBAT mode), and ck_sys (low). A vertical dashed red line marks the transition point. The diagram is labeled MSv73126V1.

The diagram illustrates the power control sequence for entering \(V_{BAT}\) mode from Standby. It shows the following signals over time:

The diagram is divided into two regions: (1) Standby and (2) \(V_{BAT}\) mode. A vertical dashed red line indicates the transition point. The diagram is labeled MSv73126V1.

Timing diagram for Figure 60 showing the transition from Standby to VBAT mode. The diagram includes signals: VDD / VDDA18AON (decreasing), nrst_por (low pulse), PWR_ON / PWR_CPU_ON (becomes HiZ), PWR_LP (becomes HiZ), VDDCORE (0) / VDDCPU (0) (low), vddcore_ok (0) / vddcpu_ok (0) (low), Operating mode (transitioning from Standby to VBAT mode), and ck_sys (low). A vertical dashed red line marks the transition point. The diagram is labeled MSv73126V1.

When \(V_{BAT}\) mode is entered from Run1, Stop, or LP-Stop mode, \(V_{DD}\), \(V_{DDA18AON}\), \(V_{DDCORE}\), and \(V_{DDCPU}\) supplies must all be powered down.

19.3.8 PWR \(V_{SW}\) domain

To retain the content of the backup domain (RTC, backup registers, LSE and backup ram) when \(V_{DD}\) and \(V_{DDA18AON}\) are turned off, the \(V_{BAT}\) pin can be connected to an optional standby voltage supplied from a battery or an another source.

Switching to the \(V_{BAT}\) supply (\(V_{BAT}\) mode) is controlled by the power-down reset (PDR) embedded in the reset block, monitoring the \(V_{DD}\) and \(V_{DDA18AON}\) supplies.

Warning: During \(t_{RSTTEMPO}\) (temporization at \(V_{DD}\) and \(V_{DDA18AON}\) 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 VDD and the power switch (VBAT).
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.

Figure 61. VSW / Backup domain

Block diagram of the VSW / Backup domain. The diagram shows the power supply paths and internal components. VBAT, VDD, and VDDCORE are external inputs. VBAT and VDD are connected to a switch that selects between them, with VDD taking precedence. This switch output is labeled VSW18. VSW18 is the main power source for the 'VSW/backup domain'. Inside this domain, there is a 'Backup regulator' that can also be powered by VDDCORE. The domain contains 'Retention RAM', 'Backup RAM', and 'RTC/TAMP' / 'LSE' blocks. A 'Backup interface' block, powered by VDDCORE, has bidirectional communication with the RAMs and RTC/TAMP/LSE. 'Backup I/Os' are also part of the domain. The diagram is labeled MSv73123V1.
Block diagram of the VSW / Backup domain. The diagram shows the power supply paths and internal components. VBAT, VDD, and VDDCORE are external inputs. VBAT and VDD are connected to a switch that selects between them, with VDD taking precedence. This switch output is labeled VSW18. VSW18 is the main power source for the 'VSW/backup domain'. Inside this domain, there is a 'Backup regulator' that can also be powered by VDDCORE. The domain contains 'Retention RAM', 'Backup RAM', and 'RTC/TAMP' / 'LSE' blocks. A 'Backup interface' block, powered by VDDCORE, has bidirectional communication with the RAMs and RTC/TAMP/LSE. 'Backup I/Os' are also part of the domain. The diagram is labeled MSv73123V1.

When the VDD and VDDA18AON supplies are present, the backup domain is supplied from VDD. This allows VBAT power supply battery life time optimization.

If no external backup battery is used in the application, it is recommended to connect VBAT externally to VDD through a 100 nF external ceramic capacitor.

Whenever VDD and VDDA18AON supplies are present and above the PDR threshold, the backup domain is supplied by VDD. When VDD or VDDA18AON supply is not present and a supply is present on VBAT, the backup domain is supplied by VBAT.

The table below shows the functions available in Backup domain when the core low-power supply is powered off.

Table 87. VSW domain function when VDD and VDDA18AON are presents
Pin nameGPIOLSERTCTAMPER_OUT(1)TAMPER_IN(1)
PC3, PC4, PC5, PF6, PF7----X(2)
PC13X-X(3)X-
PC14, PC15XX---
PI8X-X(4)XX
PZ0, PZ1, PZ3X--X-
  1. 1. When configured by the RTC as tamper pin.
  2. 2. It is the only function when in VSW domain.
  3. 3. See Table 622: RTC pin PC13 configuration.
  4. 4. See Table 623: PI8 configuration.

19.3.9 PWR backup RAM (BKPSRAM)

The backup domain includes an 8-Kbyte backup RAM, accessible in 32-, 16-, or 8-bit data mode.

When the backup supply is enabled by BKPRBSEN in PWR_CR9, the BKPSRAM content is retained even in Standby and/or VBAT mode.

The BKPSRAM can be erased by a tamper event (see Section 64 for details).

19.3.10 PWR retention RAM (RETRAM)

The backup domain includes a 128-Kbyte retention RAM, accessible in 32-, 16-, or 8-bit data mode.

When the backup supply is enabled by RETRBSEN in PWR_CR10, the RETRAM content is retained even in Standby and/or VBAT mode.

19.3.11 PWR backup domain access

After a system reset, the backup domain (RCC_BDCR, RTC, TAMP and backup registers, backup SRAM) are protected against possible unwanted write accesses. To enable access to the backup domain, DBD in PWR_BDCR must be set.

For more detail on RTC and backup registers, see Section 63.

19.3.12 PWR VDD domain

The \(V_{DD}\) domain includes boot, security and OTP controller (BSEC), independent watchdog (IWDG), resource isolation framework controller (RIFSC and IAC), and the debug access port (DAP).

The content of the domain is retained in Standby mode (not powered in \(V_{BAT}\) mode).

Figure 62. \(V_{DD}\) domain

Figure 62: VDD domain. This block diagram illustrates the power supply architecture. It shows three main power inputs: VDD, VDDCORE, and VDDA18AON. VDD and VDDCORE are connected to a retention interface and a VDD/retention domain. The VDD/retention domain contains a backup supply from a bkp regulator, a retention interface, and a VDD I/Os block. The VDD I/Os block is connected to the VDDA18AON input. The retention interface is connected to the VDDCORE input. The VDD/retention domain also contains a block with RIFSC, IAC, IWDG1/2, BSEC, IWDG3/4, DAP, LSI, and OTP. The VDDA18AON input is connected to the VDD I/Os block.

Figure 62: VDD domain. This diagram shows the power supply architecture. It includes the following components and connections:

Figure 62: VDD domain. This block diagram illustrates the power supply architecture. It shows three main power inputs: VDD, VDDCORE, and VDDA18AON. VDD and VDDCORE are connected to a retention interface and a VDD/retention domain. The VDD/retention domain contains a backup supply from a bkp regulator, a retention interface, and a VDD I/Os block. The VDD I/Os block is connected to the VDDA18AON input. The retention interface is connected to the VDDCORE input. The VDD/retention domain also contains a block with RIFSC, IAC, IWDG1/2, BSEC, IWDG3/4, DAP, LSI, and OTP. The VDDA18AON input is connected to the VDD I/Os block.

19.3.13 PWR analog supply

PWR separate analog \(V_{DDA18ADC}\) supply

The analog supply domain has separate VDDA18ADC and VSSA pads to allow the supply to be filtered and shielded from noise on the PCB. This improves the ADC conversion accuracy.

PWR analog reference voltage \(V_{\text{REF}}\)

To allow better accuracy on low-voltage signals, the ADC has a separate reference voltage VREF+ pin. The user can connect a separate external reference voltage on VREF+. The \(V_{REF+}\) supply controls the highest voltage, represented by the full scale value. The lower voltage reference \(V_{REF-}\) must be connected together with \(V_{SSA}\).

When enabled by ENVR in VREFBUF_CSR (see Section 38.6.1), 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 pin (see Section 38). The reference voltage can also be generated internally by the ADC cell by setting the SELBG and SELREF bits in ADC OR (see Section 36).

To enable the ADC with an external \(V_{REF}\), the ADC supply must be up and stable before the \(V_{REF}\) is enabled. The sequence to monitor the \(V_{DD18ADC}\) supply is described in

RM0506 Power control (PWR)

RM0506 Rev 2 793/4831

Section 19.4.6: Peripheral voltage monitoring (PVM). Once done, ENVR and HIZ bit in VREFBUF_CSR register can be used to enable VREF+ pin input (ENVR = 0, HIZ = 1).

19.4 PWR power supply supervision

Power supply level monitoring is available on the following supplies:

19.4.1 PWR power-on reset (POR)/power-down reset (PDR)

The system has an integrated POR/PDR circuitry that allows proper startup operation.

The system remains in reset mode when \(V_{DD}\) and \(V_{DDA18AON}\) are below a specified \(V_{POR}\) threshold, without the need for an external reset circuit. Once \(V_{DD}\) and \(V_{DDA18AON}\) supply levels are above the \(V_{POR}\) threshold, the system is taken out of reset. Refer to the electrical characteristics of the device datasheet for more details on the POR/PDR thresholds.

The POR/PDR generate also an application reset (NRST).

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

Figure 63: Power-on reset/power-down reset waveform. The graph shows the supply voltage V_DD / V_DDA18AON (y-axis) versus time T (x-axis). The voltage ramps up, then levels off, and then ramps down. The Power-on Reset (POR) threshold is indicated by a dashed line, and the Power-down Reset (PDR) threshold is indicated by another dashed line. The vertical distance between these two thresholds is labeled 'Hysteresis'. A horizontal arrow labeled 'Temporisation T_RSTTEMPO' indicates the time delay between the start of the voltage ramp and the assertion of the 'nrst_por' signal. The 'nrst_por' signal is shown as a low pulse that occurs during the voltage ramp-up and ramp-down phases.
Figure 63: Power-on reset/power-down reset waveform. The graph shows the supply voltage V_DD / V_DDA18AON (y-axis) versus time T (x-axis). The voltage ramps up, then levels off, and then ramps down. The Power-on Reset (POR) threshold is indicated by a dashed line, and the Power-down Reset (PDR) threshold is indicated by another dashed line. The vertical distance between these two thresholds is labeled 'Hysteresis'. A horizontal arrow labeled 'Temporisation T_RSTTEMPO' indicates the time delay between the start of the voltage ramp and the assertion of the 'nrst_por' signal. The 'nrst_por' signal is shown as a low pulse that occurs during the voltage ramp-up and ramp-down phases.

Note: For thresholds and hysteresis, refer to the datasheet.

19.4.2 PWR brownout reset (BOR)

During power-on, the brownout reset (BOR) keeps the system under reset until the \(V_{DD}\) supply reaches the specified \(V_{BOR}\) threshold, that is configured through system option bytes. By default, BOR is off. When selecting another BOR threshold, this only takes effect after the device has loaded to option bytes. The following programmable \(V_{BOR}\) thresholds can be selected:

The BOR generates also an application reset (NRST).

When the BOR is enabled and the \(V_{DD}\) supply drops below the selected \(V_{BOR}\) threshold, a NRST is generated.

BOR can be disabled by programming the system option bytes. To disable the BOR function, \(V_{DD}\) must be higher than \(V_{BOR0}\) to start the system option byte programming sequence. The power down is then monitored by the PDR (see Section 19.4.1).

The BOR threshold hysteresis is ~100 mV for level 1, and ~40 mV for level 0 (between the rising and the falling edge of the supply voltage).

Figure 64. BOR thresholds

Figure 64: BOR thresholds diagram. The graph shows VDD on the y-axis and time/temperature (T) on the x-axis. A trapezoidal waveform represents the supply voltage. The rising edge crosses a threshold labeled BORrise, and the falling edge crosses a lower threshold labeled BORfall. The vertical distance between these two thresholds is labeled Hysteresis. Below the graph, a digital signal labeled nrst_bor is shown as a low pulse that occurs while the supply voltage is between the BORrise and BORfall thresholds. The reference code MSv67433V1 is in the bottom right corner.
Figure 64: BOR thresholds diagram. The graph shows VDD on the y-axis and time/temperature (T) on the x-axis. A trapezoidal waveform represents the supply voltage. The rising edge crosses a threshold labeled BORrise, and the falling edge crosses a lower threshold labeled BORfall. The vertical distance between these two thresholds is labeled Hysteresis. Below the graph, a digital signal labeled nrst_bor is shown as a low pulse that occurs while the supply voltage is between the BORrise and BORfall thresholds. The reference code MSv67433V1 is in the bottom right corner.

19.4.3 PWR VDDCORE OK reset

The system has an integrated circuitry that allows proper startup operation of the VDDCORE domain.

This domain remains in Reset mode when VDDCORE is below the operation threshold vddcore_ok. Once VDDCORE supply is above vddcore_ok, the VDDCORE domain is taken out of reset. For more details concerning the VDDCORE OK reset threshold, refer to the electrical characteristics of the device datasheet.

When LVDS_D2 is set in PWR_CPU2CR, the VDDCORE supply level can be lowered in LPLV-Stop mode.

Figure 65. vddcore_ok reset thresholds

Figure 65: vddcore_ok reset thresholds diagram. The graph shows VDDCORE on the y-axis and time/temperature (T) on the x-axis. A trapezoidal waveform represents the supply voltage. The rising edge crosses a threshold labeled VDDCORErise, and the falling edge crosses a lower threshold labeled VDDCOREfall. The vertical distance between these two thresholds is labeled Hysteresis. Below the graph, a digital signal labeled Vcore_rdy is shown. It transitions from low to high after a delay labeled Temporisation following the crossing of the VDDCORErise threshold. The reference code MSv67440V1 is in the bottom right corner.
Figure 65: vddcore_ok reset thresholds diagram. The graph shows VDDCORE on the y-axis and time/temperature (T) on the x-axis. A trapezoidal waveform represents the supply voltage. The rising edge crosses a threshold labeled VDDCORErise, and the falling edge crosses a lower threshold labeled VDDCOREfall. The vertical distance between these two thresholds is labeled Hysteresis. Below the graph, a digital signal labeled Vcore_rdy is shown. It transitions from low to high after a delay labeled Temporisation following the crossing of the VDDCORErise threshold. The reference code MSv67440V1 is in the bottom right corner.

19.4.4 PWR \(V_{DDCPU}\) OK reset

The system has an integrated circuitry that allows proper startup operation of the \(V_{DDCPU}\) domain.

This domain remains in Reset mode when \(V_{DDCPU}\) is below the operation threshold vddcpu_ok. Once \(V_{DDCPU}\) is above this threshold, the \(V_{DDCPU}\) domain is taken out of reset. For more details concerning this threshold, refer to the electrical characteristics of the device datasheet.

When LVDS_D1 is set in PWR_CPU1CR, the \(V_{DDCPU}\) supply level can be lowered in LPLV-Stop mode.

Figure 66. vddcpu_ok reset thresholds

Figure 66: vddcpu_ok reset thresholds. A graph showing the relationship between VDDCPU voltage and time (T). The voltage rises from a low level, crosses a threshold labeled VDDCPUrise, reaches a plateau, and then falls, crossing a threshold labeled VDDCPUfall. The vertical distance between these two thresholds is labeled 'Hysteresis'. A horizontal arrow labeled 'Temporisation' indicates the time delay between the voltage crossing the threshold and the Vcpu_rdy signal transitioning from low to high. The Vcpu_rdy signal is shown as a low-level pulse that becomes high after the temporisation delay.

MSv67438V1

Figure 66: vddcpu_ok reset thresholds. A graph showing the relationship between VDDCPU voltage and time (T). The voltage rises from a low level, crosses a threshold labeled VDDCPUrise, reaches a plateau, and then falls, crossing a threshold labeled VDDCPUfall. The vertical distance between these two thresholds is labeled 'Hysteresis'. A horizontal arrow labeled 'Temporisation' indicates the time delay between the voltage crossing the threshold and the Vcpu_rdy signal transitioning from low to high. The Vcpu_rdy signal is shown as a low-level pulse that becomes high after the temporisation delay.

19.4.5 PWR programmable voltage detector (PVD)

The PVD can be used to monitor a voltage level on the PVD_IN pin: the voltage level on PVD_IN is compared to the internal \(V_{REFINT}\) level.

The PVD is enabled by setting PVDEN in PWR_CR3. The PVD is not available in Standby mode.

A PVDO flag in PWR_CR3 indicates if the voltage level on PVD_IN is higher or lower than the PVD threshold. This event is internally connected to the EXTI11, and can generate an interrupt if enabled through the EXTI1 registers. The PVDO output interrupt can be generated when the voltage level on PVD_IN drops below the PVD threshold, and/or when the voltage level on PVD_IN rises above the PVD threshold, depending on EXTI1 rising/falling edge configuration. As an example the service routine can perform emergency shutdown tasks.

Figure 67. PVD thresholds

Figure 67: PVD thresholds diagram. The graph shows the relationship between PVD_IN voltage and time (T). The PVD_IN voltage rises and falls, crossing two threshold levels: PVD_Rise (upper) and PVD_Fall (lower). The vertical distance between these two thresholds is labeled 'Hysteresis'. Below the PVD_IN graph, two digital signals are shown: PVDO and PVDEN. PVDO is a digital output that transitions from low to high when PVD_IN crosses the PVD_Rise threshold and from high to low when PVD_IN crosses the PVD_Fall threshold. PVDEN is a digital control signal that is high when the PVD is enabled (indicated by 'Software enable') and low when disabled (indicated by 'PDR').
Figure 67: PVD thresholds diagram. The graph shows the relationship between PVD_IN voltage and time (T). The PVD_IN voltage rises and falls, crossing two threshold levels: PVD_Rise (upper) and PVD_Fall (lower). The vertical distance between these two thresholds is labeled 'Hysteresis'. Below the PVD_IN graph, two digital signals are shown: PVDO and PVDEN. PVDO is a digital output that transitions from low to high when PVD_IN crosses the PVD_Rise threshold and from high to low when PVD_IN crosses the PVD_Fall threshold. PVDEN is a digital control signal that is high when the PVD is enabled (indicated by 'Software enable') and low when disabled (indicated by 'PDR').

Note: For thresholds and hysteresis, refer to the datasheet.

19.4.6 Peripheral voltage monitoring (PVM)

Only \(V_{DD}\) is monitored by default, as it is the only supply required for all system-related functions. The other supplies (\(V_{DDIO1}\), \(V_{DDIO2}\), \(V_{DDIO3}\), \(V_{DD33USB}\) and \(V_{DDA18ADC}\)) can be independent from \(V_{DD}\), and can be monitored with six peripheral voltage monitoring (PVM):

Note: For thresholds and hysteresis, refer to the device datasheet.

The GPVMO flag in PWR_CR1 indicates if all enabled independent power supplies are higher or lower than the PVM threshold. This event is internally connected to the EXTI1, and can generate an interrupt if enabled through the EXTI1 registers. The GPVMO interrupt can be generated when all enabled independent power supplies rise above the PVM threshold, or when at least one enabled independent power supply drops below the PVM threshold, depending on EXTI1 line rising/falling edge configuration.

The PVM is not available in Standby mode.

The independent supplies (\(V_{DDIO1}\), \(V_{DDIO2}\), \(V_{DDIO3}\), \(V_{DD33USB}\) and \(V_{DDA18ADC}\)) are not considered as present by default, and a logical and electrical isolation is applied to ignore any information coming from the peripherals supplied by these dedicated supplies.

The following sequence must be done before using the USB HS PHYs:

  1. 1. If \(V_{DD33USB}\) is independent from \(V_{DD}\):
    1. a) Enable USB33VM by setting USB33VMEN in PWR_CR1.
    2. b) Wait for the USB33VM wake-up time.
    3. c) Wait until USB33RDY is set in PWR_CR1.
    4. d) Optional: Disable USB33VM for consumption saving.

The following sequence must be done before using the analog to digital converters:

  1. 1. If \(V_{DDA18ADC}\) is independent from \(V_{DD}\):
    1. a) Enable AVM by setting AVMEN in PWR_CR1.
    2. b) Wait for the AVM wake-up time.
    3. c) Wait until ARDY is set in PWR_CR1.
  2. 2. Set ASV in PWR_CR1 to remove the \(V_{DDA18ADC}\) power isolation.

The GPIOs have the capability to work in the 1.8 V or 3.3 V power supply ranges. It is needed to select the supply range of the I/Os before to use it. By default, the 3.3 V range is selected. The voltage range configuration for \(V_{DD}\) and \(V_{DDIO3}\) is retained in Standby mode. The configuration can be retained for \(V_{DDIO1}\) and \(V_{DDIO2}\) in Standby mode when VDDIO1VRSTBY and VDDIO2VRSTBY are set in PWR_CR7 and PWR_CR8. The voltage range must not be retained if the supply range can change when exiting from Standby mode (such as SD card).

The following sequence must be done before using the VDDIO1 I/Os:

  1. 1. If \(V_{DDIO1}\) is independent from \(V_{DD}\):
    1. a) Enable VDDIO1VM by setting VDDIO1VMEN in PWR_CR8.
    2. b) Wait for the VDDIO1VM wake-up time.
    3. c) Wait until VDDIO1RDY is set in PWR_CR8.
    4. d) Optional: Disable VDDIO1VM for consumption saving.
    5. e) If \(V_{DDIO1}\) is in 1.8 V range, set \(V_{DDIO1}\) voltage range by setting VDDIO1VRSEL in PWR_CR8.
    6. f) Optional: Retain VDDIO1VRSEL configuration by setting VDDIO1VRSTBY in PWR_CR8.
  2. 2. Set VDDIO1SV in PWR_CR8 to remove the \(V_{DDIO1}\) power isolation.

The following sequence must be done before using the VDDIO2 I/Os:

  1. 1. If \(V_{DDIO2}\) is independent from \(V_{DD}\):
    1. a) Enable VDDIO2VM by setting VDDIO2VMEN in PWR_CR7.
    2. b) Wait for the VDDIO2VM wake-up time.
    3. c) Wait until VDDIO2RDY is set in PWR_CR7.
  1. d) Optional: Disable VDDIO2VM for consumption saving.
  2. e) If \(V_{DDIO2}\) is in 1.8 V range, set \(V_{DDIO2}\) voltage range by setting VDDIO2VRSEL in PWR_CR7.
  3. f) Optional: Retain VDDIO1VRSEL configuration by setting VDDIO2VRSTBY in PWR_CR7.
  4. 2. Set VDDIO2SV in PWR_CR7 to remove the \(V_{DDIO2}\) power isolation.

The following sequence must be done before using the VDDIO3 I/Os:

  1. 1. If \(V_{DDIO3}\) is independent from \(V_{DD}\):
    1. a) Enable VDDIO3VM by setting VDDIO3VMEN in PWR_CR1.
    2. b) Wait for the VDDIO3VM wake-up time.
    3. c) Wait until VDDIO3RDY is set in PWR_CR1.
    4. d) Optional: Disable VDDIO3VM for consumption saving.
    5. e) If \(V_{DDIO3}\) is in 1.8 V range, set the \(V_{DDIO3}\) voltage range by setting VDDIO3VRSEL in PWR_CR1.
  2. 2. Set VDDIO3SV in PWR_CR1 to remove the \(V_{DDIO3}\) power isolation.

19.4.7 PWR \(V_{08CAP}\) voltage thresholds

The backup domain voltage \(V_{08CAP}\) supply can be monitored by comparing it with two threshold levels. The V08CAPH and V08CAPL flags in PWR_CR2 indicate if \(V_{08CAP}\) is higher or lower than the thresholds. These flags are available on tamper signals (see Section 64).

The \(V_{08CAP}\) supply monitor can be enabled/disabled with MONEN in PWR_CR2. When enabled, the \(V_{08CAP}\) voltage thresholds increase the power consumption. As an example, the levels can be used to trigger a routine to perform emergency saving tasks.

The \(V_{08CAP}\) voltage thresholds, when enabled, are also available in Standby and VBAT modes.

Figure 68. \(V_{08CAP}\) thresholds

Figure 68: V08CAP thresholds diagram. The graph shows the V08CAP voltage (V) on the y-axis versus time (T) on the x-axis. The V08CAP voltage starts at a low level, rises linearly, reaches a plateau, and then falls linearly. Two horizontal dashed lines represent the thresholds: V08CAPhigh (upper) and V08CAPlow (lower). Below the graph, two digital signals are shown: V08CAPH and V08CAPL. V08CAPH is a high-to-low transition that occurs when V08CAP crosses V08CAPhigh from below. V08CAPL is a low-to-high transition that occurs when V08CAP crosses V08CAPlow from above. The diagram illustrates the hysteresis between the two thresholds.
Figure 68: V08CAP thresholds diagram. The graph shows the V08CAP voltage (V) on the y-axis versus time (T) on the x-axis. The V08CAP voltage starts at a low level, rises linearly, reaches a plateau, and then falls linearly. Two horizontal dashed lines represent the thresholds: V08CAPhigh (upper) and V08CAPlow (lower). Below the graph, two digital signals are shown: V08CAPH and V08CAPL. V08CAPH is a high-to-low transition that occurs when V08CAP crosses V08CAPhigh from below. V08CAPL is a low-to-high transition that occurs when V08CAP crosses V08CAPlow from above. The diagram illustrates the hysteresis between the two thresholds.

Note: For thresholds and hysteresis, refer to the datasheet.

19.4.8 PWR temperature thresholds

The temperature can be monitored by comparing it with two threshold levels. The TEMPH and TEMPL flags in PWR_CR2 indicate if the device temperature is higher or lower than the threshold. These flags are available on tamper signals (see Section 64).

The temperature monitor can be enabled/disabled with MONEN in PWR_CR2. When enabled, the temperature thresholds increases power consumption. As an example, the levels can be used to trigger a routine to perform temperature control tasks.

The temperature thresholds, when enabled, are also available in Standby and \(V_{BAT}\) modes.

Figure 69. Temperature thresholds

Figure 69: Temperature thresholds diagram. The graph shows Temperature (Y-axis) versus Time (T, X-axis). A trapezoidal temperature profile is shown. Two horizontal dashed lines represent the thresholds: TEMPhigh (upper) and TEMPlow (lower). Below the graph, two digital signal lines are shown: TEMPH and TEMPL. The TEMPH signal is high when the temperature is above the TEMPhigh threshold and low otherwise. The TEMPL signal is low when the temperature is below the TEMPlow threshold and high otherwise. The diagram illustrates the hysteresis between the two thresholds.
Figure 69: Temperature thresholds diagram. The graph shows Temperature (Y-axis) versus Time (T, X-axis). A trapezoidal temperature profile is shown. Two horizontal dashed lines represent the thresholds: TEMPhigh (upper) and TEMPlow (lower). Below the graph, two digital signal lines are shown: TEMPH and TEMPL. The TEMPH signal is high when the temperature is above the TEMPhigh threshold and low otherwise. The TEMPL signal is low when the temperature is below the TEMPlow threshold and high otherwise. The diagram illustrates the hysteresis between the two thresholds.

Note: For thresholds and hysteresis, refer to the datasheet.

19.5 PWR power management

The power management controls \(V_{DDCPU}\) and \(V_{DDCORE}\) supplies in accordance with the system operation modes (see Section 19.5.1). The system is split into three domains:

D1 and system D2 can be in one of the following operating modes:

At PWR controller level, the dual-core Cortex-A35 is seen as a single CPU1.

\(V_{DDCORE}\) supply follows the system operating mode (Run, Stop, LP-Stop, LPLV-Stop and Standby).

\(V_{DDCPU}\) supply follows the domain operating mode (DRun, DStop1/2/3 and DStandby). This supply can be powered down individually when the D1 domain is in DStandby mode.

Several system operating modes are available to tune the system according to the performance needed, that is when the CPU(s) do not need to execute code and wait 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 wake-up sources.

The operating modes allow the control of the clock distribution to the different system parts and the system power. The system operating mode is driven by the CPU1 subsystem and CPU2 subsystem. A CPU subsystem can include multiple domains depending on its peripheral allocation. The operating modes for the different system parts are defined below.

CPU1 and CPU2 subsystem modes

D1 domain modes

System D2 modes

The system clock and bus matrix clocks run. The D1 domain is in power down. The CPU2 subsystem is in CRun or CSleep. The CPU1 subsystem is in CStop, and PDDS_D1 in PWR_CPU1CR selects DStandby.

The system clock and D2 bus matrix clocks are stalled. CPU1 and CPU2 subsystems are in CStop, and PDDS_D1 in PWR_CPU1CR selects DStop. At least on PDDS_D2 in PWR_CPU1CR and PWR_CPU2CR select Stop mode.

The system clock and D2 bus matrix clocks are stalled. The D1 domain is in power down. CPU1 and CPU2 subsystems are in CStop, and PDDS_D1 in PWR_CPU1CR selects DStandby. At least on PDDS_D2 in PWR_CPU1CR and PWR_CPU2CR select Stop mode.

The system is powered down. All CPU subsystems are in CStop. PDDS_D1 in PWR_CPU1CR selects DStandby. PDDS_D2 in PWR_CPU1CR and PWR_CPU2CR select Standby.

Note: In Run modes, the power consumption can be reduced by gating the clocks to AHBx and APBx peripherals when they are unused, with PERxEN.

PWR CPU1 low-power mode summary

The CPU1 system supports the following low-power modes:

Table 88. CPU1 low-power mode summary

CPU1Processor0Processor1L2Entry(1)Wake-upclkProcessor0 clkProcessor1 clkPeriph bus clk
CRunP0RUNP1RUNL2RUN--ONONONON
P0RUNP1STOPWFECPU1 processor1 interrupt, or event, or reset
WFICPU1 processor1 interrupt or reset
P0STOPP1RUNWFECPU1 processor0 interrupt, or event, or reset
WFICPU1 processor0 interrupt, or reset
CSleepP0STOPP1STOPL2STOPWFE(2)CPU1(3) interrupt, or event, or resetOFFOFFOFFON/OFF(5)
STPREQ_P[1:0] = 0b11 WFI(4)CPU1(3) interrupt or reset
CStopSTPREQ_P[1:0] = 0b11 WFI(4)CPU1(3) EXTI interrupt or resetOFFOFFOFFOFF

1. For STPREQ_P[1:0] register bits functionality refer to the RCC. WFI = wait for interrupt. WFE = wait for event.

  1. 2. At least one CPU1 processor is in WFE, and the other CPU1 processor is in WFE or WFI.
  2. 3. Wakes up the respective processor associated with the event or interrupt.
  3. 4. All CPU1 processors are in WFI.
  4. 5. CPU1 subsystem peripherals having a PERxLPEN bit operate accordingly.

PWR CPU2 low-power mode summary

Table 89. CPU2 low-power mode summary

CPU2EntryWake-upCPU2 clkCPU2 periph bus clk
CRun--ONON
CSleepCortex-M33 SCR SLEEPDEEP = 0, WFEAny CPU2 interrupt or event or resetOFFON/OFF(1)
Cortex-M33 SCR SLEEPDEEP = 0, WFI or return from ISRAny CPU2 interrupt or reset
CStopCortex-M33 SCR SLEEPDEEP = 1, WFEAny CPU2 EXTI interrupt, or event, or resetOFF
Cortex-M33 SCR SLEEPDEEP = 1, WFI or return from ISRAny CPU2 EXTI interrupt or reset
  1. 1. CPU2 subsystem peripherals having a PERxLPEN bit operate accordingly.

PWR system low-power mode summary

The system low-power modes are derived from the CPU1 and CPU2 low-power modes.

Table 90. System low-power modes

System D2 domainD1 domainCPU1CPU2Wake-upSystem clkVDDCCPUVDDCORE
Run1DRunCRun or CSleepCRun or CSleepSee Table 91ONON
(nominal/overdrive)
ON (nominal)
CStop
DStop1CStopCRun or CSleepOFF
Run2DStandbyCStop and PDDS_D1=1OFFON
(nominal/overdrive)
Stop1(1)DStop1CStopCStopON
(nominal/overdrive)
OFF
Stop2DStandbyCStop and PDDS_D1 = 1ON
(nominal/overdrive)
LP-Stop1(1)DStop2CStop and LPDS_D1=1(2)CStop and LPDS_D2=1(3)ON
(nominal/overdrive)
LP-Stop2DStandbyCStop and PDDS_D1=1OFF
LPLV-Stop1(1)DStop3CStop and LPDS_D1=1(2)
and LVDS_D1=1(4)
CStop and LPDS_D2=1(2)
and LVDS_D2=1(5)
OFFON
(reduced)
ON (reduced)
LPLV-Stop2CStop and PDDS_D1=1OFF
StandbyDStandbyCStop and PDDS_D1=1CStop and PDDS_D2=1WKUP pins, RTC alarm, RTC wake-up, RTC tamper events, or application reset (such as NRST, IWDG)OFFOFFOFF
  1. 1. At least one PDDS_Dn in PWR_CPU1CR and PWR_CPU2CR selects Stop.
  2. 2. LPDS_D1 in PWR_CPU1CR selects LP-Stop.
  3. 3. LPDS_D2 in PWR_CPU2CR selects LP-Stop.
  4. 4. LVDS_D1 in PWR_CPU1CR selects LPLV-Stop.
  5. 5. LVDS_D2 in PWR_CPU2CR selects LPLV-Stop.

Table 91. Functionalities depending on system operating mode

Peripheral(1)Run1/Run2Stop1/2 and LP-Stop1/2LPLV-Stop1/2StandbyVBAT
-Wake-up capability-Wake-up capability-Wake-up capability
CPU1Y/-R/--R/-----
CPU2YR-R----
DBGOOOR----
ROM memoryYR-R----
RAMCFGOR-R----
SYSRAMOR-R----
SRAM1OO(3)-R----
BKPSRAMOO-R-O(2)-O(2)
RETSRAMYO(3)-R-O(2)-O(2)
DDRCTRLOR-R----
OCTOSPI1OR-R----
OTFDEC1(13)OR-R----
FMCOR-R----
Backup registersYR-R-R-R
Brownout reset (BOR)YYYYYYY-
Programmable voltage detector (PVD)OOOOO---
Peripheral voltage monitor (PVM)OOOOO---
V08CAPH/V08CAPL monitoringOOOOOOOO
TEMPH/TEMPL monitoringOOOOOOOO
HPDMAx (x = 1, 2, 3)OOO(4)R----
High-speed internal (HSI)OO(5)------
High-speed external (HSE)O-------
Low-speed internal (LSI)OO-O-O--
Low-speed external (LSE)OO-O-O-O
Multi-speed internal (MSI)OO------
HSE CSS clock security systemO-------
LSE CSS clock security systemOOOOOOOO
HSI / MSI frequency monitoringOOO-----
RTC/auto wake-upOOOOOOOO

Table 91. Functionalities depending on system operating mode (continued)

Peripheral(1)Run1/Run2Stop1/2 and LP-Stop1/2LPLV-Stop1/2StandbyVBAT
-Wake-up capability-Wake-up capability-Wake-up capability
USBHOROR----
OTGOROR----
SDMMCx (x = 1, 2, 3)OR-R----
FDCANx(13) (x = 1, 2)OR-R----
ETHx (x = 1,2 (13))OROR----
USARTx (x = 1 to 7)OO(6)O(6)R----
LPUART1OO(6)O(6)R----
I2Cx (x = 1 to 3)OO(7)O(7)R----
I3Cx (x = 1 to 3)OO(8)O(8)R----
SPIx (x = 1 to 6)OO(9)O(9)R----
SAIx (x = 1 to 4)OR-R----
MDF1OO(10)-R----
DCMIOR-R----
PSSIOR-R----
DCMIPPOR-R----
HDPOR-R----
LTDCOR-R----
ADCx (x = 1, 2)OR-R----
VREFBUFOR-R----
DTSOROR----
STGEN(11)OR-R----
TIMx (x = 1 to 8, 10 to 17)OR-R----
LPTIMx (x = 1 to 5)OO(12)O(12)R----
IWDGx (x = 1, 2, 3, 4)OOOOOOO-
WWDG1OR-R----
RNGx (x=1, 2)OR-R----
SAESOR-R----
CRYPx(13) (x = 1, 2)OR-R----
HASHx (x=1, 2)OR-R----
CRCOR-R----
MBOX1OR-R----

Table 91. Functionalities depending on system operating mode (continued)

Peripheral(1)Run1/Run2Stop1/2 and LP-Stop1/2LPLV-Stop1/2StandbyVBAT
-Wake-up capability-Wake-up capability-Wake-up capability
GPIOsOOOOO-O
6 pins
-
TAMP (number of tamper pins)1212O12O12O12
  1. 1. Legend: Y = Yes (Enable), O = Optional (Disable by default. Can be enabled by software), R = data/state retained, - = not available, wake-up highlighted in gray.
  2. 2. The BKPSRAM and RETSRAM content can optionally be retained when enabled.
  3. 3. SRAM1 and RETRAM can be accessed by HPDMA in Stop1/2 and LP-Stop1/2 modes.
  4. 4. HPDMA transfers are functional and autonomous in Stop1/2, and LP-Stop1/2 modes, and generate a wake-up interrupt on transfer events.
  5. 5. Some peripherals with wake-up 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.
  6. 6. USART and LPUART reception and transmission are functional and autonomous in low-power modes in asynchronous, and in SPI master modes, and generate a wake-up interrupt on transfer events.
  7. 7. I2C reception and transmission are functional and autonomous in low-power modes, and generate a wake-up interrupt on transfer events.
  8. 8. I3C reception and transmission are functional and autonomous in low-power modes, and generate a wake-up interrupt on transfer events.
  9. 9. SPI reception and transmission are functional and autonomous in low-power modes, and generate a wake-up interrupt on transfer events.
  10. 10. MDF1 is functional and autonomous in low-power modes, and generate a wake-up interrupt on events.
  11. 11. STGEN not accessible in Stop2, LP-Stop2, LPLV-Stop2 mode since STGEN is in VDDCPU power domain.
  12. 12. LPTIM is functional and autonomous in Stop mode, and generates a wake-up interrupt on events.
  13. 13. Not present on all device part numbers (see the related datasheet for more information).

19.5.1 PWR power modes

The power control handles VDDCORE and VDDCPU supplies for system modes. The system operating mode depends on the individual CPU subsystem modes, and on the domain modes.

D1 domain power modes

System D2 power modes

PWR_CPU_ON and PWR_ON are used to control the external regulators supplying the D1 domain (\(V_{DDCPU}\)) and the system D2 domain (\(V_{DDCORE}\)). PWR_LP is used to notify low-power Stop mode selection for both external regulators.

If the same external regulator is used to supply \(V_{DDCORE}\) and \(V_{DDCPU}\), only PWR_ON/PWR_LP must be used.

Table 92. External regulators control

D2 system modeD1 domain modePWR_CPU_ONPWR_LPPWR_ON
LPCFG_D1 = 0LPCFG_D1 = 1LPCFG_D2 = 0LPCFG_D2 = 1
Run1DRun11111
DStop111111
Run2DStandby0(1)0(1)111
Stop1DStop111111
Stop2DStandby0(1)0(1)111
LP-Stop1/LPLV-Stop1DStop2/3100(2)10(2)
LP-Stop2/LPLV-Stop2DStandby0(1)00(2)10(2)
StandbyDStandby0(1)0(1)0(3)0(3)0(3)
  1. 1. A guaranteed minimum PWR_CPU_ON pulse low time can be defined by POPL_D bits in PWR_D1CR.
  2. 2. Setting POPL_D2 bits in PWR_D2CR has no impact on LP-Stop/LPLV-Stop PWR_ON and PWR_LP pulse low time.
  3. 3. A guaranteed minimum PWR_ON and PWR_LP pulse low time can be defined by POPL_D bits in PWR_D2CR.

In LP-Stop1 and LPLV-Stop1 modes the PWR_CPU_ON is kept asserted or may be deasserted according to LPCFG_D1 in PWR_D1CR. In LP-Stop1/2 and LPLV-Stop1/2 modes, the PWR_ON is kept asserted or may be deasserted according to LPCFG_D2 in PWR_D2CR.

The definition (power off or low-power mode) of PWR_ON/PWR_CPU_ON must have been defined in the external regulator before entering LP-Stop/LPLV-Stop.

Figure 70. Power states and external regulator control

State transition diagram for power states and external regulator control showing Standby, Run1, Run2, Stop1/LP-Stop1/LPLV-Stop1, and Stop2/LP-Stop2/LPLV-Stop2 states, with transitions marked for Stop mode, Standby mode, DStandby, and Wakeup, and internal D1/D2 state labels such as D1 main, D2 main, D1 power down, D2 power down, D1 low power, D2 low power with corresponding PWR_CPU_ON and PWR_LP values.

MSv73128V1

State transition diagram for power states and external regulator control showing Standby, Run1, Run2, Stop1/LP-Stop1/LPLV-Stop1, and Stop2/LP-Stop2/LPLV-Stop2 states, with transitions marked for Stop mode, Standby mode, DStandby, and Wakeup, and internal D1/D2 state labels such as D1 main, D2 main, D1 power down, D2 power down, D1 low power, D2 low power with corresponding PWR_CPU_ON and PWR_LP values.

The system mode selection between Stop, LP-Stop or LPLV-Stop, and Standby is controlled by PDDS_D1 and PDDS_D2 in PWR_CPU1CR and PWR_CPU2CR. The system only enters Standby when these two bits allow so.

Table 93. PDD low-power mode control

CPU1
PDDS_D1
CPU1
PDDS_D2
CPU2
PDDS_D2
System operation mode
0XXStop1, LP-Stop1, LPLV-Stop1
1X0Stop2, LP-Stop2, LPLV-Stop2
10XStop2, LP-Stop2, LPLV-Stop2
111Standby

Figure 71. Detailed state diagram of power control modes

Figure 71: Detailed state diagram of power control modes. The diagram shows transitions between Run1, Run2, Stop1/LP-Stop1/LPLV-Stop1, Stop2/LP-Stop2/LPLV-Stop2, and Standby modes. It includes CPU1, CPU2, and D1 domain states and transitions triggered by events like reset, c1_wakeup, c2_wakeup, c1_cstop, and c2_cstop. A legend identifies CPU subsystem modes (white), System D2 domain modes (grey), and Domains modes (colored).

Legend:

Note 1: After a wakeup from Standby, the system can restart in the same way as after a power-on reset (legacy mode). Only the CPU1 boots. The CPU2 is kept in HOLD_BOOT by the RCC (see also reference RCC processor hold from Standby). Whenever The CPU2 is in HOLD_BOOT, it does not prevent the system to enter Stop1/2, LP-Stop1/2, LPLV-Stop1/2 or Standby.

MSv73130V1

Figure 71: Detailed state diagram of power control modes. The diagram shows transitions between Run1, Run2, Stop1/LP-Stop1/LPLV-Stop1, Stop2/LP-Stop2/LPLV-Stop2, and Standby modes. It includes CPU1, CPU2, and D1 domain states and transitions triggered by events like reset, c1_wakeup, c2_wakeup, c1_cstop, and c2_cstop. A legend identifies CPU subsystem modes (white), System D2 domain modes (grey), and Domains modes (colored).

The power control state transitions are initiated by (referring to Figure 71):

The flags provided to determine from which mode the system exits are shown in the table below. CPU1 and CPU2 have their own set of flags which can be read from PWR_CPU1CR and PWR_CPU2CR. CPU1 and CPU2 have their own reset bit CSSF to clear their wake-up flags. CPU1 and CPU2 CSSF bits are located in the same register as CPU1 and CPU2 flags.

Table 94. Low-power mode exit flags

System D2 modeD1 domainSBF_D1SBF_D2SBFSTOPFVBFComment
Run1DRun/DStop100000Retained system contents
Run2DStandby10000Lost D1 contents. Retained system contents.
Stop1
LP-Stop1
LPLV-Stop1
DStop1/2/300010Retained system contents. System clock stopped.
Stop2
LP-Stop2
LPLV-Stop2
DStandby10010Lost D1 contents. Retained system contents. System clock stopped.
StandbyDStandby11100Lost system contents
VBATNA00001

19.5.2 Low-power batch acquisition mode (LPBAM)

The devices support Low-power batch acquisition mode (LPBAM), which allows peripherals to be functional and autonomous in low-power modes (without any software running).

Stop1/2, LP-Stop1/2 modes

In Stop1/2 and LP-Stop1/2 modes, the autonomous peripherals are: LPTIMx (x = 1 to 5), USARTx (x = 1 to 7), LPUART1, SPIx (x = 1 to 6), I2Cx (x = 1 to 3), I3Cx (x = 1 to 3), MDF1 and HPDMAx (x = 1 to 3). In these modes, SRAM1 and RETRAM can be accessed by the HPDMAx. GPIOA-I,Z can be also accessed by the HPDMAx.

LPBAM features

These autonomous peripherals support the following features:

The DMA transfers from memory-to-memory can be started by hardware synchronous or asynchronous triggers. The DMA transfers between peripherals and memories can also be gated by these triggers.

Here below some examples of use-cases that can be done while remaining in Stop mode:

19.5.3 PWR system wake-up

From an application reset (such as NRST PAD, IWDG, POR, BOR), the system wakes up the CPU1. The CPU2 is kept in HOLD_BOOT. From this point, the CPU1 boot ROM manages the startup (see Section 20).

From Stop1/2, LP-Stop1/2, LPLV-Stop1/2, and Standby, the system can be configured to wake up CPU1 or CPU2 independently.

19.6 PWR low-power modes

Several low-power modes are available to save power when CPU1 and/or CPU2 do not need to execute code (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 wake-up sources:

19.6.1 PWR slowing down CPU and/or bus matrix clocks

In Run mode, the speed of CPU1, CPU2 and/or bus matrix clocks can be reduced (see Section 20 for more details).

19.6.2 PWR controlling peripheral clocks

In Run mode, the bus clock for individual peripherals can be stopped by 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 CSleep mode.

19.6.3 PWR entering low-power modes

The CPU1 subsystem low-power modes CSleep and CStop are entered by the CPU1 when executing WFI or WFE instructions.

The CPU2 subsystem low-power modes CSleep and CStop are entered by the CPU2 when executing WFI or WFE instructions, or when SLEEPONEXIT in Cortex-M33 system control register is set on Return from ISR.

The D1 domain can enter in DStandby when all EXTI wake-up sources assigned to CPU1 are cleared, and the CPU1 is in CStop.

The system enters to Stop1/2, LP-Stop1/2, LPLV-Stop1/2, or Standby when all EXTI wake-up sources are cleared, and both CPU1 and CPU2 are in CStop.

The system enters in Standby when all EXTI wake-up sources are cleared, and all CPUs are in CStop.

19.6.4 PWR exiting from low-power modes

From CSleep mode, CPU1 and CPU2, subsystems exit from low-power mode through any interrupt or event, depending on how the low-power mode was entered.

If the WFI instruction or Return from ISR was used to enter low-power mode, any peripheral interrupt acknowledged by the GIC/NVIC can wake up the system.

If the WFE instruction is used to enter low-power mode, CPU1 and CPU2 exit from low-power mode as soon as an event occurs. The wake-up event can be generated by one of the following ways:

From CStop, when the system is in Stop1, LP-Stop1, and LPLV-Stop1 modes, CPU1 and/or CPU2 subsystems exit from low-power mode only through an enabled EXTI interrupt or event, depending on how the low-power mode was entered.

From CStop, when the system is in Run2, Stop2, LP-Stop2, and LPLV-Stop2, the CPU1 subsystem exits from low-power mode only through an enabled EXTI interrupt. The program execution restarts with a CPU1 reset. The CPU2 subsystem exits from low-power mode through an enabled EXTI interrupt or event, depending on how the low-power mode was entered.

From Standby, CPU1 and/or CPU2 subsystems exit from low-power mode only through an application reset (such as NRST, IWDG), enabled WKUPx pins and a RTC event.

In legacy mode, the program execution restarts in the same way as after a power-on reset (such as reset vector fetched). An event, if enabled, can wake up the CPU2 and kept the D1 domain in DStandby. The CPU2 firmware is in charge to restore the secure context of the system before executing application restart.

19.6.5 PWR CSleep mode

The CSleep mode applies only to the CPU subsystems. In CSleep mode, the CPU clock is stopped. The CPU subsystem peripheral clocks operate according to the PERxLPEN bits.

PWR entering to CSleep mode

The CSleep mode is entered according to Section 19.6.3:

PWR exiting from CSleep mode

The CSleep mode is exited according to Section 19.6.4 and the tables below.

Table 95. CPU1 CSleep mode

CPU1 CSleepComments
Mode entryWFI while:
– STPREQ_P[1:0] = 0b11 (see Section 20).
– CPU1 GIC interrupts and events are cleared.
WFE while CPU1 GIC interrupts and events cleared.
Mode exitIf WFI was used for entry, any interrupt enabled in GIC (see Section 28.4).
If WFE was used for entry, any interrupt event when disabled in GIC (see Section 28.4), or any event (see Section 19.6.4)
Wake-up latencyNone

Table 96. CPU2 CSleep mode

CPU2 CSleepComments
Mode entryWFI or WFE while:
– SLEEPDEEP = 0 (see the Cortex-M33 system control register).
– CPU2 NVIC interrupts and events are cleared.
On return from ISR while:
– SLEEPDEEP = 0 and SLEEPONEXIT = 1 (see the Cortex-M33 system control register).
– CPU2 NVIC interrupts and events are cleared.
Mode exitIf WFI or return from ISR was used for entry, any interrupt enabled in NVIC (see Section 27.3)
If WFE was used for entry and SEVONPEND = 0, any event (see Section 19.6.4)
If WFE was used for entry and SEVONPEND = 1, any interrupt event disabled in NVIC (see Section 27.3), or any event (see Section 19.6.4).
Wake-up latencyNone

19.6.6 PWR CStop mode

The CStop mode applies only to the CPU subsystems. In CStop mode, the CPU clock and CPU subsystem peripheral clocks are stopped.

In CStop mode, CPU subsystem 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 19.6.3:

PWR exiting from CStop mode

The CStop mode is exited according to Section 19.6.4 and the tables below.

Table 97. CPU1 CStop mode

CPU1 CStopComments
Mode entryWFI while:
– STPREQ_P[1:0] = 0b11 (see Section 20)
– CPU1 GIC interrupts and events are cleared.
– All CPU1 EXTI1-2 wake-up sources are cleared.
Mode exitEXTI1-2 interrupt is enabled in GIC (see Section 28.4) for peripherals which are not stopped.
Wake-up latencyEXTI and RCC wake-up synchronization (see Section 20)

Table 98. CPU2 CStop mode

CPU2 CStopComments
Mode entryWFI or WFE while:
– SLEEPDEEP = 1 (see Cortex-M33 system control register).
– CPU2 NVIC interrupts and events are cleared.
– All CPU2 EXTI1-2 wake-up sources are cleared.

On return from ISR while:
– SLEEPDEEP = 1 and SLEEPONEXIT = 1 (see Cortex-M33 system control register).
– CPU2 NVIC interrupts and events are cleared.
– All CPU2 EXTI1-2 wake-up sources are cleared.
Mode exitIf WFI or return from ISR was used for entry, EXTI1-2 interrupt enabled in NVIC (see Section 27.3) for peripherals which are not stopped
If WFE was used for entry and SEVONPEND = 0, EXTI1-2 event (see Section 19.6.4) for peripherals which are not stopped.
If WFE was used for entry and SEVONPEND = 1, EXTI1-2 interrupt event when disabled in NVIC (see Section 27.3), or EXTI event (see Section 19.6.4) for peripherals which are not stopped
Wake-up latencyEXTI and RCC wake-up synchronization. (see Section 20)

19.6.7 PWR D1 DStop1 mode

In DStop1 mode, the domain CPU clock is stalled.

PWR entering to DStop1 mode

The DStop1 mode is entered according to Section 19.6.3 when PDDS_D1 in PWR_CPU1CR selects Stop for the D1 domain.

See Table 99 for details on how D1 domain enters DStop1.

PWR exiting DStop1 mode

The DStop1 mode is exited according to Section 19.6.4. See the table below for more details on how D1 domain exit DStop1. When exiting DStop1 mode, the CPU subsystem clock is the same as when entering DStop1.

Table 99. D1 DStop1 mode

D1 DStop1Comments
Mode entry
  • – When CPU1 subsystem is in CStop mode.
  • – PDDS_D1 = 0 in PWR_CPU1CR
  • – LPDS_D1 = 0 in PWR_CPU1CR.
Mode exitOn an EXTI1-2 wake-up
Wake-up latencyClocks restored, and EXTI and RCC wake-up synchronization (see Section 20)

19.6.8 PWR D1 DStandby mode

Like the DStop1 mode, the DStandby mode is based on CPU subsystem CStop mode, but the domain supply is powered off.

In DStandby, the domain is powered down and the domain RAM and register contents are lost.

Entering D1 DStandby mode

The D1 DStandby mode is entered according to Section 19.6.3 when PDDS_D1 in PWR_CPU1CR selects Standby.

Refer to Table 100 for details on how D1 domain enters DStandby mode.

Exiting D1 DStandby mode

The DStandby mode is exited according to Section 19.6.4. See the table below for more details on how D1 domain exit DStandby.

When exiting D1 DStandby mode, the domain CPU and peripherals are reset. The state of the CPU subsystem clocks depends on the system mode:

Table 100. D1 DStandby mode

D1 DStandbyComments
Mode entry
  • – When CPU1 subsystem is in CStop and there is no active EXTI1/2 wake-up source assigned to CPU1
  • – PDDS_D1 = 1 in PWR_CPU1CR.
Mode exit
  • – On an EXTI1-2 wake-up when the system did not enter in Standby
  • – Otherwise WKUP pins, RTC alarm (Alarm A and Alarm B), RTC wake-up, tamper event, time stamp event, application reset (such as NRST, IWDG)
Wake-up latency
  • – EXTI and RCC wake-up synchronization (see Section 20)
  • – Domain power up and CPU1 reset
  • – CPU1 reboot from boot ROM

19.6.9 PWR Stop1 mode

The system enters Stop1 mode only when both CPU1 and CPU2 subsystems are in CStop, and EXTI1/2 wake-up sources are inactive. In Stop1 mode, the system clock including any PLL, and the system bus matrix clocks are stopped. The system oscillators operate according to the xxxKERON register bit.

In Stop1 mode, peripherals using the LSI or LSE clock, and peripherals having a kernel clock request, selecting a clock source in the RCC which is able to run in Stop1 mode, are still able to operate.

In system Stop1 mode, the following features can be selected to be kept active by programming individual control bits:

PWR entering to Stop1 mode

The Stop1 mode is entered according to Section 19.6.3 when PDDS_D1 in PWR_CPU1CR requests Stop, and at least one of PDDS_D2 bits in PWR_CPU1CR and PWR_CPU2CR requests Stop.

Refer to Table 101 for details on how to enter Stop1 mode.

PWR exiting from Stop1 mode

The Stop mode is exited according to Section 19.6.4. See Table 101 for more details on how to exit Stop1 mode.

When exiting Stop mode, the RCC restores the CPU subsystem and matrix clocks. STOPF flags in PWR_CPU1CR and PWR_CPU2CR indicate that the system has exit Stop.

Table 101. Stop1 mode

Stop1Comments
Mode entry
  • – When CPU1 and CPU2 subsystems are in CStop and there is no active EXTI1-2 wake-up source
  • – PDDS_D1 = 0 in PWR_CPU1CR
  • – PDDS_D2 = 0 in PWR_CPU1CR or PWR_CPU2CR
  • – LPDS_D1 = 0 in PWR_CPU1CR or LPDS_D2 = 0 in PWR_CPU2CR
Mode exitOn an EXTI1/2 wake-up
Wake-up latencyClocks restored, EXTI and RCC wake-up synchronization and PWRLP_TEMPO (see Section 20)

PWR I/O states in Stop1 mode

In Stop1 mode, all I/O pins keep their configuration.

19.6.10 PWR Stop2 mode

The Stop2 mode is used to save D1 domain power consumption. This mode is equivalent to Stop1 mode in term of available features, but with the D1 in DStandby mode.

The system enters Stop2 mode only when both CPU1 and CPU2 subsystems are in CStop and the EXTI1/2 wake-up sources are inactive.

PWR entering Stop2 mode

The Stop2 mode is entered according to Section 19.6.3 when PDDS_D1 in PWR_CPU1CR requests Standby, and at least one of PDDS_D2 bits in PWR_CPU1CR or PWR_CPU2CR requests Stop.

Refer to Table 102 for details on how to enter Stop2 mode.

PWR exiting from Stop2 mode

The Stop2 mode is exited according to Section 19.6.4. See the table below for more details on how to exit Stop2 mode.

When exiting Stop2 mode, the RCC restores the CPU subsystem and matrix clocks. SBF_D1 in PWR_CPU1CR, and STOPF in PWR_CPU1CR and PWR_CPU2CR indicate that the system has exit Stop2 mode.

Table 102. Stop2 mode

Stop2Comments
Mode entry
  • – When CPU1 and CPU2 subsystems are in CStop and there is no active EXTI1/2 wake-up source
  • – PDDS_D1 = 1 in PWR_CPU1CR
  • – PDDS_D2 = 0 in PWR_CPU1CR or PWR_CPU2CR
  • – LPDS_D2 = 0 in PWR_CPU2CR
Mode exitOn an EXTI1/2 wake-up
Wake-up latencyClocks restored, EXTI and RCC wake-up synchronization and PWRLP_TEMPO (see Section 20)
D1 Domain power up and CPU1 reset, CPU1 reboot from boot ROM

PWR I/O states in Stop2 mode

In Stop2 mode, all I/O pins keep their configuration.

19.6.11 PWR LP-Stop1 and LPLV-Stop1 modes

The LP-Stop1 mode is handled in the same way as Stop1 mode, when LP-Stop mode is selected by LPDS_D1 in PWR_CPU1CR and LPDS_D2 in PWR_CPU2CR. See the table below for more details on how to enter and exit LP-Stop1 mode.

Table 103. LP-Stop1 mode

LP-Stop1Comments
Mode entry
  • – When CPU1 and CPU2 subsystems are in CStop and there is no active EXTI1/2 wake-up source
  • – PDDS_D1 = 0 in PWR_CPU1CR
  • – PDDS_D2 = 0 in PWR_CPU1CR or PWR_CPU2CR
  • – LPDS_D1 = 1 in PWR_CPU1CR and LPDS_D2 = 1 in PWR_CPU2CR
Mode exitOn an EXTI1/2 wake-up
Wake-up latencyClock restored, LP-Stop timeout (external regulator to switch to main mode), EXTI and RCC wake-up synchronization and PWRLP_TEMPO (see Section 20)

LVDS_D1 in PWR_CPU1CR and LVDS_D2 in PWR_CPU2CR are used to select whether \(V_{DDCPU}\) and \(V_{DDCORE}\) supplies during LP-Stop1 mode are kept at Run mode level, or lowered (LP-Stop1 with low-voltage mode).

In LP-Stop1 with low-voltage mode peripherals in D2 domain that can wake up from Stop1 (such as TIM, UART, I2C, SPI), must all be disabled. The DDR retention must be enabled by

DDRRETEN in PWR_CR11. See the table below for more details on how to enter and exit LP-Stop1 with low-voltage mode.

Table 104. LPLV-Stop1 mode
LPLV-Stop1Comments
Mode entry
  • – When CPU1 and CPU2 subsystems are in CStop and there is no active EXTI1/2 wake-up source
  • – PDDS_D1 = 0 in PWR_CPU1CR
  • – PDDS_D2 = 0 in PWR_CPU1CR or PWR_CPU2CR
  • – LPDS_D1 = 1 in PWR_CPU1CR and LPDS_D2 = 1 in PWR_CPU2CR
  • – LVDS_D1 = 1 in PWR_CPU1CR and LVDS_D2 = 1 in PWR_CPU2CR
Mode exitOn an EXTI1/2 wake-up
Wake-up latencyClock restored, LPLV-Stop timeout (external regulator to restore Run mode operating supply level), EXTI and RCC wake-up synchronization and PWRLP_TEMPO (see Section 20)

19.6.12 PWR LP-Stop2 and LPLV-Stop2 modes

The Lp-Stop2 mode is used to save D1 domain power consumption. This mode is equivalent to LP-Stop1 mode but with the D1 in DStandby mode.

The LP-Stop2 mode is handled in the same way as Stop2 mode, when LP-Stop mode is selected by LPDS_D2 register bit in PWR_CPU2CR.

Refer to the table below for more details on how to enter and exit LP-Stop2 mode.

Table 105. LP-Stop2 mode
LP-Stop2Comments
Mode entry
  • – When CPU1 and CPU2 subsystems are in CStop and there is no active EXTI1/2 wake-up source
  • – PDDS_D1 = 1 in PWR_CPU1CR
  • – PDDS_D2 = 0 in PWR_CPU1CR or PWR_CPU2CR
  • – LPDS_D2 = 1 in PWR_CPU2CR
Mode exitOn an EXTI1/2 wake-up
Wake-up latencyClock restored, LP-Stop timeout (external regulator to switch to main mode), EXTI and RCC wake-up synchronization and PWRLP_TEMPO (see Section 20)
D1 domain power up and CPU1 reset, CPU1 reboot from boot ROM

LVDS_D2 in PWR_CPU2CR selects whether VDDCORE supply during LP-Stop2 mode is kept at Run mode level, or lowered (LP-Stop2 with low-voltage mode).

In LP-Stop2 with low-voltage mode the peripherals in D2 domain that can wake up from Stop2 (such as TIM, UART, I2C, SPI), must all be disabled. The DDR retention must be enabled by DDRRETEN in PWR_CR11. See the table below for more details on how to enter and exit LP-Stop2 with low-voltage mode.

Table 106. LPLV-Stop2 mode

LPLV-Stop2Comments
Mode entry
  • – When CPU1 and CPU2 subsystems are in CStop and there is no active EXTI1/2 wake-up source
  • – PDDS_D1 = 1 in PWR_CPU1CR
  • – PDDS_D2 = 0 in PWR_CPU1CR or PWR_CPU2CR
  • – LPDS_D2 = 1 in PWR_CPU2CR
  • – LVDS_D2 = 1 in PWR_CPU2CR
Mode exitOn an EXTI1/2 wake-up
Wake-up latencyClock restored, LPLV-Stop timeout (external regulator to restore Run mode operating supply level), EXTI and RCC wake-up synchronization and PWRLP_TEMPO (see Section 20)
D1 domain power up and CPU1 reset, CPU1 reboot from boot ROM

19.6.13 PWR Standby mode

The Standby mode is used to achieve the lowest power consumption. It is based on CPU1 and CPU2 subsystem CStop mode, as for Stop modes, but with \(V_{DDCORE}\) and \(V_{DDCPU}\) supply regulators powered off.

When the system enters Standby, PWR_ON, PWR_CPU_ON and PWR_LP pins are set low. The external voltage regulators that provide \(V_{DDCORE}\) and \(V_{DDCPU}\) supplies, are disabled. Complete \(V_{DDCORE}\) and \(V_{DDCPU}\) domains are consequently powered off. PLLs, HSI and HSE oscillators are also switched off. SRAM and register contents are lost except for \(V_{DD}\), \(V_{SW}\), backup domain, and retention domain (RTC registers, RTC backup register, LSE, backup RAM and retention RAM) and Standby circuitry.

In system Standby mode, the following features can be selected by programming individual control bits:

PWR entering Standby mode

The Standby mode is entered according to Section 19.6.3 when all PDDS_Dn bits in PWR_CPU1CR and PWR_CPU2CR request Standby mode.

Refer to Table 108 for more details on how to enter Standby mode.

PWR exiting from Standby mode

The Standby mode is exited according to Section 19.6.4. See the table below for more details on how to exit Standby mode.

The system exits Standby when an application reset (such as NRST, IWDG), a WKUP pin event is detected. PWR registers are reset after wake-up from Standby, except for power control and status registers (reset condition defined for each PWR register).

Wake-up event source (WKUP pins and RTC/TAMP when the resource isolation framework is used) can be assigned independently to CPU1 and/or CPU2. The external regulators that provide \(V_{DDCPU}\) and \(V_{DDCORE}\) are enabled according to the CPU to wake up but also according to the first CPU allowed to boot. Refer to RCC Processor state after Standby exit for more details about the first CPU allowed to boot.

The selection of the CPU to wake-up is notified to the RCC through PWR CPU1_HW_BEN and CPU2_HW_BEN signals. Once the wake-up source is cleared, CPU1_HW_BEN and CPU2_HW_BEN are cleared to 0.

Table 107. CPU1_HW_BEN and CPU2_HW_BEN management

Standby exit eventFirst CPU allowed to bootCPU1_HW_BENCPU2_HW_BENPWR_CPU_ONPWR_ON
CPU1 wake-up eventCPU11011
CPU21011
CPU2 wake-up eventCPU10111
CPU20101
CPU1and CPU2 wake-up eventCPU11111
CPU21111

SBF_D1, SBF_D2 and SBF flags in PWR_CPU1CR and PWR_CPU2CR indicate that the system has exit Standby.

Table 108. Standby mode

StandbyComments
Mode entry
  • – All CPU subsystems are in CStop and there is no active EXTI1/2 wake-up source
  • – All WKUPF bits in PWR_WKUPCRx are cleared.
  • – All RTC wake-up events are cleared.
  • – PDDS_D1=1 in PWR_CPU1CR
  • – PDDS_D2=1 in both PWR_CPU1CR and PWR_CPU2CR
Mode exitWKUP pins, RTC alarm (Alarm A and Alarm B), RTC wake-up, tamper event, timestamp event, application reset (such as NRST, IWDG(1))
Wake-up latencySystem reset phase (see Section 20)
or CPU1 boot from boot ROM
or CPU2 boot from RETRAM
  1. 1. The IWDG1/2/3/4 when configured to generate an application reset, and when configured to generate a system debug wake-up event, reset the system in both cases.

PWR I/O states in Standby mode

In Standby mode, all I/O pins are high impedance no pulls except for:

19.7 PWR VBAT operation

The VBAT pin is used to power the \(V_{BAT}\) domain from an external battery.

The VBAT pin supplies the RTC with LSE, anti-tamper detection (TAMP), backup registers and 8-Kbyte backup SRAM. Sixteen anti-tamper detection pins are available in \(V_{BAT}\) mode.

The device can be set in \(V_{BAT}\) mode by powering down the \(V_{DD}\) and \(V_{DDA18AON}\) supplies. The \(V_{DDCPU}\) and \(V_{DDCORE}\) supplies must be powered off before \(V_{DD}\) and \(V_{DDA18AON}\) (PWR_ON and PWR_CPU_ON low level).

VBF flag in PWR_CPU1CR and PWR_CPU2CR indicate that the system has exit \(V_{BAT}\) mode.

PWR I/O states in \(V_{BAT}\) mode

In \(V_{BAT}\) mode, all I/O pins are powered down except for RTC and tamper pins.

19.7.1 PWR debug Stop mode

When the system enters Stop, its operation depends on the DBG_STOP configuration in DBGMCU_CR.

When the Stop mode debug is enabled, when entering Stop mode, the PWR does not signal low-power mode on PWR_ON, PWR_CPU_ON and PWR_LP signals. \(V_{DDCORE}\) and \(V_{DDCPU}\) domains are kept supplied by the regulator in main mode.

When exiting Stop mode, the system CPU and logic are enabled as from normal Stop mode. STOPF is set in PWR_CPU1CR.

When the Stop mode debug is enabled, when entering Run2 or Stop2 mode, the PWR does not signal power-down mode on the PWR_CPU_ON signal. \(V_{DDCPU}\) domain is kept supplied by the regulator in main mode.

When exiting Run2 or Stop2 mode, a CPU1 reset is generated, which resets the \(V_{DDCPU}\) logic excluding the debug logic. SBF_D1 is set in PWR_CPU1CR.

19.7.2 PWR debug Standby mode

When the system enters low-power mode Standby, its operation depends on the DBG_STANDBY configuration in DBGMCU_CR.

When the Standby mode debug is enabled, when entering Standby mode, the PWR keeps pwr_on and pwr_cpu_on active, allowing \(V_{DDCORE}\) and \(V_{DDCPU}\) domains to remain supplied. In Standby mode, \(V_{DDCORE}\) and \(V_{DDCPU}\) domains are not reset, allowing the CPU and bus clocks to be active.

When exiting Standby mode, a reset is generated, which resets VDDCORE and VDDCPU logic, excluding the debug logic. Waking up from debug Standby modes, the system CPUs and logic are reset, as from normal Standby mode. SBF, SBF_D1 and SBF_D2 are set.

19.8 PWR WKUP pins

The WKUP polarity must only be changed by configuring WKUPP in PWR_WKUPPCRx when the wake-up interrupt is disabled in WKUPENCPU1/2 bits. To avoid false interrupts, WKUPF must be cleared with WKUPC in PWR_WKUPPCRx, before enabling the wake-up interrupt in WKUPENCPU1/2.

19.9 PWR_ON, PWR_CPU_ON and PWR_LP pins

VDDCORE and VDDCPU domains can be independently controlled using PWR_ON, PWR_CPU_ON, and PWR_LP pins.

PWR_CPU_ON signals pwr_cpu_on or pwr_cpu_onlp depending on LPCFG_D1 in PWR_DC1R.

PWR_ON signals pwr_on or pwr_onlp depending on LPCFG_D2 in PWR_D2CR.

PWR_LP signals pwr_onlp.

Figure 72. PWR_CPU_ON, PWR_ON and PWR_LP multiplexing

Schematic diagram showing the multiplexing logic for PWR_CPU_ON, PWR_ON, and PWR_LP pins, including multiplexers, AND gates, and minimum pulse width blocks.
Schematic diagram showing the multiplexing logic for PWR_CPU_ON, PWR_ON, and PWR_LP pins, including multiplexers, AND gates, and minimum pulse width blocks.

When LPCFG_D1 selects pwr_cpu_on, PWR_CPU_ON pins are only low in DStandby.

When LPCFG_D1 selects pwr_cpu_onlp on PWR_CPU_ON, the definition (DStandby or DStop2/3) of the signal being low must be communicated to the external power management prior entering low-power mode. PWR_CPU_ON pins are low in DStandby, DStop2, and DStop3 modes.

When LPCFG_D2 selects pwr_on, PWR_ON pin is only low in Standby.

When LPCFG_D2 selects pwr_onlp on PWR_ON, the definition (Standby, LP-Stop1, LP-Stop2, LPLV-Stop1, or LPLV-Stop2) of the signal being low must be communicated to the

external power management prior entering low-power mode. PWR_ON pin is low in Standby, LP-Stop1, LP-Stop2, LPLV-Stop1, and LP-Stop1 modes.

The same external regulator can be used to supply \(V_{DDCORE}\) and \(V_{DDCPU}\). Only PWR_ON and PWR_LP signaling are used to control the external regulator. Run2, Stop2, LP-Stop2, and LPLV-Stop2 modes are no more supported.

19.10 PWR interrupts

The PWR provides the following interrupts:

Other status flags associated with Stop, Standby and monitoring functions are not present on all device part numbers (see the related datasheet for more information).

Table 109. PWR status flags

Status flagDescriptionInterruptCleared through
STOPFExit StopWake-up from Stop eventsCSSF
SBFExit StandbyWake-up from Standby eventsCSSF
SBF_D1D1 exits DStandbyWake-up from DStandby eventsCSSF
SBF_D2D2 exits StandbyWake-up from Standby eventsCSSF
VBFExit VBATNo associated interruptCSSF
WKUPF[6:1]Wake-up flagsCPU1 and CPU2 wake up from Standby and Stop events.WKUPC[6:1]
PVDOProgrammable voltage detectorInterrupt via EXTI1NA
GPVMOGlobal peripheral voltage monitorInterrupt via EXTI1NA
V08CAPL, V08CAPH\(V_{08CAP}\) supply monitoringInterrupt via EXTI2NA
TEMPL, TEMPHTemperature monitoringInterrupt via EXTI2NA

19.11 PWR resource isolation framework (RIF)

In order to be compliant with the device security definition, the PWR implements the following security/isolation requirements which apply to any defined security domain:

There are three different profiles for PWR local resources:

There are two kinds of local resources in the PWR:

19.11.1 PWR RIF configuration

After any application or system reset, the PWR does not filter any access (default configuration: no CID filtering, non-secure, any privilege) until the TDCID agent has programmed the RIF configuration and enabled the filtering. The PWR RIF configuration is based on the local and external RIF configurations.

The local RIF configuration is managed by the following registers:

The external RIF configuration is inherited from the RIF peripheral configurations and it applies to the related local resources. Table 110 shows all PWR local resource content (first column) and the RIF configuration attached to it (third column).

Secure/non-secure access filtering

To enable the filtering access based on this attribute, the authorized master agent has to set RSECx in PWR_RSECCFGR, or WIOSECx in PWR_WIOSECCFGR, for the PWR local resource x.

When the local resource is configured as secure, read/write operations are only allowed by a secure access. Non-secure read/write accesses are denied (RAZ/WI). An illegal secure access event is generated to the IAC (illegal access controller). There is no bus error generated.

When the local resource is configured as non-secure, read/write operations are allowed by both secure and non-secure accesses.

Privileged/unprivileged access filtering

To enable the filtering access based on this attribute, the authorized master agent has to set RPRIVx in PWR_RPRIVCFGR, or WIOPRIVx in PWR_WIOPRIVCFGR, for the PWR local resource x.

When the local resource is configured as privileged, read/write operations are only allowed by a privileged access. Unprivileged read/write accesses are denied (RAZ/WI). An illegal privileged access event is generated to the IAC. There is no bus error generated.

When the local resource is configured as unprivileged, read/write operations are allowed by both privileged and unprivileged accesses.

CID access filtering

The PWR_RxCIDCFGR register controls the CID filtering policy for each non-shareable local resources (without semaphore mechanism). PWR_WIOxCIDCFGR and PWR_WIOxSEMCR registers control the CID filtering policy for each local shareable resources (with semaphore mechanism).

When the compartment-based filtering is active (CFEN = 1), local non-shareable resources are individually controlled by a specific CPU. The trusted domain application sets CID in PWR_RxCIDCFGR (x = 0 to 6).

When the compartment-based filtering is active (CFEN = 1), local shareable resources can be individually controlled by a specific CPU using two techniques:

Any read access is allowed on PWR_RxCIDCFGR, PWR_WIOxCIDCFGR, and PWR_WIOxSEMCR registers.

A non-allowed CID access to a CID-filtered register is denied (RAZ/WI). An illegal CID access event is generated to the IAC. There is no bus error generated.

For debug purpose, the debug domain compartment master, defined by the DDCID compartment value, can access any resource if privileged and secure attributes allow it.

19.12 PWR registers

The PWR registers can be accessed in word, half-word, and byte format, unless explicitly specified differently.

The table below gives the RIF allocation for all PWR registers.

Table 110. PWR register allocation to RIF resource and access conditions

Register namePWR RIF resource numberRIF resource configurationAccess type(1)Description
PWR_R0CIDCFGRR0Secure, privileged and TDCID/DDCIDRWResource 0 CID filtering control
PWR_CR1PWR_RSECCFGR[0]RWPeripheral voltage monitor
PWR_CR2PWR_RPRIVCFGR[0]RWV08CAP and TEMP monitor
PWR_CR3PWR_R0CIDCFGRRWProgrammable voltage detector
PWR_R1CIDCFGRR1Secure, privileged and TDCID/DDCIDRWResource 1 CID filtering control
PWR_CR9PWR_RSECCFGR[1]RWBKPRAM low-power control
PWR_CR10PWR_RPRIVCFGR[1]RWRETRAM low-power control
PWR_D1CRPWR_R1CIDCFGRRWVDDCPU power pin control
PWR_D2CRRWVDDCORE power pin control
PWR_R2CIDCFGRR2Secure, privileged and TDCID/DDCIDRWResource 2 CID filtering control
PWR_CPU1CRPWR_RSECCFGR[2]
PWR_RPRIVCFGR[2]
PWR_R2CIDCFGR
RWCPU1 power control
PWR_R3CIDCFGRR3Secure, privileged and TDCID/DDCIDRWResource 3 CID filtering control
PWR_CPU2CRPWR_RSECCFGR[3]
PWR_RPRIVCFGR[3]
PWR_R3CIDCFGR
RWCPU2 power control
PWR_R4CIDCFGRR4Secure, privileged and TDCID/DDCIDRWResource 4 CID filtering control
ReservedPWR_RSECCFGR[4]
PWR_RPRIVCFGR[4]
PWR_R4CIDCFGR
RWReserved
PWR_R5CIDCFGRR5Secure, privileged and TDCID/DDCIDRWResource 5 CID filtering control
PWR_CR7PWR_RSECCFGR[5]
PWR_RPRIVCFGR[5]
PWR_R5CIDCFGR
RWVDDIO2 peripheral voltage monitor
PWR_R6CIDCFGRR6Secure, privileged and TDCID/DDCIDRWResource 6 CID filtering control
PWR_CR8PWR_RSECCFGR[6]
PWR_RPRIVCFGR[6]
PWR_R6CIDCFGR
RWVDDIO1 peripheral voltage monitor

Table 110. PWR register allocation to RIF resource and access conditions (continued)

Register namePWR RIF
resource number
RIF resource configurationAccess type(1)Description
PWR_WIO1CIDCFGRWIO1Secure, privileged and TDCID/DDCIDRWWake-up I/O resource 1 CID filtering control
PWR_WIO1SEMCRPWR_WIOSECCFGR[0]
PWR_WIOPRIVCFGR[0]
RW
PWR_WKUPCR1PWR_WIO1CIDCFGR
PWR_WIO1SEMCR
RWWake-up pin #1 control
PWR_WIO2CIDCFGRWIO2Secure, privileged and TDCID/DDCIDRWWake-up I/O resource 2 CID filtering control
PWR_WIO2SEMCRPWR_WIOSECCFGR[1]
PWR_WIOPRIVCFGR[1]
RW
PWR_WKUPCR2PWR_WIO2CIDCFGR
PWR_WIO2SEMCR
RWWake-up pin #2 control
PWR_WIO3CIDCFGRWIO3Secure, privileged and TDCID/DDCIDRWWake-up /IO resource 3 CID filtering control
PWR_WIO3SEMCRPWR_WIOSECCFGR[2]
PWR_WIOPRIVCFGR[2]
RW
PWR_WKUPCR3PWR_WIO3CIDCFGR
PWR_WIO3SEMCR
RWWake-up pin #3 control
PWR_WIO4CIDCFGRWIO4Secure, privileged and TDCID/DDCIDRWWake-up I/O resource 4 CID filtering control
PWR_WIO4SEMCRPWR_WIOSECCFGR[3]
PWR_WIOPRIVCFGR[3]
RW
PWR_WKUPCR4PWR_WIO4CIDCFGR
PWR_WIO4SEMCR
RWWake-up pin #4 control
PWR_WIO5CIDCFGRWIO5Secure, privileged and TDCID/DDCIDRWWake-up I/O resource 5 CID filtering control
PWR_WIO5SEMCRPWR_WIOSECCFGR[4]
PWR_WIOPRIVCFGR[4]
RW
PWR_WKUPCR5PWR_WIO5CIDCFGR
PWR_WIO5SEMCR
RWWake-up pin #5 control
PWR_WIO6CIDCFGRWIO6Secure, privileged and TDCID/DDCIDRWWake-up I/O resource 6 CID filtering control
PWR_WIO6SEMCRPWR_WIOSECCFGR[5]
PWR_WIOPRIVCFGR[5]
RW
PWR_WKUPCR6PWR_WIO6CIDCFGR
PWR_WIO6SEMCR
RWWake-up pin #6 control
PWR_CR11NAInherited from RCC internal resource
104 RIF configuration
RCC_SECCFGR3[8]
RCC_PRIVCFGR3[8]
RCC_CIDCFG_LOCKR3[8]
RCC_R104CIDCFGR
RCC_R104SEMCR
RWDDR PHY retention control

Table 110. PWR register allocation to RIF resource and access conditions (continued)

Register namePWR RIF resource numberRIF resource configurationAccess type(1)Description
PWR_BDCRNASecure, privileged and TDCID/DDCIDRWBackup domain control register
PWR_CPU1D1SRNANARPWR CPU1 and D1 domain status register
PWR_CPU2D2SRNANARPWR CPU2 and D2 domain status register
PWR_VERRNANARPWR version register
PWR_IPIDRNANARPWR identification register
PWR_SIDRNANARPWR size identification register

1. RW = read or write, R = read, W = write

19.12.1 PWR control register 1 (PWR_CR1)

Address offset: 0x000

Reset value: 0x0000 0000

See individual bits for reset condition. Access 6 wait states when writing this register.

When a system reset occurs during the register write cycle, the written data is not guaranteed. Secure restriction is defined by RSEC0 in PWR_RSECCFGR. Privileged restriction is defined by RPRIV0 in PWR_RPRIVCFGR.

If compartment filtering is enabled, only an authorized compartment can write this register, on top of secure and privileged restrictions. Any read access from CPU1 and CPU2 is allowed to this register.

31302928272625242322212019181716
GPVMORes.Res.Res.Res.Res.VDDIO3VRSELVDDIOVRSELRes.Res.Res.ARDYRes.USB33RDYRes.VDDIO3RDY
rrwrwrrr
1514131211109876543210
Res.Res.Res.ASVRes.Res.Res.VDDIO3SVRes.Res.Res.AVMENRes.USB33VMENRes.VDDIO3VMEN
rwrwrwrwrw

Bit 31 GPVMO: Global peripheral voltage monitor output

This bit is set and cleared by hardware. It is valid only if at least one independent power supply monitor (including \(V_{DDIO1}\) and \(V_{DDIO2}\) monitors) is enabled, and the supply is valid (voltage monitor enable bit and supply valid bit must be set for the same power supply).

0: All enabled/valid independent power supplies are equal or higher than PVM threshold.

1: At least one enabled/valid independent power supply is lower than PVM threshold.

Bits 30:26 Reserved, must be kept at reset value.

Bit 4 AVMEN: \(V_{DDA18ADC}\) independent ADC voltage monitor enable

This bit is reset on any system reset.

0: \(V_{DDA18ADC}\) voltage monitor disabled.

1: \(V_{DDA18ADC}\) voltage monitor enabled.

Bit 3 Reserved, must be kept at reset value.

Bit 2 USB33VMEN: \(V_{DD33USB}\) independent USB 33 voltage monitor enable

This bit is reset on any system reset.

0: \(V_{DD33USB}\) voltage monitor disabled.

1: \(V_{DD33USB}\) voltage monitor enabled.

Bit 1 Reserved, must be kept at reset value.

Bit 0 VDDIO3VMEN: \(V_{DDIO3}\) independent voltage monitor enable

This bit is reset on any system reset.

0: \(V_{DDIO3}\) voltage monitor disabled.

1: \(V_{DDIO3}\) voltage monitor enabled.

19.12.2 PWR control register 2 (PWR_CR2)

Address offset: 0x004

Reset value: 0x0000 0000

Not reset by wake-up from Standby, application reset (such as 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, this register is write-protected, and DBD in PWR_BDCR has to be set before this register can be written. When DBD is cleared, there are no bus errors generated when writing this register. This register must not be accessed when RCC VSWRST in RCC_BDCR resets the \(V_{SW}\) domain. Secure restriction is defined by RSEC0 in PWR_RSECCFGR. Privilege restriction is defined by RPRIV0 in PWR_RPRIVCFGR.

If compartment filtering is enabled, only an authorized compartment can write this register, on top of secure and privileged restrictions. Any read access from CPU1 and CPU2 is allowed to this register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.TEMPHTEMPLV08CA
PH
V08CA
PL
Res.Res.Res.Res.Res.Res.Res.MON
EN
rrrrrw

Bits 31:12 Reserved, must be kept at reset value.

Bit 11 TEMPH: Monitored temperature level above high threshold

0: Temperature below high threshold level, or monitor disabled

1: Temperature equal or above high threshold level

19.12.3 PWR control register 3 (PWR_CR3)

Address offset: 0x008

Reset value: 0x0000 0000

Reset on any system reset.

Secure restriction is defined by RSEC0 in PWR_RSECCFGR. Privilege restriction is defined by RPRIV0 in PWR_RPRIVCFGR.

If compartment filtering is enabled, only an authorized compartment can write this register, on top of secure and privileged restrictions. Any read access from CPU1 and CPU2 is allowed to this register.

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.PVDORes.Res.Res.Res.Res.Res.Res.PVDEN
rrw

Bits 31:9 Reserved, must be kept at reset value.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 PVDEN: PVD enable

This bit is read only when the SYSCFG register bit PVDL is set (no bus errors generated when writing this register).

19.12.4 PWR control register 7 (PWR_CR7)

Address offset: 0x018

Reset value: 0x0000 0000

See individual bits for reset condition. Access 6 wait states when writing this register.

When a system reset occurs during the register write cycle, the written data is not guaranteed. Secure restriction is defined by RSEC5 in PWR_RSECCFGR. Privilege restriction is defined by RPRIV5 in PWR_RPRIVCFGR.

If compartment filtering is enabled, only an authorized compartment can write this register, on top of secure and privileged restrictions. Any read access from CPU1 and CPU2 is allowed to this register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.VDDIO
2VR
STBY
VDDIO
2VR
SEL
Res.Res.Res.Res.Res.Res.Res.VDDIO
2RDY
rwrwr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.VDDIO
2SV
Res.Res.Res.Res.Res.Res.Res.VDDIO
2VMEN
rwrw

Bits 31:26 Reserved, must be kept at reset value.

Bit 25 VDDIO2VRSTBY: \(V_{DDIO2}\) I/O voltage range Standby mode

When set, this bit is used to retain VDDIO2VRSEL configuration in Standby mode.

This bit must be written to 1 if the \(V_{DDIO2}\) is in 1.8 V range in Standby, and when exiting Standby. It must not be set when \(V_{DDIO2}\) is in 3.3 V range in Standby, or when exiting Standby. This bit is not reset by wake-up from Standby, but by any application reset (such as NRST or IWDG).

Bit 24 VDDIO2VRSEL: \(V_{DDIO2}\) I/O voltage range selection

This bit is used to select the voltage range supported by the I/Os supplied by \(V_{DDIO2}\). It is not reset by wake-up from Standby, but by any Application reset (such as NRST, IWDG) when VDDIO2VRSTBY is set, otherwise reset on any system reset.

Bits 23:17 Reserved, must be kept at reset value.

Bit 16 VDDIO2RDY: \(V_{DDIO2}\) ready

0: \(V_{DDIO2}\) is below the threshold of the \(V_{DDIO2}\) voltage monitor.

1: \(V_{DDIO2}\) is equal or above the threshold of the \(V_{DDIO2}\) voltage monitor.

Bits 15:9 Reserved, must be kept at reset value.

Bit 8 VDDIO2SV: \(V_{DDIO2}\) Independent supply valid.

This bit is used to validate the \(V_{DDIO2}\) supply for electrical and logical isolation purpose. Setting this bit is mandatory to use PE[15:6] I/Os. If \(V_{DDIO2}\) is not always present in the application, the \(V_{DDIO2}\) voltage monitor can be used to determine whether this supply is ready or not. This bit is reset on any system reset.

0: \(V_{DDIO2}\) is not present. Logical and electrical isolation is applied to ignore this supply.

1: \(V_{DDIO2}\) is valid.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 VDDIO2VMEN: \(V_{DDIO2}\) independent voltage monitor enable

This bit is reset on any system reset.

0: \(V_{DDIO2}\) voltage monitor disabled

1: \(V_{DDIO2}\) voltage monitor enabled

19.12.5 PWR control register 8 (PWR_CR8)

Address offset: 0x01C

Reset value: 0x0000 0000

See individual bits for reset condition. Access 6 wait states when writing this register.

When a system reset occurs during the register write cycle, the written data is not guaranteed. Secure restriction is defined by RSEC6 in PWR_RSECCFGR. Privilege restriction is defined by RPRIV6 in PWR_RPRIVCFGR.

If compartment filtering is enabled, only an authorized compartment can write this register, on top of secure and privileged restrictions. Any read access from CPU1 and CPU2 is allowed to this register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.VDDIO1VRSTBYVDDIO1VRSELRes.Res.Res.Res.Res.Res.Res.VDDIO1RDY
rwrwr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.VDDIO1SVRes.Res.Res.Res.Res.Res.Res.VDDIO1VMEN
rwrw

Bits 31:26 Reserved, must be kept at reset value.

Bit 25 VDDIO1VRSTBY: \(V_{DDIO1}\) I/O voltage range Standby mode

When set, this bit is used to retain VDDIO1VRSEL configuration in Standby. This bit must be written to 1 if \(V_{DDIO1}\) is in 1.8 V range in Standby, and when exiting Standby. It must not be set when \(V_{DDIO1}\) is in 3.3 V range in Standby, or when exiting Standby. This bit is not reset by wake-up from Standby, but by any Application reset (such as NRST, IWDG).

0: VDDIO1VRSEL not retained in Standby mode

1: VDDIO1VRSEL bit retained in Standby mode

Bit 24 VDDIO1VRSEL: \(V_{DDIO1}\) I/O voltage range selection

This bit is used to select the voltage range supported by the I/Os supplied by \(V_{DDIO1}\). It is not reset by wake-up from Standby, but by any application reset (such as NRST, IWDG) when VDDIO1VRSTBY is set, otherwise reset on any system reset.

0: 3.3 V voltage range selected. If \(V_{DDIO1}\) is in 1.8 V range with this setting, the I/Os work in degraded mode.

1: 1.8 V voltage range selected. HSLV_VDDIO1 OTP bit must be set to allow 1.8 V voltage range operation. Setting this configuration while \(V_{DDIO1}\) is in 3.3 V range damages the device.

Bits 23:17 Reserved, must be kept at reset value.

Bit 16 VDDIO1RDY: \(V_{DDIO1}\) ready

0: \(V_{DDIO1}\) is below the threshold of the \(V_{DDIO1}\) voltage monitor.

1: \(V_{DDIO1}\) is equal or above the threshold of the \(V_{DDIO1}\) voltage monitor.

Bits 15:9 Reserved, must be kept at reset value.

Bit 8 VDDIO1SV: \(V_{DDIO1}\) independent I/O supply valid

This bit is used to validate the \(V_{DDIO1}\) supply for electrical and logical isolation purpose. Setting this bit is mandatory to use PE[5:0] I/Os. If \(V_{DDIO1}\) is not always present in the application, the \(V_{DDIO1}\) voltage monitor can be used to determine whether this supply is ready or not. This bit is reset on any system reset.

0: \(V_{DDIO1}\) is not present. Logical and electrical isolation is applied to ignore this supply.

1: \(V_{DDIO1}\) is valid.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 VDDIO1VMEN: \(V_{DDIO1}\) independent I/O voltage monitor enable

This bit is reset on any system reset.

0: \(V_{DDIO1}\) voltage monitor disabled

1: \(V_{DDIO1}\) voltage monitor enabled

19.12.6 PWR control register 9 (PWR_CR9)

Address offset: 0x020

Reset value: 0x0000 0000

Not reset by wake-up from Standby mode, application reset (such as 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, this register is write-protected, and DBP in PWR_BDCR has to be set before it can be written. When DBP is cleared, there are no bus errors generated when writing this register. This register must not be accessed when RCC VSWRST in RCC_BDCR resets the \(V_{SW}\) domain. When a system reset occurs during the register write cycle, the written data is not guaranteed. Secure restriction is defined by RSEC1 in PWR_RSECCFGR. Privilege restriction is defined by RPRIV1 in PWR_RPRIVCFGR.

If compartment filtering is enabled only an authorized compartment can write this register, on top of secure and privileged restrictions. Any read access from CPU1 and CPU2 is allowed to this register.

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.Res.Res.Res.Res.Res.BKPRB
SEN
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 BKPRBSEN: Backup RAM backup supply enable

This bit is used to maintain BKPSRAM content in Standby and \(V_{BAT}\) modes. When it is set, the BKPSRAM is supplied from backup regulator in Standby and \(V_{BAT}\). When this bit is reset, the BKPSRAM can still be used in Run and Stop, but its content is lost in Standby and \(V_{BAT}\).

0: BKPSRAM backup supply disabled

1: BKPSRAM backup supply enabled

19.12.7 PWR control register 10 (PWR_CR10)

Address offset: 0x024

Reset value: 0x0000 0000

Not reset by wake-up from Standby, application reset (such as 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, this register is write-protected, and DBP in PWR_BDCR has to be set before it can be written. When DBP is cleared, there are no bus errors generated when writing this register. This register must not be accessed when RCC VSWRST in RCC_BDCR resets the \(V_{SW}\) domain. When a system reset occurs during the register write cycle the written data is not guaranteed. Secure restriction is defined by RSEC1 in PWR_RSECCFGR. Privilege restriction is defined by RPRIV1 in PWR_RPRIVCFGR.

If compartment filtering is enabled only an authorized compartment can write this register, on top of secure and privileged restrictions. Any read access from CPU1 and CPU2 is allowed to this register.

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.Res.Res.Res.Res.RETRBSEN[1:0]
rwrw

Bits 31:2 Reserved, must be kept at reset value.

Bits 1:0 RETRBSEN[1:0]: Retention RAM backup supply enable

This bit is used to maintain RETRAM content in Standby and \(V_{BAT}\) modes. When it is set, the RETRAM is supplied from backup regulator in Standby and \(V_{BAT}\). When this bit is reset, the RETRAM can still be used in Run and Stop, but its content is lost in Standby and VBAT.

00: RETRAM backup supply disabled

01: RETRAM backup supply enabled in Standby and VBAT

10-11: RETRAM backup supply enabled only in Standby (memory content lost in \(V_{BAT}\) mode)

Others: Reserved

19.12.8 PWR control register 11 (PWR_CR11)

Address offset: 0x028

Reset value: 0x0000 0000

Reset on any system reset.

Compartment filtering, secure and privilege restriction inherited from RCC internal resource 104 RIF configuration (see Section 20: Reset and clock control (RCC) for details. Any read access from CPU1 and CPU2 is allowed to this register.

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.Res.Res.Res.Res.Res.DDRR
ETDIS
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 DDRRETDIS: DDR retention disable

When written 1 to this bit, the DDR PHY exits LP3/IO retention. To enable retention software must write this bit to 0.

19.12.9 PWR backup domain control register (PWR_BDCR)

Address offset: 0x038

Reset value: 0x0000 0000

Reset on any system reset.

Secure privileged write access only. Write only by trusted domain CID, as defined in RIMC. Any read access from CPU1 and CPU2 is allowed to this register.

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.Res.Res.Res.Res.Res.DBP
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 DBP: Disable backup write protection

In reset state, all registers in backup domain are protected against parasitic write access. This bit must be set to enable write access to these registers.

19.12.10 PWR CPU1 control register (PWR_CPU1CR)

Address offset: 0x040

Reset value: 0x0000 0000

See individual bits for reset condition. Access 6 wait states when writing this register. When a system reset occurs during the register write cycle, the written data is not guaranteed. Secure restriction is defined by RSEC2 in PWR_RSECCFGR. Privilege restriction is defined by RPRIV2 in PWR_RPRIVCFGR.

If compartment filtering is enabled, only an authorized compartment can write this register, on top of secure and privileged restrictions. Any read access from CPU1 and CPU2 is allowed to this register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LVDS_D1LPDS_D1
rwrw
1514131211109876543210
STANDBYWFIL2Res.Res.Res.Res.Res.CSSFRes.SBF_D1SBFSTOPFVBFRes.Res.PDDS_D1PDDS_D2
rwrrrrwrwrw

Bits 31:18 Reserved, must be kept at reset value.

Bit 17 LVDS_D1: Low-voltage Deepsleep LPLV-Stop mode selection for the D1 domain (DStop3)

This bit is reset on any system reset. It has effect only when LPDS_D1 = 1. It changes the \(V_{DDCPU}\) domain supply reset level.

0: LP-Stop mode \(V_{DDCPU}\) domain supply reset level at same level as Run mode.

\(V_{DDCPU}\) domain supply level in LP-Stop mode must be kept at same level as Run mode.

1: LPLV-Stop mode \(V_{DDCPU}\) domain supply reset level at lower level than Run mode.

\(V_{DDCPU}\) supply can be lowered in LPLV-Stop mode (see datasheet for voltage levels).

Bit 16 LPDS_D1: low-power Deepsleep Stop mode selection for the D1 domain (DStop2)

This bit is reset on any system reset.

0: Stop mode selected, external regulator kept in main power mode.

1: LP/LPLV-Stop mode selected, external regulator may enter low-power mode (low-power mode selection provided by LVDS_D1).

Bit 15 STANDBYWFIL2: CPU1 system idle indication

This bit is set and reset by hardware based on the CPU1 operation mode.

0: CPU1 system active

1: CPU1 system idle

Bits 14:10 Reserved, must be kept at reset value.

Bit 9 CSSF: Clear CPU1 STOPF, SBF_D1, SBF, VBF and CPU2 SBF flags (Always read as 0)

This bit is reset on any system reset.

0: No effect.

1: Clear CPU1 (STOPF, SBF_D1, SBF, VBF) and CPU2 SBF flags. Register bit is cleared to 0 by hardware.

Bit 8 Reserved, must be kept at reset value.

19.12.11 PWR CPU2 control register (PWR_CPU2CR)

Address offset: 0x044

Reset value: 0x0000 0000

See individual bits for reset condition. Access 6 wait states when writing this register. When a system reset occurs during the register write cycle, the written data is not guaranteed. Secure restriction is defined by RSEC3 in PWR_RSECCFGR. Privilege restriction is defined by RPRIV3 in PWR_RPRIVCFGR.

If compartment filtering is enabled, only an authorized compartment can write this register, on top of secure and privileged restrictions. Any read access from CPU1 and CPU2 is allowed to this register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LVDS_D2LPDS_D2
rwrw
1514131211109876543210
DEEPSLEEPRes.Res.Res.Res.Res.CSSFRes.SBF_D2SBFSTOPFVBFRes.Res.Res.PDDS_D2
rwrrrrwrw

Bits 31:18 Reserved, must be kept at reset value.

Bit 17 LVDS_D2: Low-voltage Deepsleep LPLV-Stop mode selection for the D2 domain/system

This bit is reset on any system reset. It has effect only when LPDS_D2 = 1. It changes the \(V_{DDCORE}\) domain supply reset level.

0: LP-Stop mode \(V_{DDCORE}\) domain supply reset level at same level as Run mode.

\(V_{DDCORE}\) domain supply level in LP-Stop mode must be kept at same level as Run mode.

1: LPLV-Stop mode \(V_{DDCORE}\) domain supply reset level at lower level than Run mode.

\(V_{DDCORE}\) supply can be lowered in LPLV-Stop mode (see datasheet for voltage levels).

Bit 16 LPDS_D2: low-power Deepsleep Stop mode selection for the D2 domain/syste.

This bit is reset on any system reset.

0: Stop mode selected, external regulator kept in main power mode (pwr_lp = 1)

1: LP/LPLV-Stop mode selected, external regulator may enter low-power mode (pwr_lp = 0) (low-power mode selection provided by LVDS_D2).

Bit 15 DEEPSLEEP: CPU2 system idle indication

This bit is set and reset by hardware based on the CPU2 operation mode.

0: CPU2 system active

1: CPU2 system idle

Bits 14:10 Reserved, must be kept at reset value.

Bit 9 CSSF: Clear CPU2 STOPF, SBF_D2, SBF, VBF and CPU1 SBF flags (Always read as 0)

This bit is reset on any system reset.

0: No effect

1: Clear CPU2 (STOPF, SBF_D2, SBF, VBF) and CPU1 SBF flags. Register bit is cleared to 0 by hardware.

Bit 8 Reserved, must be kept at reset value.

Bit 7 SBF_D2: D2 Standby flag

This bit is set by hardware, and cleared only by a \(V_{DD}\) POR reset, or by setting the CPU2 CSSF bit. It is not reset when exiting Standby mode.

0: D2 domain has not been in Standby mode.

1: D2 domain has been in Standby 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 CPU2 or CPU1 CSSF bit. It is not reset when exiting 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: System Stop flag

This bit is set by hardware, and cleared only by any system reset ,or by setting the CPU2 CSSF bit.

0: System has not been in Stop mode.

1: System has been in Stop mode, and the clock system has been stopped.

Bit 4 VBF: \(V_{BAT}\) exit flag

This bit is set by hardware, and cleared only by a \(V_{SW}\) POR reset, or by setting the CPU2 CSSF bit. It is not reset when exiting \(V_{BAT}\) mode.

0: System has not been in \(V_{BAT}\) mode.

1: System has been in \(V_{BAT}\) mode.

Bits 3:1 Reserved, must be kept at reset value.

Bit 0 PDDS_D2: D2 domain/system power-down Deepsleep selection

This bit is reset only by a \(V_{DD}\) POR reset. It is not reset when exiting Standby mode. It allows CPU2 to define the Deepsleep mode for the D2/system.

0: Stop mode kept when CPU2 enters CStop

1: Standby mode allowed when CPU2 enters CStop

19.12.12 PWR D1 control register (PWR_D1CR)

Address offset: 0x04C

Reset value: 0x0000 0000

Not reset by wake-up from Standby and application reset (such as NRST, IWDG) but only reset by \(V_{DD}\) POR. Access 6 wait states when writing this register. When a system reset occurs during the register write cycle, the written data is not guaranteed. Secure restriction is defined by RSEC1 in PWR_RSECCFGR. Privilege restriction is defined by RPRIV1 in PWR_RPRIVCFGR.

If compartment filtering is enabled, only an authorized compartment can write this register, on top of secure and privileged restrictions. Any read access from CPU1 and CPU2 is allowed to this register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.POPL_D1[4:0]Res.Res.Res.Res.Res.Res.Res.LPCFG_D1
rwrwrwrwrwrw

Bits 31:13 Reserved, must be kept at reset value.

Bits 12:8 POPL_D1[4:0]: pwr_cpu_on pulse low configuration

These bits are set and cleared by software. They define the minimum guaranteed duration of the pwr_cpu_on low pulse in DStandby mode (no impact on DSTOP2/3 modes). The LSI oscillator is automatically enabled when needed by the POPL_D1 pulse low configuration.

00000: No guaranteed minimum low time

00001: ~1 ms guaranteed minimum low time (1 x 32 LSI cycles)

00010: ~2 ms guaranteed minimum low time (2 x 32 LSI cycles)

...

11111: ~31 ms guaranteed minimum low time. (31 x 32 LSI cycles)

Note: POPL_D1 value must not be smaller than PODH_D2 value.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 LPCFG_D1: PWR_CPU_ON pin configuration

0: PWR_CPU_ON pin signals DStandby mode (PWR_CPU_ON = 1 in DRun, DStop1/2/3, and = 0 in DStandby) (pwr_cpu_on).

1: PWR_CPU_ON pin signals DStandby and DStop2/3 modes (PWR_CPU_ON = 1 in DRun, DStop1, and = 0 in DStop2/3 and DStandby) (pwr_cpu_onlp).

19.12.13 PWR D2 control register (PWR_D2CR)

Address offset: 0x050

Reset value: 0x0007 0000

See individual bits for reset condition. Access 6 wait states when writing this register. When a system reset occurs during the register write cycle, the written data is not guaranteed. Secure restriction is defined by RSEC1 in PWR_RSECCFGR. Privilege restriction is defined by RPRIV1 in PWR_RPRIVCFGR.

If compartment filtering is enabled, only an authorized compartment can write this register, on top of secure and privileged restrictions. Any read access from CPU1 and CPU2 is allowed to this register.

31302928272625242322212019181716
Res.Res.Res.Res.PODH_D2[3:0]Res.Res.Res.Res.Res.LPLVDLY_D2[2:0]
rwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.POPL_D2[4:0]Res.Res.Res.Res.Res.Res.Res.Res.LPCFG_D2
rwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:24 PODH_D2[3:0]: pwr_on delay high configuration

These bits are set and cleared by software. They define the delay to maintain PWR_ON high when entering in Standby mode. This delay is used to switch off \(V_{DDCPU}\) before \(V_{DDCORE}\). There is no impact when exiting Standby or on LP-Stop and LPLV-Stop modes. The LSI oscillator is automatically enabled when needed by the PODH_D2 delay high configuration. These bits are not reset by wake-up from Standby and application reset (such as NRST, IWDG) but only reset by \(V_{DD}\) POR.

0000: No delay

0001: ~1 ms delay (1 x 32 LSI cycles)

0010: ~2 ms delay (2 x 32 LSI cycles)

...

1111: ~15 ms delay (15 x 32 LSI cycles)

Bits 23:19 Reserved, must be kept at reset value.

Bits 18:16 LPLVDLY_D2[2:0]: LPLV delay value

These bits are set and cleared by software. They define the minimum delay value to be observed before activating PLLs and interconnect clocks, after one of the LPLV system Stop. The LSI oscillator is automatically enabled when needed by the counter. These bits are reset on any system reset.

000: ~187 μs delay (1 x 6 LSI cycles)

001: ~375 μs delay (2 x 6 LSI cycles)

010: ~562 μs delay (3 x 6 LSI cycles)

...

111: ~1.5 ms delay (8 x 6 LSI cycles) (default)

Bits 15:13 Reserved, must be kept at reset value.

Bits 12:8 POPL_D2[4:0]: pwr_on pulse low configuration

These bits are set and cleared by software. They define the minimum guaranteed duration of the pwr_on low pulse in Standby (no impact on LP-Stop and LPLV-Stop modes). The LSI oscillator is automatically enabled when needed by the POPL_D2 pulse low configuration. These bits are not reset by wake-up from Standby and application reset (such as NRST, IWDG) but only reset by \(V_{DD}\) POR.

00000: No guaranteed minimum low time

00001: ~1 ms guaranteed minimum low time (1 x 32 LSI cycles)

00010: ~2 ms guaranteed minimum low time (2 x 32 LSI cycles)

...

11111: ~31 ms guaranteed minimum low time (31 x 32 LSI cycles)

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 LPCFG_D2: PWR_ON pin configuration

This bit is not reset by wake-up from Standby and application reset (such as NRST, IWDG) but only reset by \(V_{DD}\) POR.

0: PWR_ON pin signals Standby (PWR_ON = 1 in Run, Stop1/2, LP-Stop1/2, LPLV-Stop1/2, and = 0 in Standby) (pwr_on).

1: PWR_ON pin signals Standby, LP-Stop, and LPLV-Stop modes (PWR_ON = 1 in Run, Stop1/2, and = 0 in LP-Stop1/2, LPLV-Stop1/2 and Standby) (pwr_onlp).

19.12.14 PWR wake-up control register x (PWR_WKUPCRx)

Address offset: 0x060+0x4*(x-1) (x = 1 to 6)

Reset value: 0x0000 0000

Not reset by wake-up from Standby, 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 WKUPF has been cleared). When a system reset occurs during the register write cycle, the written data is not guaranteed. Secure restriction is defined by WIOSECx in PWR_WIOSECCFGR. Privilege restriction is defined by WIOPRIVx in PWR_WIOSECCFGR.

If compartment filtering is enabled, only an authorized compartment can write this register, on top of secure and privileged restrictions. Authorized compartment value depends on the value of SEM_EN in PWR_WIOxCIDCFGR, and optionally SEM_MUTEX in PWR_WIOxSEMCR. Any read access from CPU1 and CPU2 is allowed to this register.

31302928272625242322212019181716
WKUP
F
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WKUP
ENCPU
2
WKUP
ENCPU
1
rrwrw
1514131211109876543210
Res.Res.WKUPPUPD[1:0]Res.Res.Res.WKUP
P
Res.Res.Res.Res.Res.Res.Res.WKUP
C
rwrwrww

Bit 31 WKUPF: Wake-up flag for WKUPx pin before enable

This bit is set by hardware and cleared only by a NRST reset, or by setting WKUPC in PWR_WKUPCRx.

0: No wake-up event occurred.

1: A wake-up event was received from WKUPx pin.

Bits 30:18 Reserved, must be kept at reset value.

Bit 17 WKUPENCPU2: Enable WKUPx pin and interrupt for CPU2

0: An event on WKUPx pin does not wake up the system from Standby or Stop, nor generates an interrupt to CPU2.

1: A rising or falling edge on WKUPx pin wakes up the system from Standby or Stop, and generates an interrupt to CPU2.

Bit 16 WKUPENCPU1: Enable WKUPx pin and interrupt for CPU1

0: An event on WKUPx pin does not wake up the system from Standby or Stop, nor generates an interrupt to CPU1.

1: A rising or falling edge on WKUPx pin wakes up the system from Standby or Stop, and generates an interrupt to CPU1.

Bits 15:14 Reserved, must be kept at reset value.

Bits 13:12 WKUPPUPD[1:0]: Wake-up pull configuration for WKUPx pin

These bits define the I/O pin pull configuration used when WKUPENCPU1 or/and WKUPENCPU2 are set to 1 ( associated GPIO port pull configuration must be set to the same value or 00). The wake-up pin pull configuration is maintained in Standby mode.

Bits 11:9 Reserved, must be kept at reset value.

Bit 8 WKUPP: Wake-up polarity bit for WKUPx pin

This bit defines the polarity used for event detection on external WKUPx pin.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 WKUPC: Clear wake-up flag for WKUPx pin

This bit is always read as 0. It is cleared to 0 by hardware.

19.12.15 PWR resource secure configuration register (PWR_RSECCFGR)

Address offset: 0x100

Reset value: 0x0000 0000

Reset on any system reset.

Non-secure or unprivileged writes to this register are ignored, while any read access from CPU1 and CPU2 is allowed.

Debug domain can write to this register if the feature is activated.

RM0506column_2Bits 13:12 Bit 8 Bit 0column_400: No pulls 01: Pull-up WKUPP WKUPC: 0: No effect10: Pull-down 11: Reservedcolumn_7column_8column_9column_10column_11column_12column_13column_14column_15column_16column_17column_18
31302928272625242322212019 1817 16
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res. Res.Res. Res.
1514131211109876543 21 0
Res.Res.Res.Res.Res.Res.Res.Res.Res.RSEC6 RSEC5 RSEC4 RSEC3 RSEC2 RSEC1 RSEC0
rwrwrwrw rwrw rw
Bit 6RSEC6: Secure attribute reference for the local resource number 6
Bit 5RSEC5: Secure attribute reference for the local resource number 5
Bit 4RSEC4: Secure attribute reference for the local resource number 4
Bit 3RSEC3: Secure attribute reference for the local resource number 3
RM0506 Rev 2849/ 4831

Bits 31:7 Reserved, must be kept at reset value.

Bit 6 RSEC6: Secure attribute reference for the local resource number 6
See RSEC0 for details.

Bit 5 RSEC5: Secure attribute reference for the local resource number 5
See RSEC0 for details.

Bit 4 RSEC4: Secure attribute reference for the local resource number 4
See RSEC0 for details.

Bit 3 RSEC3: Secure attribute reference for the local resource number 3
See RSEC0 for details.

Bit 2 RSEC2: Secure attribute reference for the local resource number 2
See RSEC0 for details.

Bit 1 RSEC1: Secure attribute reference for the local resource number 1
See RSEC0 for details.

Bit 0 RSEC0: Secure attribute reference for the local resource number 0
This bit is written by software to enable the secure mode for the local resource 0.
If compartment filtering for this local resource is enabled (resp. disabled) by CFEN in PWR_R0CIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if privilege and security of the access is sufficient.
0: The local resource number 0 is non-secure. Secure access is also possible.
1: The local resource number 0 is secure only.

19.12.16 PWR resource privileged configuration register (PWR_RPRIVCFGR)

Address offset: 0x104

Reset value: 0x0000 0000

Reset on any system reset.

Unprivileged writes to this register are ignored while any read access from CPU1 and CPU2 is allowed.

Debug domain can write to this register if the feature is activated.

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.RPRIV 6RPRIV 5RPRIV 4RPRIV 3RPRIV 2RPRIV 1RPRIV 0
rwrwrwrwrwrwrw

Bits 31:7 Reserved, must be kept at reset value.

Bit 6 RPRIV6: Privileged attribute reference for the local resource number 6
See RPRIV0 for details.

Bit 5 RPRIV5: Privileged attribute reference for the local resource number 5
See RPRIV0 for details.

Bit 4 RPRIV4: Privileged attribute reference for the local resource number 4)
See RPRIV0 for details.

Bit 3 RPRIV3: Privileged attribute reference for the local resource number 3
See RPRIV0 for details.

Bit 2 RPRIV2: Privileged attribute reference for the local resource number 2
See RPRIV0 for details.

Bit 1 RPRIV1: Privileged attribute reference for the local resource number 1
See RPRIV0 for details.

Bit 0 RPRIV0: Privileged attribute reference for the local resource number 0

This bit is written by software to enable the privileged mode for the local resource 0.

If corresponding SEC0 is set in PWR_RSECCFGR, this bit can only be written by a secure privileged application. If compartment filtering for this local resource is enabled (resp. disabled) by CFEN in PWR_R0CIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if privilege and security of the access is sufficient.

0: The local resource number 0 is unprivileged. Secure access is also possible.

1: The local resource number 0 is privileged only.

19.12.17 PWR resource x CID configuration register (PWR_RxCIDCFGR)

Address offset: 0x108+0x4*x, (x = 0 to 6)

Reset value: 0x0000 0000

Reset on any system reset.

This register is used to configure the local resource x as belonging to a specific compartment (or not). Secure privileged write access only. Write only by trusted domain and secure privileged debug domain CID. Any read access from CPU1 and CPU2 is allowed on this register.

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.SCID[2:0]Res.Res.Res.CFEN
rwrwrwrw

Bits 31:7 Reserved, must be kept at reset value.

Bits 6:4 SCID[2:0]: Static compartment identifier

When CFEN = 1, this field is used by the trusted domain application to define which compartment has access to the local resource number x.

Bits 3:1 Reserved, must be kept at reset value.

Bit 0 CFEN: Compartment ID filter enable

0: Compartment-based filtering is disabled for resource number x.

1: Compartment-based filtering is enabled for resource number x.

19.12.18 PWR WIO secure configuration register (PWR_WIOSECCFGR)

Address offset: 0x180

Reset value: 0x0000 0000

Reset on any system reset.

Non-secure or unprivileged writes to this register are ignored, while any read access from CPU1 and CPU2 is allowed.

Debug domain can write to this register if the feature is activated.

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

Bits 31:6 Reserved, must be kept at reset value.

Bit 5 WIOSEC6: Secure attribute reference for the wake-up I/O 6
See WIOSEC1 for details.

Bit 4 WIOSEC5: Secure attribute reference for the wake-up I/O 5
See WIOSEC1 for details.

Bit 3 WIOSEC4: Secure attribute reference for the wake-up I/O 4
See WIOSEC1 for details.

Bit 2 WIOSEC3: Secure attribute reference for the wake-up I/O 3
See WIOSEC1 for details.

Bit 1 WIOSEC2: Secure attribute reference for the wake-up I/O 2)
See WIOSEC1 for details.

Bit 0 WIOSEC1: Secure attribute reference for the wake-up I/O 1
This bit is written by software to enabled the secure mode for the wake-up I/O 1.
If compartment filtering for this wake-up I/O is enabled (resp. disabled) by CFEN bit in PWR_WIO1CIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if privilege and security of the access is sufficient.
Authorized compartment is defined as SCID if SEM_EN=0 in PWR_WIO1CIDCFGR.
if SEM_EN = 1, it is equal to SEMCID, if SEM_MUTEX = 1 in PWR_WIO1SEMCR. There is no authorized compartment if SEM_EN = 1 and SEM_MUTEX = 0.
0: The wake-up I/O 1 is non-secure. Secure access is also possible.
1: The wake-up I/O 1 is secure only.

ST logo
ST logo

19.12.19 PWR WIO privileged configuration register (PWR_WIOPRIVCFGR)

Address offset: 0x184

Reset value: 0x0000 0000

Reset on any system reset.

Unprivileged writes to this register are ignored while any read access from CPU1 and CPU2 is allowed.

Debug domain can write to this register if the feature is activated.

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.WIOPR
IV6
WIOPR
IV5
WIOPR
IV4
WIOPR
IV3
WIOPR
IV2
WIOPR
IV1
rwrwrwrwrwrw

Bits 31:6 Reserved, must be kept at reset value.

Bit 5 WIOPRIV6: Privileged attribute reference for the wake-up I/O 6
See WIOPRIV1 for details.

Bit 4 WIOPRIV5: Privileged attribute reference for the wake-up I/O 5
See WIOPRIV1 for details.

Bit 3 WIOPRIV4: Privileged attribute reference for the wake-up I/O 4
See WIOPRIV1 for details.

Bit 2 WIOPRIV3: Privileged attribute reference for the wake-up I/O 3
See WIOPRIV1 for details.

Bit 1 WIOPRIV2: Privileged attribute reference for the wake-up I/O 2
See WIOPRIV1 for details.

Bit 0 WIOPRIV1: Privileged attribute reference for the wake-up I/O 1

This bit is written by software to enable the privileged mode for the wake-up I/O 1. If corresponding SEC1 bit is set in PWR_WIOSECCFGR this bit can only be written by a secure privileged application. If compartment filtering for this wake-up I/O is enabled (resp. disabled) by CFEN in PWR_WIO1CIDCFGR, only an authorized privileged compartment (resp. any compartment) can write this bit, if privileged and security of the access is sufficient. Authorized compartment is defined as SCID if SEM_EN = 0 in PWR_WIO1CIDCFGR. If SEM_EN = 1, it is equal to SEMCID, if SEM_MUTEX = 1 in PWR_WIO1SEMCR. There is no authorized compartment if SEM_EN = 1 and SEM_MUTEX = 0.

0: The wake-up I/O 1 is unprivileged. Privileged access is also possible.

1: The wake-up I/O 1 is privileged only.

19.12.20 PWR WIO x CID configuration register (PWR_WIOxCIDCFGR)

Address offset: 0x188+0x8*(x-1) (x = 1 to 6)

Reset value: 0x0000 0000

Reset on any system reset.

This register is used to configure the wake-up I/O x as belonging to a specific compartment (or not). Secure privileged write access only. Write only by trusted domain CID.

Debug domain can also access if the feature is activated. Any read access from CPU1 and CPU2 is allowed to this register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.SEMWLC7SEMWLC6SEMWLC5SEMWLC4SEMWLC3SEMWLC2SEMWLC1SEMWLC0
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.SCID[2:0]Res.Res.SEM_ENCFEN
rwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bit 23 SEMWLC7: Semaphore CID 7 enable

This bit is not ignored when semaphore is disabled (SEM_EN = 0) or compartment filtering is off (CFEN = 0).

0: CID 7 agent disabled to take the semaphore

1: CID 7 agent enabled to take the semaphore

Bit 22 SEMWLC6: Semaphore CID 6 enable

This bit is not ignored when semaphore is disabled (SEM_EN = 0) or compartment filtering is off (CFEN = 0).

0: CID 6 agent disabled to take the semaphore

1: CID 6 agent enabled to take the semaphore

Bit 21 SEMWLC5: Semaphore CID 5 enable

This bit is not ignored when semaphore is disabled (SEM_EN = 0) or compartment filtering is off (CFEN = 0).

0: CID 5 agent disabled to take the semaphore

1: CID 5 agent enabled to take the semaphore

Bit 20 SEMWLC4: Semaphore CID 4 enable

This bit is not ignored when semaphore is disabled (SEM_EN = 0) or compartment filtering is off (CFEN = 0).

0: CID 4 agent disabled to take the semaphore

1: CID 4 agent enabled to take the semaphore

Bit 19 SEMWLC3: Semaphore CID 3 enable

This bit is not ignored when semaphore is disabled (SEM_EN = 0) or compartment filtering is off (CFEN = 0).

0: CID 3 agent disabled to take the semaphore

1: CID 3 agent enabled to take the semaphore

19.12.21 PWR WIO x semaphore control register (PWR_WIOxSEMCR)

Address offset: 0x18C + 0x8 * (x - 1) (x = 1 to 6)

Reset value: 0x0000 0000

Reset on any system reset.

If compartment filtering is disabled (CFEN = 0) or semaphore is disabled (SEM_EN = 0) in PWR_WIOxCIDCFGR, any write to this register is ignored. Privileged-only write if WIOPRIVx is set in PWR_WIOPRIVCFGR. Secure-only write if WIOSECx is set in PWR_WIOSECCFGR.

If compartment filtering is enabled and semaphore is enabled (CFEN and SEM_EN set in PWR_WIOxCIDCFGR), only an authorized compartment can write to this register. For this register, authorized compartment is equal to SEMCID if SEM_MUTEX = 1, else it is defined by the CID white list (SEMWLCy) in PWR_WIOxCIDCFGR. There is no authorized compartment if semaphore is disabled (SEM_EN = 0). Any read access from CPU1 and CPU2 is allowed on this register.

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.SEMCID[2:0]Res.Res.Res.SEM_MUTEX
rrrrw

Bits 31:7 Reserved, must be kept at reset value.

Bits 6:4 SEMCID[2:0]: Semaphore current CID

When SEM_EN and CFEN are set in PWR_WIOxCIDCFGR, this read-only bitfield is updated with the CID value of the latest successful acquisition of PWR_WIOxSEMCR semaphore (SEM_MUTEX bit set to 1). In all other cases, SEMCID stays unchanged.

Bits 3:1 Reserved, must be kept at reset value.

Bit 0 SEM_MUTEX: Semaphore mutex

White listed application can set semaphore bit to get exclusive access to wake-up I/O x when SEM_EN is set in PWR_WIOxCIDCFGR (writes are ignored otherwise).

When SEM_MUTEX = 0, only applications belonging to white-listed compartments (defined with SEMWLCy in PWR_WIOxCIDCFGR) can acquire this semaphore.

When SEM_MUTEX = 1, only applications belonging to compartment SEMCID can release this semaphore. This bit is cleared when CFEN or SEM_EN are cleared from 1 by trusted domain application in PWR_WIOxCIDCFGR.

Read 0: Semaphore is free to take.

Read 1: Semaphore is taken.

Write 0: Release semaphore.

Write 1: Acquire semaphore.

19.12.22 PWR CPU1 status register (PWR_CPU1D1SR)

Address offset: 0x200

Reset value: 0x0000 0000

Any read access from CPU1 and CPU2 is allowed on this register.

RM0506column_2column_3column_4column_5column_6
31 30 2928272625 24 23 22 21 20 19 18 17 16
Res. Res. Res.Res.Res.Res.Res.Res. Res. Res. Res. Res. Res. Res. Res. Res.
15 14 131211109 8 7 6 5 4 3 2 1 0
Res. Res. Res.Res.Res.DSTATE[2:0]Res. Res. Res. Res. CSTATE[1:0] Res. HOLD_ BOOT
rr r r r r
Bits 10:8DSTATE[2:0]: D1 domain state status
Bits 3:2CSTATE[1:0]: CPU1 cluster state status
Bit 0HOLD_BOOT: CPU1 HOLD_BOOT status flag.
Note: Refer toSection 20for details on HOLD_BOOT processor state.
RM0506 Rev 2 857/ 4831

Bits 31:11 Reserved, must be kept at reset value.

Bits 10:8 DSTATE[2:0]: D1 domain state status

Set by hardware to indicate when the D1 domain is in DRun, DStop1/2/3 or DStandby mode.

Bits 7:4 Reserved, must be kept at reset value.

Bits 3:2 CSTATE[1:0]: CPU1 cluster state status

Set by hardware to indicate when the CPU1 is in CRun, CSleep or CStop state.

Bit 1 Reserved, must be kept at reset value.

Bit 0 HOLD_BOOT: CPU1 HOLD_BOOT status flag.

This flag is not valid when the D1 domain is in DStandby mode. It is set by hardware to indicate when the CPU1 is in HOLD_BOOT state.

Note: Refer to Section 20 for details on HOLD_BOOT processor state.

ST logo
ST logo

19.12.23 PWR CPU2 status register (PWR_CPU2D2SR)

Address offset: 0x204

Reset value: 0x0000 0000

Any read access from CPU1 and CPU2 is allowed on this register.

column_1column_2column_3column_4column_5RM0506
31 30 2928272625 24 23 22 21 20 19 18 17 16
Res. Res. Res.Res.Res.Res.Res.Res. Res. Res. Res. Res. Res. Res. Res. Res.
15 14 131211109 8 7 6 5 4 3 2 1 0
Res. Res. Res.Res.Res.DSTATE[2:0]Res. Res. Res. Res. CSTATE[1:0] WFBE HOLD_ N BOOT
rr r r r r r
Bits 10:8DSTATE[2:0]: System/D2 state status
Bits 3:2CSTATE[1:0]: CPU2 cluster state status flag
Bit 1WFBEN: CPU2 wait-for-boot enable status flag
Note: Refer toSection 20for details on HOLD_BOOT processor state.
Bit 0HOLD_BOOT: CPU2 HOLD_BOOT status flag
Note: Refer toSection 20for details on HOLD_BOOT processor state.

Bits 31:11 Reserved, must be kept at reset value.

Bits 10:8 DSTATE[2:0]: System/D2 state status

Set by hardware to indicate when the system/D2 domain is in Run, Stop, LP-Stop, LPLV-Stop, Standby or VBAT mode.

000: Run

001: Stop

010: LP-Stop

011: LPLV-Stop

100: Standby

101: VBAT

Bits 7:4 Reserved, must be kept at reset value.

Bits 3:2 CSTATE[1:0]: CPU2 cluster state status flag

Set by hardware to indicate when the CPU2 is in CRUN, CSleep or CStop state.

00: CPU2 in reset

01: CPU2 in CRUN

10: CPU2 in CSleep

11: CPU2 in CStop

Bit 1 WFBEN: CPU2 wait-for-boot enable status flag

Set by hardware to indicate when the CPU2 is in wait-for-boot enable state. Only applicable in wake-up event mode. This flag is not valid when the system is in Standby mode.

0: CPU2 is not in wait-for-boot enable state (bit set at 0 in legacy boot mode).

1: CPU2 is in wait-for-boot enable state. It starts once an event assign to it is raised.

Note: Refer to Section 20 for details on HOLD_BOOT processor state.

Bit 0 HOLD_BOOT: CPU2 HOLD_BOOT status flag

This flag is not valid when the system is in Standby. Set by hardware to indicate when the CPU2 is in HOLD_BOOT state.

0: CPU2 is allowed to boot.

1: CPU2 is maintained in HOLD_BOOT state by hardware.

Note: Refer to Section 20 for details on HOLD_BOOT processor state.

19.12.24 PWR VER register (PWR_VERR)

Address offset: 0x3F4

Reset value: 0x0000 0010

Any read access from CPU1 and CPU2 is allowed on this register.

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

19.12.25 PWR identifier register (PWR_IPIDR)

Address offset: 0x3F8

Reset value: 0x0001 0003

Any read access from CPU1 and CPU2 is allowed on this register.

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

Bits 31:0 ID[31:0]: Identifier of the PWR

19.12.26 PWR size identification register (PWR_SIDR)

Address offset: 0x3FC

Reset value: 0xA3C5 DD01

Any read access from CPU1 and CPU2 is allowed on this register.

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

Bits 31:0 SID[31:0]: Decoding space is 1 Kbyte.

19.12.27 PWR register map

Table 111. PWR register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000PWR_CR1GPVMORes.Res.Res.Res.Res.VDDIO3VRSELVDDIOVRSELRes.Res.Res.ARDYRes.USB33RDYRes.VDDIO3RDYRes.Res.Res.ASVRes.Res.Res.Res.VDDIO3SVRes.Res.Res.AVMENRes.USB33VMENVDDIO3VMEN
Reset value00000000000
0x004PWR_CR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TEMPH00V08CAPHV08CAPLRes.Res.Res.Res.Res.Res.MONEN
Reset value000000
0x008PWR_CR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PVDORes.Res.Res.Res.Res.Res.Res.PVDEN
Reset value00
0x00CReservedReserved
0x018PWR_CR7Res.Res.Res.Res.Res.Res.VDDIO2VRSTBYVDDIO2VRSELRes.Res.Res.Res.Res.Res.Res.VDDIO2RDYRes.Res.Res.Res.Res.Res.Res.VDDIO2SVRes.Res.Res.Res.Res.Res.VDDIO2VMEN
Reset value00000
0x01CPWR_CR8Res.Res.Res.Res.Res.Res.VDDIO1VRSTBYVDDIO1VRSELRes.Res.Res.Res.Res.Res.Res.VDDIO1RDYRes.Res.Res.Res.Res.Res.Res.VDDIO1SVRes.Res.Res.Res.Res.Res.VDDIO1VMEN
Reset value00000
0x020PWR_CR9Res.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.BKPRBSEN
Reset value0
0x024PWR_CR10Res.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.RETRBSEN[1:0]
Reset value00
0x028PWR_CR11Res.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.DDRRETDIS
Reset value0

Table 111. PWR register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x02C-0x034ReservedReserved
0x038PWR_BDCRRes.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.DBP
Reset value0
0x03CReservedRes.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.
0x040PWR_CPU1CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LVDS_D1LPDS_D1STANDBYWFIL2Res.Res.Res.Res.Res.CSSFRes.SBF_D1SBFSTOPFVBFRes.Res.Res.Res.
Reset value0000000000
0x044PWR_CPU2CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LVDS_D2LPDS_D2DEEPSLEEPRes.Res.Res.Res.Res.CSSFRes.SBF_D2SBFSTOPFVBFRes.Res.Res.Res.
Reset value0000000000
0x048ReservedReserved
0x04CPWR_D1CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.POPL_D1[4:0]Res.Res.Res.Res.Res.Res.Res.Res.LPCFG_D1
Reset value000000
0x050PWR_D2CRRes.Res.Res.Res.PODH_D2 [3:0]Res.Res.Res.Res.Res.Res.Res.LPLVDLY_D2 [2:0]Res.Res.POPL_D2[4:0]Res.Res.Res.Res.Res.Res.Res.Res.LPCFG_D2
Reset value0000111000000
0x054-0x05CReservedReserved
0x060 + 0x4*(x-1) (x=1 to 6)
Last address: 0x074
PWR_WKUPCRxWKUPFRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WKUPENCPU2WKUPENCPU1Res.Res.WKUPUPD [1:0]Res.Res.Res.Res.WKUPPRes.Res.Res.Res.Res.Res.Res.WKUPC
Reset value0000000
0x078-0x0FCReservedReserved
0x100PWR_RSECCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RSEC6RSEC5RSEC4RSEC3RSEC2RSEC1RSEC0
Reset value0000000
0x104PWR_RPRIVCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RPRIV6RPRIV5RPRIV4RPRIV3RPRIV2RPRIV1RPRIV0
Reset value0000000

Table 111. PWR register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x108 + 0x4*x (x=0 to 6)
Last address: 0x120
PWR_RxCIDCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SCID [2:0]Res.Res.Res.CFEN
Reset value0000
0x124-0x17CReservedReserved
0x180PWR_WIOSECCFGRRes.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.WIOSEC6WIOSEC5WIOSEC4WIOSEC3WIOSEC2WIOSEC1
Reset value000000
0x184PWR_WIOPRIVCFGRRes.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.WIOPRIV6WIOPRIV5WIOPRIV4WIOPRIV3WIOPRIV2WIOPRIV1
Reset value000000
0x188 + 0x8*(x-1) (x=1 to 6)
Last address: 0x1B0
PWR_WIOxCIDCFGRRes.Res.Res.Res.Res.Res.Res.Res.SEMWLC7SEMWLC6SEMWLC5SEMWLC4SEMWLC3SEMWLC2SEMWLC1SEMWLC0Res.Res.Res.Res.Res.Res.Res.Res.Res.SCID[2:0]Res.Res.SEM_ENCFEN
Reset value0000000000000
0x18C + 0x8*(x-1) (x=1 to 6)
Last address: 0x1B4
PWR_WIOxSEMCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SEMCID[2:0]Res.Res.Res.SEM_MUTEX
Reset value0000
0x1B8-0x1FCReservedReserved
0x200PWR_CPU1D1SRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DSTATE [2:0]Res.Res.Res.Res.CSTATE [1:0]Res.HOLD_BOO
Reset value000000
0x204PWR_CPU2D2SRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DSTATE [2:0]Res.Res.Res.Res.CSTATE [1:0]WFBENHOLD_BOO
Reset value0000000
0x20C-0x3F0ReservedReserved
0x3F4PWR_VERRRes.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 value00010000
0x3F8PWR_IPIDRID[31:0]
Reset value00000000000000001000000000000011
0x3FCPWR_SIDRSID[31:0]
Reset value10100011110001011101110100000001

Refer to Section 2.4 for the register boundary addresses.