20. Reset and clock control (RCC)

The RCC manages the clock and reset generation for the complete circuit (see Section 19: Power control (PWR) for more details on operating modes).

In the whole document:

D1 domain holds CPU1 (supplied by \(V_{DDCPU}\)). D2 domain holds CPU2 and the majority of the peripherals (supplied by \(V_{DDCORE}\)).

20.1 RCC main features

20.2 RCC block diagram

The figure below gives a simplified view of the RCC, and the key signals exchanged with the other peripherals. Four voltage domains are present in the RCC: VDD domain, VSW domain, VDDCPU domain called D1 domain and VDDCORE domain called D2 domain.

For the reset, analog comparators located into PWR provide all reset signals dependent of the power supplies: por_rstn, bor_rstn, vcore_rstn and por_vsw_rstn. One reset source comes from pins: NRST. The RCC also receives resets from various other sources (such as watchdogs, CPU2, or registers). All these resets are handled by the RCC in order to reset properly all system parts.

For the clock generation, the RCC handles the generation and the gating for all the clocks according to register settings and operating modes.

Figure 73. RCC block diagram

A detailed block diagram of the Reset and Clock Control (RCC) unit. The diagram shows the internal structure of the RCC, including the Reset control block, Clock manager unit (CMU), and Flexclkgen. It details the various voltage domains (VDD, VSW, VDDCORE, VDDCPU) and the signals exchanged with peripherals like IWDGx, BSEC, RETRAM, NVIC, GIC, TAMP, PWR, CPU1, CPU2, and PERx. Key components include the RIF filter, Register interface and control, and the Clock enable unit.

The diagram illustrates the internal architecture of the RCC. At the top, external reset sources like NRST and NRSTC1MS are shown. The RCC block contains several sub-blocks: a Reset control block that manages resets for different voltage domains (VDD, VSW, VDDCORE, VDDCPU); a Register interface and control block; a Clock manager unit (CMU) that handles power-down and wake-up signals; and a Flexclkgen block containing stages for clock generation (MUXSEL, GFG, XBAR, PREDIV, FINDIV). The Flexclkgen outputs various clocks (lse_ck, hse_ck, msi_ck, hsi_ck, lsi_ck) to a Clock enable unit, which then distributes them to the CPU1, CPU2, AXI, AHB5, AHB6, and APB buses. The PWR block is shown on the right, managing reset signals and power states for the CPUs. Other peripherals like IWDGx, BSEC, RETRAM, NVIC, GIC, and TAMP are also shown interacting with the RCC.

A detailed block diagram of the Reset and Clock Control (RCC) unit. The diagram shows the internal structure of the RCC, including the Reset control block, Clock manager unit (CMU), and Flexclkgen. It details the various voltage domains (VDD, VSW, VDDCORE, VDDCPU) and the signals exchanged with peripherals like IWDGx, BSEC, RETRAM, NVIC, GIC, TAMP, PWR, CPU1, CPU2, and PERx. Key components include the RIF filter, Register interface and control, and the Clock enable unit.

The RCC exchanges also some signals with the PWR in order to control the entry/exit of CPUx in CStop, D1 domain in DStandby mode, and system in Stop and Standby modes.

20.2.1 RCC pin overview

The table below lists the RCC signals connected to pins or balls.

Table 112. Pin overview

Pin nameTypeDescription
NRSTInput/outputExternal (application) reset, can be used to provide reset to external devices
OSC32_INInput32 kHz oscillator input
OSC32_OUTOutput32 kHz oscillator output
OSC_INInputSystem oscillator input
OSC_OUTOutputSystem oscillator output
MCO1OutputOutput clock 1 for external devices
MCO2OutputOutput clock 2 for external devices
NRSTC1MSOutputOutput reset flag for external mass-storage devices used by CPU1
CK_INInputExternal kernel clock input for digital audio interfaces: SPI/I2S, SAI, and MDF

20.3 RCC functional description - Reset

There are several sources able to generate a reset:

The scope of the resets differs according to the source initiating the reset. The following categories are defined below: power-on/off, system, and local resets

20.3.1 Power-on/off resets

The PWR provides the following reset signals to the RCC:

As shown in Figure 74, the signals provided by the PWR, indicating that \(V_{DDCORE}\) and \(V_{DDCPU}\) are valid (OKIN_VCORE_RSTN, OKIN_VCPU_RSTN), are used by the RCC in order to trigger the hardware system initialization sequence and the memory repair. When this initialization sequence is completed, vcore_rstn and vcpu_rstn signals are released, and CPU1/2 can start (see Table 115 for details).

See Section 19: Power control (PWR) for details on the generation of power-on/off resets.

20.3.2 Application and system resets

An application reset (app_rstn) is generated from one of the following sources:

A system reset (sys_rstn) is generated from one of the following sources:

Note: When the system is in Standby, \(V_{DDCORE}\) and \(V_{DDCPU}\) are switched off, but \(V_{DD}\) is still present. When the system exits Standby, vcore_rstn is activated, generating a sys_rstn reset. vcpu_rstn may also be activated depending on the selected system Standby exit strategy.

As shown in Figure 74, the NRST pin is activated by:

A programmable reset pulse control (RPCTL) allows the application to define a minimum pulse width for the NRST assertion. When the RPCTL is disabled, the reset pin embeds a pulse stretcher which guarantees a minimum reset pulse duration of 20 microseconds for each internal reset source. app_rstn and sys_rstn are also impacted by this function (see Section 20.3.10 for details on RPCTL).

Note: It is not recommended to let the NRST pin unconnected. When it is not used, connect this pin to ground via a capacitor of 10 to 100 nF.

Figure 74. System reset circuit

Figure 74. System reset circuit diagram showing RCC – Reset control block connected to IWDG1-4, RETRAM, RESET blocks, PWR, DAP, BSEC, MREPAIR, and external NRST pin.

The diagram illustrates the System reset circuit, primarily within the RCC – Reset control block. It is divided into several power/logic domains: VDDCORE domain, VDD domain, and VSW domain.

Figure 74. System reset circuit diagram showing RCC – Reset control block connected to IWDG1-4, RETRAM, RESET blocks, PWR, DAP, BSEC, MREPAIR, and external NRST pin.

MSv71449V2

20.3.3 Local resets

The local resets do not directly affect the whole system, but only one CPUx subsystem (cores and its associated peripherals, like GIC or NVIC).

Here is the most important local reset:

When the D1 domain exits DStandby, and the system was not in Standby, the CPU1 is reset by a reset named cpu1_rstn, and the external mass-storage devices used by CPU1 can be reset by the c1ms_rstn signal (NRSTC1MS pin). Refer to NRSTC1MS I/O for details.

20.3.4 Resets generated by CPUs

All CPUs can generate system and local resets. The RCC offers the following possibilities:

The CPU1 is reset whenever the D1 domain exits DStandby.

When the CPU2 uses C1RST to reset the CPU1, the following procedure must be used:

  1. 1. Clear RCC_CPUBOOTCR.BOOT_CPU1.
  2. 2. Activate RCC_C1RSTCSETR.C1RST.
  3. 3. Poll RCC_C1RSTCSETR.C1RST until it is 0.
  4. 4. Set RCC_CPUBOOTCR.BOOT_CPU1.

20.3.5 Watchdog resets

The following watchdogs are provided to the application:

All these watchdogs can generate a system reset when a timeout occurs, according to the application selection.

The system reset operation is controlled by (see Table 113 and Table 114 for details):


Warning: The application must set these IWDGx_SYSRSTEN bits prior enabling any watchdog.


These registers are located in VDD domain and are reset by app_rstn.

Table 113. IWDG timeout event combinations when TDCID = CPU1

IWDG1_YSRSTEN(1)IWDG2_YSRSTENIWDG3_YSRSTENIWDG4_YSRSTENTimeout event description
-000System reset from IWDG1
1System reset from IWDG1 and IWDG4
10System reset from IWDG1 and IWDG2
1System reset from IWDG1, IWDG2, and IWDG4
010System reset from IWDG1 and IWDG3
1System reset from IWDG1, IWDG3, and IWDG4
10System reset from IWDG1, IWDG2, and IWDG3
1System reset from all watchdogs

1. “-” means don’t care.

Table 114. IWDG timeout event combinations when TDCID = CPU2

IWDG1_YSRSTENIWDG2_YSRSTENIWDG3_YSRSTEN(1)IWDG4_YSRSTENTimeout event description
00-0System reset from IWDG3
1System reset from IWDG3 and IWDG4
10System reset from IWDG2 and IWDG3
1System reset from IWDG2, IWDG3, and IWDG4
100System reset from IWDG1 and IWDG3
1System reset from IWDG1, IWDG3, and IWDG4
10System reset from IWDG1, IWDG2, and IWDG3
1System reset from all watchdogs

1. “-” means don’t care.

In addition, any IWDG timeout event is sent to the main EXTI to be routed to all CPUs.

20.3.6 Backup domain reset

A backup domain reset (vsw_rstn) is generated when one of the following events occurs:

The por_rstn reset source for the \(V_{DD}\) domain is gated by the por_vsw_rstn reset in order to secure the internal power sequence. See Section 19: Power control (PWR) for additional information.

20.3.7 CoreSight debug reset

The CoreSight debug components including the CPU1 debug part can be reset in three different ways:

20.3.8 Option-byte loading

The boot and security register interface module (BSEC) controls an OTP (one-time programmable) array of fuse words that hold the option-byte configuration for the product.

This configuration must be set every time an app_rstn or a NRST reset is activated. The system reset is kept active until this configuration has been properly loaded (via the fuse_ok signal received from the BSEC).

The BSEC handles the following reset sources (see Section 6: Boot and security control (BSEC) for details):

Note: When a warm reset occurs, any NRST reset is filtered, and the bsec_srst reset is not performed.

20.3.9 Peripheral reset

The application can reset individually any peripheral whenever it is requested. This can be done by CPUx via RCC_PERxCFGR (with PERx = peripheral name).

Note: Access rights to these registers are inherited from the related peripheral RIF configuration (see Section 20.7.1 for details).

When a peripheral needs to be reset, it is recommended to first enable its peripheral clock by setting the corresponding peripheral enable bit to 1 (see Section 20.4.11 for details).

For peripherals having a reset process which is executed very fast, it is up to the application to assert and release the peripheral reset (in RCC_PERxCFGR, with PERx = peripheral name).

For some peripherals, the reset process may take several clock cycles. For that purpose, the application can read back the reset bit in order to check if the reset process is ongoing or completed.

Note: DCMIPP, ETH1, ETH2, HPDMA1, HPDMA2, HPDMA3, LTDC, SDMMC1, SDMMC2, SDMMC3, USBH and OTG peripherals are following this above reset behavior: when the

application releases the peripheral reset, it must read back the related PERxRST in RCC_PERxCFGR (with PERx = peripheral name) to be sure that the reset has been properly released. This applies when the CFG_ENABLE bit is set in SYSCFG_SAFERSTCR.

20.3.10 Reset pulse control (RPCTL)

The RPCTL allows the application to control the minimum activation time of NRST and NRSTC1MS pins. This feature is particularly helpful because some external devices may request a specific duration for the activation of these pins. In addition, the internal reset pulse like IWDGx may be too short for external devices.

NRST pin

The RPCTL is located into the VDD domain, and is only reset after a power-on reset. It is controlled by MRD[4:0] in RCC_RDCR as follows:

Note: The RPCTL uses the LSI clock in order to control the reset width. When cmd_pad_rst goes high, the RPCTL requests the LSI clock in order to control the reset duration. If the LSI was not enabled by another function, it may take some microseconds before having the LSI ready (TLSI_SU).

Figure 75. NRST reset pulse control

Timing diagram for NRST reset pulse control showing cmd_pad_rst, RPCTL_lsi_ck, RPCTL_cnt, and NRST signals. The diagram illustrates two scenarios: one where cmd_pad_rst is a short pulse and another where it is a long pulse. In both cases, the NRST pulse width is determined by the LSI clock setup time (T_LSI_SU) and the MRD value. The RPCTL_cnt register shows the MRD value being loaded into the counter.

The diagram illustrates the NRST reset pulse control mechanism. It shows four signals over time: cmd_pad_rst, RPCTL_lsi_ck, RPCTL_cnt, and NRST.

Top Scenario (Short cmd_pad_rst pulse):

Bottom Scenario (Long cmd_pad_rst pulse):

MSv71450V1

Timing diagram for NRST reset pulse control showing cmd_pad_rst, RPCTL_lsi_ck, RPCTL_cnt, and NRST signals. The diagram illustrates two scenarios: one where cmd_pad_rst is a short pulse and another where it is a long pulse. In both cases, the NRST pulse width is determined by the LSI clock setup time (T_LSI_SU) and the MRD value. The RPCTL_cnt register shows the MRD value being loaded into the counter.

NRSTC1MS I/O

The RPCTL is the same as the NRST except the following:

Figure 76. NRSTC1MS reset pulse control

Timing diagram for NRSTC1MS reset pulse control. The top part shows a simple reset pulse where sys_rstn goes low, then c1msrst goes low, followed by RPCTL_lsi_ck going low, then RPCTL_cnt going low, and finally NRSTC1MS going low. The bottom part shows a more detailed timing sequence. sys_rstn goes low, then c1msrst goes low. RPCTL_lsi_ck goes low after a delay T_LSI_SU. RPCTL_cnt goes low after a delay T_LSI_SU + C1MSRD x 1ms. NRSTC1MS goes low after a delay T_LSI_SU + C1MSRD x 1ms. The RPCTL_cnt signal is shown with a value of 0. The RPCTL_lsi_ck signal is shown with a value of 0. The RPCTL_cnt signal is shown with a value of 0. The RPCTL_lsi_ck signal is shown with a value of 0. The RPCTL_cnt signal is shown with a value of 0.

MSv71451V1

Timing diagram for NRSTC1MS reset pulse control. The top part shows a simple reset pulse where sys_rstn goes low, then c1msrst goes low, followed by RPCTL_lsi_ck going low, then RPCTL_cnt going low, and finally NRSTC1MS going low. The bottom part shows a more detailed timing sequence. sys_rstn goes low, then c1msrst goes low. RPCTL_lsi_ck goes low after a delay T_LSI_SU. RPCTL_cnt goes low after a delay T_LSI_SU + C1MSRD x 1ms. NRSTC1MS goes low after a delay T_LSI_SU + C1MSRD x 1ms. The RPCTL_cnt signal is shown with a value of 0. The RPCTL_lsi_ck signal is shown with a value of 0. The RPCTL_cnt signal is shown with a value of 0. The RPCTL_lsi_ck signal is shown with a value of 0. The RPCTL_cnt signal is shown with a value of 0.

20.3.11 Reset coverage summary

The table below gives a detailed view of reset sources and reset domains. Each column represents a reset source.

Note: It is assumed that when \(V_{DD}\) is not valid, \(V_{DDCORE}\) and \(V_{DDCPU}\) are not valid.

Table 115. Reset coverage summary

Reset itemsReset lines(1)
por_rstn(2)vcore_rstnsys_rstnapp_rstnvcpu_rstncpu1_rstncpu2_rstndbg_rstnperx_rstnvsw_rstn
\(V_{DD}\) domainX---------
DDR ITFXXXX------
CPU1 (D1 domain)X-XXXX----
CPU2 (D2 domain)XXXX--X---
AXI/AHB interconnections (D2 domain)XXXX------
CoreSight debug components: reset all the debug parts including the ones located in CPU1 except SWJ-DP function. The SWJ-DP is reset by NTRST or an app_rstn reset.XXXX---X--
Table 115. Reset coverage summary (continued)
Reset itemsReset lines(1)
por_rstn(2)vcore_rstnsys_rstnapp_rstnvcpu_rstncpu1_rstncpu2_rstndbg_rstnperx_rstnvsw_rstn
IWDG1x--x-x----
IWDG2x--x-x--x-
IWDG3x--x--x---
IWDG4x--x--x-x-
Hardware system init. It includes the memory repair.xx-xx-----
RCCRCC_LEGBOOTCR, RCC_STBYBOOTCR, RCC_LSICRx--x------
RCC_HWRSTSCLRR, RCC_C1HWRSTSCLRR,
RCC_C2HWRSTSCLRR
x---------
RCC_IWDGC1FZSETRxxxxxx----
RCC_IWDGC2FZSETRxxxx--x---
RCC_RDCRx---------
RCC_BDCR---------x
Other RCC registersxxxx------
PWRPWR_CR2, PWR_CR9, PWR_CR10---------x
PWR_CR5, PWR_CR6, PWR_WKUPCRxx--x------
PWR_D1CRx---------
PWR_CPU1CR, PWR_CPU2CR, PWR_D2CR Individual bits of these registers do not have the same reset condition (see Section 19: Power control (PWR) for details).xxxx------
Other registersxxxx------
RTC---------x
BKPSRAM and RETRAM
After a reset of the VSW domain, BKPSRAM and RETRAM backup regulators are disabled. This is controlled BKPRBSEN in PWR_CR9, RETRBSEN in PWR_CR10 respectively.
If the vsw_rstn reset is due to a too low VSW voltage, the content of BKPSRAM and RETRAM is lost.
---------x
Central RIF componentsxxxx------
Other peripheralsxxxx----x-
  1. 1. The reset lines that correspond reset item are highlighted in gray.
  2. 2. When por_rstn is asserted, all resets are asserted as well except perx_rstn and vsw_rstn.

Reset of RCC registers

The table below lists registers having bits into a voltage domain different from VDDCORE. As a consequence some of these registers are not always reset by sys_rstn. The RCC registers not shown in the table below are reset by sys_rstn.

Table 116. RCC registers with specific reset and specific voltages

RCC register nameVoltage domainReset conditionComment
RCC_LEGBOOTCR, RCC_STBYBOOTCR, RCC_LSICR, RCC_IWDGC1CFGSETR, RCC_IWDGC1CFGCLRR, RCC_IWDGC2CFGSETR, RCC_IWDGC2CFGCLRRVDDapp_rstnMust be reset after a system reset, but not after Standby reset
RCC_OCENSETR, RCC_OCENCLRR, RCC_OCRDYR, RCC_HSICFGR, RCC_MSICFGRsys_rstn-
RCC_HWRSTSCLRR, RCC_C1HWRSTSCLRR, RCC_C2HWRSTSCLRR, RCC_RDCRpor_rstnOnly reset when a VDD is removed
RCC_BDCRVSWvsw_rstnVSWRST not reset by por_vsw_rstn

20.3.12 Reset source identification

The RCC offers the following registers in order to identify the root cause of reset:

The first booting CPUx can access RCC_HWRSTSCLRR to identify the reset root cause. It also relies on PWR_CPUxCR content (see Section 19: Power control (PWR) for details) to set which kind of boot sequence must be performed after any kind of reset. RCC_C1HWRSTSCLRR and RCC_C2HWRSTSCLRR are respectively dedicated to CPU1 and CPU2 to identify their own root cause of reset.

When CPU1 first booting, the boot ROM uses RCC_HWRSTSCLRR, RCC_C1HWRSTSCLRR, and PWR_CPU1CR to set the boot reset reason via RCC_C1BOOTRSTSSETR after every system reset, power-on reset, or exit from Standby. The CPU1 can then check the boot reason and clear the flags via RCC_C1BOOTRSTSCLRR.

When CPU2 first booting, the CPU2 boot code uses also RCC_HWRSTSCLRR, RCC_C2HWRSTSCLRR, and PWR_CPU2CR to set the boot reset reason via RCC_C2BOOTRSTSSETR.

Note: STBYC1RSTF, STBYC2RSTF, D2STBYRSTF and D1STBYRSTF flags in RCC_C1BOOTRSTSSETR and RCC_C2BOOTRSTSSETR are copied from SBF, SBF_D2 and SBF_D1 in PWR_CPU1CR and PWR_CPU2CR.
There is not any hardware protection on bit clear inside RCC_HWRSTSCLRR, RCC_C1HWRSTSCLRR, and RCC_C2HWRSTSCLRR. Once the boot reset reason has

been set, the application (CPU1 or/and CPU2) must clear RCC_HWRSTSLRR, RCC_C1HWRSTSLRR, and RCC_C2HWRSTSLRR.

Figure 77. Reset source registers

Diagram showing the Reset source registers (RCC_HWRSTSLRR, RCC_C1HWRSTSLRR, RCC_C2HWRSTSLRR) and their interaction with physical registers (RCC_HWRSTS, RCC_C1HWRSTS, RCC_C2HWRSTS, PWR_CPU1CR, PWR_CPU2CR) and hardware blocks (RCC hardware, PWR hardware). It details write access by CPU1, CPU2, and the first CPU booting, as well as dedicated registers for each CPU (RCC_C1BOOTRSTSSETR, RCC_C1BOOTRSTSLRR, RCC_C2BOOTRSTSSETR, RCC_C2BOOTRSTSLRR) and their associated physical registers (RCC_C1BOOTRSTS, RCC_C2BOOTRSTS).

The diagram illustrates the Reset source registers and their interaction with physical registers and hardware blocks. It is divided into three main sections: Register map, Physical registers, and hardware blocks.

MSv71452V1

Diagram showing the Reset source registers (RCC_HWRSTSLRR, RCC_C1HWRSTSLRR, RCC_C2HWRSTSLRR) and their interaction with physical registers (RCC_HWRSTS, RCC_C1HWRSTS, RCC_C2HWRSTS, PWR_CPU1CR, PWR_CPU2CR) and hardware blocks (RCC hardware, PWR hardware). It details write access by CPU1, CPU2, and the first CPU booting, as well as dedicated registers for each CPU (RCC_C1BOOTRSTSSETR, RCC_C1BOOTRSTSLRR, RCC_C2BOOTRSTSSETR, RCC_C2BOOTRSTSLRR) and their associated physical registers (RCC_C1BOOTRSTS, RCC_C2BOOTRSTS).

The table below shows the status bits in RCC_HWRSTSCLRR, RCC_C1HWRSTSCLRR, and RCC_C2HWRSTSCLRR according to the reset source.

Table 117. RCC HWRSTSCLRR, RCC_C1HWRSTSCLRR, RCC_C2HWRSTSCLRR flags(1)

#Reset sourceRETECCFAILRESTRSTFRETECCFAILCRCRSTFRETCRCERRSTFC2RSTFC1RSTFIWDG4SYSRSTFIWDG3SYSRSTFIWDG2SYSRSTFIWDG1SYSRSTFSYSC2RSTFSYSC1RSTFVCPURSTFVCORERSTFHCSSRSTFPADRSTFBORRSTFPORRSTF
1Power-on reset (por_rstn)---11------11-1-1
2Brownout reset (bor_rstn)---11---------11-
3Pin reset from NRST---11---------1--
4Clock failure on HSE---11--------11--
5System reset (SYSRST) by CPU1---11-----1---1--
6System reset (SYSRST) by CPU2---11----1----1--
7System reset from VCPU monitor---11------1-----
8CPU1 reset by CPU2 (C1RST)(2)----1------------
9CPU2 reset by CPU1 (C2RST)(3)---1-------------
10System exits Standby in cold boot CPU2 mode without error---1--------1----
11System exits Standby in other modes(4) without error---11------11----
12System exits Standby with RETRAM CRC error--111------11-1--
13System exits Standby with RETRAM ECC failure during CRC-1-11------11-1--
14System exits Standby with RETRAM ECC failure during system restoration1--11------11-1--
15D1 domain exits DStandby----1------1-----
16IWDG1 system reset (iwdg1_out_rst)---11---1-----1--
17IWDG2 system reset (iwdg2_out_rst)---11--1------1--
18IWDG3 system reset (iwdg3_out_rst)---11-1-------1--
19IWDG4 system reset (iwdg4_out_rst)---111--------1--
  1. 1. The 1 status is highlighted in grey.
  2. 2. This bit is set when C1RST is activated in RCC_C1RSTCSETR.
  3. 3. This bit is set when C2RST is activated in RCC_C2RSTCSETR.
  4. 4. VCPURSTF is present only when D1 is not in kept in DStandby.

20.3.13 Power-on and wake-up sequences

For detailed diagrams refer to Section 19: Power control (PWR).

The time interval between the event which exits the product from a low-power mode and the moment where the CPUs are able to execute code, depends on the state of the system and its configuration. Figure 78 shows the most usual examples.

Power-on wake-up sequence

The power-on wake-up sequence of Figure 78 gives the most significant phases of the power-on sequence. It is the longest sequence as the circuit was not powered.

Note: This sequence remains unchanged if \(V_{BAT}\) was present or not.

Boot sequence from pin reset (NRST)

The pin reset gives the most important steps of the boot sequence.

Note: In this case, \(V_{DD}/V_{DDA}\) have not been removed.

Boot sequence from system Standby

For a wake-up from system Standby, as the \(V_{DD}\) is not removed, the settling time is also fast as the reference voltage is already stable. As \(V_{DDCORE}\) and \(V_{DDCPU}\) were not there, the restart delay for the HSI cannot be skipped.

In the cold boot CPU2 and wake-up event modes, when the system exits Standby, the CRC is run on the RETRAM content, whatever the wake-up source. This fastens the CPU2 firmware execution in case of CPU2 wake-up event.

Restart sequence from system Stop

For a restart from system Stop1, both \(V_{DDCORE}\) and \(V_{DDCPU}\) have not been removed, so the settling time is mainly due to the restart delay of the clock. The system restarts according to the clock restore sequence (see Clock restore sequence for details).

For a restart from system Stop2, in case of CPU1 wake-up event, the boot ROM code execution time is added.

Figure 78. Boot sequences versus system states Figure 78: Boot sequences versus system states. Timing diagram showing boot sequences for various events: Power-on wakeup, PAD reset, Wakeup from system Standby (legacy and wakeup modes), Wakeup from system Stop2, Restart from system Stop1, and Restart from system LP-Stop, followed by a legend defining abbreviations.

Power-on wakeup (with or without VBAT)

VDD > POR

EXT REG + bandgap | HSI | OTP_LD | MEM | BR | APP | Time

PAD reset (or bor_rstn, iwdgx_out_rst, and so on)

NRST goes high

HSI | OTP_LD | MEM | BR | APP | Time

Wakeup from system Standby in legacy mode

Wakeup event

VCORE/VCPU REG | HSI | MEM | BR | APP | Time

Wakeup from system Standby in wakeup mode

Wakeup event

VCORE/VCPU REG | HSI | MEM | CRC | BR | APP | Time

Wakeup from system Stop2

Wakeup event

VCPU REG | CK_RESTORE | BR | APP | Time

Restart from system Stop1

Wakeup event

CK_RESTORE | APP | Time

Restart from system LP-Stop

Wakeup event

LP_TEMPO | CK_RESTORE | APP | Time

EXT REG + bandgapBandgap and external regulator settling timeBRBoot ROM codeAPPControl given to the application
VCORE/VCPU REGExternal VCORE and VCPU regulators settling timeOTP_LDOption-byte loadingMEMMemory repair delay
CK_RESTORERestore previous clock configHSIHSI restart delayCRCRETRAM CRC

MSv71453V1

Figure 78: Boot sequences versus system states. Timing diagram showing boot sequences for various events: Power-on wakeup, PAD reset, Wakeup from system Standby (legacy and wakeup modes), Wakeup from system Stop2, Restart from system Stop1, and Restart from system LP-Stop, followed by a legend defining abbreviations.

CPUx state after application reset

After an application reset (from IWDG, POR, BOR, or pin), the CPU1 always starts the boot ROM code execution. The boot ROM code selects which CPU has to boot first (CPU1 or CPU2) while the other CPU is maintained on HOLD_BOOT state. The CPUx selected to boot first is called cold boot CPU.

This HOLD_BOOT state is controlled via BOOT_CPU1 and BOOT_CPU2 in RCC_CPUBOOTCR (see HOLD_BOOT CPUx state for more details).

CPUx state after Standby exit

After any system Standby exit (vcore_rstn and vcpu_rstn are low), the product can select which CPUx (CPU1 or CPU2) boots first.

The selection of the first CPUx to boot depends on the following criteria:

There are different behaviors regarding this selection process.

Table 118. First CPUx boot selection

LEGACY_BENCOLD_CPU2CPU_BEN_SELCPU1_HW_BENCPU2_HW_BENFirst CPUx boot selection
10NA00CPU1
10
01
11

Table 118. First CPUx boot selection (continued)

LEGACY_BENCOLD_CPU2CPU_BEN_SELCPU1_HW_BENCPU2_HW_BENFirst CPUx boot selection
00NA10CPU1
01CPU2
000CPU1
1
011CPU1
1CPU2
1NANANACPU2

HOLD_BOOT CPUx state

The RCC is used to put either CPU1 or CPU2 on HOLD_BOOT every time the CPUx is reset by a CPU reset (cpu1_rstn or cpu2_rstn).

This function is controlled by BOOT_CPU1 and BOOT_CPU2 in Section 20.8.27.

For example, after a CPU2 reset (cpu2_rstn), if BOOT_CPU2 = 0, the CPU2 is kept on HOLD_BOOT state. Else CPU2 is allowed to boot.

Having one CPUx on HOLD_BOOT does not prevent the system to go to Stop or Standby mode. For example, when CPU2 is on HOLD_BOOT, the system is in Stop if CPU1 goes to CStop, then if CPU1 allows the Standby mode (if PDDS bits are set to 1), then the system goes to Standby. The same behavior applies for CPU2 when CPU1 is on HOLD_BOOT.

Figure 79 shows an example of CPU2 reset (cpu2_rstn).

If BOOT_CPU2 = 0, the CPU2 stays in HOLD_BOOT mode until CPU1 sets BOOT_CPU2 to 1.

If BOOT_CPU2 = 1, the CPU2 switches immediately to CRun mode as soon as the CPU2 hardware reset sequence is completed.

In that case, the HOLD_BOOT state is equivalent to CStop. This means that when the CPUx is in HOLD_BOOT, all peripherals allocated by it, are no longer clocked, except the ones able to request a kernel clock, or working with lse_ck or lsi_ck.

Note: Once CPU2 is in CRun, the BOOT_CPU2 bit can be cleared again to 0 without disturbing the CPU2 activity. In that way, the CPU2 is again set in HOLD_BOOT state the next time it is reset via cpu2_rstn. It also applies to CPU1.

Figure 79. HOLD_BOOT CPUx reset

Timing diagram for HOLD_BOOT CPUx reset showing two scenarios: BOOT_CPU2 = 0 and BOOT_CPU2 = 1. It illustrates the relationship between cpu2_rstn, BOOT_CPU2, and CPU2 mode (CRun, HOLD_BOOT, CSleep, CRun, CStop) during a reset sequence.

The diagram illustrates the timing of the HOLD_BOOT CPUx reset sequence. It is divided into two main sections based on the initial state of BOOT_CPU2:

The diagram also shows the relationship between the CPU2 mode and the BOOT_CPU2 signal. The CPU2 mode is shown as a sequence of states: CRun, HOLD_BOOT, CSleep, CRun, CStop. The BOOT_CPU2 signal is shown as a high signal during the CRun and CSleep states, and low during the HOLD_BOOT and CStop states.

Legend: CPU2 reset sequence

MSV71454V1

Timing diagram for HOLD_BOOT CPUx reset showing two scenarios: BOOT_CPU2 = 0 and BOOT_CPU2 = 1. It illustrates the relationship between cpu2_rstn, BOOT_CPU2, and CPU2 mode (CRun, HOLD_BOOT, CSleep, CRun, CStop) during a reset sequence.

HOLD_BOOT CPUx state after D1 Standby exit

In this case, the CPU1 HOLD_BOOT state is controlled by BOOT_CPU1 in RCC_CPUBOOTCR.

If BOOT_CPU1 = 1, the CPU1 reset is released to allow its boot sequence.

HOLD_BOOT CPUx state after system Standby exit

In this case, HOLD_BOOT state depends on the selection mode of the first CPUx to boot.

Table 119. HOLD_BOOT state control after system Standby exit

LEGACY_BENCPU1 HOLD_BOOT controlCPU2 HOLD_BOOT control
0CPU1_HW_BEN(1),
RCC_STBYBOOTCR.COLD_CPU2,
RCC_STBYBOOTCR.CPU_BEN_SEL and
RCC_CPUBOOTCR.BOOT_CPU1
CPU2_HW_BEN(1),
RCC_STBYBOOTCR.COLD_CPU2,
RCC_STBYBOOTCR.CPU_BEN_SEL and
RCC_CPUBOOTCR.BOOT_CPU2
1NoneRCC_CPUBOOTCR.BOOT_CPU2(2)
  1. CPU1_HW_BEN and CPU2_HW_BEN mirror the wake-up events defined in the PWR to exit system Standby. They can be read in RCC_STBYBOOTCR.
  2. The reset value of BOOT_CPU2 applies in this case (see Legacy mode for first CPUx selection boot).

In legacy mode, the HOLD_BOOT state is controlled in the same way as the one described in HOLD_BOOT CPUx state.

Figure 80. HOLD_BOOT state in legacy mode

Figure 80. HOLD_BOOT state in legacy mode: Timing diagram showing sys_rstn, BOOT_CPU1, CPU1 mode, BOOT_CPU2, and CPU2 mode when LEGACY_BEN = 1 when the system is reset and exits Standby. CPU1 transitions from Off -> CPU1 reset sequence -> CRun -> CStop. CPU2 transitions from Off -> CPU2 reset sequence -> HOLD_BOOT -> CRun -> CStop. Legend indicates CPU1 reset sequence (stippled/dotted pattern) and CPU2 reset sequence (hatched pattern). Part number MSv71455V1.
Figure 80. HOLD_BOOT state in legacy mode: Timing diagram showing sys_rstn, BOOT_CPU1, CPU1 mode, BOOT_CPU2, and CPU2 mode when LEGACY_BEN = 1 when the system is reset and exits Standby. CPU1 transitions from Off -> CPU1 reset sequence -> CRun -> CStop. CPU2 transitions from Off -> CPU2 reset sequence -> HOLD_BOOT -> CRun -> CStop. Legend indicates CPU1 reset sequence (stippled/dotted pattern) and CPU2 reset sequence (hatched pattern). Part number MSv71455V1.

In wake-up event mode, the HOLD_BOOT state is dependent on CPU1_HW_BEN and CPU2_HW_BEN.

Figure 81. HOLD_BOOT state in wake-up single event mode

Figure 81. HOLD_BOOT state in wake-up single event mode: Shows two timing sub-diagrams. Top sub-diagram: System exits from Standby with CPU1 wake-up event during HOLD_BOOT (sys_rstn, CPU1_HW_BEN, BOOT_CPU1, CPU1 mode [Off -> CPU1 reset sequence -> HOLD_BOOT -> CRun], CPU2_HW_BEN, BOOT_CPU2, CPU2 mode [Off -> CPU2 reset sequence -> CRun -> CSleep -> CRun -> CStop]). Bottom sub-diagram: System exits from Standby with CPU1 wake-up event after HOLD_BOOT (sys_rstn, CPU1_HW_BEN, BOOT_CPU1, CPU1 mode [Off -> CPU1 reset sequence -> HOLD_BOOT -> WFBEN -> CRun], CPU2_HW_BEN, BOOT_CPU2, CPU2 mode [Off -> CPU2 reset sequence -> CRun -> CSleep -> CRun -> CStop]). Legend defines CPU1 reset sequence (stippled pattern) and CPU2 reset sequence (hatched pattern). Part number MSv71456V1.
Figure 81. HOLD_BOOT state in wake-up single event mode: Shows two timing sub-diagrams. Top sub-diagram: System exits from Standby with CPU1 wake-up event during HOLD_BOOT (sys_rstn, CPU1_HW_BEN, BOOT_CPU1, CPU1 mode [Off -> CPU1 reset sequence -> HOLD_BOOT -> CRun], CPU2_HW_BEN, BOOT_CPU2, CPU2 mode [Off -> CPU2 reset sequence -> CRun -> CSleep -> CRun -> CStop]). Bottom sub-diagram: System exits from Standby with CPU1 wake-up event after HOLD_BOOT (sys_rstn, CPU1_HW_BEN, BOOT_CPU1, CPU1 mode [Off -> CPU1 reset sequence -> HOLD_BOOT -> WFBEN -> CRun], CPU2_HW_BEN, BOOT_CPU2, CPU2 mode [Off -> CPU2 reset sequence -> CRun -> CSleep -> CRun -> CStop]). Legend defines CPU1 reset sequence (stippled pattern) and CPU2 reset sequence (hatched pattern). Part number MSv71456V1.

In this example, the CPU2 is selected first, and it can release the CPU1 HOLD_BOOT state by setting the BOOT_CPU1 bit.

Figure 82. HOLD_BOOT state in wake-up dual event mode

Timing diagram showing the sequence of events for CPU1 and CPU2 during wake-up from standby in dual event mode. It includes signals like sys_rstn, CPU2_BEN_SEL, CPU1_HW_BEN, BOOT_CPU1, CPU1 mode, CPU2_HW_BEN, and CPU2 mode. The diagram is split into two sections: 'System exits Standby with CPU2_BEN_SEL = 0' and 'System exits Standby with CPU2_BEN_SEL = 1'. It shows transitions between Off, CRun, CSleep, CStop, and HOLD_BOOT states, with reset sequences for each CPU indicated by shaded boxes.

The diagram illustrates the wake-up sequence for a dual-core system (CPU1 and CPU2) from a standby state. It is divided into two main scenarios based on the value of the CPU2_BEN_SEL signal when exiting standby.

Scenario 1: System exits Standby with CPU2_BEN_SEL = 0

Scenario 2: System exits Standby with CPU2_BEN_SEL = 1

Legend:

MSv71457V1

Timing diagram showing the sequence of events for CPU1 and CPU2 during wake-up from standby in dual event mode. It includes signals like sys_rstn, CPU2_BEN_SEL, CPU1_HW_BEN, BOOT_CPU1, CPU1 mode, CPU2_HW_BEN, and CPU2 mode. The diagram is split into two sections: 'System exits Standby with CPU2_BEN_SEL = 0' and 'System exits Standby with CPU2_BEN_SEL = 1'. It shows transitions between Off, CRun, CSleep, CStop, and HOLD_BOOT states, with reset sequences for each CPU indicated by shaded boxes.

Note: Once a CPU is in CRun, BOOT_CPU1 and BOOT_CPU2 bits can be modified without disturbing the CPU activity.

HOLD_BOOT and WFBEN status for both CPUs are accessible in PWR_CPU1D1SR and PWR_CPU2D2SR (see Section 19: Power control (PWR) for details).

20.4 RCC functional description - Clocks

The RCC provides a high degree of flexibility to the application in the choice of the clock generators:

The RCC offers a good flexibility for the application to select the appropriate clock for CPUs and peripherals, especially for peripherals that need a specific clock (such as SPI(I2S), SAI and SDMMC).

Each clock source can be switched on or off independently in order to optimize the power consumption.

There are mainly three clock paths:

Clocking of CPU1 and DDR interfaces are derived locally because of high frequency use. The RCC manages only the source clocks for their related local PLLs.

The RCC provides a flexible clock engine named flexclkgen based on five PLLs and HSI, HSE, MSI and CK_IN clocks to generate all root clocks.

These root clocks are used in the final clock gating stage to generate all product clocks according to the different product system modes (such as Run, Stop, or Standby).

The block named clock enable unit is used to gate the peripheral kernel clock, the bus interface, cores, and bus matrix clocks.

The block named clock manager unit is responsible of the clock stop and restore sequences according to the CPU power states.

As shown in Figure 83, the RCC offers two clock outputs (MCO1 and MCO2), with a great flexibility on the clock selection and frequency adjustment.

Figure 83. Top-level clock tree

Top-level clock tree diagram showing the RCC block with various clock sources (LSE, LSI, HSE, HSI), domains (VSW, VDD), and clock generation units (Flexclkgen, PLL1, PLL2).

The diagram illustrates the top-level clock tree for the Reset and Clock Control (RCC) block. It shows the flow of clock signals from various sources through different domains and generation units to various subsystems.

Inputs: OSC32_IN, OSC32_OUT, OSC_IN, OSC_OUT, CK_IN, spdifrx_symb_ck.

Domains:

Clock Generation and Management:

Other components: MSI frequency monitor, HSI frequency monitor, MCO1, MCO2, and various multiplexers and dividers (e.g., RTCDIV, /1 to 64, findiv_61, findiv_62, flexclk_obs0, flexclk_obs1).

Top-level clock tree diagram showing the RCC block with various clock sources (LSE, LSI, HSE, HSI), domains (VSW, VDD), and clock generation units (Flexclkgen, PLL1, PLL2).

MSv71458V3

20.4.1 Clock naming convention

The RCC provides clocks to the complete circuit. In order to avoid misunderstanding, the following terms are used in this document:

Clocks provided by the RCC to peripherals (xxx as peripheral name):

A peripheral receives from the RCC one or several bus interface clocks. This clock is generally the AHB, APB, or AXI clock depending on which bus the peripheral is connected to. Some peripherals only need a bus interface clock (such as GPIOx or DMAx).

Some peripheral request as well a dedicated clock in order to handle the interface function. This clock is named kernel clock. For example peripherals such as SAI, need to generate specific and accurate master clock frequencies, which request dedicated kernel clock frequencies. Another advantage of decoupling the bus interface clock from the specific need of the interface, is that the bus clock can be changed without requesting any reprogramming of the peripheral.

For CPU1 and DDR, the RCC provides the following clocks:

Clocks provided to the different bridges (APB, AHB or AXI), called ck_icn_xxx, with xxx is the bus matrix island clock name

20.4.2 Oscillator description

The table hereafter shows the oscillator states versus system modes when the oscillators are enabled via registers. The term “available” means that the resource can be used if activated via registers.

Table 120. Oscillator states versus system modes

System modesVDD domainVSW domain
HSEHSIRCBSECLSIMSILSE
Exit from system resetOFFONONAvailableOFFAvailable
In Run1, Run2AvailableAvailableONAvailableAvailableAvailable
In LP-Stop, Stop1, Stop2Available(1)Available(2)OFFAvailableAvailable(3)Available
In LPLV-StopOFFOFFOFFAvailableOFFAvailable
In StandbyOFFOFFOFFAvailableOFFAvailable
In VBATOFFOFFOFFOFFOFFAvailable

1. HSE can remain activated in Stop mode if HSEKERON = 1, or if the peripheral generates a kernel clock request.

  1. 2. HSI can remain activated in Stop mode if HSIKERON = 1, or HSION = 1, or if the peripheral generates a kernel clock request or a bus interface clock request (autonomous peripheral).
  2. 3. MSI can remain activated in Stop mode if MSIKERON = 1, or if the peripheral generates a kernel clock request.

HSE oscillator

The HSE can generate a clock from three possible sources:

In order to allow the boot ROM to detect in which configuration the HSE is used, a resistor (R₁) must be connected either to the GND or to \(V_{DD}\).

The resistor must be connected to GND when the HSE uses an external digital clock. The resistor must be connected to \(V_{DDA18AON}\) when the HSE uses an external analog clock, and removed if a crystal or ceramic resonator is used. See the datasheet for \(C_{L1}\), \(C_{L2}\) and R₁ values.

Figure 84. HSE clock source

Figure 84: HSE clock source configurations. The diagram shows three ways to connect an external clock source to the HSE oscillator. 1. Digital external clock: An external digital clock source is connected to OSC_IN, and OSC_OUT is connected to ground through resistor R1. 2. Analog external clock: An external analog clock source is connected to OSC_IN, and OSC_OUT is connected to VDDA18AON through resistor R1. 3. Crystal/ceramic resonators configuration: A crystal or ceramic resonator is connected between OSC_IN and OSC_OUT, with load capacitors CL1 and CL2 connected from each pin to ground.

MSv71459V1

Figure 84: HSE clock source configurations. The diagram shows three ways to connect an external clock source to the HSE oscillator. 1. Digital external clock: An external digital clock source is connected to OSC_IN, and OSC_OUT is connected to ground through resistor R1. 2. Analog external clock: An external analog clock source is connected to OSC_IN, and OSC_OUT is connected to VDDA18AON through resistor R1. 3. Crystal/ceramic resonators configuration: A crystal or ceramic resonator is connected between OSC_IN and OSC_OUT, with load capacitors CL1 and CL2 connected from each pin to ground.

HSERDY in RCC_OCRDYR indicates if the HSE is stable or not. When the HSE is enabled (HSEON = 1), HSERDY goes to 1 when 1024 cycles of HSE clock have been counted. The hse_ck clock is not released until HSERDY is set by hardware. An interrupt can be generated if enabled in RCC_C1CIESETR or RCC_C2CIESETR.

Figure 85. HSE clock generation

Block diagram of HSE clock generation within the RCC. The diagram shows the HSE_OSC block with OSC_IN and OSC_OUT pins. The OSC_IN signal can be bypassed by a multiplexer controlled by HSEBYP. The output of the multiplexer goes to a 'Ready logic' block. The 'Ready logic' block output is ANDed with the HSE_OSC output to produce hse_ck. hse_ck is also fed into an HSE_DIV2 block, which is controlled by HSEDIV2BYP to produce hse_div2_ck. The HSE_OSC output is also fed into an HSE_CSS block, which produces hse_css_rst. The HSE_OSC output is also fed into a Clock squarer block, which is controlled by HSEDIGBYP. The Clock squarer output is fed into the HSE_OSC block. The HSE_OSC output is also fed into an HSERDY block.

The diagram illustrates the HSE clock generation logic within the RCC. It shows the HSE_OSC block with OSC_IN and OSC_OUT pins. The OSC_IN signal is controlled by a multiplexer (controlled by HSEBYP) that can bypass the internal oscillator. The output of this multiplexer goes to a 'Ready logic' block. The 'Ready logic' block output is ANDed with the HSE_OSC output to produce hse_ck. hse_ck is also fed into an HSE_DIV2 block, which is controlled by HSEDIV2BYP to produce hse_div2_ck. The HSE_OSC output is also fed into an HSE_CSS block, which produces hse_css_rst. The HSE_OSC output is also fed into a Clock squarer block, which is controlled by HSEDIGBYP. The Clock squarer output is fed into the HSE_OSC block. The HSE_OSC output is also fed into an HSERDY block.

Block diagram of HSE clock generation within the RCC. The diagram shows the HSE_OSC block with OSC_IN and OSC_OUT pins. The OSC_IN signal can be bypassed by a multiplexer controlled by HSEBYP. The output of the multiplexer goes to a 'Ready logic' block. The 'Ready logic' block output is ANDed with the HSE_OSC output to produce hse_ck. hse_ck is also fed into an HSE_DIV2 block, which is controlled by HSEDIV2BYP to produce hse_div2_ck. The HSE_OSC output is also fed into an HSE_CSS block, which produces hse_css_rst. The HSE_OSC output is also fed into a Clock squarer block, which is controlled by HSEDIGBYP. The Clock squarer output is fed into the HSE_OSC block. The HSE_OSC output is also fed into an HSERDY block.

The HSE frequency can also be measured via the clock frequency calculator module in the flexclkgen engine (see Section 20.6.1 for details).

Note: The HSE can be kept enabled when the system is in one of LP-Stop or Stop modes (see Section 20.4.8).

The HSE clock can be driven to MCO1 and MCO2 outputs, and can be used as a clock source for other application components.

External clock configuration (HSE bypass)

The HSE accepts an external clock source on OSC_IN when the bypass mode is selected (HSEBYP = 1).

The external clock signal connected to OSC_IN pin can be digital or low-swing (analog). The low-swing clock signal is supported thanks to an internal clock squarer. The input signal must have a duty cycle close to 50%.

In order to switch the HSE in external clock mode, the following steps are needed:

  1. 1. Disable the HSE by writing 1 to HSEON in RCC_OCENCLRR.
  2. 2. Check that the HSE is disabled (HSERDY = 0 in RCC_OCRDYR).
  3. 3. Set HSEDIGBYP
    • – to 1 if the clock provided to OSC_IN is full-swing digital signal
    • – to 0 if the clock provided to OSC_IN is low-swing signal

    This bit is controlled via RCC_OCENSETTR and RCC_OCENCLRR.

  4. 4. Set HSEBYP bit by writing 1 to HSEBYP in RCC_OCENSETTR.
  5. 5. Enable again the HSE by writing 1 to HSEON in RCC_OCENSETTR, to activate hse_ck.
  6. 6. Check that the HSE is ready for use (HSERDY = 1 in RCC_OCRDYR).

The OSC_OUT pin must be left HI-Z (see Figure 84 and Figure 85 for details). Refer to the datasheet for additional information.

External crystal/ceramic resonator configuration

The oscillator is enabled by setting HSEBYP to 0 and HSEON to 1.

The HSE can be used when the product needs a very-accurate high-speed clock. When HSEDIV2ON = 1 in RCC_OCSETR, a divide-by-two clock path (hse_div2_ck) is available for dedicated peripherals that require the same low noise sensitivity as USB2PHY1 or USB2PHY2. HSEDIV2BYP in RCC_OCSETR selects the hse_div2_ck clock source.

The associated hardware configuration is shown in Figure 84. The resonator and the load capacitors have to be placed as close as possible to the oscillator pins in order to minimize the output distortion and the startup stabilization time. The loading capacitance values must be adjusted according to the selected crystal or ceramic resonator (see the electrical characteristics of the datasheet for more details).

HSI oscillator

The HSI provides the default clock to the product. It is a high-speed internal RC oscillator which can also be used directly as clock source for CPUx, interconnects, and peripherals, or as PLL input.

Some HSI advantages are listed below:

The HSI frequency precision, even with frequency calibration, is less accurate than an external crystal oscillator or ceramic resonator.

Care must be taken when the HSI is used as kernel clock for communication peripherals: the application has to take into account the following parameters:

Note: The HSI can be kept enabled when the system is in one of LP-Stop or Stop modes (see Section 20.4.8).

HSIRDY in RCC_OCRDYR indicates if the HSI is stable or not. At startup, the HSI output clock is not released until HSIRDY is set by hardware. The HSI activation can also be controlled by the application via HSION in RCC_OCSETR and RCC_OCENCLRR.

The HSI clock can be driven to MCO1 and MCO2 outputs and can be used as a clock source for other application components.

HSI calibration

RC oscillator frequencies can vary from one chip to another due to manufacturing process variations. This is why each device is factory calibrated by ST for an accuracy of \(ACC_{HSI}\) (see the product datasheet for more information).

When an app_rstn occurred, the factory calibration value is reloaded in the HSI, and is visible in HSICAL[8:0] bits. If the application is subject to voltage or temperature variations, this may affect the RC oscillator frequency. The user can trim the HSI frequency using the HSITRIM[6:0] bits. HSICAL[8:0] and HSITRIM[6:0] are in RCC_HSICFGR (see Section 20.6.2 for additional information).

Figure 86. HSI calibration flow

Block diagram of HSI calibration flow. The BSEC block provides bsec_hsi_cal[8:0] to an adder (+) inside the RCC block. The adder also receives HSITRIM[6:0] (signed) from the RCC_HSICFGR register. The output of the adder is hsi_cal[8:0], which is sent to the HSI block (CAL[8:0]). The RCC_HSICFGR register also provides HSICAL[8:0] (unsigned) feedback from the hsi_cal[8:0] signal.
graph LR
    BSEC[BSEC] -- bsec_hsi_cal[8:0] --> Adder((+))
    subgraph RCC
        Adder -- hsi_cal[8:0] --> HSI[HSI CAL[8:0]]
        Adder --> HSICAL[HSICAL[8:0] (unsigned)]
        HSICAL --> RCC_HSICFGR[RCC_HSICFGR]
        RCC_HSICFGR -- HSITRIM[6:0] (signed) --> Adder
    end
  

MSv71461V1

Block diagram of HSI calibration flow. The BSEC block provides bsec_hsi_cal[8:0] to an adder (+) inside the RCC block. The adder also receives HSITRIM[6:0] (signed) from the RCC_HSICFGR register. The output of the adder is hsi_cal[8:0], which is sent to the HSI block (CAL[8:0]). The RCC_HSICFGR register also provides HSICAL[8:0] (unsigned) feedback from the hsi_cal[8:0] signal.

Note: The HSI clock divided by 8 is also used for I/O compensation mechanism, and needs to be enabled if the I/O compensation mechanism is activated (see Section 23: System configuration controller (SYSCFG) for details).

MSI oscillator

The MSI is a low-power RC oscillator which can also be used directly as source clock for CPUx, interconnects, peripherals, or as PLL input.

The following point must be considered: If the MSI clock is currently used as kernel clock for some peripherals, the application has to ensure that the MSI frequency change does not disturb the peripherals.

Some MSI advantages are listed below:

Note: The MSI provides a clock frequency of 16 MHz, while the HSI is able to provide a clock up to 64 MHz.

The MSI frequency precision, even with frequency calibration, is less accurate than an external crystal oscillator or ceramic resonator.

Even if the MSI settling time is faster than the HSI one, care must be taken when the MSI is used as kernel clock for communication peripherals: the application has to take into account the following parameters:

Note: The MSI can be kept enabled when the system is in one of LP-Stop, Stop modes (see Section 20.4.8 for additional information).

The MSI clock can be driven to MCO1 and MCO2 outputs and can be used as a clock source for other application components.

The MSI can also be controlled by the application via MSION in RCC_OCSETR and RCC_OCENCLRR.

MSI calibration

RC oscillator frequencies can vary from one chip to another due to manufacturing process variations. This is why each device is factory calibrated by ST for an accuracy of ACCMSI (see the product datasheet for more information).

When an app_rstn occurred, the factory calibration value is reloaded into the MSI, and is visible on MSICAL[7:0] bits. If the application is subject to voltage or temperature variations, this may affect the RC oscillator frequency. The user can trim the MSI frequency using the MSITRIM[4:0] bits. MSICAL[7:0] and MSITRIM[4:0] are in RCC_MSICFGR (see Section 20.6.2 for additional information).

Figure 87. MSI calibration flow

Block diagram of MSI calibration flow. A BSEC block sends bsec_msi_cal[7:0] to an adder (+) inside the RCC block. The adder also receives MSITRIM[4:0] (unsigned) from the RCC_MSICFGR register. The output of the adder is msi_cal[7:0], which is sent to the MSI block's CAL[7:0] register. The RCC_MSICFGR register also outputs MSICAL[7:0] (unsigned) from the msi_cal[7:0] signal. The diagram is labeled MSv71462V1 in the bottom right corner.
Block diagram of MSI calibration flow. A BSEC block sends bsec_msi_cal[7:0] to an adder (+) inside the RCC block. The adder also receives MSITRIM[4:0] (unsigned) from the RCC_MSICFGR register. The output of the adder is msi_cal[7:0], which is sent to the MSI block's CAL[7:0] register. The RCC_MSICFGR register also outputs MSICAL[7:0] (unsigned) from the msi_cal[7:0] signal. The diagram is labeled MSv71462V1 in the bottom right corner.

RCBSEC oscillator

The RCBSEC is a 64 MHz RC oscillator dedicated to clock the BSEC. It is always activated after a vcore_rstn reset.

When the system goes in Stop or Standby mode, the RCBSEC clock is disabled by hardware (see Section 20.4.8 for additional information).

Note: The RCBSEC is also used as the source of the RNG1 and RNG2 kernel clocks. Peripheral kernel clock gating rules apply.

LSE oscillator

The LSE can generate a clock from two possible sources: external crystal/ceramic resonator, or external user clock.

The LSE offers a LSERDY flag which indicates if the LSE clock is available or not. When the LSE is enabled (LSEON = 1), LSERDY goes to 1 when 4096 cycles of LSE clock have been detected. This mechanism is also activated for an external clock source (LSEBYP = 1) with LSERDY set after the detection of 16 cycles of LSE clock. An interrupt can be generated if enabled in RCC_C1CIESETR or RCC_C2CIESETR when the LSE is ready.

Figure 88. LSE clock generation

Block diagram of LSE clock generation within the RCC. The diagram shows an external input OSC32_IN entering the RCC block. Inside, it splits into two paths: one through a 'Clock squarer' and another directly to a multiplexer. The multiplexer is controlled by LSEDIGBYP (0 or 1). Its output goes to another multiplexer controlled by LSEBYP (0 or 1). The output of this second multiplexer goes to 'Ready logic'. The 'Ready logic' output controls an AND gate along with the LSEON signal (not explicitly shown but implied). The output of the AND gate is 'lse_ck'. 'lse_ck' is also fed into the 'LSE_CSS' block, which outputs 'rcc_lsecss_fail'. The 'LSE_OSC' block is connected to OSC32_IN and OSC32_OUT. The 'LSEGFON' signal is also shown. The output of the 'Ready logic' is also labeled LSERDY.
Block diagram of LSE clock generation within the RCC. The diagram shows an external input OSC32_IN entering the RCC block. Inside, it splits into two paths: one through a 'Clock squarer' and another directly to a multiplexer. The multiplexer is controlled by LSEDIGBYP (0 or 1). Its output goes to another multiplexer controlled by LSEBYP (0 or 1). The output of this second multiplexer goes to 'Ready logic'. The 'Ready logic' output controls an AND gate along with the LSEON signal (not explicitly shown but implied). The output of the AND gate is 'lse_ck'. 'lse_ck' is also fed into the 'LSE_CSS' block, which outputs 'rcc_lsecss_fail'. The 'LSE_OSC' block is connected to OSC32_IN and OSC32_OUT. The 'LSEGFON' signal is also shown. The output of the 'Ready logic' is also labeled LSERDY.

The LSE oscillator is switched on and off using the LSEON bit. The LSE remains enabled when the system enters Stop, LP-Stop, LPLV-Stop, Standby, or VBAT mode.

The LSE clock can be driven to MCO1 and MCO2 outputs and can be used as a clock source for other application components.

External clock source (LSE bypass)

In this mode, an external clock source must be provided to OSC32_IN pin. The input clock can have a frequency up to 32.768 kHz, and be low-swing. This mode is selected by setting LSEBYP to 1.

The external clock signal can be digital or analog (square, sinus or triangle). Analog clock signal with a reduced amplitude is supported thanks to an internal clock squarer. The input signal must have a duty cycle close to 50%. The OSC32_OUT pin must be left HI-Z (see Figure 84 and Figure 85 for details). Refer to the datasheet for additional information.

In order to select the external clock source, the following steps are needed:

  1. 1. Set DBP = 1 in PWR_BDCR to allow write accesses to RCC_BDCR.
  2. 2. Disable the LSE by writing 0 to LSEON.
  3. 3. Check that the LSE is disabled (LSERDY = 0).
  4. 4. Set LSEDIGBYP
    • – to 1 if the clock provided to OSC32_IN is full-swing digital signal
    • – to 0 if the clock provided to OSC32_IN is low-swing signal
  5. 5. Set LSEBYP to 1.
  6. 6. Enable again the LSE by writing 1 to LSEON.
  7. 7. Check that the LSE is ready for use (LSERDY = 1).
  8. 8. Set DBP = 0 in PWR_BDCR to write-protect accesses to RCC_BDCR.

Note: All these bits (except DBP) are in RCC_BDCR.

External crystal/ceramic resonator (LSE crystal)

The LSE clock is generated from a 32.768 kHz crystal or ceramic resonator. It has the advantage of providing a low-power but highly accurate clock source to the RTC for clock/calendar or other timing functions.

In order to select the external clock source, the following steps are needed:

Note: All these bits (except DBP) are in RCC_BDCR.

The LSE on MCO1 or MCO2 outputs is only available in Run, LP-Stop, or Stop. In LPLV-Stop, Standby and VBAT, LSE is not available from MCO1 or MCO2 outputs. When entering Standby or VBAT, a spike may occur on MCO1 or MCO2.

The LSE offers a programmable driving capability (LSEDRV[1:0]) of the oscillator amplifier. The driving capability must be changed before enabling the LSE oscillator.


Warning: It is not allowed to change the driving capability when the LSE is enabled. The LSE behavior is not guaranteed in that case.


LSI oscillator

The LSI acts as a low-power clock source that can be kept running when the system is in Stop or Standby mode, for the independent watchdogs (IWDGx) and auto-wake-up unit (AWU). The clock frequency is around 32 kHz (see electrical characteristics in the product datasheet for details).

The LSI can be switched on and off using LSION in RCC_LSICR. LSIRDY in RCC_LSICR indicates if the LSI oscillator is stable or not. If an independent watchdog is started by either hardware option or software access, the LSI is forced on and cannot be disabled.

At LSI startup, the clock is not provided until the hardware sets LSIRDY. An interrupt can be generated if enabled in RCC_C1CIESETR or RCC_C2CIESETR.

The LSI clock can be driven to MCO1 and MCO2 outputs and can be used as a clock source for other application components.

Note: The LSI on MCO1 or MCO2 outputs is only available in Run, LP-Stop or Stop. In LPLV-Stop and Standby, LSI is not available from MCO1 or MCO2 outputs. When entering Standby, a spike may occur on MCO1 or MCO2.

20.4.3 Clock security system (CSS)

CSS on HSE

The RCC features a clock security system allowing the application to detect if the HSE clock stops toggling due to an unexpected reason, or if the HSE frequency clock is below 8 MHz. This may be caused for example, by an hardware failure or an attack. In the case of failure detection, the CSS generates a system reset, and protects the sensitive BKPSRAM data.

The CSS can be activated by the application software via HSECSSON. This bit can be activated even when HSEON = 0. The CSS on HSE is enabled by the hardware when the HSE is enabled and ready, and HSECSSON = 1.

The CSS on HSE is disabled when the HSE is disabled (system is Stop or Standby mode).

HSECSSON cannot be cleared by software. It is cleared by hardware when a system reset occurs, or when the system enters Standby mode.

If a failure is detected on the HSE:

Figure 89 shows the blocks involved in the HSE and LSE CSS function. Refer to these blocks description for more details.

Note: Before selecting again the HSE clock after an HSE failure, HCSSRSTF must be cleared in RCC_HWRSTSCLRR. The Boot ROM performs this task by resetting HCSSRSTF after an HSE failure. The Boot ROM reboots then the circuit if the selected boot source does not require the HSE resource. Refer to Boot ROM documentation for details.

Figure 89. HSE and LSE CSS function

Block diagram of HSE and LSE CSS function showing connections between RCC, RTC, EXTI, PWR, GIC, NVIC, and BKPSRAM.

The diagram illustrates the HSE and LSE CSS function. It shows the following blocks and their interconnections:

MSv71464V1

Block diagram of HSE and LSE CSS function showing connections between RCC, RTC, EXTI, PWR, GIC, NVIC, and BKPSRAM.

CSS on LSE

The RCC features a CSS allowing the application to detect if the LSE clock stops toggling due to an unexpected reason, or if the LSE frequency clock is above 2 MHz max frequency. This may be caused for example, by an hardware failure or an attack. In case of failure detection, the CSS generates a failure event, disables the clock provided to the RTC, and protects sensitive BKPSRAM data.

The CSS on LSE can be activated by setting to 1 LSECSSON in RCC_BDCR. This bit can be disabled only by hardware in one of the following conditions:

The CSS on LSE activation must be done in the following order:

  1. 1. Set LSEGFON to 1 in RCC_BDCR to filter glitch on LSE clock.
  2. 2. Set LSEON to 1 in RCC_BDCR, and wait for LSERDY = 1 in RCC_BDCR.
  3. 3. Select the LSE clock via RTCSRC in RCC_BDCR.
  4. 4. Set LSECSSON to 1 in RCC_BDCR.

The CSS on LSE works in all system modes.

If a failure is detected on the LSE:

The CSS on LSE offers two flags in order to detect a failure: LSECSSD in RCC_BDCR, and LSECSSF in RCC_C1CIFCLRR and RCC_C2CIFCLRR.

In case of failure, the following steps are needed:

  1. 1. Disable the CSS function (mandatory).
    1. a) Clear LSECSSON to 0.
    2. b) Clear LSEON to 0 in order to disable the LSE.
    3. c) Clear LSECSSF if interrupt was enabled for this event.
  2. 2. Change the clock source for the RTC if needed:
    1. a) Clear RTCEN to 0 to disable the RTC clock.
    2. b) Enable the new clock source for the RTC.
    3. c) Select the proper clock source via RTCSRC.
    4. d) Set RTCEN to 1 to enable the RTC clock.

The software can take any other required actions to secure the application.

Figure 89 shows the blocks involved in the HSE and LSE CSS function.

Note: The clock security feature must not be re-enabled.

Before reusing the CSS function for LSE, a backup domain reset must be performed for example via VSWRST in RCC_BDCR.

20.4.4 Clock output generation (MCO1 and MCO2)

Two clock output (MCO) pins are available: MCO1 and MCO2. A clock source can be selected for each one. MCO1 and MCO2 outputs are provided via two channels of the flexclkgen engine (see Figure 90 for additional information).

MCO1 and MCO2 outputs are controlled via MCO1ON, MCO1SEL, MCO2ON and MCO2SEL in RCC_MCO1CFGR and RCC_MCO2CFGR.

For each MCO pin, the corresponding GPIO port has to be programmed in the right alternate function mode. When the final divider channel is used for these outputs, the duty cycle is 50%.

MCO1 and MCO2 outputs are only available in Run and Stop modes. In Stop mode, the PLL clocks are not available.

Caution: The clock provided to the MCOs outputs must not exceed the maximum I/O speed (see the product datasheet for information about the supported I/O speed).

Figure 90. MCOy clock observation

Block diagram of MCOy clock observation logic. The diagram shows the RCC_FCALCOBSxCFGR register controlling various clock sources and logic gates to produce the MCOy output. The clock observation logic includes a multiplexer for external and internal clocks, a divider, and a final output stage controlled by RCC_MCOyCFGR.

The diagram illustrates the clock observation logic for the MCOy output. It shows the following components and connections:

Notes:

MSv71465V1

Block diagram of MCOy clock observation logic. The diagram shows the RCC_FCALCOBSxCFGR register controlling various clock sources and logic gates to produce the MCOy output. The clock observation logic includes a multiplexer for external and internal clocks, a divider, and a final output stage controlled by RCC_MCOyCFGR.

20.4.5 PLL description

The RCC features five PLLs with the same features:

Note: The above PLL use is only a recommendation.

PLLTS16FFCLAFRAC2 main features

Figure 91. PLL block diagram

Figure 91: PLL block diagram showing VDD0V8, VDDA1V8, Lock detect with LOCK output, DIV, PFD, CP, LPF, VCO (800 to 3200 MHz), DAC, Analog part, post-dividers (÷ 1-7), BYPASS multiplexer, FOUTPOSTDIV, ΔΣ modulator (DSM) with ÷ 16-640 integer and ÷ 20-320 fractional, and CLKSSCG output. Identification: PLLTS16FFCLAFRAC2, MSv71466V1.
Figure 91: PLL block diagram showing VDD0V8, VDDA1V8, Lock detect with LOCK output, DIV, PFD, CP, LPF, VCO (800 to 3200 MHz), DAC, Analog part, post-dividers (÷ 1-7), BYPASS multiplexer, FOUTPOSTDIV, ΔΣ modulator (DSM) with ÷ 16-640 integer and ÷ 20-320 fractional, and CLKSSCG output. Identification: PLLTS16FFCLAFRAC2, MSv71466V1.

Figure 92. PLL with SSMOD (spread-spectrum modulator) configuration

Figure 92: PLL with SSMOD (spread-spectrum modulator) configuration showing interface between PLL and Spread-spectrum modulator, with inputs FREF, DIVVAL[3:0], DOWNSPREAD, SPREAD[4:0], RESET, INTIN[11:0], FRACIN[23:0], DISABLE_SSCG, multiplexer between EXTWAVEVAL[7:0] and INTERNAL WAVE controlled by SEL_EXTWAVE, divider ÷ 1-15, and outputs INTMOD[11:0], FRACMOD[23:0]. Code: MSv71467V1.
Figure 92: PLL with SSMOD (spread-spectrum modulator) configuration showing interface between PLL and Spread-spectrum modulator, with inputs FREF, DIVVAL[3:0], DOWNSPREAD, SPREAD[4:0], RESET, INTIN[11:0], FRACIN[23:0], DISABLE_SSCG, multiplexer between EXTWAVEVAL[7:0] and INTERNAL WAVE controlled by SEL_EXTWAVE, divider ÷ 1-15, and outputs INTMOD[11:0], FRACMOD[23:0]. Code: MSv71467V1.

The FOUTPOSTDIV output is provided as a source clock on the flexclkgen crossbar stage. The PLLs are embedded in the generic frequency generator (GFG) stage of the flexclkgen component, and are controlled via RCC_PLLxCFGRy (x = 4 to 8 and y = 1 to 7).

The user must provide to each PLL, a clean reference clock (FREF) in the accepted input frequency range:

The application has to program properly the FREFDIV dividers in order to match these conditions. The PLL loop divider (FBDIV) has to be programmed in order to get the expected frequency at VCO output. The VCO output range must be respected.

The PLLs can be disabled by setting the corresponding PLEN bit to 0. LOCK bits inform the user that the PLL is ready (locked).

When the PLLs are enabled, post-dividers (POSTDIV1, POSTDIV2) values can be changed without disabling the corresponding PLL.

PLL programming recommendations

This section provides recommendations to follow in order to guarantee a good PLL use.

The PLLs can work in three different modes:

The PLL works in integer mode when the delta-sigma modulator (DSM) is loaded with 0, and DISABLE_SSCG = 1.

In order to load 0 into the DSM, the user has to perform the following sequence:

  1. a) Write 0 to FRAC, DSMEN, and DACEN.
  2. b) Write 1 to RESET.
  3. c) Write 1 to PLEN.

The VCO frequency (FOUT) is given by the following expression:

\[F_{FOUT} = \frac{F_{FREF} \times FBDIV}{FREFDIV}\]

The frequency at the output of the post-divider is given by:

\[F_{FOUTPOSTDIV} = \frac{F_{FOUT}}{POSTDIV1 \times POSTDIV2}\]

The fractional mode is activated when the value loaded into the DSM is different from 0, DISABLE_SSCG = 1, and DSMEN = 1.

The DSM value can be updated at anytime by the application by executing the following sequence:

  1. a) Write into FRAC the new fractional value.
  2. b) The new FRAC value is loaded into the DSM when CLKSSCG goes from 0 to 1.

The DSM is designed to minimize the jitter impact while allowing very small frequency steps. When the PLL is used in fractional mode, the FBDIV divider value must be initialized before enabling the PLL (FBDIV min = 20), but the FRAC value can be changed on-the-fly without disturbing the PLL output. This feature can be used either to generate a specific frequency, with a good accuracy from any crystal value, or to perform a fine tuning of the frequency on-the-fly.

The VCO frequency is given by the following expression:

\[F_{FOUT} = \frac{F_{FREF} \times \left( FBDIV + \frac{FRAC}{2^{24}} \right)}{FREFDIV}\]

See FOUTPOSTDIV frequency formula above.

This mode is activated when the DSM is loaded with 0, and when DISABLE_SSCG = 0. This feature is available on all PLLs.

The spread-spectrum technique consists of modulating the VCO frequency with a low-frequency signal (in our case a triangular signal), in order to spread the clock energy into a wider frequency band. The amount of emitted EMI peaks is then reduced.

The spread-spectrum modulation parameters are adjusted via the following fields:

The figure below shows the signal modulating the nominal frequency (\(F_N\)), when DOWNSPREAD = 0 (center-spread) and DOWNSPREAD = 1 (down-spread).

The nominal frequency is the frequency output by the PLL in integer mode, when no clock spreading is applied.

Setting DOWNSPREAD = (down-spread) guaranties that the PLL output frequency does not exceed the programmed frequency value when the SSCG is enabled.

Figure 93. Spread-spectrum modulation

Figure 93: Spread-spectrum modulation. Two graphs show Frequency vs. Time (t). The left graph, labeled 'Center-spread', shows a triangular modulation signal centered on the nominal frequency F_N. The peak-to-peak modulation depth is M_D, and the modulation frequency is F_MOD. The right graph, labeled 'Down-spread', shows a triangular modulation signal where the entire signal is shifted downwards from F_N. The peak-to-peak modulation depth is M_D, and the modulation frequency is F_MOD. Both graphs have a horizontal dashed line at F_N. The right graph is labeled MSv71468V1.
Figure 93: Spread-spectrum modulation. Two graphs show Frequency vs. Time (t). The left graph, labeled 'Center-spread', shows a triangular modulation signal centered on the nominal frequency F_N. The peak-to-peak modulation depth is M_D, and the modulation frequency is F_MOD. The right graph, labeled 'Down-spread', shows a triangular modulation signal where the entire signal is shifted downwards from F_N. The peak-to-peak modulation depth is M_D, and the modulation frequency is F_MOD. Both graphs have a horizontal dashed line at F_N. The right graph is labeled MSv71468V1.

The peak modulation depth (in percentage) is given by the following formula:

\[M_D (\%) = \pm \text{SPREAD} \times 0.1\]

Example: SPREAD = 0b10010 means a ±1.8% modulation amplitude in center-spread mode, and -1.8% in down-spread mode.

Note: The modulation is turned off when SPREAD = 0.

The modulation frequency (\(F_{MOD}\)) is given by:

\[F_{MOD} = \frac{F_{CLKSSCG}}{128 \times \text{DIVVAL}}\]

where 128 equals to the number of points in the internal wave table, and DIVVAL equals to the user defined divide value.

Note: When the PLL is locked, \(F_{CLKSSCG} = F_{PFD}\). The upper limit of the modulation frequency (\(F_{MOD}\)) is set by the PLL bandwidth.

The PLL bandwidth limits the maximum modulation to \(F_{CLKSSCG}/200\) where \(F_{CLKSSCG} = F_{FREF}/FREFDIV\) or 50 MHz, whichever is lower.

In order to use the spread spectrum feature, the following steps are needed:

  1. Program the PLL as detailed in Integer mode in order to adjust the nominal frequency (\(F_N\)) according to the targeted by the application.
  2. Compute DIVVAL according to the wanted modulation frequency (\(F_{MOD}\)):

\[DIVVAL = \text{ROUND}\left(\frac{F_{CLKSSCG}}{128 \times F_{MOD}}\right)\]

  1. Compute SPREAD according to the wanted modulation depth (\(M_D\)).
  2. Set DOWNSPREAD according to the wanted modulation type.
  3. Compute INTIN accordingly (FRACIN = 0):
  4. \[INTIN = \text{ROUND}\left(\frac{F_N \times FREFDIV}{F_{FREF}}\right)\]
  5. Clear DISABLE_SSCG, DSMEN, and DACEN to 0.
  6. Assert RESET to 1 and PLEN to 0. PLEN must be held at 0 for 1 ?s to make sure the PLL is fully reset.
  7. Set PLEN, DSMEN and DACEN to 1 (see note below).
  8. Wait until the first CLKSSCG edge, and clear RESET to 0 ( can be done before PLL is locked, or anytime afterwards).

Note: After some time the PLL is locked and outputs a spread-spectrum clock. Since the spread-spectrum accuracy relies on the fractional-N capability of the PLL the fractional modulator must be operating. DSMEN and DACEN must be set to 1.

The user can check \(F_{MIN}\), \(F_{MAX}\) and \(F_N\) as follow:

20.4.6 PLL root clocks

The RCC handles the following PLL root clocks:

PLL root clock selection

After a system reset, the HSI is selected for the complete system. All the PLLs are switched off, as well as MSI and HSE oscillators.

When the system is running, the user has the possibility to select the clock source to be used for all above subsystem clocks. It relies on the following clock sources: HSI, HSE, MSI and CK_IN.

20.4.7 Root clocks

The RCC handles two types of root clocks:

Root clock generation

Figure 94 shows the flexclkgen engine which is used to generate all root clocks when the system is in Run mode.

After any system reset, the flexclkgen default configuration is to output the HSI reference clock (64 MHz) on all root clocks while all PLLs are disabled.

It is up to the boot code to configure the PLLs and the clock dividers with the appropriate values.

The flexclkgen is based on the following stages:

Figure 94. Flexclkgen block diagram

Block diagram of the Flexclkgen showing inputs (hsi_ck, hse_ck, msi_ck, etc.), REG ITF, MUXSEL, PLLs (PLL4-PLL8), XBAR, PREDIV, and FINDIV blocks.

The diagram illustrates the Flexclkgen block structure. It features a REG ITF block at the top left. Below it, various clock inputs are listed: hsi_ck, hse_ck, msi_ck, ck_in, hsi_ker_ck, hse_ker_ck, msi_ker_ck, spdifrx_symb_ck, lsi_ck, and lse_ck. These inputs feed into a MUXSEL block. The MUXSEL block has inputs 0, 1, 2, and 5, and outputs 4, 3, 2, 1, 0, 6, and 5. Outputs 6 and 5 lead to PLL2 and PLL1 respectively. The outputs 4, 3, 2, 1, and 0 of MUXSEL feed into a GFG block containing PLL8, PLL7, PLL6, PLL5, and PLL4. The outputs of these PLLs feed into an XBAR block. The XBAR block has inputs 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 63, and 0. Its outputs feed into a PREDIV block, which in turn feeds into a FINDIV block. The FINDIV block has inputs 63, 7, and 0. The final outputs of the Flexclkgen block are shown at the bottom, with a feedback path returning to the inputs.

MSv71469V3

Block diagram of the Flexclkgen showing inputs (hsi_ck, hse_ck, msi_ck, etc.), REG ITF, MUXSEL, PLLs (PLL4-PLL8), XBAR, PREDIV, and FINDIV blocks.

Figure 95. Flexclkgen programming flow

Flowchart for Flexclkgen programming flow. It starts with 'System reset' leading to 'GFG programming', then 'PLLs ready' check, 'Pre divide status=0' check, 'Pre divide ratio' programming, another 'Pre divide status=0' check, 'Final divide status=0' check, 'Final divide ratio' programming, another 'Final divide status=0' check, 'XBAR status=0' check, 'Crossbar selection', another 'XBAR status=0' check, and finally 'Clock programmed'. Each step has associated register and bit information.
graph TD; A([System reset]) --> B[GFG programming]; B --> C{PLLs ready}; C -- no --> B; C -- yes --> D{Pre divide status=0}; D -- no --> D; D -- yes --> E[Pre divide ratio]; E --> F{Pre divide status=0}; F -- no --> F; F -- yes --> G{Final divide status=0}; G -- no --> G; G -- yes --> H[Final divide ratio]; H --> I{Final divide status=0}; I -- no --> I; I -- yes --> J{XBAR status=0}; J -- no --> J; J -- yes --> K[Crossbar selection]; K --> L{XBAR status=0}; L -- no --> L; L -- yes --> M([Clock programmed]);

System reset All clock channels at HSI clock frequency (XBAR and FINDIV stages enabled)

GFG programming PLL reference source clock selection via RCC_MUXSELCFGR
PLL programming based on RCC_PLLxCFGRy (x = 4 to 8 and y = 1 to 7)

PLLs ready Bit 24 of RCC_PLLxCFGR1(X = 4 to 8)

Pre divide status=0 RCC_PREDIVSR1 for channels 0 to 31
RCC_PREDIVSR2 for channels 32 to 63

Pre divide ratio PREDIV programming
Divide ratio: bits 9:0 of RCC_PREDIVxCFGR

Pre divide status=0 RCC_PREDIVSR1 for channels 0 to 31
RCC_PREDIVSR2 for channels 32 to 63

Final divide status=0 RCC_FINDIVSR1 for channels 0 to 31
RCC_FINDIVSR2 for channels 32 to 63

Final divide ratio FINDIV programming
Divide ratio: bits 5:0 of RCC_FINDIVxCFGR

Final divide status=0 RCC_FINDIVSR1 register for channel 0 to 31
RCC_FINDIVSR2 register for channel 32 to 63

XBAR status=0 XBAR programming: RCC_XBARxCFGR
(bit7 indicates the channel change status)

Crossbar selection XBAR programming: RCC_XBARxCFGR
(bits 3:0 are used to select the channel clock source (up to 16))

XBAR status=0 XBAR programming: RCC_XBARxCFGR
(bit7 indicates the channel change status)

Clock programmed Clock switching is glitch-free.

MSv71470V1

Flowchart for Flexclkgen programming flow. It starts with 'System reset' leading to 'GFG programming', then 'PLLs ready' check, 'Pre divide status=0' check, 'Pre divide ratio' programming, another 'Pre divide status=0' check, 'Final divide status=0' check, 'Final divide ratio' programming, another 'Final divide status=0' check, 'XBAR status=0' check, 'Crossbar selection', another 'XBAR status=0' check, and finally 'Clock programmed'. Each step has associated register and bit information.

Caution: The channel clock used to generate ck_icn_hs_mcu and ck_icn_ls_mcu subsystem clocks cannot be stopped in Run mode as it is the source of the RCC main clock.

The table below shows the flexclkgen clock channel assignment for root clocks, and its distribution versus local peripheral bus clocks.

Table 121. Root clock mapping

Flexclkgen channel numberRoot clock nameMax frequency (MHz)Bus matrixTarget peripheral bus clock
0ck_icn_hs_mcu300AXIMck_icn_s_fmc, ck_icn_s_sysram
MLAHBck_icn_hs_mlahb, ck_cpu2, ck_cpu2_icache, ck_cpu2_dcache, ck_icn_s_retram, ck_icn_s_sram1, ck_icn_s_ospi1, ck_icn_p_otfd1
ck_icn_ls_mcu150AXIMck_icn_m_axiap, ck_icn_s_stm
MLAHBck_icn_ls_mlahb
AHB2ck_icn_ahb2, ck_icn_p_hpdma1, ck_icn_p_hpdma2, ck_icn_p_hpdma3, ck_icn_p_ipcc1, ck_icn_p_dcmipssi, ck_icn_p_crc, ck_icn_p_mdf1, ck_icn_p_adc1, ck_icn_p_adc2
AHB3ck_icn_ahb3, ck_icn_s_bkpsram, ck_icn_p_ramcfg, ck_icn_p_rifsciac, ck_icn_p_risaf1, ck_icn_p_risaf2, ck_icn_p_risaf4, ck_icn_p_risab1, ck_icn_p_risab2, ck_icn_p_risab3, ck_icn_p_risab5(1)
AHB4ck_icn_ahb4, ck_icn_p_rcc, ck_icn_p_pwrctrl, ck_exti, ck_icn_p_syscfg, ck_icn_p_gpioa, ck_icn_p_gpiob, ck_icn_p_gpioc, ck_icn_p_gpiod, ck_icn_p_gpioe, ck_icn_p_gpiof, ck_icn_p_gpiog, ck_icn_p_gpioh, ck_icn_p_gpioi
AHB5ck_icn_ahb5, ck_icn_p_fmc, ck_icn_p_eth1, ck_icn_p_eth2, ck_icn_p_syscpu1, ck_icn_p_ddrphyc
AHB6ck_icn_ahb6, ck_icn_p_gpioz
APB1ck_icn_ahb_apb1
APB2ck_icn_ahb_apb2
APB3ck_icn_ahb_apb3
APB4ck_icn_ahb_apb4
APB5ck_icn_ahb_apb5
APBDBGck_icn_ahb_apbdbg
1ck_icn_sdmmc200AHB5ck_icn_p_dlybsd1, ck_icn_p_dlybsd2, ck_icn_p_dlybsd3, ck_icn_m_sdmmc1, ck_icn_m_sdmmc2, ck_icn_m_sdmmc3
2ck_icn_ddr600AXIMck_icn_s_ddr, ck_icn_m_cpu1
3ck_icn_display400AXIMck_icn_m_ltdc, ck_icn_m_dcmipp

Table 121. Root clock mapping (continued)

Flexclkgen channel numberRoot clock nameMax frequency (MHz)Bus matrixTarget peripheral bus clock
4ck_icn_hsl300AXIMck_icn_m_usbhehci, ck_icn_m_usbhohci, ck_icn_m_otg, ck_icn_m_eth1, ck_icn_m_eth2
5ck_icn_nic400AXIMck_icn_s_bootrom, ck_icn_s_gic400
  1. 1. ck_icn_p_risaf1, ck_icn_p_risaf2, ck_icn_p_risaf4, ck_icn_p_risab1, ck_icn_p_risab2, ck_icn_p_risab3, ck_icn_p_risab5 clocks are enabled according to the related resource clock gating logic. Refer to RISAB and RISAF sections for resource assignment.

The root control module shown in Figure 96 is added between the flexclkgen engine and the clock enabling stage to generate dynamically all root clocks with synchronous relationships (interconnect, bridges and timer peripherals).

In the product, the root control module applies to the root clock ck_icn_ls_mcu, with:

The APB1DIV divider in RCC_APB1DIVR can be used to adjust dynamically the clock for the APB1 bridge. Similar implementation is available for APB2, APB3, APB4, APB5 and APBDBG.

Note: Dividers having the possibility to be updated on-the-fly provide a ready bit in order to inform the application on the moment when the new division ratio is taken into account.

Figure 96. Root control module description.

Block diagram of the Root control module showing clock sources and distribution paths.

The diagram illustrates the Root control module's clock distribution. It starts with a multiplexer selecting between flexclkgen_channel0 (input 0) and hsi_ck (input 1), controlled by CKREST. The output of this multiplexer is split into two paths: one goes directly to ck_icn_hs_mcu, and the other passes through a divider block labeled ÷1,2 (controlled by LSMCUDIV). The output of this divider is then distributed to several other divider blocks, each labeled ÷1,2,4,8,16 and controlled by specific divider registers: APB1DIV, APB2DIV, APB3DIV, APB4DIV, APB5DIV, and APBDBGDIV. These divider blocks produce the root clocks ck_icn_ls_mcu, ck_icn_apb1, ck_icn_apb2, ck_icn_apb3, ck_icn_apb4, ck_icn_apb5, and ck_icn_apbdbg respectively. The reference MSv71471V1 is located in the bottom right corner of the diagram area.

Block diagram of the Root control module showing clock sources and distribution paths.

The table below shows the peripheral root bus clock distribution versus peripherals.

Table 122. APB root clock mapping

Root clock nameMax frequency (MHz)Target peripheral bus clock
ck_icn_apb1150ck_icn_p_tim2, ck_icn_p_tim3, ck_icn_p_tim4, ck_icn_p_tim5, ck_icn_p_tim6, ck_icn_p_tim7, ck_icn_p_tim12, ck_icn_p_tim13, ck_icn_p_tim14, ck_icn_p_lptim1, ck_icn_p_lptim2, ck_icn_p_spi2, ck_icn_p_spi3, ck_icn_p_spdifrx, ck_icn_p_usart2, ck_icn_p_usart3, ck_icn_p_uart4, ck_icn_p_uart5, ck_icn_p_i2c1, ck_icn_p_i2c2, ck_icn_p_i3c1, ck_icn_p_i3c2, ck_icn_p_tim10, ck_icn_p_tim11
ck_icn_apb2150ck_icn_p_tim1, ck_icn_p_tim8, ck_icn_p_usart6, ck_icn_p_spi1, ck_icn_p_spi4, ck_icn_p_tim15, ck_icn_p_tim16, ck_icn_p_tim17, ck_icn_p_spi5, ck_icn_p_sai1, ck_icn_p_sai2, ck_icn_p_sai3, ck_icn_p_fdcn, ck_icn_p_usart1, ck_icn_p_sai4, ck_icn_p_uart7
ck_icn_apb3150ck_icn_p_bsec, ck_icn_p_iwdg1, ck_icn_p_iwdg2, ck_icn_p_iwdg3, ck_icn_p_iwdg4, ck_icn_p_wwdg1, ck_icn_p_vref, ck_icn_p_dts, ck_icn_p_serc, ck_icn_p_hdp, ck_icn_p_dbgmcu
ck_icn_apb4150ck_icn_p_ltdc, ck_icn_p_csi, ck_icn_p_dcmipp, ck_icn_p_ddrc, ck_icn_p_ddrcfg, ck_icn_p_stgen, ck_icn_p_ddrperfm

Table 122. APB root clock mapping (continued)

Root clock nameMax frequency (MHz)Target peripheral bus clock
ck_icn_apb5150ck_icn_p_rtc, ck_icn_p_spi6, ck_icn_p_lpuart1, ck_icn_p_i2c3, ck_icn_p_lptimer3, ck_icn_p_lptimer4, ck_icn_p_lptimer5, ck_icn_p_i3c3
ck_icn_apbdbg150ck_icn_p_soc_romtable, ck_icn_p_funnel, ck_icn_p_etf, ck_icn_p_etr, ck_icn_p_tpiu, ck_icn_p_replicator, ck_icn_p_tsgen1, ck_icn_p_stm, ck_icn_p_cti0, ck_icn_p_cti1, ck_icn_p_swo, ck_icn_p_a35_romtable, ck_icn_p_a35_dbg0, ck_icn_p_a35_cti0, ck_icn_p_a35_pmu0, ck_icn_p_a35_etm0, ck_sys_dbg

20.4.8 Clock generation in Stop and Standby modes

The product supports six system Stop modes (see Section 19: Power control (PWR) for details):

There is one low-power system Standby mode.

The main difference between Stop modes is the handling of D1 and D2 domain supply voltages:

The amount of peripherals able to wake up the system from Stop depends on the activated Stop mode. For example, Stop1, Stop2, LP-Stop1 or LP-Stop2 mode offers a larger choice of peripherals able to wake up the system than LPLV-Stop1 or LPLV-Stop2 mode.

Entering one of the Stop modes

The system can go to one these Stop modes when both CPU1 and CPU2 are in CStop without any pending wake-up event on the EXTI. To go in one of the Stop or LP-Stop modes, any autonomous peripheral that requests a bus clock delays the system entry in the requested low-power mode (see Section 19.5.2: Low-power batch acquisition mode (LPBAM) for the list of supported autonomous peripherals).

Once the above conditions are met, the RCC informs the PWR that CPU1 and/or CPU2 subsystems are in CStop via pwrds_cpu1, pwrds_cpu2 and pwrds_sys(see Figure 73). Any autonomous bus clock request is postponed until the sequence to go in Stop is done.

Note: When only one CPUx goes to CStop, all RCC PLLs and oscillators generating the root and kernel clocks of all shared peripherals (CPU1 and CPU2) are kept activated (see Section 20.3.11 for details on these peripherals).

The PLL1 is disabled when CPU1 is in CStop. The PLL2 state is based on DDRSHR bit and the CPU1 or system state (see Clock distribution for the DDR for details).

As before going to CStop, each CPUx has to mask all the interrupts except the RCC wake-up interrupt in order to insure a safe Stop sequence entry and exit. The RCC provides two wake-up interrupts (rcc_cpu1_wkup_it and rcc_cpu2_wkup_it) which can be enabled via their corresponding WKUPIE bit (see Section 20.5 for additional information).

Note: When the D1 domain is put in DStandby mode (Stop2, LP-Stop2 or LPLV-Stop2 mode), the RCC wake-up interrupt for CPU1 is not relevant as the CPU1 reboots in case of CPU1 wake-up event.

Before switching off all the clocks, the RCC waits for the DDRCTRL to enter in self-refresh mode (SSR RCC mode is the only mode that allows the system to go in one of Stop modes). As a consequence, the effective entry in one of the Stop modes may be delayed until the DDRCTRL allows it. The RCC stops then all the clocks (subsystem and kernel clocks), and the following clock sources are disabled as well:

Note: In LPLV-Stop1 or LPLV-Stop2 mode, HSI, HSE and MSI cannot be used. LSE and LSI oscillators remain active in all Stop modes if enabled.

During one of the Stop modes

As explained in the previous section, in one of the system Stop modes, all clocks, PLLs and oscillators are disabled, except LSE and LSI which are kept in their current states. There are specific cases in Stop1, Stop2, LP-Stop1 or LP-Stop2 mode, where the HSE, HSI or MSI can be enabled:

exits one of the Stop modes, or when a peripheral requests the kernel clock (see Table 123 for details).

The provided bus interface clock is always the HSI (see Section 19: Power control (PWR) for the list of autonomous peripherals).

HSIKERON, MSIKERON and HSEKERON are in RCC_OCSENTR and RCC_OCENCLLR.

The table below details the behavior of these bits with 'ON' status highlighted in grey.

Note: HSE, HSI and MSI outputs provide two clock paths (see Figure 83):
- one path for the CPUx and subsystem clocks (hse_ck, hsi_ck or msi_ck)
- one path for the peripheral kernel clocks (hse_ker_ck, hsi_ker_ck or msi_ker_ck)
These paths are available via the flexclkgen engine.

Table 123. HSI, MSI and HSE states versus system modes

System modeHSION
(HSEON)
(MSION)
HSIKERON
(HSEKERON)
(MSIKERON)
Kernel
clock
request(1)
Bus clock
request(2)
-HSI state
(HSE state)
(MSI state)
hsi_ck
(hse_ck)
(msi_ck)
hsi_ker_ck
(hse_ker_ck)
(msi_ker_ck)
Run1 or Run20X1X-ONGatedON
0-OFFGated
1X-ONONON
Stop1, LP-Stop1,
Stop2 or LP-Stop2
XX10-ON(3)GatedON
00-OFFGated
1-ONON(4)
XX-ONON(5)ON(6)
StandbyXXXX-OFFGatedGated
  1. Kernel clock request is equal 1 when the peripheral requests a kernel clock, and its corresponding RCC_XBARxCFGR selects HSE, HSI or MSI, and the corresponding PERxEN and PERxLPEN are set to 1 (see Table 140 for details).
  2. Bus clock request is equal 1 when the peripheral requests a bus interface clock, and the corresponding PERxEN and PERxLPEN are set to 1, and the system is in one of the Stop modes.
  3. Only the oscillator selected by RCC_XBARxCFGR of the peripheral that requests the kernel clock is enabled.
  4. The kernel clock is provided to the clock enabling block, and gated as long as the peripheral does not generate a kernel clock request.
  5. Only HSI is supported in these modes.
  6. The kernel clock selected by RCC_XBARxCFGR is enabled.

Exiting one of the Stop modes

The system can leave one of the Stop modes thanks to events generated by peripherals able to work in the selected mode.

The exit from system Stop is generally done in the following way:

  1. 1. A peripheral sends a wake-up interrupt to the EXTI.
  2. 2. The EXTI generates an event to the PWR (sys_wakeup).
  3. 3. The PWR signals to the external PMIC or the external regulator that the main power must be restored (through PWR_LP or optionally PWR_ON/PWR_CPU_ON pins).
  4. 4. If the PMIC was in LPLV-Stop1 or LPLV-Stop2, the PWR waits for a nominal \(V_{DDCORE}\).
  5. 5. When \(V_{DDCORE}\) reached the nominal value, the PWR asserts pwrwake_sys for the RCC.
  6. 6. Thanks to this signal, the RCC provides the hsi_ck clock to the EXTI and PWR, and starts the clock restore sequence (see Clock restore sequence for details).
  7. 7. When the hsi_ck is available, the EXTI asserts the cpu1_wakeup and/or cpu2_wakeup signals, indicating to the PWR which CPUx must be activated. If the PMIC was in Stop2, LP-Stop2 or LPLV-Stop2, the PWR waits for a nominal \(V_{DDCPU}\) voltage.
  8. 8. The PWR asserts the pwrwake_cpu1 signal once \(V_{DDCPU}\) has reached the nominal value when leaving Stop2, LP-Stop2 or LPLV-Stop2, and/or the pwrwake_cpu2 signal for the RCC according to the CPUx to be activated.
  9. 9. On the RCC side:
    • – If pwrwake_cpu1 is activated while leaving Stop1, LP-Stop1 or LPLV-Stop1, the RCC asserts rcc_cpu1_wkup_it, and provides the clocks to the CPU1 domain when these clocks are available.
    • – If pwrwake_cpu1 is activated while leaving Stop2, LP-Stop2 or LPLV-Stop2, the RCC releases the CPU1 reset, and provides the clocks to the CPU1 domain when these clocks are available.
    • – If pwrwake_cpu2 is activated, the RCC asserts rcc_cpu2_wkup_it, and provides the clocks to the CPU2 domain when these clocks are available.
  10. 10. The targeted CPUx exits from CStop, and reenables the interrupts of the peripherals activated during Stop mode. The peripheral which has generated the wake-up event is then able to generate an interrupt to the CPUx.
  11. 11. The RCC acknowledges pwrwake_cpu1 or pwrwake_cpu2 requests by releasing pwrds_cpu1 or pwrds_cpu2.

The RCC integrates a state machine able to restore the clock configuration which was used before going to one of the Stop modes.

Remarks: Exiting the system from one of the Stop modes requests that peripherals are able to generate wake-up events, even when the system clock is not available.

The EXTI is used to trigger the wake-up sequence (see Section 29: Extended interrupts and event controller (EXTI) to get the list of peripherals that can wake-up a system from Stop or a CPUx from CStop).

The RCC executes the clock restore sequence every time the system exits Stop as shown in the figure below. When the system is in Run, all oscillators and PLLs requested by the

application are activated, but each CPU clock domain is only activated according to the related CPU mode.

Figure 97. Clock restore activation versus system mode

A state transition diagram showing clock restore activation between System Stop and System Run modes. The diagram is divided into two main sections: 'System Stop' (top, grey background) and 'System Run' (bottom, yellow background). In 'System Stop', there is a state box containing 'CPU1 CStop' and 'CPU2 CStop'. In 'System Run', there are three state boxes: one with 'CPU1 CRun/CSleep' and 'CPU2 CStop', another with 'CPU1 CStop' and 'CPU2 CRun/CSleep', and a third with 'CPU1 CRun/CSleep' and 'CPU2 CRun/CSleep'. Transitions are numbered 1 through 7. Transition 1 (labeled 'CR') goes from the System Stop state to the 'CPU1 CRun/CSleep, CPU2 CStop' state. Transitions 2 and 3 go from the 'CPU1 CStop, CPU2 CRun/CSleep' state to the 'CPU1 CRun/CSleep, CPU2 CRun/CSleep' state. Transitions 4 and 5 go from the 'CPU1 CRun/CSleep, CPU2 CStop' state to the 'CPU1 CRun/CSleep, CPU2 CRun/CSleep' state. Transitions 6 and 7 go from the 'CPU1 CRun/CSleep, CPU2 CRun/CSleep' state back to the 'CPU1 CStop, CPU2 CRun/CSleep' state. A legend indicates that yellow boxes represent 'Run, CRun or CSleep' and grey boxes represent 'Stop, CStop'.

CR Clock restore sequence triggered by pwrwake_sys event. hsi_ck is enabled for RCC, EXTI and PWR. All PLLs are reenabled if their respective PLLxEN = 1.

2 Enabling of CPU2 clock domain (pwrwake_cpu2) once all PLLs are ready except when HSI clock is selected on CPU2

3 Enabling of ck_pll1_ref, ck_cpu1_ext2f, and CPU1 clock domain (pwrwake_cpu1)

4 Disable all clocks allocated to CPU2 domain.

5 Disable all clocks, all PLLs, and oscillators if allowed.

6 Disabling of ck_pll1_ref, ck_cpu1_ext2f, and CPU1 clock domain

7 Enable all clocks allocated to CPU2 domain.

Run, CRun or CSleep
Stop, CStop

MSv71472V1

A state transition diagram showing clock restore activation between System Stop and System Run modes. The diagram is divided into two main sections: 'System Stop' (top, grey background) and 'System Run' (bottom, yellow background). In 'System Stop', there is a state box containing 'CPU1 CStop' and 'CPU2 CStop'. In 'System Run', there are three state boxes: one with 'CPU1 CRun/CSleep' and 'CPU2 CStop', another with 'CPU1 CStop' and 'CPU2 CRun/CSleep', and a third with 'CPU1 CRun/CSleep' and 'CPU2 CRun/CSleep'. Transitions are numbered 1 through 7. Transition 1 (labeled 'CR') goes from the System Stop state to the 'CPU1 CRun/CSleep, CPU2 CStop' state. Transitions 2 and 3 go from the 'CPU1 CStop, CPU2 CRun/CSleep' state to the 'CPU1 CRun/CSleep, CPU2 CRun/CSleep' state. Transitions 4 and 5 go from the 'CPU1 CRun/CSleep, CPU2 CStop' state to the 'CPU1 CRun/CSleep, CPU2 CRun/CSleep' state. Transitions 6 and 7 go from the 'CPU1 CRun/CSleep, CPU2 CRun/CSleep' state back to the 'CPU1 CStop, CPU2 CRun/CSleep' state. A legend indicates that yellow boxes represent 'Run, CRun or CSleep' and grey boxes represent 'Stop, CStop'.

Handling the PWRLP_TEMPO

The PWRLP_TEMPO is used to wait automatically that the external PMIC switched from low-power (LP) to high-power (HP) mode, before enabling power-consuming parts. The application can control the delay value via RCC_PWRLPDLYCR.

The PWRLP_TEMPO uses the ck_icn_ls_mcu clock as reference which is sourced during the clock restore sequence by either hsi_ck (when LSMCU = 0 in RCC_LSMCUDIVR) or by hsi_ck/2 (when LSMCU = 1).

In order to allow a fast restart time when the CPU2 clock wakes up from system LP-Stop1, LP-Stop2, LPLV-Stop1 or LPLV-Stop2, ck_icn_hs_mcu and ck_icn_ls_mcu clocks may bypass the PWRLP_TEMPO delay. This is only possible when the CPU2 power consumption is low enough to be supported by the PMIC LP mode. This function is controlled by CPU2TMPSKP in RCC_PWRLPDLYCR.

Note: In this case, the PMIC still transitions from LP to HP mode.

Refer to Clock restore sequence for additional informations.


Warning: When CPU2TMPSKP is set to 1, the application must insure that the CPU2 did not allocate peripherals located into the AXI subsystem (AHB5, APB4 or APBDBG). If this rule is not respected, a system reset may be generated.


Clock restore sequence

Every time the system exits one of the Stop modes (pwrwake_sys), the RCC reenables the requested oscillators and PLLs in order to restore the subsystem clocks. These clock settings are defined by the registers listed in Table 124, that cannot be modified during the clock restore sequence.

If the system exits from one of the Stop modes due to a CPU1 wake-up event (pwrwake_cpu1), the RCC enables ck_pll1_ref and ck_cpu1_ext2f clocks. All CPU1 subsystem clocks are reenabled simultaneously once all internal and external PLL ready signals are received.

The same strategy applies in case of a CPU2 wake-up event (pwrwake_cpu2) except when the selected CPU2 clock (ck_icn_hs_mcu) is an oscillator clock (HSI, HSE or MSI) before the system goes to one of the Stop modes. In this case, the CPU2 clock domain is reenabled before waiting for all internal and external PLL ready signals. It is up to the application to take care of the PLL states prior using any peripherals clocked by PLLs.

Note: When leaving Stop2, LP-Stop2 or LPLV-Stop2, the PLL1 ready signal is not taken into account.

The PLL2 clock source (ck_pll2_ref) is always reenabled when the system exits from one of the Stop modes, if DDR is shared.

More precisely, the clock restore sequence when the system exits Stop, is split into the following main steps (see Figure 98 and Figure 99):

  1. 1. Set CKREST = 1 in order to inform that a clock restore sequence is initiated. Registers listed on Table 124 cannot be modified during the clock restore sequence.
  2. 2. Enable the oscillators which were enabled before going to system Stop.
  3. 3. When the HSI is ready, the RCC can trigger the PWRLP_TEMPO to allow a delay to the external PMIC to switch in HP mode, before doing power-consuming operations on VDDCORE.
  4. 4. When the oscillators used by PLLs are ready, the PLL analog parts can be powered. As these parts are not powered by VDDCORE, it is possible to enable the VCOs (no need to wait that PWRLP_TEMPO elapsed).
  5. 5. In case of CPU2 wake-up event, the CPU2 clock domain is reenabled without waiting for PLLs to be ready, if the CPU2 clock source is an oscillator.
  6. 6. Before enabling the PLL outputs, the RCC must wait until the PWRLP_TEMPO elapsed, and the PLLs are ready. The process generating the CPU2 clock domain may also need to wait until the PWRLP_TEMPO elapsed when CPU2TMPSKP = 0.
  7. 7. Depending on the wake-up event, only the related CPU clock domain is reenabled. The RCC clears CKREST to 0. Registers listed in Table 124 can then be modified by the application if needed.

Figure 98. Clock restore process activated after system Stop

Flowchart of clock restore process after system stop. It starts with wakeup from system stop, followed by SYSTEM_STOP_EXIT, setting write-protection, enabling HSE/MSI/HSI, and then branching into CPU1 and CPU2 wakeup paths. It includes waiting for PWRLP_TEMPO, PLLx ready signals, and enabling clock domains before ending.
graph TD; Start([Wakeup from system Stop1, LP-Stop1, LPLV-Stop1
(pwrwake_sys event)]) --> SystemStopExit([SYSTEM_STOP_EXIT]); SystemStopExit --> SetWriteProtection([Set write-protection on sensitive registers]); SetWriteProtection --> EnableClocks([Enable HSE and/or MSI if their respective enable bit is set to 1, AND always enable HSI]); EnableClocks -- HSIRDY --> EnableHSIClock([Enable HSI clock for EXTI, RCC and PWR peripherals
Set CKREST to 1 and release pwrds_sys]); EnableHSIClock --> PWRLP_TEMPO1([PWRLP_TEMPO]); EnableHSIClock -- HSERDY/MSIRDY --> EnablePLLs([Enable all PLLs enabled prior Stop]); PWRLP_TEMPO1 --> CPU1Wakeup([CPU1 wakeup (pwrwake_cpu1 event)]); PWRLP_TEMPO1 --> WaitPWRLP_TEMPO1([Wait for PWRLP_TEMPO]); CPU1Wakeup --> WaitPWRLP_TEMPO1; WaitPWRLP_TEMPO1 --> WaitAllPLLxReady([Wait for all PLLx ready signals]); WaitAllPLLxReady --> EnableCPU1ClockDomain([Enable CPU1 clock domain]); EnablePLLs --> CPU2Wakeup([CPU2 wakeup (pwrwake_cpu2 event)]); CPU2Wakeup --> CPU2TMPSKP{CPU2TMPSKP = 1?}; CPU2TMPSKP -- Yes --> WaitPWRLP_TEMPO2([Wait for PWRLP_TEMPO]); CPU2TMPSKP -- No --> WaitPWRLP_TEMPO2; WaitPWRLP_TEMPO2 --> CPU2ClockOsc{CPU2 clock = osc?}; CPU2ClockOsc -- Yes --> WaitAllPLLxReady; CPU2ClockOsc -- No --> WaitAllPLLxReady; WaitAllPLLxReady --> EnableCPU2ClockDomain([Enable CPU2 clock domain]); EnableCPU1ClockDomain --> RemoveWriteProtection([Remove write protection on sensitive registers and set CKREST = 0]); EnableCPU2ClockDomain --> RemoveWriteProtection; RemoveWriteProtection --> End([END]);

MSv71473V1

Flowchart of clock restore process after system stop. It starts with wakeup from system stop, followed by SYSTEM_STOP_EXIT, setting write-protection, enabling HSE/MSI/HSI, and then branching into CPU1 and CPU2 wakeup paths. It includes waiting for PWRLP_TEMPO, PLLx ready signals, and enabling clock domains before ending.

Figure 99. Wake-up from CStop

Flowchart showing the wake-up sequence from CStop for CPU1 and CPU2. CPU1 wake-up involves checking D1 status, enabling PLL1 and PLL2 clocks, and waiting for ready signals. CPU2 wake-up involves checking for AXI peripherals and shared DDR, then enabling the respective clocks and waiting for ready signals.
graph TD
    subgraph CPU1_WakeUp [CPU1 Wake-up]
        E1[CPU1 wakeup event] --> E2([CPU1_EXIT_FROM_CSTOP])
        E2 --> D1{D1 is ON}
        D1 -- No --> W1[Wait for vcpu_rdy]
        W1 --> R1[Run the CPU1]
        D1 -- Yes --> D2{DDR to enable?}
        D2 -- No --> W1
        D2 -- Yes --> E3[Enable ck_pll1_ref and ck_cpu1_ext2f]
        E3 --> W2[Wait for PLL1 ready signal]
        E4[Enable ck_pll2_ref] --> W3[Wait for PLL2 ready signal]
        W3 --> W2
        W2 --> E5[Enable CPU1 clock domain set prior CStop]
        E5 --> R1
        R1 --> E6([END])
    end

    subgraph CPU2_WakeUp [CPU2 Wake-up]
        E7[CPU2 wakeup event] --> E8([CPU2_EXIT_FROM_CSTOP])
        E8 --> D3{Peripherals on AXI?}
        E8 --> D4{DDR shared?}
        D3 -- Yes --> E9[Enable AXI subsystem clocks]
        D4 -- Yes --> E10[Enable ck_pll2_ref]
        E10 --> W4[Wait for PLL2 ready signal]
        E9 --> E11[Enable CPU2 clock domain set prior CStop]
        W4 --> E11
        E11 --> R2[RUN the CPU2]
        R2 --> E12([END])
    end
    
Flowchart showing the wake-up sequence from CStop for CPU1 and CPU2. CPU1 wake-up involves checking D1 status, enabling PLL1 and PLL2 clocks, and waiting for ready signals. CPU2 wake-up involves checking for AXI peripherals and shared DDR, then enabling the respective clocks and waiting for ready signals.

MSv71474V1

Note: When the system exits from Stop due to a wake-up event for the CPU2, if the CPU2 has a peripheral using HSE as kernel clock, the CPU2 has to check that the HSE is ready before using this peripheral.

In order to avoid any unexpected behavior during the clock restore, the RCC provides a write protection to all registers having a sensitive content for the clock restore. The application must not attempt to write these registers when the clock restore sequence is running. If a CPUx attempts to write one of the registers listed in Table 124, the write operation is ignored. This situation may occur if one CPUx is already running while the other exits CStop.

Note: The RCC provides CKREST in order to inform the application if a clock restore is ongoing.

Table 124. Resources blocked during clock restore sequence

ResourceCorresponding registers write-protected during clock restore
System clock muxesRCC_XBARxCFGR (x = 0 to 63)
Table 124. Resources blocked during clock restore sequence (continued)
ResourceCorresponding registers write-protected during clock restore
System clock dividersRCC_PREDIVxCFGR, RCC_FINDIVxCFGR (x = 0 to 63), RCC_LSMCUDIVR
PLLx (x = 2, 4 to 8) settingsRCC_PLLxCFGR1, RCC_PLLxCFGR2, RCC_PLLxCFGR3, RCC_PLLxCFGR4, RCC_PLLxCFGR5, RCC_PLLxCFGR6, RCC_PLLxCFGR7
Reference clock selectionRCC_MUXSELCFGR
Oscillator settingsRCC_OCENSETR, RCC_OCENCLRR, RCC_HSICFGR, RCC_MSICFGR, RCC_LSICR
MiscellaneousRCC_PWRLPDLYCR

Going to Standby mode

The system can go to Standby mode when both CPU1 and CPU2 are in CStop, without any pending wake-up event on the EXTI, and when both CPUx allow Standby mode (see Section 19: Power control (PWR) for details).

When the complete system goes to Standby mode, the RCC stops all the clocks and PLLs, with the exception of the LSI and LSE. The RCC also informs the PWR that CPU1 and CPU2 subsystems are in CStop via pwrds_cpu1 and pwrds_cpu2 signals (see Figure 73). The PWR can then request the external PMIC to switch off VDDCORE and VDDCPU voltages.

Only parts working on VDD and VSW are kept operating in Standby.

Leaving Standby mode

When the circuit exits Standby mode, the HSI is selected as default clock for the complete system, the RCC registers are reset to their initial values (except RCC_LEGBOOTCR, RCC_STBYBOOTCR, RCC_LSICR, RCC_BDCR, RCC_RDCR, RCC_HWRSTSCLRR, RCC_C1HWRSTSCLRR, and RCC_C2HWRSTSCLRR).

Note: A system reset is generated when the circuit exits Standby mode.

20.4.9 Peripheral clock distribution

Some peripherals are designed to work with two different clock domains asynchronous each other:

The benefit of having peripherals supporting these two clock domains is that the user has more freedom to choose optimized clock frequency for the CPUs, bus matrix, and for the kernel part of the peripheral. The user can then change the bus frequency without reprogramming the peripherals. For example, an ongoing transfer with UART is not disturbed if its APB clock is changed on-the-fly.

Table 125 displays the kernel clock that the RCC can provide to the peripherals. Each row of this table represents generally a MUX, and peripherals connected to its output. The columns starting at number 5, represent a clock source. Column 3 gives the maximum allowed frequency at each MUX output. Columns 6 up to 18 represent the possible low-power kernel clock sources (“X” means supported clock).

Table 125. Kernel clock distribution overview
Peripheral clockClock property (1)Max. allowed freq. (MHz)BusFlexclkgen channel numberKernel clock source(2)
pll4_ckpll5_ckpll6_ckpll7_ckpll8_ckspdifrx_symb_ckck_inlse_cklsi_ckmsi_ker_ckhsi_ker_ckhse_ker_cktimg[2:1]_ck
ck_ker_tim2, ck_ker_tim3,
ck_ker_tim4, ck_ker_tim5,
ck_ker_tim6, ck_ker_tim7,
ck_ker_tim10, ck_ker_tim11,
ck_ker_tim12, ck_ker_tim13,
ck_ker_tim14
S150APB1-------------X
ck_ker_lptim1, ck_ker_lptim2A1007XXXXX--LPLP----
ck_ker_usart2, ck_ker_uart4A1008XXXXX----LPLPLP-
ck_ker_usart3, ck_ker_uart5A1009XXXXX----LPLPLP-
ck_ker_spi2A13310XXXXX-X--LPLPLP-
ck_ker_spi3A13311XXXXX-X--LPLPLP-
ck_ker_spdifrxA20012XXXXX-----LP--
ck_ker_i2c1, ck_ker_i2c2A20013XXXXX----LPLP--
ck_ker_i3c1, ck_ker_i3c2A10014XXXXX----LPLP--
ReservedA-15-------------
ck_ker_tim1, ck_ker_tim8,
ck_ker_tim15, ck_ker_tim16,
ck_ker_tim17
S150APB2/
AHB2
-------------X
ck_ker_spi1A20016XXXXX-X--LPLPLP-
ck_ker_spi4, ck_ker_spi5A13317XXXXX----LPLPLP-
ck_ker_usart1A13318XXXXX----LPLPLP-
ck_ker_usart6A10019XXXXX----LPLPLP-
ck_ker_uart7A10020XXXXX----LPLPLP-
ck_ker_mdf1(3)(4)A13321XXXXXXX--LPLPLP-
ck_ker_sai1A13322XXXXXXX--LPLPLP-
ck_ker_sai2A13323XXXXXXX--LPLPLP-
ck_ker_sai3A13324XXXXXXX--LPLPLP-
ck_ker_sai4A13325XXXXXXX--LPLPLP-
ck_ker_fdcanA13326XXXXX------LP-
ck_ker_iwdg1, ck_ker_iwdg2,
ck_ker_iwdg3, ck_ker_iwdg4
A1APB3---------X----
ck_ker_dts (TEMP)A64----------XXX-

Table 125. Kernel clock distribution overview (continued)

Peripheral clockClock property (1)Max. allowed freq. (MHz)BusFlexclkgen channel numberKernel clock source(2)
pll4_ckpll5_ckpll6_ckpll7_ckpll8_ckspdifrx_symb_ckck_inlse_cklsi_ckmsi_ker_ckhsi_ker_ckhse_ker_cktimg[2:1]_ck
ck_ker_ltdc (pixel clock)A314APB427XXXXX--------
ReservedA-28-------------
ck_ker_dcmipp (DCMIPP+CSI)A33329XXXXX--------
ck_ker_csitxescA2030XXXXX------X-
ck_ker_csiphyA2731XXXXX------X-
ReservedA-32-------------
ck_ker_stgenA6433XXXXX-----XX-
ReservedA-34-------------
ReservedA-35-------------
ck_ker_i3c3A100APB536XXXXX----LPLP--
ck_ker_spi6A13337XXXXX----LPLPLP-
ck_ker_i2c3A13338XXXXX----LPLP--
ck_ker_lpuart1A13339XXXXX----LPLPLP-
ck_ker_lptim3A10040XXXXX--LPLP----
ck_ker_lptim4A10041XXXXX--LPLP----
ck_ker_rtc (RTC/AWU(5))A4--------XX--X-
ck_ker_lptim5A10042XXXXX--LPLP----
ck_ker_tsdbgA64APBDBG43XXXXX--------
ck_ker_tpiuA20044XXXXX--------
ck_sys_atb, ck_icn_m_etrA400ATB45XXXXX--------
ck_ker_adc1A133AHB246XXXXX--------
ck_ker_adc2A13347XXXXX--------
ck_ker_ospi1 (OCTOSPI1)A26648XXXXX--------
ReservedA-49-------------

Table 125. Kernel clock distribution overview (continued)

Peripheral clockClock property (1)Max. allowed freq. (MHz)BusFlexclkgen channel numberKernel clock source(2)
pll4_ckpll5_ckpll6_ckpll7_ckpll8_ckspdifrx_symb_ckck_inlse_cklsi_ckmsi_ker_ckhsi_ker_ckhse_ker_cktimg[2:1]_ck
ck_ker_fmcA200AXI,AHB550XXXXX--------
ck_ker_sdmmc1A20051XXXXX--------
ck_ker_sdmmc2A20052XXXXX--------
ck_ker_sdmmc3A20053XXXXX--------
ck_ker_eth1A12554XXXXX--------
ck_ker_eth2A12555XXXXX--------
ck_ker_eth1ptp, ck_ker_eth2ptpA20056XXXXX----XXX-
ck_ker_usb2phy1A2457XXXXX------X-
ck_ker_usb2phy2A2458XXXXX------X-
ReservedA-59-------------
ReservedA-NA60-------------
ck_mco1A160(6)61XXXXXXXXXXXX-
ck_mco2A62XXXXXXXXXXXX-
ck_cpu1_ext2fA40063XXXXX----XXX-
  1. 1. 'A' means that the kernel clock is asynchronous with respect to bus interface clock. 'S' means that the kernel clock is synchronous with respect to bus interface clock.
  2. 2. 'X' means supported kernel clock source. 'LP' means supported kernel clock source when the CPU that has allocated the peripheral is in CStop. hsi_ck, hse_ck, and msi_ck are possible for all Flexclkgen channels.
  3. 3. MDF1 is on AHB2 bus.
  4. 4. MDF1 low power modes (LP) requires to set HSIKERON, MSIKERON or HSEKERON bit in RCC_OCENSETR register according to the selected kernel clock sources.
  5. 5. The RTC switch is in the VSW domain. When HSE is selected, the kernel clock is divided. By default, the RTC kernel clock is off. Refer to RCC_BDCR for details.
  6. 6. Depends on I/O capability.

For CPU2, the SysTick timer clock requires synchronous clock enables, SSTCLKEN and NSSTCLKEN, that are pulsed every 8 cycles of ck_icn_hs_mcu root clock.

Debug authentication is possible when system is under reset. In this case all debug components located behind AP0 (APB-AP) access port are required to be clocked. These components are belonging to the ck_dap clock domain which is only sourced with HSI clock (hsi_ck).

The following sections show a more detailed view of the kernel clock and bus interface clock distribution (see Section 20.4.12 for details).

In order to reduce the amount of switches, some peripherals share the same kernel clock source. Nevertheless, all peripherals have their dedicated enable signal.

Clock distribution for timers

The TIMs timers use kernel clocks (ck_ker_timx, ck_ker_timy) phase aligned with the bus interface clock. The frequency of the timer clocks depends on:

The table below shows how to select the timer clock frequency.

Table 126. Ratio between clock timers and ck_icn_apbx

APB1DIV
APB2DIV(1)
TIMG1PRE
TIMG2PRE(2)
\(F_{\text{ck\_ker\_timx}}\)
\(F_{\text{ck\_ker\_timy}}\)
\(F_{\text{ck\_icn\_apb1}}\)
\(F_{\text{ck\_icn\_apb2}}\)
Comments
000x\(F_{\text{ck\_icn\_ls\_mcu}}\)\(F_{\text{ck\_icn\_ls\_mcu}}\)The timer clock is equal to the bus clock.
001x\(F_{\text{ck\_icn\_ls\_mcu}}\)\(F_{\text{ck\_icn\_ls\_mcu}} / 2\)The timer clock is two times faster than the bus clock.
0100\(F_{\text{ck\_icn\_ls\_mcu}} / 2\)\(F_{\text{ck\_icn\_ls\_mcu}} / 4\)
0110\(F_{\text{ck\_icn\_ls\_mcu}} / 4\)\(F_{\text{ck\_icn\_ls\_mcu}} / 8\)
1000\(F_{\text{ck\_icn\_ls\_mcu}} / 8\)\(F_{\text{ck\_icn\_ls\_mcu}} / 16\)
0101\(F_{\text{ck\_icn\_ls\_mcu}}\)\(F_{\text{ck\_icn\_ls\_mcu}} / 4\)The timer clock is four times faster than the bus clock.
0111\(F_{\text{ck\_icn\_ls\_mcu}} / 2\)\(F_{\text{ck\_icn\_ls\_mcu}} / 8\)
1001\(F_{\text{ck\_icn\_ls\_mcu}} / 4\)\(F_{\text{ck\_icn\_ls\_mcu}} / 16\)

1. APB1DIV and APB2DIV are in RCC_APB1DIVR and RCC_APB2DIVR.

2. TIMG1PRE and TIMG2PRE are in RCC_TIMG1PRER and RCC_TIMG2PRER.

Figure 100. Peripheral clock distribution for TIMs

Block diagram of peripheral clock distribution for TIMs, showing RCC block logic paths feeding TIMx and TIMy with bus interface and kernel clocks.

Notes: (1) There is one enable bit and one low-power enable bit per timer. x represents the default divide ratio after a system reset.

(2) Can be changed on the fly.

MSv71475V2

Block diagram of peripheral clock distribution for TIMs, showing RCC block logic paths feeding TIMx and TIMy with bus interface and kernel clocks.

Refer to Section 20.4.12 for details on the behavior of the clock gating logic (CGL).

Clock distribution for ADCs

The ADC kernel clocks can be selected among the following source clocks: ck_ker_adc1, ck_ker_adc2 or ck_icn_ls_mcu.

Depending on the accuracy of measured values at ADC level, their kernel clocks can be selected to be either synchronous or asynchronous, according to ADC1KERSEL and ADC2KERSEL[1:0] in RCC_ADC1CFGR and RCC_ADC2CFGR. The table below shows how to select the kernel clocks source of the 2 ADCs.

Table 127. ADC kernel clock source selection

ADC1KERSELADC2KERSEL[1:0]ADC1 ck_adc sourceADC2 ck_adc sourceComments
00x0ck_ker_adc1ck_ker_adc2Asynchronous mode
0x1ck_icn_ls_mcu
0x2ck_ker_adc1Synchronous mode
0x3NA-
10x0ck_icn_ls_mcuck_ker_adc2Asynchronous mode
0x1ck_icn_ls_mcuSynchronous mode
0x2ck_ker_adc1Asynchronous mode
0x3NA-

Figure 101. Peripheral clock distribution for ADCs

Figure 101: Peripheral clock distribution for ADCs. This block diagram shows the RCC (Reset and Clock Control) block distributing clocks to ADC1 and ADC2. The RCC contains a bus clock (ck_icn_ls_mcu) and two dynamic switches (D-type flip-flops). The first switch selects between ADC1KERSEL (input 0) and ck_ker_adc1 (input 1). The second switch selects between ADC2KERSEL (input 0) and a combination of ck_ker_adc2 and ck_ker_adc1 (input 1/2). The outputs of these switches feed into CGL (Clock Generation Logic) blocks for each ADC, which also receive ADC1EN/ADC1LPEN and ADC2EN/ADC2LPEN signals. The CGL blocks output ck_ahb and ck_adc to ADC1 and ADC2 respectively. A legend indicates that a box with a 'D' represents a dynamic switch for glitch-free transitions, a thick line represents a bus clock, and a thin line represents a kernel clock. The diagram is labeled MSv71476V1.
Figure 101: Peripheral clock distribution for ADCs. This block diagram shows the RCC (Reset and Clock Control) block distributing clocks to ADC1 and ADC2. The RCC contains a bus clock (ck_icn_ls_mcu) and two dynamic switches (D-type flip-flops). The first switch selects between ADC1KERSEL (input 0) and ck_ker_adc1 (input 1). The second switch selects between ADC2KERSEL (input 0) and a combination of ck_ker_adc2 and ck_ker_adc1 (input 1/2). The outputs of these switches feed into CGL (Clock Generation Logic) blocks for each ADC, which also receive ADC1EN/ADC1LPEN and ADC2EN/ADC2LPEN signals. The CGL blocks output ck_ahb and ck_adc to ADC1 and ADC2 respectively. A legend indicates that a box with a 'D' represents a dynamic switch for glitch-free transitions, a thick line represents a bus clock, and a thin line represents a kernel clock. The diagram is labeled MSv71476V1.

Clock distribution for the DDR

Figure 102 shows a simplified view of the clock distribution for the different blocks inside the DDR subsystem (DDRCTRL, DDRPHYC, DDRPERFM, RISAF4, MCE, PLL2).

The RCC needs to provide the following clocks:

The RCC needs to provide also the following control bits:

Figure 102. Clock distribution for the DDR subsystem

Figure 102. Clock distribution for the DDR subsystem

Block diagram showing the clock distribution between the RCC and DDRSS blocks for the DDR subsystem:

MSv71477V1

Figure 102. Clock distribution for the DDR subsystem

Control of APB and AHB clocks

The control of the APB/AHB clock gating is performed via the following bits:

The dedicated RCC control bits for the DDR (DDRSHR, DDRCKMOD and DDRPHYDLP) are located in RCC_DDRITFCFGR.

Table 128. Gating control of the APB clocks with ck_ictn_p_ddrc and ck_ictn_p_ddrphyc

DDRxEN(1)DDRxLPEN(1)DDRSHR(2)CPU1 stateSystem modeck_ictn_p_apbx clockComments
0XXAnyRunOFFck_ictn_p_apbx is gated because DDRxEN = 0.
1X0CRunRunONck_ictn_p_apbx is forced ON because DDRxEN = 1, DDRSHR = 0, and CPU1 is in CRun.
100CSleepRunOFFck_ictn_p_apbx is gated because DDRxLPEN = 0, and CPU1 is in CSleep.
1ONck_ictn_p_apbx is forced ON because DDRxLPEN = 1, and CPU1 is in CSleep.
1X0CStopAnyOFFck_ictn_p_apbx is gated because CPU1 is in CStop.
1X1AnyRunONck_ictn_p_apbx is forced ON because DDRSHR = 1 and system is in Run.
1X1AnyStop or StandbyOFFck_ictn_p_apbx is gated.
  1. 1. DDRxEN and DDRxLPEN are respectively the enable and low-power enable bits of any DDR APB port.
  2. 2. DDRSHR = 0 means that the DDR is only used by CPU1. Otherwise, the DDR is shared by both CPU1 and CPU2.

Control of AXI clocks

AXIDCG[1:2] handle the gating of the AXI clocks (aclk_1 and aclk_2) provided to the DDRCTRL AXI ports. ck_ictn_s_ddr clock is the source clocks of the AXI clocks.

Table 129 details the gating control of ck_ictn_s_ddr clock inside the RCC.

When LPI_XPI_DISABLE is cleared to 0 (see Section 12: DDR subsystem architecture (DDRSS) for details), the AXI clocks (aclk_1 and aclk_2) are gated according to the cactive_[1:2] signals provided by the DDRCTRL.

Table 129. Gating control of ck_icn_s_ddr clock

DDRCPENDDRCPLPENDDRSHRCPU1 stateSystem modeck_icn_s_ddr clockComments
0XXAnyRunOFFck_icn_s_ddr is gated because DDRCPEN = 01
1X0CRunRunON(1)ck_icn_s_ddr is forced ON because DDRCPEN = 1, DDRSHR = 0, and CPU1 is in CRun.
100CSleepRunOFFck_icn_s_ddr is gated because DDRCPLPEN = 0 and CPU1 is in CSleep.
1ON(1)ck_icn_s_ddr is forced ON because DDRCPLPEN = 1
1X0CStopAnyOFFck_icn_s_ddr is gated.
1X1AnyRunON(1)ck_icn_s_ddr is forced ON because DDRSHR = 1 and system is in Run.
1X1AnyStop or StandbyOFFck_icn_s_ddr is gated.

Control of DDRCTRL and DDRPHYC kernel clocks

MCDCG and DPHYCG handle respectively the clock gating of ddrc_ker_ck, dphy_ker_ck, and dphy_ker_byp_ck. The source clocks come from the PLL2. The control bits come from the RCC, and are gated according to the way the DDRCTRL and the RCC are programmed.

Note: As some part of DDRPHYC is reset synchronously to dphy_ker_ck clock (DfiClk), PLL2 reference clock (FREF) is provided to DDRPHYC after any system reset to avoid extra power consumption.

The table below details how ddrc_ker_ck, dphy_ker_ck, and dphy_ker_byp_ck clocks are handled according to DDRCKMOD value.

Table 130. DDRCKMOD control description

DDRCKMODMCDCG modeDPHYDCG modeComment
00NormalNormalSoftware self-refresh (SSR)(1):
The gating of the ddrc_ker_ck clock depends on DDRCPEN, DDRCPLPEN, DDRSHR bits, and CPU1 or system mode.
The gating of dphy_ker_ck and dphy_ker_byp_ck clocks depends on DDRPHYCEN, DDRPHYDLP bits, and CPU1 or system mode.
01AutoNormalAutomatic self-refresh (ASR)(2):
The clock ddrc_ker_ck is gated automatically according to cactive_ddrc signal in MCDCG. In this mode, DDRPHYCEN must be set to 1.
DDRCPEN is still used to disable/enable the DDR interface
10DDRC_LPNormalHardware self-refresh mode (HSR)(2):
The gating of the ddrc_ker_ck clock is controlled by the RCC via the DDRCTRL low-power interface. In this mode, DDRPHYCEN must be set to 1. DDRCPEN is still used to disable/enable the DDR interface.
  1. 1. This mode must be selected during DDRCTRL and DDRPHYC initialization phase, and if the application is using the software self-refresh.
  2. 2. This mode can be used when the application wants to maintain a clock to the DDRPHY.

DDRCTRL low-power interface

The DDRCTRL provides a low-power interface which can be used to control the entry/exit of the DDRCTRL and DDRPHYC into LP1 low-power mode (see Section 12 for details). This interface controls also the gating of ddrc_ker_ck clock. This low-power interface is compliant to AMBA3 AXI LP protocol specification. In order to simplify the drawings, this document only shows the most significant states of the DDRCTRL low-power interface (see Section 12 for details).

The table below gives details on the DDRCTRL low-power states. The DDRCTRL low-power interface can be used in HSR mode in order to control:

Table 131. DDRCTRL low-power states description

DDRCTRL low-power statesComment
RUNNormal clocked operation: MDCG and DPHYCG provide the kernel clock(s) to DDRCTRL and DDRPHYC. csysreq_ddrc, csysack_ddrc and cactive_ddrc are all set to 1 by hardware.
LP1Low-power operation: MDCG does not provide the kernel clock to the DDRCTRL while the DDRPHYC is kept clocked. csysreq_ddrc, csysack_ddrc and cactive_ddrc are all set to 0. The PLL2 is kept running.
LP1_RreqLow-power entry initiated by the RCC: The RCC requests the DDRCTRL to enter into low-power by setting csysreq_ddrc to 0. The DDRCTRL may accept or deny the request. If a request is denied, the interface comes back to RUN state, and the RCC retries a new low-power request entry. When the low-power request is accepted by the DDRCTRL (csysack_ddrc and cactive_ddrc = 0), the RCC sets MDCG_CKEN bit to disable the DDRCTRL kernel clock. The state switches to LP1.
LP1_RexitLow-power exit initiated by the RCC: The RCC sets csysreq_ddrc to 1, and waits for csysack_ddrc and cactive_ddrc set to 1 before going to RUN state.
LP1_DexitLow-power exit initiated by the DDRCTRL: The DDRCTRL requests the kernel clock by setting cactive_ddrc to 1. The RCC sets csysreq_ddrc to 1, and waits for csysack_ddrc set to 1 before going to RUN.

Self-refresh mode control

Switching the external DDR device into self-refresh is important for energy saving. When the external DDR device is in self-refresh, the application can switch off DDRCTRL and DDRPHYC clocks without loosing the external DDR content. When the external DDR device is in self-refresh, the application can no longer access to the content of the external DDR device.

Exiting a DDR device from self-refresh can take several microseconds. The application has to take into account this latency that is due to the external DDR device, but also to the way the PLL located into the DDRPHYC is handled.

The RCC offers three ways to control the DDRCTRL kernel clock:

There is only one way to control the DDRPHYC kernel clock:

The RCC behavior is different according to the self-refresh mode selected by the application. The application has to program DDRCKMOD in accordance with DDRCTRL and DDRPHYC configuration.

Software self-refresh mode (SSR)

In this mode, the application has to program directly the DDRCTRL in order to switch the external DDR device immediately into self-refresh. Typically, when the CPU1 wants to go to CSleep or CStop, and the DDR is not shared with the CPU2 (DDRSHR = 0), the CPU1 must insure that the DDR resource is not longer needed, and program the DDRCTRL in order to switch it to self-refresh.

The piece of code performing the entry/exit of the DDRCTRL to self-refresh must be located into the SYSRAM because some software routines need to run when the DDR device is in self-refresh.

Automatic self-refresh mode (ASR)

In this mode, the software does not need to program the DDRCTRL every time the DDRCTRL must be set into self-refresh. The DDRCTRL goes automatically into self-refresh mode when the DDRCTRL is inactive for an amount of time defined into the DDRCTRL.

Even when the system is in Run mode, the DDRCTRL may go to self-refresh if there is no activity on its AXI ports. The automatic self-refresh mode allows the entry into self-refresh whatever CPUx mode.

When the CPU1 goes to CSleep, and the DDR is not shared with the CPU2, if the clock of the DDRCTRL needs to be gated, the MDCG delays this clock gating until the DDRCTRL switches into self-refresh mode.

The ASR mode must be used only if the DDRCTRL has been programmed in automatic self-refresh mode, otherwise the behavior of the DDR interface is not guaranteed. This mode can only be used when system is in Run mode.

The ASR mode impacts the gating of the DDRCTRL kernel clock (ddrc_ker_ck). dphy_ker_ck must be kept running in this mode.

When the ASR mode is used, DDRCPEN must be set to 1.

The figure below shows a simplified timing for the entry and exit from self-refresh. In this example, DDRCPEN = DDRCPLPEN = 1, DDRPHYCEN = 1, LPI_XPI_DISABLE = 0, and DDRSHR = 0.

Figure 103. Entering and exiting self-refresh in ASR mode

Timing diagram for entering and exiting self-refresh in ASR mode. The diagram shows the relationship between CPU1 mode, AXI port activity, cactive_ddrc, ddrc_ker_ck, dphy_ker_ck, and aclk_[2:1] signals. CPU1 mode is in CRUN or CSLEEP. AXI port activity is shown as bursts. cactive_ddrc is a control signal that transitions from 0 to 1. ddrc_ker_ck and dphy_ker_ck are clock signals that are active during normal operation and self-refresh. aclk_[2:1] is the AXI clock, which is gated during self-refresh. DLY1 is the AXI timeout delay, and DLY2 is the DDR self-refresh entry delay. The diagram is labeled MSv71478V1.

The diagram illustrates the timing for entering and exiting self-refresh in ASR mode. It shows the following signals and events:

Key timing points and delays are marked:

DLY1 = AXI timeout delay
DLY2 = DDR self-refresh entry

MSv71478V1

Timing diagram for entering and exiting self-refresh in ASR mode. The diagram shows the relationship between CPU1 mode, AXI port activity, cactive_ddrc, ddrc_ker_ck, dphy_ker_ck, and aclk_[2:1] signals. CPU1 mode is in CRUN or CSLEEP. AXI port activity is shown as bursts. cactive_ddrc is a control signal that transitions from 0 to 1. ddrc_ker_ck and dphy_ker_ck are clock signals that are active during normal operation and self-refresh. aclk_[2:1] is the AXI clock, which is gated during self-refresh. DLY1 is the AXI timeout delay, and DLY2 is the DDR self-refresh entry delay. The diagram is labeled MSv71478V1.
  1. 1. The activity on AXI port x is stopped, due for example to the fact that the CPU1 goes to CSleep, but it can be also the case between two activity bursts.
  2. 2. When no activity is detected in the AXI port x for at least UMCTL2_AXI_LOWPWR_NOPXCNT*aclk_x cycles (DLY1), the AXI clock (aclk_x) is gated if LPI_XPI_DISABLE is cleared to 0 (see Section 12: DDR subsystem architecture (DDRSS) for details).
  3. 3. When the AXI interfaces are gated, if they do not switch back to active after DLY2 delay, ddrc_ker_ck is gated. The CPU1 can be in CRUN or CSleep.
  4. 4. If a transaction is performed in one of the two AXI ports, the AXI clock (aclk_x) is reenabled. The AXI transaction can be caused by any master using DDR resources.
  5. 5. Few AXI clock cycles later, the DDRCTRL sets cactive_ddrc to 1 in order to request the kernel clock. ddrc_ker_ck is reenabled. The external DDR is then ready to process the pending transactions.

Hardware self-refresh mode (HSR)

This mode uses the DDRCTRL low-power interface (DDRCTRL-LP) in order to request to the DDR to enter or exit LP1 low-power mode (see Section 12 for details). The HSR mode can only be used when system is in Run mode.

The DDRCTRL-LP allows the entry of the DDR interface into self-refresh in the following cases:

The DDRCTRL-LP allows the exit of the DDR interface from self-refresh in the following cases:

This HSR mode may be less efficient in term of power saving than the ASR mode but it prevents the DDRCTRL to go accidentally to self-refresh when CPU1 is in CRun, increasing the system performances.

Figure 104 shows simplified timing for the self-refresh entry and exit. This is typically what happens when the CPU1 goes to CSleep while some masters are still enabled. This example is based on Table 131 configuration with DDRCPEN = DDRCPLPEN = 1, DDRPHYCEN = 1, DDRPHYDLP = 0, LPI_XPI_DISABLE = 0, and DDRSHR = 0.

Figure 104. Entering and exiting self-refresh in HSR mode

Timing diagram showing the sequence of events for entering and exiting self-refresh in HSR mode. It includes signals for CPU1 state (CRun/Run, CSleep), External DDR state (ACTIVE, Self-refresh), AXI port activity, Low-power bus state (RUN, LP1_Rreq, LP1, LP1_Dexit, LP1_Rexit), and various clock signals (ddrc_ker_ck, dphy_ker_ck, aclk_[2:1]). Numbered markers 1 through 8 indicate key transitions.

The diagram illustrates the timing sequence for self-refresh entry and exit. It shows the following signals over time:

Numbered markers indicate key events:
  1. CPU1 enters CSleep.
  2. LP1_Rreq is asserted.
  3. LP1 state begins.
  4. LP1_Dexit is asserted.
  5. AXI activity occurs.
  6. LP1_Rreq is asserted again.
  7. LP1 state begins again.
  8. LP1_Rexit is asserted.
  9. CPU1 exits CSleep.

Timing diagram showing the sequence of events for entering and exiting self-refresh in HSR mode. It includes signals for CPU1 state (CRun/Run, CSleep), External DDR state (ACTIVE, Self-refresh), AXI port activity, Low-power bus state (RUN, LP1_Rreq, LP1, LP1_Dexit, LP1_Rexit), and various clock signals (ddrc_ker_ck, dphy_ker_ck, aclk_[2:1]). Numbered markers 1 through 8 indicate key transitions.
  1. 1. When the CPU1 goes to CSleep, the RCC requests to the DDRCTRL to go to self-refresh, using the DDRCTRL low-power interface (LP1_Rreq). The AXI clock is disabled if no transactions occur on AXI ports for a programmed DLY1 delay and LPI_XPI_DISABLE = 0 (see Section 12 for details).
  2. 2. When all conditions in the DDRCTRL are met (no transaction pending, DDR in self-refresh), the DDRCTRL acknowledges the request. If the DDRCTRL denies the request, the RCC has to generate a new request until it is accepted by the DDRCTRL, or if the CPU1 exits from CSleep.
    When the DDRCTRL acknowledges the low-power request, the RCC disables ddrc_ker_ck. The DDRCTRL low-power bus is then in LP1 state.
  3. 3. If a transaction is performed in one of the two AXI ports, the AXI clock (aclk_x) is reenabled. The AXI transaction can be caused by any master using DDR resources.
  4. 4. Few AXI clock cycles later, the DDRCTRL requests to the RCC to re-enable the kernel clock, using the DDRCTRL low-power interface (LP1_Dexit). As soon as the RCC receives the request, ddrc_ker_ck is reenabled. The external DDR is then ready to process the pending transactions.
  5. 5. As the CPU1 is still in CSleep, the RCC requests to the DDRCTRL to go to self-refresh, using the DDRCTRL low-power interface (LP1_Rreq). The DDRCTRL may deny the

request several times if all conditions to enter in self-refresh are not met. The RCC has to renew its request regularly until it is accepted by the DDRCTRL. The RCC must stop performing this request if the CPU1 goes to CRUN meanwhile.

  1. 6. When all conditions in the DDRCTRL are met (no transaction pending, DDR in self-refresh), the DDRCTRL acknowledges the request. When the DDRCTRL acknowledges the low-power request, the RCC disables ddrc_ker_ck. The DDRCTRL low-power interface is then in LP1 state.

Note: The sequence described between step 4 to step 7 may be repeated several times until the CPU1 is in CSleep.

  1. 7. When the CPU1 exits from CSleep, the RCC reenables ddrc_ker_ck, and requests to the DDRCTRL to exit the DDR from self-refresh, using the DDRCTRL low-power bus (LP1_Rreq).
  2. 8. The DDRCTRL acknowledges the request by setting the DDRCTRL low-power interface into RUN state. The external DDR is then ready to process the pending transactions.

Transitions between SSR, ASR and HSR

The application can change DDRCKMOD value without disabling the DDR interface. The figure below shows the allowed transition between SSR, ASR and HSR modes.

Figure 105. Allowed transitions between SSR, ASR and HSR modes

State transition diagram for DDR modes: ASR, SSR, and HSR. SSR is the default mode after reset. Transitions are: SSR to ASR (DDRCKMOD = 01), SSR to HSR (DDRCKMOD = 10), ASR to SSR (DDRCKMOD = 00), and HSR to SSR (DDRCKMOD = 00). Direct transitions between ASR and HSR are not allowed.
graph TD
    SSR((SSR)) -- "DDRCKMOD = 01" --> ASR((ASR))
    SSR -- "DDRCKMOD = 10" --> HSR((HSR))
    ASR -- "DDRCKMOD = 00" --> SSR
    HSR -- "DDRCKMOD = 00" --> SSR
    SSR -- "SSR: default mode after reset" --> SSR
  

MSv71480V1

State transition diagram for DDR modes: ASR, SSR, and HSR. SSR is the default mode after reset. Transitions are: SSR to ASR (DDRCKMOD = 01), SSR to HSR (DDRCKMOD = 10), ASR to SSR (DDRCKMOD = 00), and HSR to SSR (DDRCKMOD = 00). Direct transitions between ASR and HSR are not allowed.

The following direct transitions are not allowed:

Control of PLL2 reference clock

In all DDR self-refresh modes (SSR, ASR or HSR) described before, the PLL2 always runs. If the application wants to set more power savings (gated dphy_ker_ck and dphy_ker_byp_ck, and powered down PLL2), it has to set the DDRPHY in deep low-power mode (LP2 or LP3 low-power mode). This is only possible in SSR mode.

DDRPHYDLP in RCC_DDRITFCFGR is used to notify deep low-power mode for the RCC.

DDRCPEN and DDRPHYCEN bits are used to enable/disable the DDR interface.

Table 132 and Table 133 show the recommended RCC configurations. The application has to select the configuration adapted to its DDR configuration.

Note: In configurations #4 and #8, the PLL2 is powered down by hardware.

Table 132. Recommended configurations when DDR is not shared (DDRSHR = 0)

Conf #DDRCKMODDDRCPENDDRCPLPENDDRPHYCENDDRPHYDLPCPU1 CRunCPU1 CSleepCPU1 CStopComments
AXI clocks (1)DDRCTRL clock(2)DDRPHYC clockAXI clocks (1)DDRCTRL clock(2)DDRPHYC clockAXI clocks (1)DDRCTRL clockDDRPHYC clock
1Any0x0xOFFOFFOFFOFFOFFOFFOFFOFFOFFInterface disabled
2SSR1110ONONONONONONOFFOFFONGating of DDRCTRL and DDRPHYC clocks depends on CPU1 state, and DDRPHYDLP. The application software must switch the DDR interface into a low-power mode, before gating clocks.
31010ONONONOFFOFFONOFFOFFON
41011ONONONOFFOFFOFFOFFOFFOFF
5ASR1110ONONONONONONOFFOFFONOnly the DDRCTRL kernel clock is controlled according to automatic mode
6HSR1010ONONONOFFDLPONOFFOFFONThe DDRCTRL kernel clock is controlled according to DDRCTRL-LP interface. The DDRPHYC kernel clock must be maintained active by setting DDRPHYCEN = 1.
  1. When LPI_XPI_DISABLE = 0, the AXI clock is gated automatically according to cactive_[2:1] (DCG), except when DDRCPEN = 0.
  2. Dynamic clock gating is supported according to cactive_ddrc and selfref_state.

Table 133. Recommended configurations when DDR is shared (DDRSHR = 1)

Conf #DDRCKMODDDRCPENDDRCPLPENDDRPHYCENDDRPHYDLPSystem RunSystem Stop1/2Comments
AXI clocks (1)DDRCTRL clock(2)DDRPHYC clockAXI clocks (1)DDRCTRL clock(2)DDRPHYC clock
7SSR1x10ONONONNAGating of DDRCTRL and DDRPHYC clocks depends on system mode and DDRPHYDLP. The application software must switch the DDR interface into a low-power mode, before gating the clocks.
81x11ONONONOFFOFFOFF
9ASR1x10ONONONNAOnly DDRCTRL kernel clock is controlled according to the automatic mode
10HSR1x10ONDLPONNAThe DDRCTRL kernel clock is controlled according to DDRCTRL-LP interface. LP1_Rreq is only possible when DDRCPEN = 0 in this case. The DDRPHYC kernel clock must be maintained active by setting DDRPHYCEN = 1.
  1. 1. When LPI_XPI_DISABLE = 0, the AXI clock is gated automatically according to cactive_[2:1] (DCG), except when DDRCPEN = 0.
  2. 2. Dynamic clock gating is supported according to cactive_ddrc and selfref_state. Only valid in SSR and ASR modes.

MCDCG control interface

The tables below detail the mcdcg_cken control value in all DDR use cases.

Table 134. MCDCG control bit when DDR is not shared (DDRSHR = 0)

DDRCKMODDDRCPENDDRCPLPENCPU1 statemcdcg_ckenComments
SSR0xAny0DDR not used
1xCRun1Application put the DDR in self-refresh.
10CSleep0
111
1xCStop0
ASR(1)0xAny0DDR not used
1x1Gated locally when the DDR is in self-refresh

Table 134. MCDCG control bit when DDR is not shared (DDRSHR = 0) (continued)

DDRCKMODDDRCPENDDRCPLPENCPU1 statemcdcg_ckenComments
HSR (1)0xAny0DDR not used
1xCRun1No gating
10CSleep0Gated locally once LP1 state is reached after LP1_Rreq
111No gating
1xCStop0Gated locally once LP1 state is reached after LP1_Rreq

1. Only valid when system is in Run mode.

Table 135. MCDCG control bit when DDR is shared (DDRSHR = 1)

DDRCKMODDDRCPENDDRCPLPENSystem modemcdcg_ckenComments
SSR0xAny0DDR not used
1xRun1Application has put the DDR in self-refresh.
1xStop0
ASR0xRun0DDR not used
1x1Gated locally when the DDR is in self-refresh
HSR0xRun0Gated (0) once LP1 state is reached after LP1_Rreq
1x1No gating

DPHYCG control interface

The tables below detail the dphycg_cken control value in all DDR use cases.

Table 136. DPHYCG control bit when DDR is not shared (DDRSHR = 0)

DDRCKMODDDRPHYCENDDRPHYDLPCPU1 statedphycg_ckenComments
SSR0xAny0No gating
1xCRun1No gating
10CSleep1No gating
110Application manages self-refresh and PLL2 power down.
10CStop1No gating
110PLL2 is powered down by hardware.

Table 136. DPHYCG control bit when DDR is not shared (DDRSHR = 0) (continued)

DDRCMODDDRPHYCENDDRPHYDLPCPU1 statedphycg_ckenComments
ASR(1)0xAny0No gating
1x1No gating
HSR(1)0xAny0No gating
1x1No gating

1. Only valid when system is in Run mode.

Table 137. DPHYCG control bit when DDR is shared (DDRSHR = 1)

DDRCMODDDRPHYCENDDRPHYDLPSystem modedphycg_ckenComments
SSR0xAny0No gating
10(1)Run1No gating
10Stop1No gating
110Application manages self-refresh. PLL2 is powered down by hardware.
ASR0xRun0No gating
1x1No gating
HSR00Run0No gating
101No gating

1. DDRPHYDLP = 1 is not applicable in Run mode.

20.4.10 General clock concept overview

The RCC handles the distribution of the CPU, bus interface, and peripheral clocks for the system, according to the operating mode of each CPUx (see Section 19: Power control (PWR) for details on operating modes and Section 20.4.1 for clock definitions).

For most of the peripherals, it is possible for the application to control the activation/deactivation of their kernel and bus interface clocks.

Prior to use a peripheral, the CPU1 or CPU2 has to enable it (setting its PERxEN to 1), and to define if this peripheral remains active in CSleep (setting its PERxLPEN to 1). This operation is called 'allocate' a peripheral to a CPUx (see Section 20.4.11 for details). The peripheral allocation is used by the RCC to control automatically the clock gating according to CPU states.

For example if the CPU1 enables a peripheral and decides that the kernel clock of this peripheral must be gated when it goes to CSleep, the CPU2 state has no effect on the clock gating of this peripheral, but the clock gating obeys to CPU1 state. This is true if the peripheral is not shared (see Section 20.4.11 for details). Allocating a peripheral based on

its RIF configuration guarantees to a CPUx that this peripheral remains accessible, whatever the other CPUx mode.

Figure 106 gives an example of peripheral allocation:

Note: IWDG1 and IWDG2 are expected to be allocated only to CPU1. IWDG3 and IWDG4 are expected to be allocated only to CPU2. PWR and RCC are common resources and allocated to both CPU1 and CPU2. Memories are allocated to both CPUx (see Figure 106 and Handling of memory devices for more details).

Figure 106. Peripheral allocation example

Figure 106: Peripheral allocation example. This block diagram illustrates the peripheral allocation between two CPU subsystems (CPU1 and CPU2) and an AXI subsystem. The CPU1 subsystem includes CPU1, SYSRAM, DDRC, DDRPHYC, IWDG1, BKPSRAM, I2C3, SPI6, and PER... The CPU2 subsystem includes CPU2, SDMMC3, IWDG3, IWDG4, USART1, PER..., SRAM1, RETRAM, RCC, PWR, PER..., and SAI4. The AXI subsystem contains Bus matrix 1 (including AXI, AHB5, APB4, APBDBG) and Bus matrix 2 (including MLAHB, AHB1/2/3/4/6, APB1/2/3/5). Peripherals are color-coded: blue for CPU1, pink for CPU2, and light blue for both. CPU1_DOM and CPU2_DOM are indicated as overlapping regions across the bus matrices. A legend at the bottom defines the color coding: blue box for peripherals allocated to CPU1, pink box for peripherals allocated to CPU2, and light blue box for peripherals allocated to both CPU1 and CPU2. The document reference MSv71481V2 is in the bottom right corner.
Figure 106: Peripheral allocation example. This block diagram illustrates the peripheral allocation between two CPU subsystems (CPU1 and CPU2) and an AXI subsystem. The CPU1 subsystem includes CPU1, SYSRAM, DDRC, DDRPHYC, IWDG1, BKPSRAM, I2C3, SPI6, and PER... The CPU2 subsystem includes CPU2, SDMMC3, IWDG3, IWDG4, USART1, PER..., SRAM1, RETRAM, RCC, PWR, PER..., and SAI4. The AXI subsystem contains Bus matrix 1 (including AXI, AHB5, APB4, APBDBG) and Bus matrix 2 (including MLAHB, AHB1/2/3/4/6, APB1/2/3/5). Peripherals are color-coded: blue for CPU1, pink for CPU2, and light blue for both. CPU1_DOM and CPU2_DOM are indicated as overlapping regions across the bus matrices. A legend at the bottom defines the color coding: blue box for peripherals allocated to CPU1, pink box for peripherals allocated to CPU2, and light blue box for peripherals allocated to both CPU1 and CPU2. The document reference MSv71481V2 is in the bottom right corner.

Note: CPU1_DOM and CPU2_DOM can be spread over the two domains.

When the CPU1 goes to CStop, the RCC disables automatically the bus interface and kernel clocks of all peripherals of CPU1_DOM, as well as CPU1 clock. If CPU2 is still in CRUN, the bus matrix 1 is still clocked as CPU2_DOM contains peripherals (SYSRAM, OCTOSPI1) physically connected to this bus matrix. The PLLs, if enabled, are not disabled by the RCC as the CPU2 still runs.

If CPU2 goes to CStop, the bus matrix 1 is no longer clocked.

Note: In this scenario, the complete system can go to Stop. If both CPUs allowed Standby mode, the system goes to Standby.

The wake-up events can exit the system from Standby or Stop.

Handling of memory devices

Both CPU1 and CPU2 can access all memory devices available in the product:

By default, the RETRAM memory is allocated (enabled) to both CPUx to allow accesses when the system exits Standby. All others memories are not allocated by default.

According to the RCC RIF resource configuration, any internal memory can be dedicated or shared by CPUs (see Section 20.4.11 for details).

Refer to Section 20.4.12 and Section 20.4.13 for details on clock enabling.

20.4.11 Peripheral allocation inside RCC

Each CPU can allocate any peripheral and hence control its kernel and bus interface clock. A peripheral is allocated when dedicated PERxEN is set in RCC_PERxCFGR (PERx is the peripheral x).

A peripheral is deallocated when dedicated PERxEN is reset in RCC_PERxCFGR.

According to the product RIF policy (see Section 20.7 for details), each CPU peripheral domain is created based on the following criteria (see Table 115 for details):


Warning: Any peripheral configured in single-access mode must be deallocated to become free for any other CPU. If not, any RIF configuration change does not work for any new allocation.


Nevertheless, any peripheral listed in the table below can be allocated by one CPU when the related RCC RIF resource configuration is set in “single-access” mode. The application must program the RIF peripheral configuration accordingly.

Example: If the application wants HPDMA1 to be used only by CPU1, the following steps are needed:

  1. 1. Set HPDMA1 RIF configuration in CPU1 single-access mode.
  2. 2. Set RCC HPDMA1 RIF configuration in CPU1 single-access mode (CFEN = 1, SEM_EN = 0 and SCID = CPU1 ID in RCC_R83CIDCFGR).

Table 138. Shareable peripherals list

CategoryList
PeripheralsDDR(1), RCC, PWR, EXTI, SYSCFG, IPCC1, HPDMA1, HPDMA2, HPDMA3, GPIOA, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG, GPIOH, GPIOI, GPIOZ, FMC, BSEC, ETR, DBGMCU, RTC
MemoriesSYSRAM, OCTOSPI1, SRAM1, RETRAM, BKPSRAM
  1. 1. DDR can be set shareable according to DDRSHR in RCC_DDRITFCFGR.

When the RIF peripheral configuration is set in legacy mode (CFEN = 0):

When the RIF resource configuration is set in legacy mode (CFEN = 0):

PERxEN is used by the hardware to provide the kernel and bus clocks according to the CPU state for peripherals not listed in Table 138, whereas it is based on the system state for peripherals set as shareable in Table 138.

Clock enabling delays

In order to avoid spurs, the clock gating logic synchronizes the enable command (coming generally from a clock request or PERxEN) with the selected clock.

Note: Both kernel and bus interface clocks are affected by this resynchronization delay.

In addition, the clock enabling delay may increase if the application enables for the first time, a peripheral which is not located into its domain (the subsystem where the peripheral is located may not have its subsystem clock ready). The subsystem clock must be switched on before the application can use this peripheral.

For example if CPU2 is enables a peripheral located into the AXI subsystem, while the CPU1 is in CStop, the RCC has to provide a clock to the AXI subsystem.

In order to allocate properly a peripheral, the following sequence must be respected:

  1. 1. Enable the peripheral clocks (allocate the peripheral) by writing PERxEN = 1.
  2. 2. Read back the RCC_PERxCFGR register. This operation can be considered as a dummy read.
  3. 3. The peripheral can now be used.

Note: When the bus interface clock is not active, the read/write accesses to the peripheral registers are not supported. A read access results in reading invalid data. A write access is ignored, and do not create any bus errors.

20.4.12 Peripheral clock gating control

As mentioned previously, each peripheral requires a bus interface clock, named ck_icn_p_perx or ck_icn_s_perx (for peripheral x). This clock is an APB, AHB or AXI clock, according to which bus the peripheral is connected.

The clock source used as bus interface clock for peripherals located into the CPU1 domain can be one of the Table 121 (such as ck_icn_hs_mcu, ck_icn_ls_mcu, ck_icn_sdmmc, or ck_icn_hsl) depending on the bus connected to each peripheral.

Some peripherals (such as SAI, or UART) need also a dedicated clock for their communication interface. This clock is generally asynchronous with respect to the bus interface clock, and is named kernel clock (ck_ker_perx).

Bus interface and kernel clocks can both be gated according to several conditions detailed hereafter.

As shown in the Figure 107, the enabling of the kernel and bus interface clocks of each peripheral depends on several input signals:

Due to jitter constraints, the final clock gating stage for bus and/or kernel clocks is not inside the RCC but at the peripheral boundary. The RCC provides only the enable signal for the following peripherals: USBH, OTG, USB2PHY1 and USB2PHY2 (see Section 20.4.11 for more details).

Figure 107. Peripheral clock enable logic details

Figure 107. Peripheral clock enable logic details
Figure 107. Peripheral clock enable logic details

Table 139 and Table 140 detail the enabling logic of most peripheral clocks for peripherals allocated by CPUs.

Table 139. Peripheral bus clock enabling logic

PERxENPERxLPENreq_ck_bus_perx(1)CPUx(2)System modeck_icn_perx_enComments
0XXXX0No clock provided to the peripheral (PERxEN = 0)
1XXCRun1Bus interface clock provided to the peripheral (CPUx in CRun and PERxEN = 1)
10XCSleepRun0No clock provided to the peripheral (CPUx in CSleep and PERxLPEN = 0)
11X1Bus interface clock provided to the peripheral (CPUx in CSleep and PERxLPEN = 1)

Table 139. Peripheral bus clock enabling logic (continued)

PERxENPERxLPENreq_ck_bus_perx(1)CPUx(2)System modeck_icn_perx_enComments
10XCStopRun, Stop or LP-Stop0No clock provided to the peripheral (CPUx in CStop and PERxLPEN = 0).
1100No clock provided to the peripheral (CPUx in CStop, system in Run, Stop or LP-Stop mode, and req_ck_bus_perx = 0)
1111Bus interface clock provided to the peripheral (CPUx in CStop, system in Run, Stop or LP-Stop mode, and PERxEN = PERxLPEN = req_ck_bus_perx = 1)
In system Stop or LP-Stop, HSI is the source clock
110CStopLPLV-Stop0No clock provided to the peripheral (system in LPLV-Stop and no bus clock request pending)
1111Bus interface clock provided to the peripheral (system in LPLV-Stop and req_ck_bus_perx = 1)
  1. 1. See Section 19.5.2: Low-power batch acquisition mode (LPBAM) for the list of supported autonomous peripherals. All enabled autonomous peripherals are clocked when at least one req_ck_bus_perx is active.
  2. 2. CPUx = CPU1, CPU2 (see Section 20.4.14 for details).

As a summary, the bus interface clock is provided to the peripherals in the following conditions:

Table 140. Peripheral kernel clock enabling logic

PERxENPERxLPENXBARxSELreq_ck_ker_perxCPUx(1)System modeck_ker_perx_enComments
0XXXXX0No clock provided to the peripheral (PERxEN = 0)
1XXXCRunRun1Kernel clock provided to the peripheral (CPUx in CRun and PERxEN = 1)
10XXCSleep0No clock provided to the peripheral (CPUx in CSleep and PERxLPEN = 0)
11XX1Kernel clock provided to the peripheral (CPUx in CSleep and PERxLPEN = 1)

Table 140. Peripheral kernel clock enabling logic (continued)

PERxENPERxLPENXBARxSELreq_ck_ker_perxCPUx(1)System modeck_ker_perx_enComments
11no lsi_ck
and no lse_ck
and no hsi_ker_ck
and no msi_ker_ck
and no hse_ker_ck
XCStopRun, Stop
or LP-Stop
0No clock provided to the peripheral (CPUx in CStop and lse_ck, lsi_ck, hsi_ker_ck, msi_ker_ck or hse_ker_ck not selected)
11lsi_ck or lse_ckX1Kernel clock provided to the peripheral (PERxEN = PERxLPEN = 1 and lsi_ck or lse_ck selected)
The application must enable LSE or LSI if requested.
11hsi_ker_ck or
msi_ker_ck or
hse_ker_ck
11(2)Kernel clock provided to the peripheral (req_ck_ker_perx = PERxEN = PERxLPEN = 1 and hsi_ker_ck, msi_ker_ck or hse_ker_ck selected)
If the oscillators are off, the RCC enables them when a kernel clock request occurs.
11hsi_ker_ck or
msi_ker_ck or
hse_ker_ck
0(3)0No clock provided to the peripheral (CPUx in CStop, and no kernel clock request pending)
11lsi_ck or
lse_ck or
msi_ker_ck
0(3)CStopLPLV-Stop0No clock provided to the peripheral (no kernel clock request pending)
1111Kernel clock provided to the peripheral (PERxLPEN = 1, lsi_ck or lse_ck or msi_ker_ck selected and req_ck_ker_perx = 1)

1. CPUx = CPU1 or CPU2 (see Section 20.4.14 for details).

2. The DTS does not support the kernel clock request, but the kernel clock is still delivered in CStop.

3. For MDF1 the kernel clock is provided when PERxEN = PERxLPEN = 1 if selected from a PLL, see Table 125 footnote (4) for oscillator cases. For LPTIM1/2/3/4/5, the kernel clock is provided when lsi_ck or lse_ck is selected.

Note: The kernel clock request generated by the peripheral, enables the corresponding oscillator only if XBARxSEL[3:0] in RCC_XBARxCFGR selects an oscillator: HSI, MSI or HSE.

As a summary, the kernel clock is provided to the peripherals in the following conditions:

Note: Only some peripherals are able to request the kernel clock: I2C, I3C, SPI, U(S)ART. This feature gives to the peripheral the capability to wait for an event with an optimal power consumption.

20.4.13 CPUx and interconnect clocks gating

CPU1 clock gating

The CPU1 embeds one core and its own PLL (PLL1) provides all local clocks. The RCC provides only the PLL1 source reference clock (ck_pll1_ref), and the PLL1 bypass reference clock (ck_cpu1_ext2f).

When the CPU1 core goes to WFI, it is set in low-power state by gating its clocks, except for the functions used to wake up the core from WFI.

When the CPU1 core goes to WFE, it is set in low-power state by gating its clocks, except for the functions used to wake up the core from WFE.

When the CPU1 core is in WFI, the L2 memory system logic can also enter in WFI, and the cpu1_standbywfi_l2 signal is asserted. More precisely, when the CPU1 core is in WFI, the L2 memory system completes the pending transactions, enters in WFI, and cpu1_standbywfi_l2 is asserted. If CStop has been requested via STPREQ_P0 bit, the RCC disables ck_pll1_ref, ck_cpu1_ext2f clocks, and the AXI interface clock (ck_icn_m_cpu1).

The table below details the CPU1 modes according to the L2 memory system logic state (WFI), and RCC register values.

Table 141. CPU1 mode details(1)

STPREQ_P0L2 memory logic in WFICPU1 mode
-NCRun
0YCSleep
1YCStop

1. “-” means don't care.

The CPU1 can go in an enhanced CSleep when the ESLPREQ is set in RCC_C1SREQSETR. When this bit is set and STPREQ_P0 bits combination is 0, PLL1 is powered down and bypassed (ck_pll1_ref is also disabled) each time cpu1_standbywfi_l2 is asserted. ck_cpu1_ext2f clock must be used to be able to leave this mode.

When CPU1 is in CStop, PLL1 is also powered down when the system goes in one of Stop1 modes without any software assistance. If the system goes in one of Stop2 modes, the application software is required to disable PLL1 first, before putting the core in WFI state.

PLL1 disable application software procedure is the following:

  1. 1. Set CA35SS_SSC_CHGCLKREQ.ARM_CHGCLKREQ.
  2. 2. Poll CA35SS_SSC_CHGCLKREQ.ARM_CHGCLKACK bit until it is 1.
  3. 3. Clear CA35SS_SSC_PLL_ENABLE.NRESET_SWPLL.
  4. 4. Clear CA35SS_SSC_PLL_ENABLE.PLL_EN.
  5. 5. Poll CA35SS_SSC_PLL_ENABLE.LOCKP until it is 0.

Figure 108. CPU1 low-power interface

Block diagram of the CPU1 low-power interface showing the interaction between the RCC and the CA35-SS (CPU1).

The diagram illustrates the CPU1 low-power interface. The RCC (Reset and Clock Control) block contains a MUXSEL, Flexclkgen, and CPU1CE. The CA35-SS (CPU1) block contains PLL1, SCU, and AXISYNC. The interface signals are as follows:

MSv71483V2

Block diagram of the CPU1 low-power interface showing the interaction between the RCC and the CA35-SS (CPU1).

Figure 109. CPU1 PLL1 stop sequence

Timing diagram showing the CPU1 PLL1 stop sequence.

The timing diagram shows the sequence of events during a CPU1 PLL1 stop. The CPU1 mode transitions from CRun to CStop and back to CRun. The signals involved are:

MSv71484V1

Timing diagram showing the CPU1 PLL1 stop sequence.

CPU2 clock gating

CPU2 main clock (ck_cpu2) is sourced from ck_icn_hs_mcu clock.

CPU2 support two low-power states: sleep (SLEEPING output set high) and deepsleep (SLEEPING and SLEEPDEEP outputs set high).

CPU2 sleep state is equivalent to CSleep. CPU2 deepsleep state is equivalent to CStop for RCC. CPU2 main clock is only gated when it is in CStop.

Bus matrix and bridge clock gating

Bridge and bus matrix clocks are gated according to CPUx mode, and to the peripheral allocated to these CPUx. Table 142 shows in which conditions the RCC gates the bus matrix and bridge clocks (see Section 20.4.12 for information about convention naming).

Table 142. Bus clock enable details for ck_icn_ahbx with x = 2,5,6
and ck_icn_apby with y = 1,2,3,4,5,dbg

CPU1(1)CPU2(1)cpu1_peren_ahbx(apby)(2)cpu1_perlpen_ahbx(apby)(2)cpu2_peren_ahbx(apby)(2)cpu2_perlpen_ahbx(apby)(2)req_ck_bus_perzck_icn_ahbx
or
ck_icn_apby
Description
CRunAny1XXXXClockedThe clock is generated when one of the following conditions is true:
– CPU1 in CRun with at least one peripheral on AHBx (APBy) allocated (at least one PERxEN = 1)
– CPU1 in CSleep with at least one peripheral on AHBx (APBy) allocated, and with PERxEN = PERxLPEN = 1
– CPU2 in CRun with at least one peripheral on AHBx (APBy) allocated (at least one PERxEN = 1)
– CPU2 in CSleep with at least one peripheral on AHBx (APBy) allocated, and with PERxEN = PERxLPEN = 1
– both CPU1 and CPU2 in CStop with at least one autonomous peripheral on AHBx (APBy) allocated, with PERxEN = PERxLPEN = 1, and with its bus clock request active (req_ck_bus_perz = 1)
CSleep11XXX
AnyCRunXX1XX
CSleepXX11X
CStopCStop11XX1
XX111
AnyAny0X0XXGatedIn all other cases, the clock is gated.
CSleep0XX0X
CStop0XXXX
CSleepAnyX00XX
CSleepX0X0X
CStopX0XXX
CStopAnyXX0XX
CSleepXXX0X
CStop11XX0
XX11

1. 'Any' means CRun, CSleep, or CStop.

2. cpu1_peren_ahbx(apby) is set to 1 when at least one peripheral connected to AHBx (APBy) is allocated to CPU1.
cpu1_perlpen_ahbx(apby) is set to 1 when at least one peripheral connected to AHBx (APBy) is allocated to CPU1, with its PERxLPEN set to 1.
cpu2_peren_ahbx(apby) is set to 1 when at least one peripheral connected to AHBx (APBy) is allocated to CPU2.
cpu2_perlpen_ahbx(apby) is set to 1 when at least one peripheral connected to AHBx (APBy) is allocated to CPU2, with its PERxLPEN set to 1.

20.4.14 Mass storage interface clocking

One programmable delay (DLYB) is used for each SDMMC and the OCTOSPI interface.
These programmable delays are used:

These programmable delays are based on a DLL that compensates voltage and temperature variations. This DLL features 32 taps and covers the frequency range from 50 MHz to 208 MHz. The clock on which the DLL locks is provided by SDMMC or OCTOSPI controllers. This clock is at the same frequency as the memory clock, and it is free running. The programmable delays control bits are described in system configuration controller (SYSCFG) section. More details in Mass storage interfaces section.

FMC interface - Clocking schematic

Figure 110. FMC interface clocking

Figure 110. FMC interface clocking schematic. The diagram shows the clocking architecture for the FMC interface. On the left, the RCC block contains three clock generation paths. Each path starts with an input clock (ck_ker_fmc, ck_icn_s_fmc, and ck_icn_p_fmc) and a control signal (FMCEN and FMCLPEN). These are processed by a CGL (Clock Generation Logic) block. The outputs of the CGL blocks are clk_ker_fmc, clk_icn_s_fmc, and clk_icn_p_fmc. These clocks are then fed into the FMC block. The FMC block has inputs kclk, aclk, and hclk, and outputs m_clk and m_fb_clk. The m_clk output is labeled FMC_CLK_out and is connected to a buffer. The buffer output is labeled FMC_CLK. The m_fb_clk output is labeled FMC_CLK_in and is connected to the buffer input. The buffer is represented by a blue triangle symbol. The diagram is labeled MSv71485V1 in the bottom right corner.
Figure 110. FMC interface clocking schematic. The diagram shows the clocking architecture for the FMC interface. On the left, the RCC block contains three clock generation paths. Each path starts with an input clock (ck_ker_fmc, ck_icn_s_fmc, and ck_icn_p_fmc) and a control signal (FMCEN and FMCLPEN). These are processed by a CGL (Clock Generation Logic) block. The outputs of the CGL blocks are clk_ker_fmc, clk_icn_s_fmc, and clk_icn_p_fmc. These clocks are then fed into the FMC block. The FMC block has inputs kclk, aclk, and hclk, and outputs m_clk and m_fb_clk. The m_clk output is labeled FMC_CLK_out and is connected to a buffer. The buffer output is labeled FMC_CLK. The m_fb_clk output is labeled FMC_CLK_in and is connected to the buffer input. The buffer is represented by a blue triangle symbol. The diagram is labeled MSv71485V1 in the bottom right corner.

The FMC controller receives its kernel, AHB and AXI clocks from the RCC.

Table 143. FMC interface clocks from RCC

Subsystem clock signal namePeripheralClock signal nameClock directionRCC clock lineMax frequencyDescription
clk_ker_fmcFMCKCLKInputck_ker_fmc200 MHzkernel clock
clk_icn_s_fmcACLKInputck_icn_s_fmc400 MHzAXI clock
clk_icn_p_fmcHCLKInputck_icn_p_fmc200 MHzAHB clock

OCTOSPI interface - Clocking schematic

Figure 111. OCTOSPI interface clocking Block diagram of OCTOSPI interface clocking showing RCC inputs (ck_ker_ospi1, ck_icn_s_ospi1, ck_icn_p_otfd1 with OSPI1EN/OSPI1LPEN gates) routing into Mass storage containing OCTOSPI1, OTFDEC1, and DLYBOS1, connecting to OCTOSPI1_CLK and OCTOSPI1_NCLK output buffers.
Block diagram of OCTOSPI interface clocking showing RCC inputs (ck_ker_ospi1, ck_icn_s_ospi1, ck_icn_p_otfd1 with OSPI1EN/OSPI1LPEN gates) routing into Mass storage containing OCTOSPI1, OTFDEC1, and DLYBOS1, connecting to OCTOSPI1_CLK and OCTOSPI1_NCLK output buffers.

The RCC provides kernel and bus clocks to OCTOSPI1 and OTFDEC1. DLYBOS1 provide delayed feedback clocks, and delayed TX launch clocks to OCTOSPI1.

Table 144. OCTOSPI clocks from RCC
Subsystem clock signal namePeripheralClock signal nameClock directionRCC clock lineMax frequencyDescription
clk_ker_octspi1OCTOSPI1ker_clkInputck_ker_ospi1266 MHzkernel clock
clk_icn_s_octspi1OCTOSPI1HCLKInputck_icn_s_ospi1300 MHzAHB clock
clk_icn_p_otfdec_1OTFDEC1HCLKInputck_icn_p_otfd1300 MHzAHB clock
Table 145. OCTOSPI interface clocks from DLYBOS1
PeripheralClock signal nameClock directionMax frequencyDescription
DLYBOS1rx_op_clkOutput200 MHzDelayed RX sampling clock
DLYBOS1tx_op_clkOutput200 MHzDelayed TX launch clock

Details of the OCTOSPI interface clocking

For OCTOSPI1 interface, the RX sampling strobe can be selected between:

For OCTOSPI1 interface, the delay on loopback clock or DQS relies on a DLL. This DLL is used to tune the phase of the RX sampling strobe, so that it is positioned in the middle of the

data valid window, and guarantees that this phase remains constant even if voltage or temperature conditions vary.

Using this DLL is mandatory at all frequencies for protocols where a DQS is provided by the memory device to qualify read data. This DQS is edge-aligned with data at the output of the memory device, and must be shifted to enable data safe sampling. For memory frequencies above 50 MHz, the DLL is used in lock mode. For memory frequencies below 50 MHz, the DLL is used in bypass mode (pure delay).

For non DQS based protocols, using the DLL is recommended when memory frequency is greater than 100 MHz (STR), or 66 MHz (DTR). This is optional for lower speeds where using the loopback clock is sufficient. The DLL must not be used in lock mode for speed modes below 50 MHz.

A delay relying on a DLL is also implemented for the TX path, with the following delay use cases:

SDMMC interface - Clocking schematic

Figure 112. SDMMC interface clocking

Figure 112. SDMMC interface clocking diagram showing RCC blocks connected to SDMMC1, SDMMC2, SDMMC3 and their corresponding DLYBSD blocks (DLYBSD1, DLYBSD2, DLYBSD3).

The diagram illustrates the clocking architecture for three SDMMC interfaces (SDMMC1, SDMMC2, and SDMMC3). On the left, the RCC (Reset and Clock Control) block generates kernel and bus clocks. For each interface, two clock signals are derived: a kernel clock (sclk) and a bus clock (hclk). These are generated by AND gates combining enable signals (SDMMC1EN, SDMMC2EN, SDMMC3EN) with CGL (Clock Gating Logic) and the respective input clock signals (ck_ker_sdmmc1/2/3 and ck_icn_m_sdmmc1/2/3). The maximum frequency for these clocks is 200 MHz. The hclk signals pass through rstsync_sdmmc_1/2/3 blocks before reaching the SDMMC blocks. Each SDMMC block (SDMMC1, SDMMC2, SDMMC3) has several clock inputs: CKin (SDMMC1/2/3_CKIN), ClkOut (uSD_SDMMC1/2/3_CK_out), CKio (uSD_SDMMC1/2/3_CK_in), FB_CLK (connected to DLYBSD1/2/3), and ClkDll (connected to DLYBSD1/2/3). The DLYBSD1/2/3 blocks provide delayed feedback clocks for RX sampling, with inputs for rx_op_clk, rx_ip_clk, tx_op_clk, and tx_ip_clk, and outputs for rx_ip_clk and tx_ip_clk. The diagram also shows the connection of these clocks to external components like SDMMC1_CKIN, uSD_SDMMC1_CK, SDMMC2_CKIN, uSD_SDMMC2_CK, SDMMC3_CKIN, and uSD_SDMMC3_CK.

Figure 112. SDMMC interface clocking diagram showing RCC blocks connected to SDMMC1, SDMMC2, SDMMC3 and their corresponding DLYBSD blocks (DLYBSD1, DLYBSD2, DLYBSD3).

MSv71487V1

The RCC provides the kernel and bus clocks to the SDMMC1/2/3. DLYBSD1/2/3 provide delayed feedback clocks for RX sampling to the SDMMC1/2/3.

Table 146. SDMMC clocks from RCC

Subsystem clock signal nameFunctional blockClock signal nameClock directionRCC clock lineMax frequencyDescription
clk_ker_sdmmc1SDMMC1SClkInputck_ker_sdmmc1200 MHzkernel clock
clk_icn_p_sdmmc1SDMMC1HCLKInputck_icn_m_sdmmc1200 MHzAHB clock
clk_ker_sdmmc2SDMMC2SClkInputck_ker_sdmmc2200 MHzkernel clock
clk_icn_p_sdmmc2SDMMC2HCLKInputck_icn_m_sdmmc2200 MHzAHB clock
clk_ker_sdmmc3SDMMC3SClkInputck_ker_sdmmc3200 MHzkernel clock
clk_icn_p_sdmmc3SDMMC3HCLKInputck_icn_m_sdmmc3200 MHzAHB clock
Table 147. SDMMC interface clocks from DLYBSD1/2/3
PeripheralClock signal nameClock directionMax frequencyDescription
DLYBSD1rx_op_clkOutput200 MHzDelayed RX sampling clock
DLYBSD2rx_op_clkOutput200 MHzDelayed RX sampling clock
DLYBSD3rx_op_clkOutput200 MHzDelayed RX sampling clock

Details of the SDMMC interface clocking

For all SDMMC1/2/3 interfaces, the RX sampling clock can be selected between:

For each SDMMC interface, the delayed loopback clock relies on a DLL. This DLL is used to tune the phase of the RX sampling clock so that it is positioned in the middle of the data valid window (also valid for Cmd), and guarantees that this phase remains constant even if voltage or temperature conditions vary. Using this DLL is mandatory for speed modes where the phase of the data (respectively Cmd) valid window is not guaranteed by the memory device (SDR104, HS200 modes). This is optional for other speed modes where using the loopback clock is sufficient. The DLL must not be used in lock mode for speed modes below 50 MHz.

There is no programmable delay nor DLL implemented for the TX paths of the SDMMC. The SDMMC generates data (respectively Cmd) with the maximum setup/hold timings versus the active edge of the clock sent to the memory device.

20.4.15 Ethernet interface clocking

There are two independent GMAC controllers (ETH1 and ETH2) that support MII, RMII and RGMII interfaces.

ETH1 and ETH2 include an MDIO interface. External clock I/Os are multiplexed to support internal or external clock generation. ETH1 and ETH2 support TSN.

Clocking schematic

Each GMAC has the same (but independent) clock management. The clocking for a single GMAC is shown in the figure below.

Figure 113. Single GMAC clocks

Clocking schematic for a single GMAC (ETH1). The diagram shows the internal clock management logic. Inputs include ck_ker_eth1 (125 MHz (rgmii), 50 MHz (rmii), 25 MHz (mii)), ETH1_CLK125 (rgmii), ETH1_REF_CLK (mii, rgmii), and ETH1_REF_CLK (rmii). These are processed through multiplexers and dividers (div 50, div 5, div 20, div 2) to generate various clocks: ETH1_CLK (rmii), ETH1_GTX_CLK (rgmii), ETH1_MDC, clk_tx, clk_tx_180, clk_rx, clk_rx_180, clk_rmii, csysreq, ack, hclk, clk_ptp_ref, and ptp_timestamp_i(63:0). The logic is controlled by signals like ETH1_CLK_SEL, mac_speed(1:0), and ETH1_SEL(2:0).
Clocking schematic for a single GMAC (ETH1). The diagram shows the internal clock management logic. Inputs include ck_ker_eth1 (125 MHz (rgmii), 50 MHz (rmii), 25 MHz (mii)), ETH1_CLK125 (rgmii), ETH1_REF_CLK (mii, rgmii), and ETH1_REF_CLK (rmii). These are processed through multiplexers and dividers (div 50, div 5, div 20, div 2) to generate various clocks: ETH1_CLK (rmii), ETH1_GTX_CLK (rgmii), ETH1_MDC, clk_tx, clk_tx_180, clk_rx, clk_rx_180, clk_rmii, csysreq, ack, hclk, clk_ptp_ref, and ptp_timestamp_i(63:0). The logic is controlled by signals like ETH1_CLK_SEL, mac_speed(1:0), and ETH1_SEL(2:0).

MSv71488v2

The RCC provides all the clocks except from the I/O inputs (ETH1_CLK125, ETH1_TX_CLK, ETH1_RX_CLK). the Ethernet clocks are also available as outputs (ETH1_CLK, ETH1_GTX_CLK) when the device is the clock master.

The main clock for the Ethernet is generated by the RCC (ck_ker_eth1) or externally (ETH1_CLK125 or ETH1_REF_CLK).

Clock signals

Table 148. Ethernet clocks from RCC

Subsystem clock signal namePeripheralClock signal nameClock directionRCC clockMax frequencyClock description
clk_eth1_hclkETH1 controllerhclkInputck_icn_p_eth1150 MHzAHB register access
clk_eth1_axi_masterETH1 controlleraclkInputck_icn_m_eth1300 MHzAXI data master
clk_ker_eth1ETH1 controller(multiple divided)Inputck_ker_eth1125 MHzInternal GMAC clock
clk_eth1_ptp_refETH1 controllerclk_ptp_refInputck_ker_eth1ptp200 MHzPTP reference clock

In the table below, signals and I/Os for ETH2 are not shown, but repeat these called “_eth1” or “ETH1” with “_eth2” or “ETH2”.

Table 149. Ethernet clocks to/from I/Os

Subsystem clock pin namePeripheralClock signal nameClock directionMax frequencyClock description
ETH1_CLK125ETH x controller-Input125 MHzOptional RGMII external reference (fixed frequency)
ETH1_TX_CLK-Input25 MHzMII external TX clock
ETH1_RX_CLK/
ETH1_REF_CLK
-Input125 MHzMII or RGMII external RX clock, RMII external reference
ETH1_CLK-Output125 MHzTo external PHY (fixed frequency)
ETH1_GTX_CLKclk_tx_iOutput125 MHzTo external PHY (dynamic frequency)
ETH1_MDCgmii_mdc_oOutputhclk/4Clock for MDIO

All RGMII I/Os must support 125 MHz dual-edge toggling. Only 1.8 V and 3.3 V I/O signaling is supported (\(V_{DD}\) common to other GPIOs). 1.5 V support is not required as most PHYs also support 1.8 V. This means that the RGMII v2.0 is supported except for HSTL 1.5 V.

Ethernet I/O use

Table 150. Active I/O per mode (MII, RMII, RGMII)

DirectionMIIRMIIRGMIIComments
Input/outputETH_CLKETH_CLKETH_CLK125/50/25 MHz to PHY (static)
Output--GTX_CLK125/25/2.5 MHz in RGMII (dynamic)
Input--ETH_CLK125125 MHz from PHY (static)
InputRX_CLKREF_CLKRX_CLK125/25/2.5 MHz, or 50 MHz RMII
InputRX_DVCRS_DVRX_CTL-

Table 150. Active I/O per mode (MII, RMII, RGMII) (continued)

DirectionMIIRMIIRGMIIComments
InputRX_ER---
InputCOL---
InputCRS---
InputRXD0RXD0RXD0DDR (except MII)
InputRXD1RXD1RXD1-
InputRXD2-RXD2-
InputRXD3-RXD3-
InputTX_CLK--25/2.5 MHz in MII
InputTX_ENTX_ENTX_CTL-
OutputTXD0TXD0TXD0DDR (except MII)
OutputTXD1TXD1TXD1-
OutputTXD2-TXD2-
OutputTXD3-TXD3-
OutputMDCMDCMDC2.5 MHz or faster
Input/outputMDIOMDIOMDIO-

Description

The two controllers have separate register programming ports with independent clocks. Each controller also has a master port for data transfers, clocked by ck_icn_m_eth1 or ck_icn_m_eth2.

The RCC clock enable ck_ker_eth1_en gates the main Ethernet clock. There are also RCC clock enable for transmit (ck_eth1_tx_en) and receive (ck_eth1_rx_en) clocks, and an interconnect clock enable (ck_icn_eth1_en) for aclk and hclk.

The application can control the gating according to the CPUx modes (CRun, CSleep). It can also control the gating of clocks coming from ETH1_RX_CLK and ETH1_TX_CLK I/Os in CStop and Stop modes (see ETH1STPEN in RCC_ETH1CFGR).

The main Ethernet clock provided by the RCC is available on ETH1_CLK I/O. The clock selection for the RX and TX paths is controlled via the SYSCFG.

ETH1_SEL[2:0] in RCC_ETH1CFGR must be set to match the interface type used.

MII mode

The transmit clock is received from the external PHY via ETH1_TX_CLK I/O. The clock frequency is 2.5 or 25 MHz. The receive clock is received from the external PHY via ETH1_RX_CLK I/O. The clock frequency is 2.5 or 25 MHz. The ETH1_CLK output can be used to provide a reference clock (25 MHz) to the external PHY.

RGMII mode

The transmit clock can be selected between an internal clock provided by the RCC, or the clock received on the ETH1_CLK125 I/O. This selection is controlled via ETH1_CLK_SEL

in SYSCFG_ETH1CR. The clock frequency can be adjusted dynamically to 2.5, 25 or 125 MHz according to the mac_speed_o[1:0] signal provided by the ETH1 controller

The receive clock is coming directly from ETH1_RX_CLK I/O. The clock frequency is 2.5, 25, or 125 MHz. The dynamic transmit clock is provided to the PHY via ETH1_GTX_CLK I/O.

A constant reference clock of 125 MHz (50% duty cycle ± 5%) can also be provided to the external PHY via ETH1_CLK I/O.

Note: When the internal clock is provided externally, ck_ker_eth1 must not be gated.

RMII mode

The continuous reference clock (50 MHz) can be internally generated (ck_ker_eth1), or can come from ETH1_REF_CLK I/O. This selection is controlled via ETH1_REF_CLK_SEL in SYSCFG_ETH1CR.

The transmit and receive clock frequency can be adjusted dynamically to 2.5 or 25 MHz according to the mac_speed_o[0] signal provided by the ETH1 controller.

A continuous reference clock (50 MHz) can also be provided to the external PHY via ETH1_CLK I/O. To track the skew on the board when the internal clock is selected, the RMII clock (eth_clk_fb) is actually driven from the ETH1_CLK I/O buffer.

Note: To be continuous, ck_ker_eth1 must not be gated in Stop mode.

Dynamic clock generation

Internal transmit and receive clocks vary dynamically according to the MAC interface speed. The internal transmit clock is also available on ETH1_GTX_CLK I/O.

The ETH1 controller reports the speed of the MAC interface which may change dynamically during normal operation.

Table 151. Ethernet MAC speed encoding

mac_speed_o[1:0]MAC speed (Mbit/s)
0x1000
1010
11100

Clock multiplexers controlled by mac_speed_o produce a glitch-free output.

Station management clock

ETH1_MDC is the output clock for the station management interface. The MDC clock is a divided version of ck_icn_p_eth1 ("CSR clock"). The clock range (CR) setting in ETH1_MACMDIOAR selects the division ratio.

IEEE 802.3 specifies a maximum MDC frequency of 2.5 MHz, but higher frequencies can be selected if required. 12 MHz is supported by STM32MP21xx devices, but ETH1 supports up to 50 MHz (hclk/4). See Section 77: Ethernet (ETH): gigabit media access control (GMAC) with DMA controller section for the available ratios. The same register can be used to add extra clock cycles at the end of an MDIO frame transmission.

20.4.16 CA35SS clocking

Clocks definition

All clocks provided to the CA35SS are controlled from the RCC, and related information to the clocks gating are described in the RCC specification. The table below lists clocks from the RCC and their usage in the CA35SS.

Table 152. Cortex-A35 interface clocks from RCC

RCC clock lineCA35SS instanceMax frequencyDescription
ck_cpu1_ext2fCRMR400 MHzDefault clock frequency for Cortex-A35 core
ck_pll1_refPLL164 MHzReference clock for Cortex-A35 PLL1
ck_icn_m_cpu1AXI4 bridge600 MHzAXI4 clock for master side of asynchronous bridge
ck_icn_s_gic400GIC400400 MHzInterface clock for GIC400
ck_ker_stgenSTGEN64 MHzSTGEN timer clock
clk_icn_p_stgenSTGEN150 MHzSTGEN programming interface clock
ck_icn_p_syscpu1SYSCFG150 MHzInterface clock for system configuration registers

The reference clock for the PLL1 can be selected among three sources (HSI, HSE, MSI) through RCC_MUXSELCFGR register. Four of these clocks have explicit clock gating controlled from RCC registers as follows:

The others have dynamic clock gating depending on the Cortex-A35 core power states.

Clocking schematic

Figure 114. CA35SS interface clocks

Clocking schematic diagram for CA35SS interface clocks. The diagram shows the following components and connections: 
  - Input clock lines: ck_icn_m_cpu1, ck_cpu1_ext2f, ck_pll1_ref, ck_ker_stgen, ck_icn_p_stgen, ck_icn_s_gic400, and ck_icn_p_syscpu1.
  - PLL1 block: Receives ck_pll1_ref and outputs to CRMR.
  - STGEN block: Receives ck_ker_stgen and ck_icn_p_stgen.
  - GIC400 block: Receives ck_icn_s_gic400.
  - CRMR block: Receives ck_cpu1_ext2f and outputs to Cortex-A35 and AXI4-ASYNCH bridge.
  - Cortex-A35 block: Receives inputs from CRMR, STGEN, and GIC400, and outputs to AXI4-ASYNCH bridge.
  - AXI4-ASYNCH bridge block: Receives inputs from Cortex-A35 and ck_icn_m_cpu1.
  - CA35SS block: Receives inputs from Cortex-A35 and STGEN.
  - CA35SS_SYSCFG block: Receives ck_icn_p_syscpu1 and outputs to CA35SS.

MSv71489V2

Clocking schematic diagram for CA35SS interface clocks. The diagram shows the following components and connections: - Input clock lines: ck_icn_m_cpu1, ck_cpu1_ext2f, ck_pll1_ref, ck_ker_stgen, ck_icn_p_stgen, ck_icn_s_gic400, and ck_icn_p_syscpu1. - PLL1 block: Receives ck_pll1_ref and outputs to CRMR. - STGEN block: Receives ck_ker_stgen and ck_icn_p_stgen. - GIC400 block: Receives ck_icn_s_gic400. - CRMR block: Receives ck_cpu1_ext2f and outputs to Cortex-A35 and AXI4-ASYNCH bridge. - Cortex-A35 block: Receives inputs from CRMR, STGEN, and GIC400, and outputs to AXI4-ASYNCH bridge. - AXI4-ASYNCH bridge block: Receives inputs from Cortex-A35 and ck_icn_m_cpu1. - CA35SS block: Receives inputs from Cortex-A35 and STGEN. - CA35SS_SYSCFG block: Receives ck_icn_p_syscpu1 and outputs to CA35SS.

The following clock sources can be selected by CA35SS registers to compute the Cortex-A35 clock, which is the main clock to the Arm core and its caches:

The CRMR handles this selection by providing appropriate clocks in a “glitch free” manner.

Note: After initial power-up reset, the dual Cortex-A35 clock is driven from clkext2f (not divided).

PLL1 enable procedure is the following:

  1. 1. Clear CA35SS_SSC_PLL_ENABLE.NRESET_SWPLL.
  2. 2. Configure PLL parameters in CA35SS_SSC_PLL_FREQ1 and CA35SS_SSC_PLL_FREQ2.
  3. 3. Set CA35SS_SSC_PLL_ENABLE.PLL_EN.
  4. 4. Poll CA35SS_SSC_PLL_ENABLE.LOCKP until it is 1.
  5. 5. Set CA35SS_SSC_PLL_ENABLE.NRESET_SWPLL.
  6. 6. Clear CA35SS_SSC_CHGCLKREQ.ARM_CHGCLKREQ.
  7. 7. Poll CA35SS_SSC_CHGCLKREQ.ARM_CHGCLKACK until it is 0.

20.4.17 Debug and trace clocking

Main debug and trace clocks are provided according to:

The table below presents the list of the debug and trace external clocks.

Table 153. Debug and Trace subsystem external clocks

RCC clock lineDebug and Trace instanceInstance signal nameMax. frequencyDescription
ck_dapDEBUGclk_dap64 MHzDAP clock domain (DBGMCU included)
ck_sys_dbgDEBUGck_icn_apbdebug150 MHzDebug clock domain
ck_sys_atbDEBUGck_sys_atb400 MHzATB clock domain
ck_icn_m_etrTRACEck_icn_etr400 MHzETR AXI master port clock
ck_icn_s_stmTRACEck_icn_stm150 MHzSTM AXI slave port clock
ck_ker_tpiuTRACEck_trace200 MHzProcessing clock for trace

Clocking schematic

Figure 115. Debug and Trace external clocks

Figure 115. Debug and Trace external clocks schematic showing the RCC block connected to the DEBUG and TRACE block with clock gating logic (CGL), ACK Logic, and various clock signals like DBGMCUEN, hsi_ck, ck_dap, CLK_DAP, DBGEN, ck_icn_apbdbg, ck_sys_dbg, CLK_ICN_APBDEBUG, flexclkgen_channel45, ck_sys_atb, CLK_SYS_ATB, ETREN, ETRLPEN, ck_icn_m_etr, CLK_ICN_ETR, STMEN, STMLPEN, ck_icn_s_stm, CLK_ICN_STM, TRACEEN, flexclkgen_channel44, ck_ker_tpiu, CLK_TRACE, CDBGPWRUPREQ, CDBGPWRUPACK.

MSv71490V1

Figure 115. Debug and Trace external clocks schematic showing the RCC block connected to the DEBUG and TRACE block with clock gating logic (CGL), ACK Logic, and various clock signals like DBGMCUEN, hsi_ck, ck_dap, CLK_DAP, DBGEN, ck_icn_apbdbg, ck_sys_dbg, CLK_ICN_APBDEBUG, flexclkgen_channel45, ck_sys_atb, CLK_SYS_ATB, ETREN, ETRLPEN, ck_icn_m_etr, CLK_ICN_ETR, STMEN, STMLPEN, ck_icn_s_stm, CLK_ICN_STM, TRACEEN, flexclkgen_channel44, ck_ker_tpiu, CLK_TRACE, CDBGPWRUPREQ, CDBGPWRUPACK.

20.4.18 Camera subsystem clocking

The DCMI and the PSSI have a slow input parallel interface that receives a clock when this interface is used. Both share a clock for their slave interface.

The DCMIPP has a fast input parallel interface that receives a clock when this interface is used. It also has a clock for its internal pixel processing, and its master and slave interface.

The CSI interface requires a hard macrocell which retrieves the clock. This clock is then used for processing.

The table below presents the list of the camera subsystem external clocks.

Table 154. Camera subsystem external clocks

Subsystem clock signal nameCamera instanceClock signal nameClock directionRCC clock lineMax. frequencyDescription
ck_icn_m_dcmippDCMIPPaclk
clk_axi_csi
Inputck_icn_display400 MHzDCMIPP master port interconnect clock
ck_icn_p_dcmippDCMIPPpclkInputck_icn_apb4150 MHzDCMIPP peripheral port clock
ck_ker_dcmippDCMIPP
CSI (host)
clk_proc
clk_proc_csi
Inputck_ker_dcmipp333 MHzProcessing clock for Camera subsystem
ck_icn_p_csiCSI (host)pclkInputck_icn_apb4150 MHzCSI peripheral port clock
Table 154. Camera subsystem external clocks (continued)
Subsystem clock signal nameCamera instanceClock signal nameClock directionRCC clock lineMax. frequencyDescription
ck_ker_csiphyCSI (phy)i_cfg_clkInputck_ker_csiphy27 MHz-
ck_ker_csitxescCSI (phy)i_TxClkEscInputck_ker_csitxesc20 MHz-
ck_icn_p_dcmipssiDCMI/PSSIhclk_cciInputck_icn_ls_mcu150 MHzDCMI and PSSI peripheral port clock
pixck_pdck_cciDCMI/PSSI DCMIPPpixck_pdck_cci
clk_pix
InputNA80 MHzExternal DCMI_PIXCLK clock lane
cn_rx_dphyCSI (phy)io_CnInput/outputNA1250 MHzExternal CSI_CK_N clock lane (2500 Mbps/lane)
cp_rx_dphyCSI (phy)io_CpInput/outputNA1250 MHzExternal CSI_CK_P clock lane (2500 Mbps/lane)

The table below presents the list of the camera subsystem internal clocks.

Table 155. Camera subsystem internal clocks
Functional blockClock signal nameClock directionMax frequencyDescription
CSI (phy)o_RxByteClkHSOutput312.5 MHz-

Clocking schematic

Figure 116. Camera interface clocks Clocking schematic diagram for the camera interface. It shows the interconnection of various clock signals between the DCMIPP, DCMI + PSSI, CSI (host), and CSI (phy) blocks. External clocks like ck_ker_csitxesc, ck_icn_p_dcmipssi, and pixck_pdck_cci are shown entering the system. Internal clocks like pclk, aclk, clk_pix, and clk_byte are shown within the blocks. The CSI (phy) block has outputs for io_Cn and io_Cp, which are connected to external dphy clocks.

The diagram illustrates the clocking architecture for the camera interface. It features four main functional blocks: DCMIPP, DCMI + PSSI, CSI (host), and CSI (phy). External clock inputs include ck_ker_csitxesc, ck_icn_p_dcmipssi, and pixck_pdck_cci. The DCMIPP block receives pclk and aclk inputs and outputs clk_pix. The DCMI + PSSI block receives hclk and outputs dcmi_pixclk / pssi_pdck. The CSI (host) block receives pclk and outputs clk_byte. The CSI (phy) block receives i_TxClkEsc and outputs o_RxByteClkHS. It also has inputs for io_Cn and io_Cp, which are connected to external dphy clocks (cn_rx_dphy and cp_rx_dphy). The CSI (phy) block also outputs i_cfg_clk. The diagram shows the flow of clock signals between these blocks, with some signals being shared or derived from others.

Clocking schematic diagram for the camera interface. It shows the interconnection of various clock signals between the DCMIPP, DCMI + PSSI, CSI (host), and CSI (phy) blocks. External clocks like ck_ker_csitxesc, ck_icn_p_dcmipssi, and pixck_pdck_cci are shown entering the system. Internal clocks like pclk, aclk, clk_pix, and clk_byte are shown within the blocks. The CSI (phy) block has outputs for io_Cn and io_Cp, which are connected to external dphy clocks.

20.4.19 Display subsystem clocking

The LTDC uses a clock for its internal pixel processing, which is used to drive its output parallel interface. It also needs clock for its bus master and its bus slave interface.

The table below presents the list of display subsystem external clocks.

Table 156. Display subsystem external clocks

Subsystem clock signal nameFunctional blockClock signal nameClock directionRCC clock lineMax. frequencyDescription
ck_icn_m_ltdcLTDC
LTDC (rimu)
aclk
ACLK
Inputck_icn_display400 MHzMaster port clock
ck_icn_p_ltdcLTDC
LTDC (risad)
pclk
PCLK
Inputck_icn_apb4150 MHzPeripheral clock
ck_ker_ltdcLTDCpixel_clkInputck_ker_ltdc314 MHzPixel clock
Pixel clock
LaneByte clock
LCD_CLKLTDCpixel_clk_ltdcOutputNA150 MHzExternal pixel interface clock

Clocking schematic

The clocking tree for the display subsystem is described in the figure below.

Figure 117. Display subsystem clocking

Clocking schematic for the display subsystem showing the LTDC block receiving three external clocks (ck_ker_ltdc, ck_icn_p_ltdc, ck_icn_m_ltdc) and distributing them to internal components (RIMU, RISAD) and an external output (LCD_CLK).

The diagram illustrates the clocking architecture for the LTDC (LCD Timing Controller) subsystem. Three external clock signals are shown as inputs: ck_ker_ltdc, ck_icn_p_ltdc, and ck_icn_m_ltdc. ck_ker_ltdc is connected to the pixel_clk input of the LTDC block. ck_icn_p_ltdc is connected to the pclk input, and ck_icn_m_ltdc is connected to the aclk input of the LTDC block. The LTDC block also has an output signal pixel_clk_ltdc which is connected to an external output block labeled LCD_CLK. Additionally, the ck_icn_p_ltdc and ck_icn_m_ltdc signals are branched off and connected to two separate functional blocks: RIMU (ltdc) which receives the ACLK signal, and RISAD (ltdc) which receives the PCLK signal. The diagram is labeled with the identifier MSv71492V2 in the bottom right corner.

Clocking schematic for the display subsystem showing the LTDC block receiving three external clocks (ck_ker_ltdc, ck_icn_p_ltdc, ck_icn_m_ltdc) and distributing them to internal components (RIMU, RISAD) and an external output (LCD_CLK).

20.4.20 USB clocking

USB2 Host-only (USBH) and OTG clocking schematic

Figure 118. USBH and OTG ports clocking

Schematic diagram of USBH and OTG ports clocking. The diagram shows the RCC block on the left, which provides control signals (USBHEN, USBHLPEN, USBHSTPEN, USB2PHY1EN, USB2PHY1LPEN, USB2PHY1STPEN, OTGEN, OTGLPEN, OTGSTPEN) to logic blocks. These logic blocks generate enable signals (ck_icn_usbh_en, ck_icn_otg_en) and kernel clocks (ck_ker_usb2phy1, ck_ker_usb2phy2). The USBH block receives AHB clocks (ehci_hclk_i, ohci_hclk_i) and a 48 MHz reference clock (ohci_0_clk48_i) from the RCC. The USB2PHY1 and USB2PHY2 blocks receive kernel clocks and generate 480 MHz PHY clocks. The OTG block receives AHB clocks (hclk) and a clock (utmi_clk) from the RCC. The diagram also shows the PLL and CLKCORE blocks, and the SYSCFG block. A legend indicates that thick lines represent bus interface clocks and thin lines represent kernel clocks.
Schematic diagram of USBH and OTG ports clocking. The diagram shows the RCC block on the left, which provides control signals (USBHEN, USBHLPEN, USBHSTPEN, USB2PHY1EN, USB2PHY1LPEN, USB2PHY1STPEN, OTGEN, OTGLPEN, OTGSTPEN) to logic blocks. These logic blocks generate enable signals (ck_icn_usbh_en, ck_icn_otg_en) and kernel clocks (ck_ker_usb2phy1, ck_ker_usb2phy2). The USBH block receives AHB clocks (ehci_hclk_i, ohci_hclk_i) and a 48 MHz reference clock (ohci_0_clk48_i) from the RCC. The USB2PHY1 and USB2PHY2 blocks receive kernel clocks and generate 480 MHz PHY clocks. The OTG block receives AHB clocks (hclk) and a clock (utmi_clk) from the RCC. The diagram also shows the PLL and CLKCORE blocks, and the SYSCFG block. A legend indicates that thick lines represent bus interface clocks and thin lines represent kernel clocks.

USB2 Host-only high speed port

The USB2 Host-only controller (USBH) receives AHB clocks from the RCC, and processes clocks from USB2PHY1.

Table 157. USBH port clocks

Functional blockClock signal nameClock directionRCC clock lineMax frequencyDescription
USBHehci_hclk_iInputck_icn_m_usbhehci300 MHzEHCI AHB clock
USBHohci_hclk_iInputck_icn_m_usbhohci300 MHzOHCI AHB clock
USBHohci_0_clk48_iInput-48 MHz48 MHz reference clock for EHCI controller

Table 157. USBH port clocks (continued)

Functional blockClock signal nameClock directionRCC clock lineMax frequencyDescription
USBHohci_0_clk12_iInput-12 MHz12 MHz reference clock for OHCI controller
USB2PHY1CLKCOREInputck_ker_usb2phy124 MHzOne of the possible sources of USB2PHY1 reference clock
USB2PHY1CLKCOREInput-19.2, 20 or 24 MHzClock from HSE oscillator: one of the possible sources of USB2PHY1 reference clock

Details of the USB2 Host-only high speed port clocking

The USB2PHY1 PHY receives its reference clock from the RCC or directly from the HSE oscillator (hse_div2_ck clock). This is controlled by the bit USB2PHY1CKREFSEL in RCC_USB2PHY1CFGR register. If the USB2PHY1 reference clock is received from the RCC, it can be sourced from the HSE or re-generated by one of the PLLs and dividers located in the RCC.

The frequency of the USB2PHY1 reference clock can be selected among 19.2, 20 or 24 MHz (50 MHz is reserved for test purpose). This selection is controlled by the USB2PHY1SEL[2:0] bit-field in SYSCFG_USB2PHY1CR register. These bits must be set to the desired value before USB2PHY1 reset is released.

The clocks provided by USB2PHY1 to the USB2 Host Controller are divisions of a 480 MHz clock that is generated by a PLL inside the PHY (this is a fixed frequency PLL which cannot be programmed).

The USB2PHY1 PLL can be powered down during Suspend and Sleep modes. This is controlled by the USB2PHY1CMN bit in SYSCFG_USB2PHY1CR register. If the OHCI controller is used (FS and LS mode of operation), the USB2PHY1 PLL clock must remain ON during Suspend and Sleep modes to be able to access the OHCI registers.

The clocks provided to the USB2 Host-only port are controlled by enable bits in RCC_USBHCFGR and RCC_USB2PHY1CFGR registers.

USB2 OTG high speed port

The USB2 OTG controller (OTG) receives an AHB clock from the RCC and a processing clock from USB2PHY2.

Table 158. USB2 OTG high speed clocks from RCC and oscillator

Functional blockClock signal nameClock directionRCC clock lineMax frequencyDescription
OTGhclkInputck_icn_m_uotg300 MHzAHB clock
OTGutmi_clkInput-60 MHzProcessing clock

Table 158. USB2 OTG high speed clocks from RCC and oscillator (continued)

Functional blockClock signal nameClock directionRCC clock lineMax frequencyDescription
USB2PHY2CLKCOREInputck_ker_usb2phy224 MHzOne of the possible sources of USB2PHY1 reference clock
USB2PHY2CLKCOREInput-19.2, 20 or 24 MHzClock from HSE oscillator: one of the possible sources of USB2PHY1 reference clock
USB2PHY2phyclock0Output-60 MHzUTMI 60 MHz clock (data bus width is 8-bit)

Details of the USB2 Dual Role high speed port clocking

The USB2PHY2 receives its reference clock from the RCC or directly from the HSE oscillator (hse_div2_ck clock). This is controlled by the bit USB2PHY2CKREFSEL in RCC_USB2PHY2CFGR register. If the USB2PHY2 reference clock is received from the RCC, it can be sourced from the HSE or re-generated by one of the PLLs and dividers located in the RCC.

The frequency of the USB2PHY2 reference clock can be selected among 19.2, 20 or 24 MHz (50 MHz is reserved for test purpose). This selection is controlled by the USB2PHY2FSEL[2:0] bit-field in SYSCFG_USB2PHY2CR register. These bits must be set to the desired value before USB2PHY2 reset is released.

The 60 MHz processing clock provided by USB2PHY2 to OTG is obtained by division of the 480 MHz clock which is generated by a PLL inside the PHY (this is a fixed frequency PLL which cannot be programmed).

The USB2PHY2 PLL can be powered down during USB Suspend and Sleep modes. This is controlled by the USB2PHY2CMN bit in SYSCFG_USB2PHY2CR register.

The clocks provided by the RCC are controlled by enable bits in RCC_OTGCFGR and RCC_USB2PHY2CFGR registers.

20.4.21 Security clocking

Security interface - Clocking schematic

Figure 119. Security clocking

Figure 119: Security clocking schematic diagram showing RCC, APB bridge, BSEC, BOOTROM, RNG2, HASH2, CRYP2, and CRYPTO block containing PKA, RNG1, SAES, HASH1, and CRYP1.

The diagram illustrates the security clocking architecture. The RCC block on the left contains various clock gating logic (CGL) and clock enable logic (CKEL) blocks along with AND gates that control security clock outputs. Inputs to the RCC include BSECEN, BSECLPEN, ck_icn_ls_mcu (150 MHz), system state, ck_rcbsec_osc (64 MHz), CPU1 state, D1 Dstandby, ck_icn_nic (400 MHz), RNG2EN, RNG2LPEN, HASH2EN, HASH2LPEN, CRYP2EN, CRYP2LPEN, ck_sec_en, crypto_all_ips_dis, tamp_erase_req, potential_tamper, PKAEN, PKALPEN, RNG1EN, RNG1LPEN, SAESEN, SAESLPEN, HASH1EN, HASH1LPEN, CRYP1EN, and CRYP1LPEN. The outputs feed into the APB bridge (generating pclks and pclkm for BSEC), BSEC (receiving clk_rc64_bsec_osc and outputting clk_xtal), BOOTROM (clocked by clk_icn_s_rom to produce aclk), RNG2 (receiving clk_ker_rng2, rng_clk_kernel_req, and clock gated hclk), HASH2, CRYP2, and the CRYPTO peripheral cluster which provides S_HCLK via clk_icn_sec and clock gating (CG) to internal submodules: PKA, RNG1 (with clk_ker_rng1), SAES (with dclk), HASH1, and CRYP1.

Figure 119: Security clocking schematic diagram showing RCC, APB bridge, BSEC, BOOTROM, RNG2, HASH2, CRYP2, and CRYPTO block containing PKA, RNG1, SAES, HASH1, and CRYP1.

MSv74171V1

Note: The peripheral clocks of the following cryptographic peripherals: PKA, RNG1, SAES, HASH1, CRYP1, must all be disabled before issuing a reset request to any of them.
The software should ensure that no cryptographic peripheral is busy (refer to the respective BUSY bit flag of each peripheral (PKA, RNG1, SAES, HASH1, CRYP1) before disabling the peripheral clock.

Table 159. Security clocks from RCC
Subsystem clock signal nameFunctional blockClock signal nameClock directionRCC clock lineMax frequencyDescription
ck_icn_s_cryptoCRYPTOclk_icn_secInputck_icn_sec150 MHzAHB clock
ck_icn_p_cryp2CRYP2Input
ck_icn_p_hash2HASH2Input
ck_icn_p_rng2RNG2Input
clk_rc64_rng2clk_ker_rng2Inputck_ker_rng264 MHzkernel clock
clk_rc64_rng1RNG1clk_ker_rng1Inputck_ker_rng164 MHzkernel clock
clk_icn_s_romBOOTROMaclkInputck_icn_s_bootrom400 MHzAXI clock
clk_icn_p_bsecBSECpclksInputck_icn_p_bsec150 MHzAPB slv clock
clk_rc64_bsec_oscpclkmInputck_rcbsec64 MHzAPB mst clock
clk_rc64_bsec_oscclk_xtalInputck_rcbsec64 MHzkernel clock

20.5 RCC interrupts

The RCC provides two independent interrupt interfaces, and interrupt lines for HSI and MSI frequency monitoring:

Each interrupt interface provides two interrupt lines:

All interrupt lines are active high and level triggered.

rcc_cpu1_it and rcc_cpu1_wkup_it interrupts are enabled in RCC_C1CIESETR.

rcc_cpu2_it and rcc_cpu2_wkup_it interrupts are enabled in RCC_C2CIESETR.

rcc_cpu1_it (or rcc_cpu2_it) line is activated when an event flag is set to 1, and its corresponding enable bit is set to 1. In order to release the rcc_cpu1_it (or rcc_cpu2_it) line, all the event flags which have been enabled must be cleared.

rcc_cpu1_wkup_it (or rcc_cpu2_wkup_it) line is activated when the RCC has to exit the CPU1 (or CPU2) from CStop, and if WKUPIE = 1. In order to release the rcc_cpu1_wkup_it (or rcc_cpu2_wkup_it) line, the CPU1 (or CPU2) must write 1 to WKUPF in the corresponding register.

The interrupt flags can be checked and cleared in RCC_C1CIFCLRR or RCC_C2CIFCLRR.

The event flags goes to 1 on rising edge of the corresponding ready bit (xxxRDY).

rcc_hsifmon_it interrupt line is used to provide an event to wake up the system when the HSI clock frequency deviates from its defined window while rcc_cpu1_hsifmon_it and rcc_cpu2_hsifmon_it interrupts are used to notify each related CPU.

rcc_hsifmon_it, rcc_cpu1_hsifmon_it, and rcc_cpu2_hsifmon_it interrupts are controlled via RCC_HSIFMONCR.

rcc_msifmon_it interrupt line is used to provide an event to wake up the system when the MSI clock frequency deviates from its defined window while rcc_cpu1_msifmon_it and rcc_cpu2_msifmon_it interrupts are used to notify each related CPU.

rcc_msifmon_it, rcc_cpu1_msifmon_it, and rcc_cpu2_msifmon_it interrupts are controlled via RCC_MSIFMONCR.

Figure 120. Interrupt block diagram

Figure 120. Interrupt block diagram
Figure 120. Interrupt block diagram

MSv73101V2

See Section 20.6.1 for information on CSS for LSE.

Note: The interrupt flags are relevant even if the corresponding interrupt enable bit is not set.

The table below summarizes the interrupt sources, and the way to control them.

Table 160. Interrupt sources and control

Interrupt event flagDescriptionInterrupt enableAction to clear the interrupt(1)Interrupt lines
LSIRDYFLSI readyLSIRDYIESet LSIRDYF to 1.rcc_cpu1_it, rcc_cpu2_it
LSERDYFLSE readyLSERDYIESet LSERDYF to 1.
HSIDRYFHSI readyHSIDRYIESet HSIRDYF to 1.
HSERDYFHSE readyHSERDYIESet HSERDYF to 1.
MSIRDYFMSI readyMSIRDYIESet MSIRDYF to 1.
PLL1RDYFPLL1 readyPLL1RDYIESet PLL1RDYF to 1.
PLL2RDYFPLL2 readyPLL2RDYIESet PLL2RDYF to 1.
PLL4RDYFPLL4 readyPLL4RDYIESet PLL4RDYF to 1.
PLL5RDYFPLL5 readyPLL5RDYIESet PLL5RDYF to 1.
PLL6RDYFPLL6 readyPLL6RDYIESet PLL6RDYF to 1.
PLL7RDYFPLL7 readyPLL7RDYIESet PLL7RDYF to 1.
PLL8RDYFPLL8 readyPLL8RDYIESet PLL8RDYF to 1.
LSECSSFLSE CSS failureLSECSSIE(2)Set LSECSSF to 1.
WKUPFWake-up from CStop eventWKUPIESet WKUPF to 1.rcc_cpu1_wkup_it,
rcc_cpu2_wkup_it
HSIMONFHSI frequency monitor flag(3)HSIMONIE(4)Set HSIMONF to 1.rcc_hsifmon_it,
rcc_cpu1_hsifmon_it,
rcc_cpu2_hsifmon_it
MSIMONFMSI frequency monitor flag(3)MSIMONIE(5)Set MSIMONF to 1.rcc_msifmon_it,
rcc_cpu1_msifmon_it,
rcc_cpu2_msifmon_it
  1. 1. In RCC_CxCIFCLRR registers.
  2. 2. The security system feature must also be enabled (LSECSSON = 1) in order to generate interrupts.
  3. 3. Refer to Section 20.6.3 for details.
  4. 4. In RCC_HSIMONCR register.
  5. 5. In RCC_MSIFMONCR register.

20.6 RCC application information

20.6.1 Clock frequency calculation

The flexclkgen engine offers the capability to calculate the frequency of any internal clock via an internal module called clock frequency calculator. For any clock frequency calculation (ckin), the clock frequency calculator requires a reference clock (ckref).

First step - Select the input clock as follows:

  1. 1. Set FCALCRSTN in RCC_FCALCOBS1CFGR to enable the clock frequency calculator.
  1. 2. Set CKINTSEL (or CKEXTSEL if FCALCCKEXTSEL = 1) in RCC_FCALCOBS0CFGR to select the clock frequency calculator input clock (ckin).
  2. 3. Set FCALCCKEN in RCC_FCALCOBS0CFGR to enable the selected input clock at the input of clock frequency calculator.

2nd step - Select the reference clock as follows:

  1. 1. Set FCALCREFCKSEL in RCC_FCALCREFCFGR to select the reference clock (ckref).

3rd step - Run the clock frequency calculation as follows:

  1. 1. Set FCALCTYP = 0x0C in RCC_FCALCCR2 to select the frequency value type.
  2. 2. Select the application mode with FCALCMD in RCC_FCALCCR2.
  3. 3. For optimal calculation, loop on the clock frequency time window value with FCALCTWC in RCC_FCALCCR2, from its biggest value (0xF) to its minimum value (0x1) as described below:
    1. a) Set FCALCTWC biggest value.
    2. b) Set FCALCRUN in RCC_FCALCCR1.
    3. c) Poll RCC_FCALCSR until the calculation is valid (FCALCSTS = 1 and FVAL[15:0] not equal to 0)
    4. d) Reset FCALCRUN in RCC_FCALCCR1.
    5. e) Check FVAL[16]. If FVAL[16] = 0, exit the loop (FVAL[15:0] is the optimal calculated value). Otherwise continue.
    6. f) Reset FCALCRSTN in RCC_FCALCOBS1CFGR.
    7. g) Poll RCC_FCALCSR until it is cleared.
    8. h) Set FCALCRSTN in RCC_FCALCOBS1CFGR before trying next FCALCTWC value.

Last step - Calculate \(F_{ckin}\) clock frequency as follows:

\[TWVAL = ((2^{(FCALCTWC+1)} + 5) \times CKREFPER)\]

with FCALCTWC > 0, and CKREFPER = reference clock period

\[F_{ckin} = \frac{1}{TWVAL / (FVAL - 16)}\]

with \(F_{ckin}\) = frequency input clock, TWVAL = clock frequency time window value, and FVAL[15:0] = decimal value

20.6.2 Clock calibration

Frequencies of most of clock source generators can be measured by means of the TIMx input capture, or the clock frequency calculator module.

Calibrating HSI or MSI with the LSE and TIMx

The primary purpose of having the LSE connected to a TIMx input capture is to be able to precisely measure the HSI or MSI. This requires to have the HSI or MSI used as interconnect clock source, via channel 0 the flexclkgen, either directly or via a PLL. The number of interconnect clock counts between consecutive edges of the LSE provides a calculation of the internal clock period. Taking advantage of the LSE crystal high precision (typically a few tens of ppm), the user can determine the internal clock frequency with the same resolution, and can trim the source to compensate for manufacturing-process, temperature, and/or voltage-related frequency deviations.

The basic concept consists in providing a relative calculation (HSI/LSE ratio): the precision is tightly linked to the ratio between the two clock sources. The greater the ratio is, the more accurate the calculation is.

The HSI and MSI have dedicated user-accessible calibration bits in RCC_HSICFGR and RCC_MSICFGR. When HSI or MSI are used via the PLLx, the interconnect clock can be fine-tuned using the calibration fractional divider.

Calibrating HSI or MSI with the clock frequency calculator

Refer to Section 20.6.1: Clock frequency calculation.

20.6.3 Clock monitoring

Monitoring HSI or MSI with LSE

The purpose is to assist the software calibration procedure when the HSI or MSI frequency drifts out of a predefined range because of environmental variation (such as temperature).

This monitoring can be enabled in all system modes except Standby and VBAT, when HSI or MSI is used. When enabled, the number of HSI/MSI kernel clock counts between consecutive edges of the LSE signal provides a calculation of the internal clock period which is checked according to a defined threshold. If the internal clock period is above this threshold, a CPU interrupt (rcc_cpu1_hsifmon_it/rcc_cpu1_msifmon_it or rcc_cpu2_hsifmon_it/rcc_cpu2_msifmon_it), or a wake-up event (rcc_hsifmon_it/rcc_msifmon_it) is triggered to allow the application to trim the HSI/MSI source accordingly.

HSI monitoring control is based on RCC_HSIFMONCR and RCC_HSIFVALR (respectively RCC_MSIFMONCR and RCC_MSIFVALR for MSI). The following steps can be used to enable HSI frequency monitoring (same procedure applies for MSI):

  1. 1. Enable LSE signal:
    1. a) Write 1 to DBP in PWR_BDCR.
    2. b) Write 1 to in LSEON in RCC_BDCR.
    3. c) Wait for LSERDY = 1 in RCC_BDCR.
    4. d) Write 0 to DBP in PWR_BDCR.
  2. 2. Setup HSI clock period monitoring:
    1. a) Write HSIREF in RCC_HSIFMONCR to define the reference period if the default value not suitable (default value = 64 MHz/32.767 kHz = 1953).
    2. b) Write HSIDEV in RCC_HSIFMONCR to define the threshold if the default value is not suitable (default value = 31, around 1.6% of the reference value).
    3. c) Write 1 to HSIMONIE in RCC_HSIFMONCR to enable interrupt for application.

The interrupt occurs when the below condition is met:

\[\text{HSIREF} + \text{HSIDEV} < \text{HSIVAL} < \text{HSIREF} - \text{HSIDEV}\]

Note: MSIREF default value is 488 and MSIDEV default value is 15

20.7 RCC RIF function

To be compliant with the product security definition, the RCC implements the following security/isolation requirements which apply to any defined security domain (see Section 5.4: Resource isolation framework (RIF)):

There are four possible profiles for any resource:

20.7.1 RCC RIF configuration

After any application reset or system reset, all RCC resources are accessible until the trusted domain master agent programs the RCC RIF configuration. This 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 configuration and it applies to the related RCC_PERxCFGR local resource. This external RIF configuration is used to filter any write access to the related RCC_PERxCFGR register.

The RIF peripheral configuration is driven to the RCC through perxrifcfg signals (with PERx as peripheral x).

Table 161 shows all RCC local resource content (first column) and the RIF configuration attached to it (third column).

Secure/non-secure access filtering

In AMBA5 AHB protocol, the secure/non-secure attribute is propagated via the HNONSEC signal. To enable the filtering access based on this attribute, the authorized master agent has to set SECx in RCC_SECCFGRx related to the RCC resource x.

Any register access with a not-allowed secure attribute is denied (RAZ, WI). An illegal secure access event is generated to the IAC (see Section 5.4: Resource isolation framework (RIF) for details). There is no bus error generated.

Privileged/unprivileged access filtering

In AMBA5 AHB protocol, the privileged/unprivileged attribute is propagated via the HPROT[1] signal. To enable the filtering access based on this attribute, the authorized master agent has to set PRIVx in RCC_PRIVCFGRx related to the RCC resource x.

Any register access with a not-allowed privileged attribute is denied (RAZ, WI). An illegal privileged access event is generated to the IAC (see Section 5.4: Resource isolation framework (RIF) for details). There is no bus error generated.

CID access filtering

In AMBA5 AHB protocol, the CID attribute is propagated via the HAUSER signals. RCC_RxCIDCFGR controls the CID filtering policy for each non-shareable local resources (without semaphore mechanism). RCC_RxCIDCFGR and RCC_RxSEMCR control the CID filtering policy for each local shareable resources (with semaphore mechanism).

When the compartment-based filtering is active (CFEN = 1):

A not-allowed CID access to a CID-filtered register is denied (RAZ/WI). An illegal CID access event is generated to the IAC (see Section 5.4: Resource isolation framework (RIF) for details). There is no bus error generated.

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

Note: The RIF configuration (secure and privileged attributes, CID filtering mode) of any RCC local resource can be locked via RCC_RCFGLOCKRx registers.

Figure 121. RCC RIF description

Block diagram of the RCC RIF description showing the RIF CTRL, RCC RIF filter, RCC resources, and their connections to RISUP registers via AHB.

The diagram illustrates the Reset and Clock Control (RCC) Reset Interrupt Filter (RIF) architecture. At the top, the RIF CTRL block is connected to the RCC RIF filter and RCC resources blocks. The RCC RIF filter contains registers for timers (tim1rifcfg, tim2rifcfg), I3C (i3c1rifcfg, i3c2rifcfg), and general RCC resources (rcc_r0 to rcc_r113). The RCC resources block contains configuration registers for timers (RCC_TIM1CFGR, RCC_TIM2CFGR), I3C (RCC_I3C1CFGR, RCC_I3C2CFGR), XBAR (RCC_XBAR0CFGR, RCC_XBAR1CFGR), PLL2 (RCC_PLL2CFGRx), FMCC (RCC_FMCCCFGR), and HSIFMON (RCC_HSIFMONCFGR). A ddrssrifcfg register is also shown. The AHB bus connects the filter and resources to external RISUP registers: RISUP_TIM1, RISUP_TIM2, RISUP_I3C1, RISUP_I3C2, RISUP_DDRCFG, RISUP_DDRC, and RISUP_DDRPHYC.

rcc_rx filter is based on following registers: RCC_SECCFGRy, RCC_PRIVCFGRy, RCC_RCFGLOCKRy, RCC_RxCIDCFGR, RCC_RxSEMCR

perxrifcfg is 6-bit signal, such as: perxrifcfg[5:4] = cid filter, perxrifcfg[3] = sec, perxrifcfg[2] = priv, perxrifcfg[1:0] = cid

MSv73102V1

Block diagram of the RCC RIF description showing the RIF CTRL, RCC RIF filter, RCC resources, and their connections to RISUP registers via AHB.

20.8 RCC registers

Some registers can be accessed by all bus masters. Some others can only be accessed by the trusted domain master (see Section 8: Resource isolation framework security controller (RIFSC) for details on register accesses).

Note: Any bus transaction initiated by the trusted domain master is secure and privileged.

Table 161 gives the RIF local resource allocation for all RCC registers:

For example, following steps are needed to set the RIF configuration of the RCC RIF resource number 64:

  1. 1. A trusted domain agent (with secure, privileged, and TDCID) must program RCC_R64CIDCFGR.
  2. 2. A secure agent can set the secure attribute (RCC_SECCFGR2[0] = 1).
  3. 3. A privileged agent can set the privileged attribute (RCC_PRIVCFGR2[0] = 1).
  4. 4. A secure and privileged agent can lock the RIF configuration (RCC_RCFGLOCKR2[0] = 1).

Table 161. RCC register allocation to RIF resource and access conditions

Register nameRCC RIF resource numberRIF resource configurationAccess type(1)Description
RCC_R0CIDCFGR0Secure, privileged and TDCID/DDCIDRWResource 0 CID filtering control
RCC_R0SEMCRRCC_SECCFGR0[0]
RCC_PRIVCFGR0[0]
RCC_RCFGLOCKR0[0]
RCC_R0CIDCFGR
RCC_R0SEMCR
RCC_XBAR0CFGRFlexclkgen xbar channel 0
RCC_PREDIV0CFGRFlexclkgen prediv channel 0
RCC_FINDIV0CFGRFlexclkgen findiv channel 0
RCC_R1CIDCFGR1Secure, Privileged and TDCID/DDCIDResource 1 CID filtering control
RCC_R1SEMCRRCC_SECCFGR0[1]
RCC_PRIVCFGR0[1]
RCC_RCFGLOCKR0[1]
RCC_R1CIDCFGR
RCC_R1SEMCR
RCC_XBAR1CFGRFlexclkgen xbar channel 1
RCC_PREDIV1CFGRFlexclkgen prediv channel 1
RCC_FINDIV1CFGRFlexclkgen findiv channel 1
...

Table 161. RCC register allocation to RIF resource and access conditions (continued)

Register nameRCC RIF resource numberRIF resource configurationAccess type(1)Description
RCC_R63CIDCFGR63Secure, privileged and TDCID/DDCIDRWResource 63 CID filtering control
RCC_R63SEMCRRCC_SECCFGR1[31]
RCC_PRIVCFGR1[31]
RCC_RCFGLOCKR1[31]
RCC_R63CIDCFGR
RCC_R63SEMCR
Flexclkgen xbar channel 63
RCC_XBAR63CFGRFlexclkgen prediv channel 63
RCC_PREDIV63CFGRFlexclkgen findiv channel 63
RCC_FINDIV63CFGR
RCC_R64CIDCFGR64Secure, privileged and TDCID/DDCIDResource 64 CID filtering control
RCC_R64SEMCRRCC_SECCFGR2[0]
RCC_PRIVCFGR2[0]
RCC_RCFGLOCKR2[0]
RCC_R64CIDCFGR
RCC_R64SEMCR
Flexclkgen reference selection
RCC_MUXSELCFGRFlexclkgen PLL4 config (x = 1 to 7)
RCC_PLL4CFGRxFlexclkgen PLL5 config (x = 1 to 7)
RCC_PLL5CFGRxFlexclkgen PLL6 config (x = 1 to 7)
RCC_PLL6CFGRxFlexclkgen PLL7 config (x = 1 to 7)
RCC_PLL7CFGRxFlexclkgen PLL8 config (x = 1 to 7)
RCC_PLL8CFGRx
RCC_R65CIDCFGR65Secure, privileged, and TDCID/DDCIDResource 65 CID filtering control
RCC_R65SEMCRRCC_SECCFGR2[1]
RCC_PRIVCFGR2[1]
RCC_RCFGLOCKR2[1]
RCC_R65CIDCFGR
RCC_R65SEMCR
Clock frequency calculator and observation 0 clock control
RCC_FCALCOBS0CFGRClock frequency calculator and observation 1 clock control
RCC_FCALCOBS1CFGRClock frequency calculator reference clock configuration
RCC_FCALCREFCFGRClock frequency calculator control 1
RCC_FCALCCR1Clock frequency calculator control 2
RCC_FCALCCR2
RCC_R66CIDCFGR66Secure, privileged and TDCID/DDCIDResource 66 CID filtering control
RCC_R66SEMCRRCC_SECCFGR2[2]
RCC_PRIVCFGR2[2]
RCC_RCFGLOCKR2[2]
RCC_R66CIDCFGR
RCC_R66SEMCR
SRSystem reset set
RCC_GRSTCSETRCPU1 reset set
RCC_C1RSTCSETRCPU2 reset set
RCC_C2RSTCSETRCWHardware reset status cleared
RCC_HWRSTSCCLR

Table 161. RCC register allocation to RIF resource and access conditions (continued)

Register nameRCC RIF resource numberRIF resource configurationAccess type(1)Description
RCC_R67CIDCFGR67Secure, privileged and TDCID/DDCIDRWResource 67 CID filtering control
RCC_R67SEMCRRCC_SECCFGR2[3]
RCC_PRIVCFGR2[3]
RCC_RCFGLOCKR2[3]
RCC_R67CIDCFGR
RCC_R67SEMCR
CPU's boot control
RCC_CPUBOOTCRSystem Standby exit control
RCC_STBYBOOTCRLegacy boot control
RCC_LEGBOOTCRSystem Standby exit tempo control
RCC_PWRLPDLYCRSecure, privileged and TDCID/DDCIDResource 68 CID filtering control
RCC_R68CIDCFGR68Application reset duration control
RCC_R68SEMCRRCC_SECCFGR2[4]
RCC_PRIVCFGR2[4]
RCC_RCFGLOCKR2[4]
RCC_R68CIDCFGR
RCC_R68SEMCR
RCC_RDCRResource 69 CID filtering control
RCC_R69CIDCFGR69Secure, privileged and TDCID/DDCIDOscillator control set
RCC_R69SEMCRRCC_SECCFGR2[5]
RCC_PRIVCFGR2[5]
RCC_RCFGLOCKR2[5]
RCC_R69CIDCFGR
RCC_R69SEMCR
Oscillator control clear
RCC_OCENSETRHSI oscillator configuration
RCC_OCENCLRRMSI oscillator configuration
RCC_HSICFGRVSW domain control
RCC_MSICFGRLSI oscillator control
RCC_BDCRRTC clock divider control
RCC_LSICRAPB1 clock divider control
RCC_RTCDIVRAPB2 clock divider control
RCC_APB1DIVRAPB3 clock divider control
RCC_APB2DIVRAPB4 clock divider control
RCC_APB3DIVRAPB5 clock divider control
RCC_APB4DIVRAPBDBG clock divider control
RCC_APB5DIVRTimer group1 prescaler control
RCC_APBDBGDIVRTimer group2 prescaler control
RCC_TIMG1PRERLow-speed MCU clock divider control
RCC_TIMG2PRER
RCC_LSMCUDIVR
Table 161. RCC register allocation to RIF resource and access conditions (continued)
Register nameRCC RIF resource numberRIF resource configurationAccess type(1)Description
RCC_R70CIDCFGR70Secure, privileged and TDCID/DDCIDRWResource 70 CID filtering control
RCC_R70SEMCRRCC_SECCFGR2[6]
RCC_PRIVCFGR2[6]
RCC_RCFGLOCKR2[6]
RCC_R70CIDCFGR
RCC_R70SEMCR
RCC_C1SREQSETRSRCPU1 low-power mode control
RCC_C1SREQCLRRCW
RCC_C1CIESETRSRCPU1 interrupt enable
RCC_C1CIFCLRRCWCPU1 interrupt status
RCC_IWDGC1FZSETRSRCPU1 IWDG freeze set
RCC_IWDGC1FZCLRRCRCPU1 IWDG freeze clear
RCC_IWDGC1CFGSETRSRCPU1 IWDG configuration set
RCC_IWDGC1CFGCLRRCRCPU1 IWDG configuration cleared
RCC_C1MSRDCRRWNRSTC1MS reset delay control
RCC_C1BOOTRSTSSETRSRCPU1 boot reset status set
RCC_C1BOOTRSTSCLRRCWCPU1 boot reset status cleared
RCC_C1HWRSTSCLRRCPU1 hardware reset status cleared
RCC_R71CIDCFGR71Secure, privileged and TDCID/DDCIDRWResource 71 CID filtering control
RCC_R71SEMCRRCC_SECCFGR2[7]
RCC_PRIVCFGR2[7]
RCC_RCFGLOCKR2[7]
RCC_R71CIDCFGR
RCC_R71SEMCR
RCC_C2CIESETRSRCPU2 interrupt enable
RCC_C2CIFCLRRCWCPU2 interrupt status
RCC_IWDGC2FZSETRSRCPU2 IWDG freeze set
RCC_IWDGC2FZCLRRCRCPU2 IWDG freeze clear
RCC_IWDGC2CFGSETRSRCPU2 IWDG configuration set
RCC_IWDGC2CFGCLRRCRCPU2 IWDG configuration cleared
RCC_C2BOOTRSTSSETRSRCPU2 boot reset status set
RCC_C2BOOTRSTSCLRRCWCPU2 boot reset status cleared
RCC_C2HWRSTSCLRRCPU2 hardware reset status cleared
Reserved72--

Table 161. RCC register allocation to RIF resource and access conditions (continued)

Register nameRCC RIF resource numberRIF resource configurationAccess type(1)Description
RCC_R73CIDCFGR73Secure, privileged and TDCID/DDCIDRWResource 73 CID filtering control
RCC_R73SEMCRRCC_SECCFGR2[9]
RCC_PRIVCFGR2[9]
RCC_RCFGLOCKR2[9]
RCC_R73CIDCFGR
RCC_R73SEMCR
Debug control
RCC_DBGCFGRSTM control
RCC_STMCFGRETR control
RCC_ETRCFGR
RCC_R74CIDCFGR74Secure, privileged and TDCID/DDCIDResource 74 CID filtering control
RCC_R74SEMCRRCC_SECCFGR2[10]
RCC_PRIVCFGR2[10]
RCC_RCFGLOCKR2[10]
RCC_R74CIDCFGR
RCC_R74SEMCR
SYSRAM clock control
RCC_SYSRAMCFGR
Reserved75---
RCC_R76CIDCFGR76Secure, privileged and TDCID/DDCIDRWResource 76 CID filtering control
RCC_R76SEMCRRCC_SECCFGR2[12]
RCC_PRIVCFGR2[12]
RCC_RCFGLOCKR2[12]
RCC_R76CIDCFGR
RCC_R76SEMCR
Retention RAM clock control
RCC_RETRAMCFGR
RCC_R77CIDCFGR77Secure, privileged and TDCID/DDCIDResource 77 CID filtering control
RCC_R77SEMCRRCC_SECCFGR2[13]
RCC_PRIVCFGR2[13]
RCC_RCFGLOCKR2[13]
RCC_R77CIDCFGR
RCC_R77SEMCR
Backup SRAM clock control
RCC_BKPSRAMCFGR
RCC_R78CIDCFGR78Secure, privileged and TDCID/DDCIDResource 78 CID filtering control
RCC_R78SEMCRRCC_SECCFGR2[14]
RCC_PRIVCFGR2[14]
RCC_RCFGLOCKR2[14]
RCC_R78CIDCFGR
RCC_R78SEMCR
SRAM1 clock control
RCC_SRAM1CFGR
Reserved79---
Reserved80---
Reserved81---
Reserved82---

Table 161. RCC register allocation to RIF resource and access conditions (continued)

Register nameRCC RIF resource numberRIF resource configurationAccess type(1)Description
RCC_R83CIDCFGR83Secure, privileged and TDCID/DDCIDRWResource 83 CID filtering control
RCC_R83SEMCRRCC_SECCFGR2[19]
RCC_PRIVCFGR2[19]
RCC_RCFGLOCKR2[19]
RCC_R83CIDCFGR
RCC_R83SEMCR
HPDMA1 clock control
RCC_HPDMA1CFGR
RCC_R84CIDCFGR84Secure, privileged and TDCID/DDCIDResource 84 CID filtering control
RCC_R84SEMCRRCC_SECCFGR2[20]
RCC_PRIVCFGR2[20]
RCC_RCFGLOCKR2[20]
RCC_R84CIDCFGR
RCC_R84SEMCR
HPDMA2 clock control
RCC_HPDMA2CFGR
RCC_R85CIDCFGR85Secure, privileged and TDCID/DDCIDResource 85 CID filtering control
RCC_R85SEMCRRCC_SECCFGR2[21]
RCC_PRIVCFGR2[21]
RCC_RCFGLOCKR2[21]
RCC_R85CIDCFGR
RCC_R85SEMCR
HPDMA3 clock control
RCC_HPDMA3CFGR
RCC_R87CIDCFGR87Secure, privileged and TDCID/DDCIDResource 87 CID filtering control
RCC_R87SEMCRRCC_SECCFGR2[23]
RCC_PRIVCFGR2[23]
RCC_RCFGLOCKR2[23]
RCC_R87CIDCFGR
RCC_R87SEMCR
IPCC1 clock control
RCC_IPCC1CFGR
RCC_R88CIDCFGR88Secure, privileged and TDCID/DDCIDResource 88 CID filtering control
RCC_R88SEMCRRCC_SECCFGR2[24]
RCC_PRIVCFGR2[24]
RCC_RCFGLOCKR2[24]
RCC_R88CIDCFGR
RCC_R88SEMCR
MSI clock period monitor control
RCC_MSIFMONCR
Reserved89---

Table 161. RCC register allocation to RIF resource and access conditions (continued)

Register nameRCC RIF resource numberRIF resource configurationAccess type(1)Description
RCC_R90CIDCFGR90Secure, privileged and TDCID/DDCIDRWResource 90 CID filtering control
RCC_R90SEMCRRCC_SECCFGR2[26]
RCC_PRIVCFGR2[26]
RCC_RCFGLOCKR2[26]
RCC_R90CIDCFGR
RCC_R90SEMCR
GPIOA clock control
RCC_GPIOACFGR
RCC_R91CIDCFGR91Secure, privileged and TDCID/DDCIDResource 91 CID filtering control
RCC_R91SEMCRRCC_SECCFGR2[27]
RCC_PRIVCFGR2[27]
RCC_RCFGLOCKR2[27]
RCC_R91CIDCFGR
RCC_R91SEMCR
GPIOB clock control
RCC_GPIOBCFGR
RCC_R92CIDCFGR92Secure, privileged and TDCID/DDCIDResource 92 CID filtering control
RCC_R92SEMCRRCC_SECCFGR2[28]
RCC_PRIVCFGR2[28]
RCC_RCFGLOCKR2[28]
RCC_R92CIDCFGR
RCC_R92SEMCR
GPIOC clock control
RCC_GPIOCCFGR
RCC_R93CIDCFGR93Secure, privileged and TDCID/DDCIDResource 93 CID filtering control
RCC_R93SEMCRRCC_SECCFGR2[29]
RCC_PRIVCFGR2[29]
RCC_RCFGLOCKR2[29]
RCC_R93CIDCFGR
RCC_R93SEMCR
GPIOD clock control
RCC_GPIODCFGR
RCC_R94CIDCFGR94Secure, privileged and TDCID/DDCIDResource 94 CID filtering control
RCC_R94SEMCRRCC_SECCFGR2[30]
RCC_PRIVCFGR2[30]
RCC_RCFGLOCKR2[30]
RCC_R94CIDCFGR
RCC_R94SEMCR
GPIOE clock control
RCC_GPIOECFGR
RCC_R95CIDCFGR95Secure, privileged and TDCID/DDCIDResource 95 CID filtering control
RCC_R95SEMCRRCC_SECCFGR2[31]
RCC_PRIVCFGR2[31]
RCC_RCFGLOCKR2[31]
RCC_R95CIDCFGR
RCC_R95SEMCR
GPIOF clock control
RCC_GPIOFCFGR

Table 161. RCC register allocation to RIF resource and access conditions (continued)

Register nameRCC RIF resource numberRIF resource configurationAccess type(1)Description
RCC_R96CIDCFGR96Secure, privileged and TDCID/DDCIDRWResource 96 CID filtering control
RCC_R96SEMCRRCC_SECCFGR3[0]
RCC_PRIVCFGR3[0]
RCC_RCFGLOCKR3[0]
RCC_R96CIDCFGR
RCC_R96SEMCR
GPIOG clock control
RCC_GPIOGCFGR
RCC_R97CIDCFGR97Secure, privileged and TDCID/DDCIDResource 97 CID filtering control
RCC_R97SEMCRRCC_SECCFGR3[1]
RCC_PRIVCFGR3[1]
RCC_RCFGLOCKR3[1]
RCC_R97CIDCFGR
RCC_R97SEMCR
GPIOH clock control
RCC_GPIOHCFGR
RCC_R98CIDCFGR98Secure, privileged and TDCID/DDCIDResource 98 CID filtering control
RCC_R98SEMCRRCC_SECCFGR3[2]
RCC_PRIVCFGR3[2]
RCC_RCFGLOCKR3[2]
RCC_R98CIDCFGR
RCC_R98SEMCR
GPIOI clock control
RCC_GPIOICFGR
Reserved99---
Reserved100---
RCC_R101CIDCFGR101Secure, privileged and TDCID/DDCIDRWResource 101 CID filtering control
RCC_R101SEMCRRCC_SECCFGR3[5]
RCC_PRIVCFGR3[5]
RCC_RCFGLOCKR3[5]
RCC_R101CIDCFGR
RCC_R101SEMCR
GPIOZ clock control
RCC_GPIOZCFGR
RCC_R102CIDCFGR102Secure, privileged and TDCID/DDCIDResource 102 CID filtering control
RCC_R102SEMCRRCC_SECCFGR3[6]
RCC_PRIVCFGR3[6]
RCC_RCFGLOCKR3[6]
RCC_R102CIDCFGR
RCC_R102SEMCR
RTC clock control
RCC_RTCCFGR
RCC_R103CIDCFGR103Secure, privileged and TDCID/DDCIDResource 103 CID filtering control
RCC_R103SEMCRRCC_SECCFGR3[7]
RCC_PRIVCFGR3[7]
RCC_RCFGLOCKR3[7]
RCC_R103CIDCFGR
RCC_R103SEMCR
BSEC clock control
RCC_BSECCFGR

Table 161. RCC register allocation to RIF resource and access conditions (continued)

Register nameRCC RIF resource numberRIF resource configurationAccess type(1)Description
RCC_R104CIDCFGR104(2)Secure, privileged and TDCID/DDCIDRWResource 104 CID filtering control
RCC_R104SEMCRRCC_SECCFGR3[8]
RCC_PRIVCFGR3[8]
RCC_RCFGLOCKR3[8]
RCC_R104CIDCFGR
RCC_R104SEMCR
DDR PLL2 control (x=1 to 7)
RCC_PLL2CFGRxDDR controller AXI ports clock control
RCC_DDRCPFCFGRDDR controller APB clock control
RCC_DDRCAPBCFGRDDR PHY APB clock control
RCC_DDRPHYCAPBCFGRDDR interface configuration
RCC_DDRITFCFGRDDRPHY controller configuration
RCC_DDRPHYCCFGRDDR configuration
RCC_DDRCFGR
Reserved105---
RCC_R106CIDCFGR106Secure, privileged and TDCID/DDCIDRWResource 106 CID filtering control
RCC_R106SEMCRRCC_SECCFGR3[10]
RCC_PRIVCFGR3[10]
RCC_RCFGLOCKR3[10]
RCC_R106CIDCFGR
RCC_R106SEMCR
SYSCPU1 clock control
RCC_SYSCPU1CFGR
Reserved107---
RCC_R108CIDCFGR108Secure, privileged and TDCID/DDCIDRWResource 108 CID filtering control
RCC_R108SEMCRRCC_SECCFGR3[12]
RCC_PRIVCFGR3[12]
RCC_RCFGLOCKR3[12]
RCC_R108CIDCFGR
RCC_R108SEMCR
MCO1 clock configuration control
RCC_MCO1CFGR
RCC_R109CIDCFGR109Secure, privileged and TDCID/DDCIDResource 109 CID filtering control
RCC_R109SEMCRRCC_SECCFGR3[13]
RCC_PRIVCFGR3[13]
RCC_RCFGLOCKR3[13]
RCC_R109CIDCFGR
RCC_R109SEMCR
MCO2 clock configuration control
RCC_MCO2CFGR
RCC_R110CIDCFGR110Secure, privileged and TDCID/DDCIDResource 110 CID filtering control
RCC_R110SEMCRRCC_SECCFGR3[14]
RCC_PRIVCFGR3[14]
RCC_RCFGLOCKR3[14]
RCC_R110CIDCFGR
RCC_R110SEMCR
OCTOSPI1 clock configuration control
RCC_OSPI1CFGR

Table 161. RCC register allocation to RIF resource and access conditions (continued)

Register nameRCC RIF resource numberRIF resource configurationAccess type(1)Description
Reserved111---
RCC_R112CIDCFGR112Secure, privileged and TDCID/DDCIDRWResource 112 CID filtering control
RCC_R112SEMCRRCC_SECCFGR3[16]
RCC_PRIVCFGR3[16]
RCC_RCFGLOCKR3[16]
FMC clock configuration control
RCC_FMCCFGRRCC_R112CIDCFGR
RCC_R112SEMCR
RCC_R113CIDCFGR113Secure, privileged and TDCID/DDCIDResource 113 CID filtering control
RCC_R113SEMCRRCC_SECCFGR3[17]
RCC_PRIVCFGR3[17]
RCC_RCFGLOCKR3[17]
HSI clock period monitor control
RCC_HSIFMONCRRCC_R113CIDCFGR
RCC_R113SEMCR
Reserved114 to 127---
RCC_PREDIVSR1NANARFlexclkgen pre divider status flag
RCC_PREDIVSR2Flexclkgen final divider status flag
RCC_FINDIVSR1Oscillator status clear
RCC_FINDIVSR2HSI clock cycle count
RCC_OCRDYRMSI clock cycle count
RCC_HSIFVALRClock frequency calculator status
RCC_MSIFVALR-
RCC_FCALCSR-
RCC_VERR-
RCC_IDR-
RCC_SIDR-
  1. 1. RW = read or write, SR = set or read (noted RWS1 in the register description), CR = clear or read (noted rwc1 in the register description), R = read, and W = write.
  2. 2. DDR RIF configuration (resource number 104) is exported to the DDR subsystem to filter any DDR programming ports.

All RCC registers can be accessed in word, half-word and byte format, unless explicitly specified differently. All RCC registers are reset by the sys_rstn signal, unless explicitly specified differently.

Note: The burst access mode is not supported; and any opcode fetch transfer generates a bus error.

20.8.1 RCC secure configuration register 0 (RCC_SECCFGR0)

Address offset: 0x000

Reset value: 0x0000 0000

This register is used to set the secure attribute that filters any write access to the RCC local resource number 0 to 31 (see Table 161 for RCC local resource mapping). Non-secure or unprivileged writes to this register are ignored, and illegal access related events are generated. Any read is allowed.

31302928272625242322212019181716
SEC[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SEC[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SEC[31:0]: Secure attribute reference for local resource number x (x = 31 to 0)

If compartment filtering for local resource number x is enabled (resp. disabled) using CFEN in RCC_RxCIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if access privilege and security are sufficient. Writes are ignored if RLOCKx = 1 in RCC_RCFGLOCKR0.

Authorized compartment is defined as SCID if SEM_EN = 0 in RCC_RxCIDCFGR.

If SEM_EN = 1, it is equal to SEMCID if SEM_MUTEX = 1 in RCC_RxSEMCRCR. There is no authorized compartment if SEM_EN = 1 and SEM_MUTEX = 0.

0: Secure and non-secure data accesses are granted to local resource number x.

1: Only secure data access is granted to local resource number x.

20.8.2 RCC secure configuration register 1 (RCC_SECCFGR1)

Address offset: 0x004

Reset value: 0x0000 0000

This register is used to set the secure attribute value used to filter any write access to the RCC local resources number 32 to 63 (see Table 161 for RCC local resource mapping). Non-secure or unprivileged writes to this register are ignored, and illegal access related events are generated. Any read is allowed.

31302928272625242322212019181716
SEC[63:48]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SEC[47:32]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SEC[63:32]: Secure attribute reference for the local resource number x (x = 32 to 63)

If compartment filtering for local resource number x is enabled (resp. disabled) using CFEN in RCC_RxCIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if access privilege and security are sufficient. Writes are ignored if RLOCK(x - 32) = 1 in RCC_RCFGLOCKR1.

Authorized compartment is defined as SCID if SEM_EN = 0 in RCC_RxCIDCFGR.

If SEM_EN = 1, it is equal to SEMCID if SEM_MUTEX = 1 in RCC_RxSEMCR. There is no authorized compartment if SEM_EN = 1 and SEM_MUTEX = 0.

0: Secure and non-secure data accesses are granted to local resource number x

1: Only secure data access is granted to local resource number x

20.8.3 RCC secure configuration register 2 (RCC_SECCFGR2)

Address offset: 0x008

Reset value: 0x0000 0000

This register is used to set the secure attribute value used to filter any write access to the RCC local resources number 64 to 95 (see Table 161 for RCC local resource mapping). Non-secure or unprivileged writes to this register are ignored, and illegal access related events are generated. Any read is allowed.

31302928272625242322212019181716
SEC95SEC94SEC93SEC92SEC91SEC90Res.SEC88SEC87SEC86SEC85SEC84SEC83Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SEC79SEC78SEC77SEC76SEC75SEC74SEC73Res.SEC71SEC70SEC69SEC68SEC67SEC66SEC65SEC64
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 25, 18:16, 8 Reserved, must be kept at reset value.

Bits 31:26, 24:19, SECx: Secure attribute reference for the local resource number x (x = 95 to 90, 88 to 83, 79 to 73, 71 to 64)

If compartment filtering for local resource number x is enabled (resp. disabled) using CFEN in RCC_RxCIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if access privilege and security are sufficient. Writes are ignored if RLOCK(x - 64) = 1 in RCC_RCFGLOCKR2.

Authorized compartment is defined as SCID if SEM_EN = 0 in RCC_RxCIDCFGR.

If SEM_EN = 1 it is equal to SEMCID if SEM_MUTEX = 1 in RCC_RxSEMCR. There is no authorized compartment if SEM_EN = 1 and SEM_MUTEX = 0.

0: Secure and non-secure data accesses are granted to local resource number x

1: Only secure data access is granted to local resource number x

20.8.4 RCC secure configuration register 3 (RCC_SECCFGR3)

Address offset: 0x00C

Reset value: 0x0000 0000

This register is used to set the secure attribute value used to filter any write access to the RCC local resources number 96 to 113 (see Table 161 for RCC local resource

mapping). Non-secure or unprivileged writes to this register are ignored, and illegal access related events are generated. Any read is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SEC 113SEC 112
rwrw
1514131211109876543210
SEC 111SEC 110SEC 109SEC 108Res.SEC 106SEC 105SEC 104SEC 103SEC 102SEC 101Res.Res.SEC 98SEC 97SEC 96
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 17:12, 10:5, SECx: Secure attribute reference for the local resource number x (x = 113 to 108, 106 to 101, 2:0 98 to 96)

If compartment filtering for local resource number x is enabled (resp. disabled) using CFEN in RCC_RxCIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if access privilege and security are sufficient. Writes are ignored if RLOCK(x - 96) = 1 in RCC_RCFGLOCKR3.

Authorized compartment is defined as SCID if SEM_EN = 0 in RCC_RxCIDCFGR.

If SEM_EN = 1, it is equal to SEMCID if SEM_MUTEX = 1 in RCC_RxSEMCRCR. There is no authorized compartment if SEM_EN = 1 and SEM_MUTEX = 0.

0: Non-secure write access is allowed.

1: Secure write access is allowed.

20.8.5 RCC privileged configuration register 0 (RCC_PRIVCFGR0)

Address offset: 0x010

Reset value: 0x0000 0000

This register is used to set the privileged attribute value used to filter any write access to the RCC local resource number 0 to 31 (see Table 161 for RCC local resource mapping). Unprivileged writes to this register are ignored, and illegal access event is generated. Any read is allowed.

31302928272625242322212019181716
PRIV[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PRIV[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PRIV[31:0]: Privileged attribute reference for local resource number x (x = 31 to 0)

If corresponding SECx is set in RCC_SECCFGR0, each bit can only be written by a secure privileged application.

If compartment filtering for local resource number x is enabled (resp. disabled) using CFEN in RCC_RxCIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if access privilege and security are sufficient. Writes are ignored if RLOCKx = 1 in RCC_RCFGLOCKR0.

Authorized compartment is defined as SCID if SEM_EN = 0 in RCC_RxCIDCFGR.
If SEM_EN = 1, it is equal to SEMCID if SEM_MUTEX = 1 in RCC_RxSEMC. There is no authorized compartment if SEM_EN = 1 and SEM_MUTEX = 0.

0: Privileged and unprivileged data accesses are granted to local resource number x.
1: Only privileged data access is granted to local resource number x.

20.8.6 RCC privileged configuration register 1 (RCC_PRIVCFGR1)

Address offset: 0x014

Reset value: 0x0000 0000

This register is used to set the privileged attribute value used to filter any write access to the RCC local resources number 32 to 63 (see Table 161 for RCC local resource mapping). Unprivileged writes to this register are ignored, and illegal access event is generated. Any read is allowed.

31302928272625242322212019181716
PRIV[63:48]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PRIV[47:32]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PRIV[63:32]: Privileged attribute reference for the local resource number x (x = 63 to 32)

If corresponding SEC(x - 32) is set in RCC_SECCFGR1, this bit can only be written by a secure privileged application.

If compartment filtering for local resource number x is enabled (resp. disabled) using CFEN in RCC_RxCIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if access privilege and security are sufficient. Writes are ignored if RLOCK(x - 32) = 1 in RCC_RCFGLOCKR1.

Authorized compartment is defined as SCID if SEM_EN = 0 in RCC_RxCIDCFGR.
If SEM_EN = 1, it is equal to SEMCID if SEM_MUTEX = 1 in RCC_RxSEMC. There is no authorized compartment if SEM_EN = 1 and SEM_MUTEX = 0.

0: Privileged and unprivileged data accesses are granted to local resource number x.
1: Only privileged data access is granted to local resource number x.

20.8.7 RCC privileged configuration register 2 (RCC_PRIVCFGR2)

Address offset: 0x018

Reset value: 0x0000 0000

This register is used to set the privileged attribute value used to filter any write access to the RCC local resources number 64 to 95 (see Table 161 for RCC local resource mapping).

ST logo
ST logo

Unprivileged writes to this register are ignored, and illegal access event is generated. Any read is allowed.

31302928272625242322212019181716
PRIV95PRIV94PRIV93PRIV92PRIV91PRIV90Res.PRIV88PRIV87PRIV86PRIV85PRIV84PRIV83Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PRIV79PRIV78PRIV77PRIV76PRIV75PRIV74PRIV73Res.PRIV71PRIV70PRIV69PRIV68PRIV67PRIV66PRIV65PRIV64
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 25, 18:16, 8 Reserved, must be kept at reset value.

Bits 31:26, 24:19, PRIVx: Privileged attribute reference for the local resource number x (x = 95 to 90, 88 to 83, 79 15:9, 7:0 to 73, 71 to 64)

If corresponding SEC(x - 64) is set in RCC_SECCFGR2, each bit can only be written by a secure privileged application.

If compartment filtering for local resource number x is enabled (resp. disabled) using CFEN in RCC_RxCIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if access privilege and security are sufficient. Writes are ignored if RLOCK(x - 64) = 1 in RCC_RCFGLOCKR2.

Authorized compartment is defined as SCID if SEM_EN = 0 in RCC_RxCIDCFGR.

If SEM_EN = 1, it is equal to SEMCID if SEM_Mutex = 1 in RCC_RxSEMC. There is no authorized compartment if SEM_EN = 1 and SEM_Mutex = 0.

0: Privileged and unprivileged data accesses are granted to local resource number x.

1: Only privileged data access is granted to local resource number x.

20.8.8 RCC privileged configuration register 3 (RCC_PRIVCFGR3)

Address offset: 0x01C

Reset value: 0x0000 0000

This register is used to set the privileged attribute value used to filter any write access to the RCC local resources number 96 to 113 (see Table 161 for RCC local resource mapping). Unprivileged writes to this register are ignored, and illegal access event is generated. Any read is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRIV 113PRIV 112
rwrw
1514131211109876543210
PRIV 111PRIV 110PRIV 109PRIV 108Res.PRIV 106PRIV 105PRIV 104PRIV 103PRIV 102PRIV 101Res.Res.PRIV 98PRIV 97PRIV 96
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 17:12, 10:5, PRIVx: Secure attribute reference for the local resource number x (x = 113 to 108, 106 to 101, 2:0 98 to 96)

If corresponding SEC(x - 96) is set in RCC_SECCFGR3, each bit can only be written by a secure privileged application.

If compartment filtering for local resource number x is enabled (resp. disabled) using CFEN in RCC_RxCIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if access privilege and security are sufficient. Writes are ignored if RLOCK(x - 96) = 1 in RCC_RCFGLOCKR3.

Authorized compartment is defined as SCID if SEM_EN = 0 in RCC_RxCIDCFGR.

If SEM_EN = 1, it is equal to SEMCID if SEM_MUTEX = 1 in RCC_RxSEMCRCR. There is no authorized compartment if SEM_EN = 1 and SEM_MUTEX = 0.

0: Privileged and unprivileged data accesses are granted to local resource number x.

1: Only privileged data access is granted to local resource number x.

20.8.9 RCC resource configuration lock register 0 (RCC_RCFGLOCKR0)

Address offset: 0x020

Reset value: 0x0000 0000

Secure privileged write access only. Write only by trusted domain. Debug domain can write this register if the feature is activated. Otherwise, illegal access events are generated. Any read access is allowed.

31302928272625242322212019181716
RLOCK[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RLOCK[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 RLOCK[31:0]: RCC local resource number x lock (x = 31 to 0)

Each bit is set to lock the RCC local resource x. It is cleared by default, and once set. It cannot be reset until the RCC is reset.

0: SECx in RCC_SECCFGR0 and PRIVx in RCC_PRIVCFGR0 are writable.
RCC_RxCIDCFGR is writable.

1: Writes to SECx in RCC_SECCFGR0 and PRIVx in RCC_PRIVCFGR0 are ignored.
Writes to RCC_RxCIDCFGR are ignored.

20.8.10 RCC resource configuration lock register 1 (RCC_RCFGLOCKR1)

Address offset: 0x024

Reset value: 0x0000 0000

Secure privileged write access only. Write only by trusted domain. Debug domain can write to this register if the feature is activated. Otherwise, illegal access events are generated. Any read access is allowed.

31302928272625242322212019181716
RLOCK[63:48]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RLOCK[47:32]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 RLOCK[63:32]: RCC local resource number x lock (x = 63 to 32)

Each bit is set to lock the RCC local resource x. It is cleared by default, and once set, it cannot be reset until RCC is reset.

0: SEC(x - 32) in RCC_SECCFGR1 and PRIV(x - 32) in RCC_PRIVCFGR1 are writable. RCC_RxCIDCFGR is writable.

1: Writes to SEC(x - 32) in RCC_SECCFGR1 and PRIV(x - 32) in RCC_PRIVCFGR1 are ignored. Writes to RCC_RxCIDCFGR are ignored.

20.8.11 RCC resource configuration lock register 2 (RCC_RCFGLOCKR2)

Address offset: 0x028

Reset value: 0x0000 0000

Secure privileged write access only. Write only by trusted domain. Debug domain can write to this register if the feature is activated. Otherwise, illegal access events are generated. Any read access is allowed.

31302928272625242322212019181716
RLOCK 95RLOCK 94RLOCK 93RLOCK 92RLOCK 91RLOCK 90Res.RLOCK 88RLOCK 87RLOCK 86RLOCK 85RLOCK 84RLOCK 83Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RLOCK 79RLOCK 78RLOCK 77RLOCK 76RLOCK 75RLOCK 74RLOCK 73Res.RLOCK 71RLOCK 70RLOCK 69RLOCK 68RLOCK 67RLOCK 66RLOCK 65RLOCK 64
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 25, 18:16, 8 Reserved, must be kept at reset value.

Bits 31:26, 24:19, RLOCKx: RCC local resource number x lock (x = 95 to 90, 88 to 83, 79 to 73, 71 to 64)

15:9, 7:0 Each bit is set to lock the RCC local resource x. It is cleared by default, and once set, it cannot be reset until the RCC is reset.

0: SEC(x - 64) in RCC_SECCFGR2 and PRIV(x - 64) in RCC_PRIVCFGR2 are writable. RCC_RxCIDCFGR is writable.

1: Writes to SEC(x - 64) in RCC_SECCFGR2 and PRIV(x - 64) in RCC_PRIVCFGR2 are ignored. Writes to RCC_RxCIDCFGR are ignored.

20.8.12 RCC resource configuration lock register 3 (RCC_RCFGLOCKR3)

Address offset: 0x02C

Reset value: 0x0000 0000

Secure privileged write access only. Write only by trusted domain.Debug domain can write to this register if the feature is activated.Otherwise, illegal access events are generated. Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RLOCK 113RLOCK 112
rwrw
1514131211109876543210
RLOCK 111RLOCK 110RLOCK 109RLOCK 108Res.RLOCK 106RLOCK 105RLOCK 104RLOCK 103RLOCK 102RLOCK 101Res.Res.RLOCK 98RLOCK 97RLOCK 96
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 17:12, 10:5, RLOCKx: RCC local resource number x lock (x = 113 to 108, 106 to 101, 98 to 96)

20.8.13 RCC resource x CID configuration register (RCC_RxCIDCFGR)

Address offset: 0x030+0x8*x, (x = 0 to 71, 73 to 79, 83 to 88, 90 to 98, 101 to 106, 108 to 113)

Reset value: 0x0000 0000

This register is used to configure the CID filtering policy for the RCC local resource x (see Table 161 for RCC local resource mapping). Secure privileged write access only. Write only by trusted domain. Debug domain can write to this register if the feature is activated.

Any write is ignored if the local resource x is locked (RLOCK(x-32*z) = 1 in RCC_RCFGLOCKRz, with z = 0 to 3).Otherwise, illegal access events are generated. Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.SEMWLC[7:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.SCID[2:0]Res.Res.SEM_E_NCFEN
rwrwrwrwrw

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

Bits 23:16 SEMWLC[7:0]: Semaphore white-list for compartment y (y = 7 to 0)

Set and cleared by software.

0: Application running in compartment y cannot get access to local resource x through semaphore SEM_MUTEX.

1: Application running in compartment y can get access to local resource x through semaphore SEM_MUTEX.

Note: This bit is ignored if SEM_EN = 0 or CFEN = 0

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

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

Set by software.

Trusted domain application uses this bit-field to statically define which compartment has access to local resource number x when SEM_EN = 0.

This bit-field is ignored if SEM_EN = 1 or CFEN = 0.

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

Bit 1 SEM_EN: Semaphore enable

Set and cleared by software.

0: Access to local resource number x is only granted if the CID of the access is equal to SCID.

1: Access to local resource number x is only granted if SEM_MUTEX = 1 and the CID of the access is equal to SEMCID.

This bit is not taken into account if CFEN = 0. When this bit is cleared, SEM_MUTEX is cleared.

Bit 0 CFEN: Static CID filter enable

Set and cleared by software. Additional access controls to local resource x apply, as defined in RCC_PRIVCFGRz and RCC_SECCFGRz with z = 0 to 3.

0: Compartment-based filtering is defined in RCC_RxCIDCFGR, and optionally RCC_RxSEMCR is disabled for local resource x.

1: Compartment-based filtering is defined in RCC_RxCIDCFGR, and optionally RCC_RxSEMCR is enabled for local resource x.

Note: When this bit is cleared, SEM_MUTEX is cleared.

20.8.14 RCC resource x semaphore control register (RCC_RxSEMCR)

Address offset: 0x034+0x8*x, (x = 0 to 71, 73 to 79, 83 to 88, 90 to 98, 101 to 106, 108 to 113)

Reset value: 0x0000 0000

This register is used to control the semaphore access for the RCC local resource x.

If compartment filtering is disabled (CFEN = 0 in RCC_RxCIDCFGR), or semaphore is disabled (SEM_EN = 0 in RCC_RxCIDCFGR), any write to this register is ignored. Illegal access event generation is disabled in this case.

Secure-only write access if SEC(x - 32 * z) is set in RCC_SECCFGRz (with z = 0 to 3).

Privileged-only write access if PRIV(x - 32 * z) is set in RCC_PRIVCFGRz (with z = 0 to 3).

If compartment filtering is enabled and semaphore is enabled (CFEN and SEM_EN set in RCC_RxCIDCFGR), only an authorized compartment can write this register. Authorized compartment is defined by SEMCID if SEM_MUTEX = 1. Otherwise, it is defined by the CID white list (SEMWLCy with y = 0 to 7) in RCC_RxCIDCFGR. Any read access is allowed.

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 compartment ID

Set by hardware. When SEM_EN and CFEN are set in RCC_RxCIDCFGR, this bitfield is updated with the CID value of the latest successful acquisition of RCC_RxSEMC semaphore (SEM_MUTEX = 1).

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

Bit 0 SEM_MUTEX: Semaphore mutex

Set and cleared by software. White-listed application can set this bit to get exclusive access to local resource x, when SEM_EN = 1 in RCC_RxCIDCFGR (writes ignored otherwise).

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

When SEM_MUTEX = 1, only applications belonging to the SEMCID compartment can release this semaphore.

0: Reading 0 means that the semaphore is free. Writing 0 means that the semaphore is going to be released.

1: Reading 1 means that the semaphore is taken. Writing 1 means that the semaphore is going to be acquired.

Note: This bit is cleared when CFEN or SEM_EN are cleared in RCC_RxCIDCFGR.

20.8.15 RCC global reset control set register (RCC_GRSTCSETR)

Address offset: 0x400

Reset value: 0x0000 0000

This register is used to generate a system reset. Writing 0 has no effect, reading returns the effective values of the corresponding bits. Writing 1 activates a system reset. Write accesses are defined according to the RCC local resource number 66 configuration (see Table 161 for details). Any read access is allowed.

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

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

Bit 0 SYSRST: System reset

Set by software, cleared by hardware.

0: Writing 0 has no effect. Reading 0 means that the system reset is released.

1: Writing 1 generates a system reset (see Figure 74).

20.8.16 RCC CPU1 reset control set register (RCC_C1RSTCSETR)

Address offset: 0x404

Reset value: 0x0000 0000

This register is used to generate the CPU1 reset, and IWDG1/2 kernel resets. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 activates the bit. Write accesses are defined according to the RCC local resource number 66 configuration (see Table 161 for details).Any read access is allowed.

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

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

Bit 0 C1RST: CPU1 reset

Set by software, cleared by hardware when the reset command is completed. Resets the CPU1 subsystem, and IWDG1/2 kernel clocks.

0: Writing 0 has no effect. Reading 0 means that the CPU1 reset is released.

1: Writing 1 generates a CPU1 reset. Reading 1 means that the reset is asserted (see Figure 74).

20.8.17 RCC CPU2 reset control set register (RCC_C2RSTCSETR)

Address offset: 0x40C

Reset value: 0x0000 0000

This register is used to generate a CPU2 reset, and IWDG3/4 kernel resets. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 activates the reset of the corresponding peripheral. Write accesses are defined according to the RCC local resource number 66 configuration (see Table 161 for details).Any read access is allowed.

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

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

Bit 0 C2RST: CPU2 reset

Set by software and cleared by hardware when the reset command is completed.
Resets the CPU2 subsystem, and IWDG3/4 kernel clocks.

0: Writing 0 has no effect. Reading 0 means that the CPU2 reset is released.

1: Writing 1 generates a CPU2 reset. Reading 1 means that the reset is asserted (see Figure 74).

20.8.18 RCC hardware reset status clear register (RCC_HWRSTSCLRR)

Address offset: 0x410

Reset value: 0x0000 0015

This register is used by the trusted application to check the reset source. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 clears the corresponding bit to 0. This register is located in VDD domain, and is reset by por_rstn reset. Write accesses are defined according to the RCC local resource number 66 configuration (see Table 161 for details).Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.RETEC
CFAILR
ESTRS
TF
RETEC
CFAILC
RCRST
F
RETCR
CERR
RSTF
Res.IWDG4
SYSRS
TF
IWDG3
SYSRS
TF
IWDG2
SYSRS
TF
IWDG1
SYSRS
TF
SYSC2
RSTF
SYSC1
RSTF
VCOR
ERSTF
HCSSR
STF
PADRS
TF
BORR
STF
PORR
STF
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1

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

Bit 14 RETECCFAILRESTRSTF: RETRAM ECC failure reset flag during system restoration phase

Cleared by software and set by hardware when a reset due to an ECC failure on RETRAM during the system restoration phase occurs.

0: Writing 0 has no effect. Reading 0 means that no reset due to an ECC failure on RETRAM during the system restoration phase occurred (default after por_rstn reset).

1: Writing 1 clears the RETECCFAILRESTRSTF flag. Reading 1 means that a reset due to an ECC failure on RETRAM during the system restoration phase occurred.

Bit 13 RETECCFAILCRCRSTF: RETRAM ECC failure reset flag during the CRC computation phase

Cleared by software and set by hardware when a reset due to an ECC failure on RETRAM during CRC computation phase occurs.

0: Writing 0 has no effect. Reading 0 means that no reset due to an ECC failure on RETRAM during CRC computation phase occurred (default after por_rstn reset).

1: Writing 1 clears the RETECCFAILCRCRSTF flag. Reading 1 means that a reset due to an ECC failure on RETRAM during CRC computation phase occurred.

Bit 12 RETCRCERRRSTF: RETRAM CRC error reset flag

Cleared by software and set by hardware when a reset due to a CRC error on RETRAM content occurs.

0: Writing 0 has no effect. Reading 0 means that no reset due to a CRC error on RETRAM content occurred (default after por_rstn reset).

1: Writing 1 clears the RETCRCERRRSTF flag. Reading 1 means that a reset due to a CRC error on RETRAM content occurred.

Bit 11 Reserved, must be kept at reset value.

Bit 2 PADRSTF: NRST reset flag

Cleared by software and set by hardware when a PAD reset occurs.

0: Writing 0 has no effect. Reading 0 means that no PAD reset occurred.

1: Writing 1 clears the PADRSTF flag. Reading 1 means that a PAD reset occurred (default after por_rstn reset).

Bit 1 BORRSTF: BOR reset flag

Cleared by software and set by hardware when a BOR occurs.

0: Writing 0 has no effect. Reading 0 means that no BOR occurred (default after por_rstn reset).

1: Writing 1 clears the BORRSTF flag. Reading 1 means that a BOR occurred.

Bit 0 PORRSTF: POR/PDR reset flag

Cleared by software and set by hardware when a POR/PDR occurs.

0: Writing 0 has no effect. Reading 0 means that no POR/PDR occurred.

1: Writing 1 clears the PORRSTF flag. Reading 1 means that a POR/PDR occurred (default after por_rstn reset).

20.8.19 RCC CPU1 hardware reset status clear register (RCC_C1HWRSTSCLRR)

Address offset: 0x414

Reset value: 0x0000 0003

This register is used by the CPU1 to check the reset source. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 clears the corresponding bit to 0. This register is located in \(V_{DD}\) domain, and is reset by por_rstn reset. This flag is located in the \(V_{DDCORE}\) domain, and is reset by sys_rstn reset. Write accesses are defined according to the RCC local resource number 70 configuration (see Table 161 for details). Any read access is allowed.

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.C1RST
F
VCPUR
STF
rc_w1rc_w1

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

Bit 1 C1RSTF: CPU1 reset flag

Cleared by software and set by hardware when a CPU1 reset occurs.

0: Writing 0 has no effect. Reading 0 means that no CPU1 reset occurred.

1: Writing 1 clears the C1RSTF flag. Reading 1 means that a CPU1 reset occurred (default after por_rstn reset).

Bit 0 VCPURSTF: \(V_{DDCPU}\) reset flag

Cleared by software and set by hardware when a reset occurs because \(V_{DDCPU}\) is lower than the expected value.0: Writing 0 has no effect. Reading 0 means that \(V_{DDCPU}\) is not the origin of the reset.1: Writing 1 clears the VCPURSTF flag. Reading 1 means that \(V_{DDCPU}\) is the origin of the reset (default after por_rstn reset).

20.8.20 RCC CPU2 hardware reset status clear register (RCC_C2HWRSTSCLRR)

Address offset: 0x418

Reset value: 0x0000 0001

This register is used by the CPU2 to check the reset source. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 clears the corresponding bit to 0. This register is located in the VDD domain, and is reset by por_rstn reset. Write accesses are defined according to the RCC local resource number 71 configuration (see Table 161 for details).Any read access is allowed.

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

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

Bit 0 C2RSTF: CPU2 reset flag

Cleared by software and set by hardware when a CPU2 reset occurs.

0: Writing 0 has no effect. Reading 0 means that no CPU2 reset occurred.

1: Writing 1 clears the C2RSTF flag. Reading 1 means that a CPU2 reset occurred (default after por_rstn reset).

20.8.21 RCC CPU1 boot reset status set register (RCC_C1BOOTRSTSSETR)

Address offset: 0x41C

Reset value: 0x0000 0000

This register is used by the CPU1 to set the boot reset source. This register is updated by the boot ROM code after any reset source. Writing 0 to this register has no effect. Writing 1 sets the corresponding bits (see Section 20.3.13 for details). The register is located in the VDDCORE domain. Write accesses are defined according to the RCC local resource number 70 configuration (see Table 161 for details).Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.D2STBYRSTFD1STBYRSTFRes.STBYC1RSTFRETEC CFAILR ESTRS TFRETEC CFAILC RCRST FRETCR CERR RSTFRes.
rsrsrsrsrsrs
1514131211109876543210
Res.Res.C1RSTFRes.IWDG4 SYSRS TFIWDG3 SYSRS TFIWDG2 SYSRS TFIWDG1 SYSRS TFSYSC2 RSTFSYSC1 RSTFVCPUR STFVCOR ERSTFHCSSR STFPADRS TFBORR STFPORR STF
rsrsrsrsrsrsrsrsrsrsrsrsrs

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

20.8.22 RCC CPU1 boot reset status clear register (RCC_C1BOOTRSTSCLRR)

Address offset: 0x420

Reset value: 0x0000 0000

This register is used by the CPU1 to check the boot reset source. This register is updated by the boot ROM code after any reset source. Writing 0 to this register has no effect. Writing 1

clears the corresponding bits (see Section 20.3.13 for details). The register is located in the VDDCORE domain. Write accesses are defined according to the RCC local resource number 70 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.D2STBYRSTFD1STBYRSTFRes.STBYC1RSTFRETECCFAILRESTRSTFRETECCFAILCRSTFRETCRCERRRSTFRes.
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1
1514131211109876543210
Res.Res.C1RSTFRes.IWDG4SYSRSTFIWDG3SYSRSTFIWDG2SYSRSTFIWDG1SYSRSTFSYSC2RSTFSYSC1RSTFVCPURSTFVCORERSTFHCSSRSTFPADRSTFBORRSTFPORRSTF
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1

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

Bit 23 D2STBYRSTF: D2 DStandby reset flag

Cleared by software. Indicates that the D2 domain has been in DStandby mode.

0: No effect

1: Clear the D2STBYRSTF bit.

Bit 22 D1STBYRSTF: D1 DStandby reset flag

Cleared by software. Indicates that the D1 domain has been in DStandby mode.

0: No effect

1: Clear the D1STBYRSTF bit.

Bit 21 Reserved, must be kept at reset value.

Bit 20 STBYC1RSTF: CPU1 system Standby reset flag

Cleared by software. Indicates that the system has been in Standby mode for CPU1.

0: No effect

1: Clear the STBYC1RSTF bit.

Bit 19 RETECCFAILRESTRSTF: RETRAM ECC failure reset flag during system restoration phase

Cleared by software. Indicates that a reset due to an ECC failure on RETRAM during the system restoration phase occurred.

0: No effect

1: Clear the RETECCFAILRESTRSTF bit.

Bit 18 RETECCFAILCRSTF: RETRAM ECC failure reset flag during the CRC computation phase

Cleared by software. Indicates that a reset due to an ECC failure on RETRAM during CRC computation phase occurred.

0: No effect

1: Clear the RETECCFAILCRSTF bit.

Bit 17 RETCRCERRRSTF: RETRAM CRC error reset flag

Cleared by software. Indicates that a reset due to a CRC error on RETRAM content occurred.

0: No effect

1: Clear the RETCRCERRRSTF bit.

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

Bit 2 PADRSTF: NRST reset flag

Cleared by software. Indicates that a pad reset occurred.

0: No effect

1: Clear the PADRSTF bit.

Bit 1 BORRSTF: BOR reset flag

Cleared by software. Indicates that a BOR reset occurred.

0: No effect

1: Clear the BORRSTF bit.

Bit 0 PORRSTF: POR/PDR reset flag

Cleared by software. Indicates that a POR/PDR reset occurred.

0: No effect

1: Clear the PORRSTF bit.

20.8.23 RCC CPU2 boot reset status set register (RCC_C2BOOTRSTSSETR)

Address offset: 0x424

Reset value: 0x0000 0000

This register is used by the CPU2 to set the boot reset source. This register is updated by the CPU2 wake-up firmware after any reset source. Writing 0 to this register has no effect. Writing 1 sets the corresponding bits (see Section 20.3.13 for details). The register is located in the VDDCORE domain. Write accesses are defined according to the RCC local resource number 71 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.D2STBYRSTFRes.STBYC2RSTFRes.RETECFAILRESTRSTFRETECFAILRCRSTFRETECERRRSTFRes.
rsrsrsrsrs
1514131211109876543210
Res.C2RSTFRes.Res.IWDG4SYSRSTFIWDG3SYSRSTFIWDG2SYSRSTFIWDG1SYSRSTFSYSC2RSTFSYSC1RSTFRes.VCORERSTFHCSSRSTFPADRSTFBORRSTFPORRSTF
rsrsrsrsrsrsrsrsrsrsrsrs

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

Bit 23 D2STBYRSTF: D2 DStandby reset flag

Set by software. Indicates that the D2 domain has been in DStandby mode.

0: No effect

1: Set the D2STBYRSTF bit.

Bit 22 Reserved, must be kept at reset value.

Bit 21 STBYC2RSTF: CPU2 system Standby reset flag

Set by software. Indicates that the system has been in Standby mode for CPU2.

0: No effect

1: Set the STBYC2RSTF bit.

Bit 20 Reserved, must be kept at reset value.

20.8.24 RCC CPU2 boot reset status clear register (RCC_C2BOOTRSTSCLRR)

Address offset: 0x428

Reset value: 0x0000 0000

This register is used by the CPU2 to check the boot reset source. This register is updated by the CPU2 wake-up firmware after any reset source. Writing 0 to this register has no effect. Writing 1 clears the corresponding bits (see Section 20.3.13 for details). The register is located in the VDDCORE domain. Write accesses are defined according to the RCC local resource number 71 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.D2STB
YRSTF
Res.STBYC
2RSTF
Res.RETEC
CFAILR
ESTRSTF
RETEC
CFAILC
RCRSTF
RETCR
CERR
RSTF
Res.
rc_w1rc_w1rc_w1rc_w1rc_w1
1514131211109876543210
Res.C2RSTFRes.Res.IWDG4
SYSRSTF
IWDG3
SYSRSTF
IWDG2
SYSRSTF
IWDG1
SYSRSTF
SYSC2
RSTF
SYSC1
RSTF
Res.VCORERSTFHCSSRSTFPADRSTFBORRSTFPORRSTF
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1

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

20.8.25 RCC CPU1 stop request set register (RCC_C1SREQSETR)

Address offset: 0x42C

Reset value: 0x0000 0000

Writing 0 has no effect. Reading returns the values of the bits. Writing 1 sets the corresponding bit to 1. Write accesses are defined according to the RCC local resource number 70 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ESLPR
EQ
rs
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STPRE
Q_P0
rs

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

Bit 16 ESLPREQ: Enhanced CSleep request for CPU1 subsystem

Set by software. Allows the entry in enhanced CSleep for CPU1 sub-system, when the complete CPU1 is in WFI.

0: Writing 0 has no effect. Reading 0 means that enhanced CSleep for CPU1 subsystem is not requested.

1: Writing 1 sets the ESLPREQ bit. Reading 1 means that enhanced CSleep for CPU1 subsystem is requested.

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

Bit 0 STPREQ_P0: Stop request for CPU1 processor

Set by software. Indicates if the CPU1 processor allows the entry in Stop mode for CPU1 subsystem, when the CPU1 is in WFI.

0: Writing 0 has no effect. Reading 0 means that the CPU1 processor does not allow the CPU1 subsystem to go to CStop.

1: Writing 1 sets the STPREQ_P0 bit. Reading 1 means that the CPU1 processor allows the CPU1 subsystem to go to CStop.

20.8.26 RCC CPU1 stop request clear register (RCC_C1SREQCLRR)

Address offset: 0x430

Reset value: 0x0000 0000

Writing 0 has no effect. Reading returns the effective values of the bits. Writing 1 clears the corresponding bit to 0. Write accesses are defined according to the RCC local resource number 70 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ESLPR
EQ
rc_w1
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STPRE
Q_P0
rc_w1

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

Bit 16 ESLPREQ: Enhanced CSleep request for CPU1 subsystem

Cleared by software. Allows the entry in enhanced CSleep for CPU1 subsystem, when the complete CPU1 is in WFI.

0: Writing 0 has no effect. Reading 0 means that enhanced CSleep for CPU1 subsystem is not requested.

1: Writing 1 clears the ESLPREQ bit. Reading 1 means that enhanced CSleep for the CPU1 subsystem is requested.

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

Bit 0 STPREQ_P0: Stop request for CPU1 processor

Cleared by software. Indicates if the CPU1 processor allows the entry in Stop mode for CPU1 subsystem, when the CPU1 is in WFI.

0: Writing 0 has no effect. Reading 0 means that the CPU1 processor does not allow the CPU1 subsystem to go to CStop.

1: Writing 1 clears the STPREQ_P0 bit. Reading 1 means that the CPU1 processor allows the CPU1 subsystem to go to CStop.

20.8.27 RCC CPU boot control register (RCC_CPUBOOTCR)

Address offset: 0x434

Reset value: 0x0000 0000

The register is used to control the HOLD_BOOT state of the CPUs after reset (see HOLD_BOOT CPUx state for details). Write accesses are defined according to the

RCC local resource number 67 configuration (see Table 161 for details). Any read access is allowed.

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

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

Bit 1 BOOT_CPU1: CPU1 boot

Bit 0 BOOT_CPU2: CPU2 to boot

20.8.28 RCC standby boot control register (RCC_STBYBOOTCR)

Address offset: 0x438

Reset value: 0x0000 0000

This register is used to control the boot sequence when the system exits Standby (see Section 20.3.13 for details). This register is reset when a system reset occurs (app_rstn), but not when the circuit exits from Standby. Wait states are inserted in case of successive write accesses to this register. The number of wait states can be up to 7 cycles of the RCC clock. Write accesses are defined according to the RCC local resource number 67 configuration (see Table 161 for details). Any read access is allowed.

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.RET_C
RCER
R_RST
EN
Res.Res.CPU1_
HW_B
EN
CPU2_
HW_B
EN
Res.COLD_
CPU2
CPU_B
EN_SE
L
Res.
rwrrrworw

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

Bit 8 RET_CRCERR_RSTEN: RETRAM CRC error system reset enable

Set and cleared by software to select whether a RETRAM CRC error triggers a system reset or not.

0: RETRAM CRC error does not trigger a system reset (default after reset).

1: RETRAM CRC error triggers a system reset.

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

Bit 5 CPU1_HW_BEN: CPU1 hardware boot enable

Set and cleared by hardware to indicate whether the CPU1 is enabled to restart after the system exits Standby.

0: CPU1 remains in HOLD_BOOT state.

1: CPU1 is allowed to restart.

Bit 4 CPU2_HW_BEN: CPU2 hardware boot enable

Set and cleared by hardware to indicate whether the CPU2 is enabled to restart after the system exits Standby.

0: CPU2 remains in HOLD_BOOT state.

1: CPU2 is allowed to restart.

Bit 3 Reserved, must be kept at reset value.

Bit 2 COLD_CPU2: CPU2 cold boot

Set by software to indicate that CPU2 started first after POR. This bit can be written only one time after system reset.

0: CPU1 is the cold boot CPU.

1: CPU2 is the cold boot CPU.

Bit 1 CPU_BEN_SEL: CPU boot select

Set and cleared by software to select the CPU to restart first after the system exits Standby, in wake-up event mode in case of simultaneous CPU events.

0: CPU1 restarts first (default after reset).

1: CPU2 restarts first.

Bit 0 Reserved, must be kept at reset value.

20.8.29 RCC legacy boot control register (RCC_LEGBOOTCR)

Address offset: 0x43C

Reset value: 0x0000 0000

This register is used to control the first CPUx to boot (see Section 20.3.13 for details). This register is reset when a system reset (app_rstn) occurs but not when the circuit exits Standby. Wait states are inserted in case of successive write accesses to this register. The number of wait states can be up to 7 cycles of the RCC clock. Write accesses are defined according to the RCC local resource number 67 configuration (see Table 161 for details). Any read access is allowed.

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.LEGAC
Y_BEN
rwo

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

Bit 0 LEGACY_BEN: Enable of the legacy selection mode to choose the first CPU to boot

Set by software to indicate that the CPU1 boots first. This bit can be written only one time after system reset.

0: The legacy selection mode is disabled (default after reset).

1: The legacy selection mode is enabled.

20.8.30 RCC backup domain control register (RCC_BDCR)

Address offset: 0x440

Reset value: 0x0000 0020

This register is used to control LSE functions. Wait states are inserted in case of successive write accesses to this register. The number of wait states may be up to 7 cycles of the RCC clock. After a system reset, this register is write-protected. In order to modify this register, DBP in PWR_BDCR must be set to 1. This register is only reset after a backup domain reset (vsw_rstn, see Section 20.3.6). Any other internal or external reset does not have any effect on these bits. This register is located in the VSW domain.

Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
31302928272625242322212019181716
ST VSWRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.RTCCK
ENRes.Res.RTCSRC[1:0]
rwrwrworwo
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.LSECSLSEGFLSECSLSERDLSEBY
SONLSEDRV[1:0]LSEDI
SDONGBYPYPLSEON
rrwrwrwrwrwrrwrw
Bit 31VSWRST: VSW domain software reset
Bit 20RTCCKEN: RTC clock enable
Bits 17:16RTCSRC[1:0]: RTC clock source selection
(seeCSS on LSEfor details).

Bit 31 VSWRST: VSW domain software reset

Set and cleared by software.

0: Reset not activated (default after backup domain reset)

1: Resets the entire VSW domain.

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

Bit 20 RTCCKEN: RTC clock enable

Set and cleared by software.

0: rtc_ck clock disabled (default after backup domain reset)

1: rtc_ck clock enabled

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

Bits 17:16 RTCSRC[1:0]: RTC clock source selection

Set by software to select the clock source for the RTC. This field can be written only one time after backup domain reset. When an LSE failure occurs, this field is cleared to 0, and the software can write it again once. This field must be written before LSECSSON is enabled (see CSS on LSE for details).

0x0: No clock (default after backup domain reset)

0x1: LSE clock used as RTC clock

0x2: LSI clock used as RTC clock

0x3: HSE clock divided by RTCDIV value used as RTC clock

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

Bit 8 LSECSSD: LSE CSS failure detection

Set by hardware to indicate when a failure has been detected by the CSS on the external 32 kHz oscillator.

0: No failure detected on 32 kHz oscillator (default after backup domain reset)

1: Failure detected on 32 kHz oscillator

Bit 7 LSEGFON: LSE clock glitch filter enable

Set and cleared by software to enable the LSE clock glitch filter. This bit can be written only when LSE is disabled (LSEON = 0).

0: LSE clock glitch filter disabled

1: LSE clock glitch filter enabled

Bit 6 LSECSSON: LSE CSS enable

Set by software to enable the CSS on 32 kHz oscillator (see LSE oscillator for details on the activation and deactivation sequences). Once this bit is set, it cannot be cleared, except after a LSE failure detection (LSECSSD = 1).

0: CSS on 32 kHz oscillator off (default after backup domain reset)

1: CSS on 32 kHz oscillator on

Bits 5:4 LSEDRV[1:0]: LSE oscillator driving capability

Set by software to select the driving capability of the LSE oscillator.

0x0: Lowest drive

0x1: Medium-high drive

0x2: Medium-low drive (default after backup domain reset)

0x3: Highest drive

Caution: The low drive to high drive programming values are not in increasing order of LSEDRV[1:0].

Bit 3 LSEDIGBYP: LSE digital bypass

Set and cleared by software to select the analog or digital bypass mode

0: LSE in analog bypass mode (default after backup domain reset)

1: LSE in digital bypass mode

Bit 2 LSERDY: LSE oscillator ready

Set and cleared by hardware to indicate when the LSE is stable. This bit needs 6 cycles of lse_ck to fall down after LSEON has been cleared to 0.

0: LSE oscillator not ready (default after backup domain reset)

1: LSE oscillator ready

Bit 1 LSEBYP: LSE oscillator bypass

Set and cleared by software to bypass oscillator in debug mode. This bit must not be written when the LSE is enabled (LSEON = 1) (see LSE oscillator for details).

0: LSE oscillator not bypassed (default after backup domain reset)

1: LSE oscillator bypassed

Bit 0 LSEON: LSE oscillator enable

Set and cleared by software.

0: LSE oscillator off (default after backup domain reset)

1: LSE oscillator on

20.8.31 RCC reset duration control register (RCC_RDCR)

Address offset: 0x44C

Reset value: 0x0600 0000

This register is used to control the minimum NRST active duration. Wait states are inserted in case of successive write accesses to this register. The number of wait states may be up to 7 cycles of the RCC clock. This register is reset by por_rstn reset, and it is located in the VDD domain. Write accesses are defined according to the RCC local resource number 68 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.EADLY[3:0]Res.Res.Res.MRD[4:0]
rwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

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

Bits 27:24 EADLY[3:0]: External access delays

Set and cleared by software. Time to wait before boot ROM performs any external access (for peripherals like UART, USB, OCTOSPI, FMC, or SDMMC).

0x0: No extra delay added by boot ROM

0x1: 100 microseconds

0x2: 200 microseconds

0x3: 500 microseconds

0x4: 1 milliseconds

0x5: 2 milliseconds

0x6: 5 milliseconds (default after reset)

0x7: 10 milliseconds

0x8: 20 milliseconds

0x9: 50 milliseconds

0xA: 100 milliseconds

0xB: 200 milliseconds

0xC: 500 milliseconds

0xD: 1 second

0xE: 2 seconds

0xF: 5 seconds

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

Bits 20:16 MRD[4:0]: Minimum reset duration

Set and cleared by software. This field defines the minimum guaranteed duration of the NRST low pulse. The LSI oscillator is automatically enabled when needed by the RPCTL.

0x0: NRST low-pulse duration is guaranteed by the pulse stretcher of the pin. The RPCTL is bypassed (default after reset).

0x1: The guaranteed NRST low-pulse duration is about 1 ms (1 x 32 lsi_ck cycles).

0x2: The guaranteed NRST low-pulse duration is about 2 ms (2 x 32 lsi_ck cycles).

...

0x1F: The guaranteed NRST low-pulse duration is about 31 ms (31 x 32 lsi_ck cycles).

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

20.8.32 RCC C1MS reset delay control register (RCC_C1MSRDCR)

Address offset: 0x450

Reset value: 0x0000 0000

This register is used to control the minimum NRSTC1MS active duration after any D1 Standby exit. Write accesses are defined according to the RCC local resource number 70 configuration (see Table 161 for details). Any read access is allowed.

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.C1MSRSTRes.Res.Res.C1MSRD[4:0]
rsrwrwrwrwrw

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

Bit 8 C1MSRST: Trigger low-level pulse on NRSTC1MS pin

Set by software and cleared by hardware.

0: Reading 0 means that the NRSTC1MS level is high (inactive) (default after reset).

1: Writing 1 triggers a low-level pulse on NRSTC1MS according to C1MSRD value.

Reading 1 means that the NRSTC1MS level is low (active).

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

Bits 4:0 C1MSRD[4:0]: Minimum Standby reset duration

Set and cleared by software. This field defines the minimum duration of the low-level pulse on NRSTC1MS when C1MSRST is high. The LSI is automatically enabled after any D1 DStandby exit.

0x0: 'No pulse on NRSTC1MS (default after reset)

0x1: The guaranteed NRSTC1MS low-pulse duration is about 1 ms (1 x 32 lsi_ck cycles).

0x2: The guaranteed NRSTC1MS low-pulse duration is about 2 ms (2 x 32 lsi_ck cycles).

...

0x1F: The guaranteed NRSTC1MS low-pulse duration is about 31 ms (31 x 32 lsi_ck cycles).

20.8.33 RCC PWR_LP delay control register (RCC_PWRLPDLYCR)

Address offset: 0x454

Reset value: 0x0000 0000

This register is used to program the delay between the moment where the system exits Stop mode, and the moment where it is allowed to enable the PLLs and to provide a clock to bridges and CPUx. Write access to this register is not allowed during the clock restore sequence (see Clock restore sequence for details). Write accesses are defined according to the RCC local resource number 67 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.CPU2T
MPSKP
Res.Res.PWRLP_DLY[21:16]
rwrwrwrwrwrwrw
1514131211109876543210
PWRLP_DLY[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 24 CPU2T MPSKP: Skip of PWR_LP delay for CPU2

Set and cleared by software. This bit is used by the clock restore sequence to skip the PWR_LP delay for the CPU2 clock restore when the system exits Stop mode.

0: The CPU2 clock restore sequence waits for the PWR_LP delay before activating power consuming elements (default after reset).

1: The CPU2 clock restore sequence runs the PWR_LP delay, but did not wait for the delay to elapse before activating power consuming elements

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

Bits 21:0 PWRLP_DLY[21:0]: PWR_LP delay value

Set and cleared by software. This register contains the delay value to be observed before activating the PLL and interconnect clocks, after one of the system Stop modes. The delay is counted with the HSI, or HSI/2 clock.

When LSMCU = 0 in RCC_LSMCUDIVR, the delay value is given by the formula:

PWRLP_DLY[21:0]/FHSI or PWRLP_DLY[21:0]/FHSI/2

0x0: PWR_LP delay bypassed (default after reset)

0x1: PWR_LP delay of one 64 MHz HSI period (LSMCU = 0) or two HSI periods (LSMCU = 1) is observed.

...

0x3FFFFF: PWR_LP delay of about 65.5 ms (LSMCU = 0) or 131 ms (LSMCU = 1) is observed.

20.8.34 RCC CPU1 clock source interrupt enable set register (RCC_C1CIESETR)

Address offset: 0x458

Reset value: 0x0000 0000

This register is used by the CPU1 to control the interrupt source enable (see Section 20.5 for details). Write accesses are defined according to the RCC local resource number 70 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WKUPI
E
Res.Res.Res.LSECS
SIE
rwrw
1514131211109876543210
Res.Res.Res.PLL8R
DYIE
PLL7R
DYIE
PLL6R
DYIE
PLL5R
DYIE
PLL4R
DYIE
Res.PLL2R
DYIE
PLL1R
DYIE
MSIRD
YIE
HSERD
YIE
HSIRD
YIE
LSERD
YIE
LSIRD
YIE
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 20 WKUPIE: CPU1 wake-up from CStop interrupt enable

Set and cleared by software to enable/disable the generation of the interrupt used to wake up the CPU1 from CStop.

0: Wake-up interrupt disabled (default after reset)

1: Wake-up interrupt enabled

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

Bit 16 LSECSSIE: LSE clock security system interrupt enable

Set and cleared by software to enable/disable interrupt caused by the CSS on the external 32 kHz oscillator.

0: LSE CSS interrupt disabled (default after reset)

1: LSE CSS interrupt enabled

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

Bit 12 PLL8RDYIE: PLL8 ready interrupt enable

Set and cleared by software to enable/disable interrupt caused by PLL8 lock.

0: PLL8 lock interrupt disabled (default after reset)

1: PLL8 lock interrupt enabled

Bit 11 PLL7RDYIE: PLL7 ready interrupt enable

Set and cleared by software to enable/disable interrupt caused by PLL7 lock.

0: PLL7 lock interrupt disabled (default after reset)

1: PLL7 lock interrupt enabled

Bit 10 PLL6RDYIE: PLL6 ready interrupt enable

Set and cleared by software to enable/disable interrupt caused by PLL6 lock.

0: PLL6 lock interrupt disabled (default after reset)

1: PLL6 lock interrupt enabled

Bit 9 PLL5RDYIE: PLL5 ready interrupt enable

Set and cleared by software to enable/disable interrupt caused by PLL5 lock.

0: PLL5 lock interrupt disabled (default after reset)

1: PLL5 lock interrupt enabled

20.8.35 RCC CPU1 clock source interrupt flag clear register (RCC_C1CIFCLRR)

Address offset: 0x45C

Reset value: 0x0000 0004

This register is used by the CPU1 to read and clear the interrupt flags. Writing 0 has no effect. Writing 1 clears the corresponding flag (see Section 20.5 for details). Write accesses

are defined according to the RCC local resource number 70 configuration (see Table 161 for details). Any read access is allowed.

Bit 0GDPENRM0506
31 30 292827 26 25 24 23 22 21 20 19 18 17 16
Res. Res. Res.Res.Res. Res. Res. Res. Res. Res. Res. WKUP
F Res. Res. Res. LSECS SF rc_w1 rc_w1
15 14 131211 10 9 8 7 6 5 4 3 2 1 0
Res. Res. Res.PLL8RPLL7R PLL6R PLL5R PLL4R PLL1R MSIRD HSERD HSIRD LSERD LSIRD
DYF Res. PLL2R
DYFDYF DYF DYF DYF DYF YF YF YF YF YF
rc_w1rc_w1 rc_w1 rc_w1 rc_w1 rc_w1 rc_w1 rc_w1 rc_w1 rc_w1 rc_w1 rc_w1
Bit 20WKUPF: CPU1 wake-up from CStop interrupt flag
Bit 16LSECSSF: LSE CSS interrupt flag
Bit 12PLL8RDYF: PLL8 ready interrupt flag
Bit 11PLL7RDYF: PLL7 ready interrupt flag
Bit 10PLL6RDYF: PLL6 ready interrupt flag
Bit 9PLL5RDYF: PLL5 ready interrupt flag
Bit 8PLL4RDYF: PLL4 ready interrupt flag

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

Bit 20 WKUPF: CPU1 wake-up from CStop interrupt flag

Reset by software by writing this flag to 1. Set by hardware when CPU1 needs to exit CStop.

0: No wake-up interrupt pending (default after reset)

1: Wake-up interrupt pending. Writing 1 clears this flag.

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

Bit 16 LSECSSF: LSE CSS interrupt flag

Reset by software by writing this flag to 1. Set by hardware when a failure is detected on the external 32 kHz oscillator.

0: No failure detected on the external 32 kHz oscillator (default after reset)

1: A failure is detected on the external 32 kHz oscillator. Writing 1 clears this flag.

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

Bit 12 PLL8RDYF: PLL8 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL8 locks.

0: No clock ready interrupt caused by PLL8 lock (default after reset)

1: Clock ready interrupt caused by PLL8 lock. Writing 1 clears this flag.

Bit 11 PLL7RDYF: PLL7 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL7 locks.

0: No clock ready interrupt caused by PLL7 lock (default after reset)

1: Clock ready interrupt caused by PLL7 lock. Writing 1 clears this flag.

Bit 10 PLL6RDYF: PLL6 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL6 locks.

0: No clock ready interrupt caused by PLL6 lock (default after reset)

1: Clock ready interrupt caused by PLL6 lock. Writing 1 clears this flag.

Bit 9 PLL5RDYF: PLL5 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL5 locks.

0: No clock ready interrupt caused by PLL5 lock (default after reset)

1: Clock ready interrupt caused by PLL5 lock. Writing 1 clears this flag.

Bit 8 PLL4RDYF: PLL4 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL4 locks.

0: No clock ready interrupt caused by PLL4 lock (default after reset)

1: Clock ready interrupt caused by PLL4 lock. Writing 1 clears this flag.

Bit 7 Reserved, must be kept at reset value.

Bit 6 PLL2RDYF: PLL2 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL2 locks.

0: No clock ready interrupt caused by PLL2 lock (default after reset)

1: Clock ready interrupt caused by PLL2 lock. Writing 1 clears this flag.

Bit 5 PLL1RDYF: PLL1 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL1 locks.

0: No clock ready interrupt caused by PLL1 lock (default after reset)

1: Clock ready interrupt caused by PLL1 lock. Writing 1 clears this flag.

Bit 4 MSIRDYF: MSI ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when MSI clock becomes stable.

0: No clock ready interrupt caused by the MSI (default after reset)

1: Clock ready interrupt caused by the MSI. Writing 1 clears this flag.

Bit 3 HSERDYF: HSE ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when HSE clock becomes stable.

0: No clock ready interrupt caused by the HSE (default after reset)

1: Clock ready interrupt caused by the HSE. Writing 1 clears this flag.

Bit 2 HSIRDYF: HSI ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when HSI clock becomes stable.

0: No clock ready interrupt caused by the HSI (default after reset)

1: Clock ready interrupt caused by the HSI. Writing 1 clears this flag.

Bit 1 LSERDYF: LSE ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when LSE clock becomes stable.

0: No clock ready interrupt caused by the LSE (default after reset)

1: Clock ready interrupt caused by the LSE. Writing 1 clears this flag.

Bit 0 LSIRDYF: LSI ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when LSI clock becomes stable.

0: No clock ready interrupt caused by the LSI (default after reset)

1: Clock ready interrupt caused by the LSI. Writing 1 clears this flag.

20.8.36 RCC CPU2 clock source interrupt enable set register (RCC_C2CIESETR)

Address offset: 0x460

Reset value: 0x0000 0000

This register is used by the CPU2 to control the interrupt source enable (see Section 20.5 for more details). Write accesses are defined according to the RCC local resource number 71 configuration (see Table 161 for details). Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
Bit 0LSIRDYF: LSI ready interrupt flag
71 configuration (seeTable 161for details). Any read access is allowed.
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WKUPI
ERes.Res.Res.LSECS SIE
15141312111098765rw 4321rw 0
Res.Res.Res.PLL8RPLL7RPLL6RPLL5RPLL4RPLL1RMSIRDHSERDHSIRDLSERDLSIRD
DYIERes.PLL2R
DYIEDYIEDYIEDYIEDYIEDYIEYIEYIEYIEYIEYIE
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 20 WKUPIE: CPU2 wake-up from CStop Interrupt Enable

Set and cleared by software to enable/disable the generation of the interrupt used to wake up the CPU2 from CStop.

0: Wake-up interrupt disabled (default after reset)

1: Wake-up interrupt enabled

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

Bit 16 LSECSSIE: LSE CSS interrupt enable

Set and cleared by software to enable/disable interrupt caused by the CSS on external 32 kHz oscillator.

0: LSE CSS interrupt disabled (default after reset)

1: LSE CSS interrupt enabled

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

Bit 12 PLL8RDYIE: PLL8 ready interrupt enable

Set and cleared by software to enable/disable interrupt caused by PLL8 lock.

0: PLL8 lock interrupt disabled (default after reset)

1: PLL8 lock interrupt enabled

Bit 11 PLL7RDYIE: PLL7 ready interrupt enable

Set and cleared by software to enable/disable interrupt caused by PLL7 lock.

0: PLL7 lock interrupt disabled (default after reset)

1: PLL7 lock interrupt enabled

Bit 10 PLL6RDYIE: PLL6 ready interrupt enable

Set and cleared by software to enable/disable interrupt caused by PLL6 lock.

0: PLL6 lock interrupt disabled (default after reset)

1: PLL6 lock interrupt enabled

Bit 9 PLL5RDYIE: PLL5 ready interrupt enable

Set and cleared by software to enable/disable interrupt caused by PLL5 lock.

0: PLL5 lock interrupt disabled (default after reset)

1: PLL5 lock interrupt enabled

Bit 8 PLL4RDYIE: PLL4 ready interrupt enable

Set and cleared by software to enable/disable interrupt caused by PLL4 lock.

0: PLL4 lock interrupt disabled (default after reset)

1: PLL4 lock interrupt enabled

Bit 7 Reserved, must be kept at reset value.

Bit 6 PLL2RDYIE: PLL2 ready interrupt enable

Set and cleared by software to enable/disable interrupt caused by PLL2 lock.

0: PLL2 lock interrupt disabled (default after reset)

1: PLL2 lock interrupt enabled

Bit 5 PLL1RDYIE: PLL1 ready interrupt enable

Set and cleared by software to enable/disable interrupt caused by PLL1 lock.

0: PLL1 lock interrupt disabled (default after reset)

1: PLL1 lock interrupt enabled

20.8.37 RCC CPU2 clock source interrupt flag clear register (RCC_C2CIFCLRR)

Address offset: 0x464

Reset value: 0x0000 0004

This register is used by the CPU2 to read and clear the interrupt flags. Writing 0 has no effect. Writing 1 clears the corresponding flag (see Section 20.5 for more details). Write accesses are defined according to the RCC local resource number 71 configuration (see Table 161 for details). Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
(see Table 161for details). Any read access is allowed.
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WKUP
FRes.Res.Res.LSECS SF
15141312111098765rc_w1 4321rc_w1 0
Res.Res.Res.PLL8RPLL7RPLL6RPLL5RPLL4RPLL1RMSIRDHSERDHSIRDLSERDLSIRD
DYFRes.PLL2R
DYFDYFDYFDYFDYFDYFYFYFYFYFYF
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1
Bit 20WKUPF: CPU2 wake-up from CStop interrupt flag

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

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

Bit 16 LSECSSF: LSE clock security system interrupt flag

Reset by software by writing this flag to 1. Set by hardware when a failure is detected on the external 32 kHz oscillator.

0: No failure detected on the external 32 kHz oscillator (default after reset)

1: A failure is detected on the external 32 kHz oscillator. Writing 1 clears this flag.

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

Bit 12 PLL8RDYF: PLL8 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL8 locks.

0: No clock ready interrupt caused by PLL8 lock (default after reset)

1: Clock ready interrupt caused by PLL8 lock. Writing 1 clears this flag.

Bit 11 PLL7RDYF: PLL7 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL7 locks.

0: No clock ready interrupt caused by PLL7 lock (default after reset)

1: Clock ready interrupt caused by PLL7 lock. Writing 1 clears this flag.

Bit 10 PLL6RDYF: PLL6 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL6 locks.

0: No clock ready interrupt caused by PLL6 lock (default after reset)

1: Clock ready interrupt caused by PLL6 lock. Writing 1 clears this flag.

Bit 9 PLL5RDYF: PLL5 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL5 locks.

0: No clock ready interrupt caused by PLL5 lock (default after reset)

1: Clock ready interrupt caused by PLL5 lock. Writing 1 clears this flag.

Bit 8 PLL4RDYF: PLL4 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL4 locks.

0: No clock ready interrupt caused by PLL4 lock (default after reset)

1: Clock ready interrupt caused by PLL4 lock. Writing 1 clears this flag.

Bit 7 Reserved, must be kept at reset value.

Bit 6 PLL2RDYF: PLL2 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL2 locks.

0: No clock ready interrupt caused by PLL2 lock (default after reset)

1: Clock ready interrupt caused by PLL2 lock. Writing 1 clears this flag.

Bit 5 PLL1RDYF: PLL1 ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when the PLL1 locks.

0: No clock ready interrupt caused by PLL1 lock (default after reset)

1: Clock ready interrupt caused by PLL1 lock. Writing 1 clears this flag.

Bit 4 MSIRDYF: MSI ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when MSI clock becomes stable.

0: No clock ready interrupt caused by the MSI (default after reset)

1: Clock ready interrupt caused by the MSI. Writing 1 clears this flag.

Bit 3 HSERDYF: HSE ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when HSE clock becomes stable.

0: No clock ready interrupt caused by the HSE (default after reset)

1: Clock ready interrupt caused by the HSE. Writing 1 clears this flag.

Bit 2 HSIRDYF: HSI ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when HSI clock becomes stable.

0: No clock ready interrupt caused by the HSI (default after reset)

1: Clock ready interrupt caused by the HSI. Writing 1 clears this flag.

Bit 1 LSERDYF: LSE ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when LSE clock becomes stable.

0: No clock ready interrupt caused by the LSE (default after reset)

1: Clock ready interrupt caused by the LSE. Writing 1 clears this flag.

Bit 0 LSIRDYF: LSI ready interrupt flag

Reset by software by writing this flag to 1. Set by hardware when LSI clock becomes stable.

0: No clock ready interrupt caused by the LSI (default after reset)

1: Clock ready interrupt caused by the LSI. Writing 1 clears this flag.

20.8.38 RCC IWDG CPU1 clock freeze set register (RCC_IWDGC1FZSETR)

Address offset: 0x468

Reset value: 0x0000 0000

This register is used by to freeze IWDG1 and IWDG2 clocks. After a system reset, a Standby reset (sys_rstn), or a D1 DStandby reset (vcpu_rstn), the CPU1 can write this register once. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 sets the corresponding bit to 1. Write accesses are defined according to the RCC local resource number 70 configuration (see Table 161 for details). Any read access is allowed.

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

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

Bit 1 FZ_IWDG2: Freeze of IWDG2 clock

Set once by software after a system, Standby, or D1 DStandby reset, to freeze IWDG2 clock.

0: Writing 0 has no effect. Reading 0 means IWDG2 clock is not frozen (default after reset).

1: Writing 1 freezes IWDG2 clock. Reading 1 means that the IWDG2 clock is frozen.

Bit 0 FZ_IWDG1: Freeze of IWDG1 clock

Set once by software after a system, Standby, or D1 DStandby reset, to freeze IWDG1 clock.

0: Writing 0 has no effect. Reading 0 means IWDG1 clock is not frozen (default after reset).

1: Writing 1 freezes IWDG1 clock. Reading 1 means that IWDG1 clock is frozen.

20.8.39 RCC IWDG CPU1 clock freeze clear register (RCC_IWDGC1FZCLRR)

Address offset: 0x46C

Reset value: 0x0000 0000

This register is used to unfreeze IWDG1 and IWDG2 clocks. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 clears the corresponding bit to 0. Write accesses are defined according to the RCC local resource number 70 configuration (see Table 161 for details). Any read access is allowed.

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

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

Bit 1 FZ_IWDG2: Unfreeze IWDG2 clock

Cleared by software to unfreeze IWDG2 clock.

0: Writing 0 has no effect. Reading 0 means IWDG2 clock is not frozen (default after reset).

1: Writing 1 unfreezes IWDG2 clock. Reading 1 means that IWDG2 clock is frozen.

Bit 0 FZ_IWDG1: Unfreeze IWDG1 clock

Cleared by software to unfreeze the IWDG1 clock.

0: Writing 0 has no effect. Reading 0 means IWDG1 clock is not frozen (default after reset).

1: Writing 1 unfreezes IWDG1 clock. Reading 1 means that IWDG1 clock is frozen.

20.8.40 RCC IWDG CPU1 configuration set register (RCC_IWDGC1CFGSETR)

Address offset: 0x470

Reset value: 0x0000 0000

This register is used to enable IWDG1 and IWDG2 timeout event reset behavior, and to activate IWDG2 kernel reset. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 sets the corresponding bit to 1. Wait states are inserted in case of successive write accesses to IWDG1_SYSRSTEN and IWDG2_SYSRSTEN.

The number of wait states may be up to 7 cycles of the RCC clock. IWDG1_SYSRSTEN

and IWDG2_SYSRSTEN are reset by app_rstn reset, and are located in VDD domain.
IWDG2_KERRST is reset by sys_rstn reset. Write accesses are defined according to the RCC local resource number 70 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IWDG2_KERRSTRes.Res.
rs
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IWDG2_SYSRSTENRes.IWDG1_SYSRSTEN
rsrs

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

Bit 18 IWDG2_KERRST: IWDG2 kernel reset

Set by software.

0: Writing 0 has no effect. Reading 0 means that the IWDG2 kernel reset is not active.

1: Writing 1 activates IWDG2 kernel reset Reading 1 means IWDG2 kernel reset is active.

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

Bit 2 IWDG2_SYSRSTEN: Enable of IWDG2 timeout event to reset the application

Set by software.

0: Writing 0 has no effect. Reading 0 means that IWDG2 timeout event cannot trigger an application reset.

1: Writing 1 enables IWDG2 timeout event to reset the application. Reading 1 means that IWDG2 timeout event triggers an application reset.

Bit 1 Reserved, must be kept at reset value.

Bit 0 IWDG1_SYSRSTEN: Enable of IWDG1 timeout event to reset the application

Set by software.

0: Writing 0 has no effect. Reading 0 means that IWDG1 timeout event does not trigger an application reset when CPU1 is not the trusted agent.

1: Writing 1 enables IWDG1 timeout event to reset the application when CPU1 is not the trusted agent. Reading 1 means that IWDG1 timeout event triggers an application reset when CPU1 is not the trusted agent.

20.8.41 RCC IWDG CPU1 configuration clear register (RCC_IWDGC1CFGCLRR)

Address offset: 0x474

Reset value: 0x0000 0000

This register is used to disable IWDG1 and IWDG2 timeout event reset behavior, and to deactivate IWDG2 kernel reset. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 clears the corresponding bit to 0. Wait states are inserted in case of successive write accesses to IWDG1_SYSRSTEN and IWDG2_SYSRSTEN. The number of wait states may be up to 7 cycles of RCC clock. Write accesses are defined according to the RCC local resource number 70 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IWDG2_KERRSTRes.Res.
rc_w1
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IWDG2_SYSRSTENRes.IWDG1_SYSRSTEN
rc_w1rc_w1

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

Bit 18 IWDG2_KERRST: IWDG2 kernel reset

Set by software.

0: Writing 0 has no effect. Reading 0 means that IWDG2 kernel reset is not active

1: Writing 1 deactivates IWDG2 kernel reset. Reading 1 means IWDG2 kernel reset is active.

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

Bit 2 IWDG2_SYSRSTEN: Clear of IWDG2 timeout event to reset the application

Set by software.

0: Writing 0 has no effect. Reading 0 means that IWDG2 timeout event cannot trigger an application reset.

1: Writing 1 clears IWDG2 timeout event to reset the application. Reading 1 means that IWDG2 timeout event is enabled.

Bit 1 Reserved, must be kept at reset value.

Bit 0 IWDG1_SYSRSTEN: Clear of IWDG1 timeout event to reset the application

Set by software.

0: Writing 0 has no effect. Reading 0 means that IWDG1 timeout event cannot trigger an application reset when CPU1 is not the trusted agent.

1: Writing 1 clears IWDG1 timeout event to reset the application when CPU1 is not the trusted agent. Reading 1 means that IWDG1 timeout event triggers an application reset when CPU1 is not the trusted agent.

20.8.42 RCC IWDG CPU2 clock freeze set register (RCC_IWDGC2FZSETR)

Address offset: 0x478

Reset value: 0x0000 0000

This register is used by to freeze IWDG3 and IWDG4 clocks. After a system reset, or a Standby reset (sys_rstn), the CPU2 can write this register once. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 sets the corresponding bit to 1. Write accesses are defined according to the RCC local resource number 71 configuration (see Table 161 for details). Any read access is allowed.

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.FZ_IW
DG4
FZ_IW
DG3
rsrs

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

Bit 1 FZ_IWDG4: Freeze of IWDG4 clock

Set once by software after a system or Standby reset to freeze IWDG4 clock.

0: Writing 0 has no effect. Reading 0 means IWDG4 clock is not frozen (default after reset).

1: Writing 1 freezes IWDG4 clock. Reading 1 means that IWDG4 clock is frozen.

Bit 0 FZ_IWDG3: Freeze of IWDG3 clock

Set once by software after a system or Standby reset to freeze IWDG3 clock.

0: Writing 0 has no effect. Reading 0 means IWDG3 clock is not frozen (default after reset).

1: Writing 1 freezes IWDG3 clock. Reading 1 means that IWDG3 clock is frozen.

20.8.43 RCC IWDG CPU2 clock freeze clear register (RCC_IWDGC2FZCLRR)

Address offset: 0x47C

Reset value: 0x0000 0000

This register is used to unfreeze IWDG3 and IWDG4 clocks. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 clears the corresponding bit to 0. Write accesses are defined according to the RCC local resource number 71 configuration (see Table 161 for details). Any read access is allowed.

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.FZ_IW
DG4
FZ_IW
DG3
rc_w1rc_w1

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

20.8.44 RCC IWDG CPU2 configuration set register (RCC_IWDGC2CFGSETR)

Address offset: 0x480

Reset value: 0x0000 0000

This register is used to enable IWDG3 and IWDG4 timeout event reset behavior, and to activate IWDG4 kernel reset. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 sets the corresponding bit to 1. Wait states are inserted in case of successive write accesses to IWDG3_SYSRSTEN and IWDG4_SYSRSTEN. The number of wait states may be up to 7 cycles of the RCC clock. IWDG3_SYSRSTEN and IWDG4_SYSRSTEN are reset by app_rstn reset, and are located in the VDD domain. IWDG4_KERRST is reset by sys_rstn reset. Write accesses are defined according to the RCC local resource number 71 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IWDG4_KERRSTRes.Res.
rs
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IWDG4_SYSRSTENRes.IWDG3_SYSRSTEN
rsrs

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

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

Bit 1 Reserved, must be kept at reset value.

ST logo
ST logo

Bit 0 IWDG3_SYSRSTEN: Enable of IWDG3 timeout event to reset the application

Set by software.

0: Writing 0 has no effect. Reading 0 means that IWDG3 timeout event does not trigger an application reset when CPU1 is not the trusted agent.

1: Writing 1 enables IWDG3 timeout event to reset the application when CPU1 is not the trusted agent. Reading 1 means that IWDG3 timeout event triggers an application reset when CPU1 is not the trusted agent.

20.8.45 RCC IWDG CPU2 configuration clear register (RCC_IWDGC2CFGCLRR)

Address offset: 0x484

Reset value: 0x0000 0000

This register is used to disable IWDG3 and IWDG4 timeout event reset behavior, and to deactivate IWDG4 kernel reset. Writing 0 has no effect. Reading returns the effective values of the corresponding bits. Writing 1 clears the corresponding bit to 0. Wait states are inserted in case of successive write accesses to IWDG3_SYSRSTEN and IWDG4_SYSRSTEN. The number of wait states may be up to 7 cycles of the RCC clock. Write accesses are defined according to the RCC local resource number 71 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IWDG4_KERRSTRes.Res.
rc_w1
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IWDG4_SYSRSTENRes.IWDG3_SYSRSTEN
rc_w1rc_w1

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

Bit 18 IWDG4_KERRST: IWDG4 kernel reset

Set by software.

0: Writing 0 has no effect. Reading 0 means that IWDG4 kernel reset is not active.

1: Writing 1 deactivates IWDG4 kernel reset. Reading 1 means IWDG4 kernel reset is active.

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

Bit 2 IWDG4_SYSRSTEN: Clear of IWDG4 timeout event to reset the application

Set by software.

0: Writing 0 has no effect. Reading 0 means that IWDG4 timeout event cannot trigger an application reset.

1: Writing 1 clears IWDG4 timeout event to reset the application. Reading 1 means that IWDG4 timeout event is enabled.

Bit 1 Reserved, must be kept at reset value.

Bit 0 IWDG3_SYSRSTEN: Clear of IWDG3 timeout event to reset the application

Set by software.

0: Writing 0 has no effect. Reading 0 means that IWDG3 timeout event cannot trigger an application reset when CPU1 is not the trusted agent.

1: Writing 1 clears IWDG3 timeout event to reset the application when CPU1 is not the trusted agent. Reading 1 means that IWDG3 timeout event triggers an application reset when CPU1 is not the trusted agent.

20.8.46 RCC MCO1 configuration register (RCC_MCO1CFGR)

Address offset: 0x488

Reset value: 0x0000 0000

This register is used to select the clock generated on the MCO1 output. Write accesses are defined according to the RCC local resource number 108 configuration (see Table 161 for details). Any read access is allowed.

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.MCO1
ON
Res.Res.Res.Res.Res.Res.Res.MCO1
SEL
rwrw

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

Bit 8 MCO1ON: Control of MCO1 output

Set and cleared by software.

0: MCO1 output disabled (default after reset)

1: MCO1 output enabled

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

Bit 0 MCO1SEL: MCO1 clock output selection

Set and cleared by the software. Clock source selection may generate glitches on MCO1. It is highly recommended to configure this bit only after reset, before enabling the external oscillators and the PLLs.

0: Channel 61 output of the flexclkgen engine (default after reset)

1: Clock observation 0 of the flexclkgen engine

20.8.47 RCC MCO2 configuration register (RCC_MCO2CFGR)

Address offset: 0x48C

Reset value: 0x0000 0000

This register is used to select the clock generated on the MCO2 output. Write accesses are defined according to the RCC local resource number 109 configuration (see Table 161 for details). Any read access is allowed.

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.MCO2
ON
Res.Res.Res.Res.Res.Res.Res.MCO2
SEL
rwrw

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

Bit 8 MCO2ON: Control of the MCO2 output

Set and cleared by software.

0: MCO2 output disabled (default after reset)

1: MCO2 output enabled

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

Bit 0 MCO2SEL: MCO2 clock output selection

Set and cleared by software. Clock source selection may generate glitches on MCO2. It is highly recommended to configure this bit only after reset, before enabling the external oscillators and the PLLs.

0: Channel 62 output of the flexclkgen engine (default after reset)

1: Clock observation 1 of the flexclkgen engine

20.8.48 RCC oscillator clock enable set register (RCC_OCENSETR)

Address offset: 0x490

Reset value: 0x0000 0001

This register is used to control the oscillators. Writing 0 has no effect. Writing 1 sets the corresponding bits. Reading gives the effective values of each bit. Write access to this register is not allowed during the clock restore sequence (see Clock restore sequence for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.HSECS
SON
HSEBY
P
HSEKE
RON
HSEO
N
HSEDI
GBYP
HSEDI
V2BYP
HSEDI
V2ON
Res.MSIKE
RON
MSIONHSIKE
RON
HSION
rsrsrsrsrsrsrsrsrsrsrs

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

Bit 0 HSION: HSION bit set

Set by software to enable HSI. This bit is also set by hardware to force HSI on when the product exits Standby or Stop, or in case of a failure of HSE which is used as the system clock source.

0: No effect

1: Set the HSION bit.

20.8.49 RCC oscillator clock enable clear register (RCC_OCENCLRR)

Address offset: 0x494

Reset value: 0x0000 0001

This register is used to control the oscillators. Writing 0 has no effect. Writing 1 clears the corresponding bits. Reading gives the effective values of the enable bits. Write access to this register is not allowed during the clock restore sequence (see Clock restore sequence for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.HSEBYHSEKEHSEOHSEDIHSEDIHSEDI
V2ONRes.MSIKE
RONMSIONHSIKE
PRONNGBYPV2BYPRONHSION
rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1rc_w1
Bit 10HSEBYP: HSEBYP bit clear 0: No effect
Bit 9HSEKERON: HSEKERON bit clear 0: No effect
Bit 8HSEON: HSEON bit clear 0: No effect
Bit 7HSEDIGBYP: HSEDIGBYP bit clear 0: No effect
Bit 6HSEDIV2BYP: HSEDIV2BYP bit clear 0: No effect

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

Bit 10 HSEBYP: HSEBYP bit clear

Cleared by software in order to disable the bypass mode.

0: No effect

1: Clear the HSEBYP bit.

Bit 9 HSEKERON: HSEKERON bit clear

Cleared by software to allow the HSE to be switched off in Stop mode.

0: No effect

1: Clear the HSEKERON bit.

Bit 8 HSEON: HSEON bit clear

Cleared by software to disable the HSE clock.

0: No effect

1: Clear the HSEON bit.

Bit 7 HSEDIGBYP: HSEDIGBYP bit clear

Cleared by software when the external clock connected to OSC_IN is a low-swing signal.

0: No effect

1: Clear the HSEDIGBYP bit (analog bypass).

Bit 6 HSEDIV2BYP: HSEDIV2BYP bit clear

Cleared by software to use the HSE divide-by-2 clock.

0: No effect

1: Clear the HSEDIV2BYP bit.

20.8.50 RCC oscillator clock ready register (RCC_OCRDYR)

Address offset: 0x498

Reset value: 0x0000 0001

This is a read-only access register that contains the status flags of the oscillators. Writing has no effect. Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.CKRES
T rRes.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.HSERD
YRes.Res.Res.Res.Res.MSIRD
YRes.HSIRD Y
rrr
Bit 25CKREST: Clock restore state machine status

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

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

Bit 8 HSERDY: HSE clock ready flag

Set by hardware to indicate that the HSE oscillator is stable.

0: HSE clock not ready (default after reset)

1: HSE clock ready

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

Bit 2 MSIRDY: MSI clock ready flag

Set by hardware to indicate that the MSI oscillator is stable.

0: MSI clock not ready (default after reset)

1: MSI clock ready

Bit 1 Reserved, must be kept at reset value.

Bit 0 HSIRDY: HSI clock ready flag

Set by hardware to indicate that the HSI oscillator is stable.

0: HSI clock not ready (default after reset)

1: HSI clock ready

20.8.51 RCC HSI configuration register (RCC_HSIConfigR)

Address offset: 0x49C

Reset value: 0x0000 0000

This register is used to fine tune the HSI frequency. Write access is not allowed during the clock restore sequence (see Clock restore sequence for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.HSICAL[8:0]
rrrrrrrrr
1514131211109876543210
Res.HSITRIM[6:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrwrwrw

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

Bits 24:16 HSICAL[8:0]: HSI clock calibration

Set by hardware when option-byte loading during system reset. Adjusted by software through HSITRIM trimming bits.

This bitfield contains the sum of engineering option-byte calibration and HSITRIM values.

Bit 15 Reserved, must be kept at reset value.

Bits 14:8 HSITRIM[6:0]: HSI clock trimming

Set by software to adjust calibration. This bitfield represents a signed value. It is added to engineering option bytes loaded during reset phase (bsec_hsi_cal[8:0]) to form calibration trimming value: \(HSICAL[8:0] = HSITRIM[6:0] + bsec\_hsi\_cal[8:0]\).

0x40: bsec_hsi_cal[8:0] - 64

0x41: bsec_hsi_cal[8:0] - 63

...

0x0: bsec_hsi_cal[8:0] (default after reset)

...

0x3E: bsec_hsi_cal[8:0] + 62

0x3F: bsec_hsi_cal[8:0] + 63

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

20.8.52 RCC MSI configuration register (RCC_MSICFGR)

Address offset: 0x4A0

Reset value: 0x0010 1000

This register is used to fine tune the MSI frequency. Write access is not allowed during the clock restore sequence (see Clock restore sequence for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.MSICAL[7:0]
rrrrrrrr
1514131211109876543210
Res.Res.Res.MSITRIM[4:0]Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrwrw

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

Bits 23:16 MSICAL[7:0]: MSI clock calibration

Set by hardware when option-byte loading during system reset. Adjusted by software through MSITRIM trimming bits.

This bit-field contains the sum of engineering option-byte calibration and MSITRIM values.

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

Bits 12:8 MSITRIM[4:0]: MSI clock trimming

Set by software to adjust calibration. This bitfield is added to engineering option bytes loaded during reset phase (bsec_msi_cal[7:0]) to form the calibration trimming value.

\(MSICAL[7:0] = MSITRIM[4:0] + bsec\_msi\_cal[7:0]\).

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

20.8.53 RCC LSI control register (RCC_LSICR)

Address offset: 0x4A4

Reset value: 0x0000 0000

This register is used to control the LSI. This register is reset when a system reset occurs (app_rstn), but not when the circuit exits from Standby. Wait states are inserted in case of successive write accesses to this register. The number of wait states can be up to 7 cycles of the RCC clock. Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

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.LSIRD
Y
LSION
rrw

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

Bit 1 LSIRDY: LSI oscillator ready

Set and cleared by hardware to indicate when the LSI is stable. This bit needs 3 cycles of lsi_ck to fall down after LSION has been cleared to 0.

0: LSI oscillator not ready

1: LSI oscillator ready

Bit 0 LSION: LSI oscillator enabled

Set and cleared by software.

0: LSI oscillator off

1: LSI oscillator on

20.8.54 RCC RTC clock divider register (RCC_RTCDIVR)

Address offset: 0x4A8

Reset value: 0x0000 0000

This register is used to divide the HSE clock for the RTC. Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

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.RTCDIV[5:0]
rwrwrwrwrwrw

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

Bits 5:0 RTCDIV[5:0]: HSE division factor for RTC clock

Set and cleared by software to divide the HSE clock for RTC.

Caution: The software must set these bits correctly to ensure that the clock supplied to the RTC is lower than 4 MHz. These bits must be configured if needed before selecting the RTC clock source.

Note: When RTCSRC not equal to 3, this divider is disabled (does not provide clock).

0x0: HSE (default after reset)

0x1: HSE/2

0x2: HSE/3

0x3: HSE/4

...

0x3E: HSE/63

0x3F: HSE/64

20.8.55 RCC APB1 clock divider register (RCC_APB1DIVR)

Address offset: 0x4AC

Reset value: 0x8000 0000

This register is used to control the APB1 clock prescaler (see Root clock generation for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
APB1DIVRDYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APB1DIV[2:0]
rwrwrw

Bit 31 APB1DIVRDY: APB1 clock prescaler status

Set and cleared by hardware to indicate if the new division factor is taken into account.

0: The new division factor is not yet taken into account.

1: The new division factor is taken into account (default after reset).

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

Bits 2:0 APB1DIV[2:0]: APB1 clock divider

Set and cleared by software to control the APB1 clock division factor. Changing this division ratio impacts the APB1 clock domain frequency. Clocks are divided with the new prescaler factor, from 1 to 16 \(ck_{icn\_ls\_mcu}\) cycles after APB1DIV update. The application can check if the new division factor is taken into account by reading APB1DIVRDY.

0x0: \(ck_{icn\_ls\_mcu}\) (default after reset)

0x1: \(ck_{icn\_ls\_mcu} / 2\)

0x2: \(ck_{icn\_ls\_mcu} / 4\)

0x3: \(ck_{icn\_ls\_mcu} / 8\)

0x4: \(ck_{icn\_ls\_mcu} / 16\)

Others: Reserved

20.8.56 RCC APB2 clock divider register (RCC_APB2DIVR)

Address offset: 0x4B0

Reset value: 0x8000 0000

This register is used to control the APB2 clock prescaler (see Root clock generation for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
APB2DIVRDYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APB2DIV[2:0]
rwrwrw

Bit 31 APB2DIVRDY: APB2 clock prescaler status

Set and cleared by hardware to indicate if the new division factor is taken into account.

0: The new division factor is not yet taken into account.

1: The new division factor is taken into account (default after reset).

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

Bits 2:0 APB2DIV[2:0]: APB2 clock divider

Set and cleared by software to control APB2 clock division factor. Changing this division ratio impacts the APB2 clock domain frequency. Clocks are divided with the new prescaler factor, from 1 to 16 \(ck_{icn\_ls\_mcu}\) cycles after APB2DIV update. The application can check if the new division factor is taken into account by reading APB2DIVRDY.

0x0: \(ck_{icn\_ls\_mcu}\) (default after reset)

0x1: \(ck_{icn\_ls\_mcu} / 2\)

0x2: \(ck_{icn\_ls\_mcu} / 4\)

0x3: \(ck_{icn\_ls\_mcu} / 8\)

0x4: \(ck_{icn\_ls\_mcu} / 16\)

Others: Reserved

20.8.57 RCC APB3 clock divider register (RCC_APB3DIVR)

Address offset: 0x4B4

Reset value: 0x8000 0000

This register is used to control the APB3 clock prescaler (see Root clock generation for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
APB3DIVRDYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APB3DIV[2:0]
rwrwrw

Bit 31 APB3DIVRDY: APB3 clock prescaler status

Set and cleared by hardware to indicate if the new division factor is taken into account.

0: The new division factor is not yet taken into account.

1: The new division factor is taken into account. (default after reset)

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

Bits 2:0 APB3DIV[2:0]: APB3 clock divider

Set and cleared by software to control APB3 clock division factor.

Changing this division ratio has an impact on the frequency of the APB3 clock domain.

Clocks are divided with the new prescaler factor, from 1 to 16 \(ck_{icn\_ls\_mcu}\) cycles after APB3DIV update. The application can check if the new division factor is taken into account by reading APB3DIVRDY.

0x0: \(ck_{icn\_ls\_mcu}\) (default after reset)

0x1: \(ck_{icn\_ls\_mcu} / 2\)

0x2: \(ck_{icn\_ls\_mcu} / 4\)

0x3: \(ck_{icn\_ls\_mcu} / 8\)

0x4: \(ck_{icn\_ls\_mcu} / 16\)

Others: Reserved

20.8.58 RCC APB4 clock divider register (RCC_APB4DIVR)

Address offset: 0x4B8

Reset value: 0x8000 0000

This register is used to control the APB4 clock divider (see Root clock generation for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
APB4DIVRDYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APB4DIV[2:0]
rwrwrw

Bit 31 APB4DIVRDY: APB4 clock divider status

Set and cleared by hardware to indicate if the new division factor is taken into account.

0: The new division factor is not yet taken into account.

1: The new division factor is taken into account (default after reset).

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

Bits 2:0 APB4DIV[2:0]: APB4 clock divider

Set and cleared by software to control APB4 clock division factor. This division ratio can be changed on-the-fly. It impacts only the APB4 clock frequency. Clocks are divided with the new prescaler factor, from 1 to 16 \(ck_{icn\_ls\_mcu}\) cycles after APB4DIV update. The application can check if the new division factor is taken into account by reading APB4DIVRDY.

0x0: \(ck_{icn\_ls\_mcu}\) (default after reset)

0x1: \(ck_{icn\_ls\_mcu} / 2\)

0x2: \(ck_{icn\_ls\_mcu} / 4\)

0x3: \(ck_{icn\_ls\_mcu} / 8\)

0x4: \(ck_{icn\_ls\_mcu} / 16\)

Others: Reserved

20.8.59 RCC APB5 clock divider register (RCC_APB5DIVR)

Address offset: 0x4BC

Reset value: 0x8000 0000

This register is used to control the APB5 clock divider (see Root clock generation for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
APB5DIVRDYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APB5DIV[2:0]
rwrwrw

Bit 31 APB5DIVRDY: APB5 clock divider status

Set and cleared by hardware to indicate if the new division factor is taken into account.

0: The new division factor is not yet taken into account.

1: The new division factor is taken into account (default after reset).

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

Bits 2:0 APB5DIV[2:0]: APB5 clock divider

Set and cleared by software to control APB5 clock division factor. This division ratio can be changed on-the-fly. It impacts only the APB5 clock frequency. Clocks are divided with the new prescaler factor, from 1 to 16 \(ck_{icn\_ls\_mcu}\) cycles after APB5DIV update. The application can check if the new division factor is taken into account by reading APB5DIVRDY.

0x0: \(ck_{icn\_ls\_mcu}\) (default after reset)

0x1: \(ck_{icn\_ls\_mcu} / 2\)

0x2: \(ck_{icn\_ls\_mcu} / 4\)

0x3: \(ck_{icn\_ls\_mcu} / 8\)

0x4: \(ck_{icn\_ls\_mcu} / 16\)

Others: Reserved

20.8.60 RCC APBDBG clock divider register (RCC_APBDBGDIVR)

Address offset: 0x4C0

Reset value: 0x8000 0000

This register is used to control the APBDBG clock divider (see Root clock generation for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
APBDBGDIVRDYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.APBDBGDIV[2:0]
rwrwrw

Bit 31 APBDBGDIVRDY: APBDBG clock divider status

Set and cleared by hardware to indicate if the new division factor is taken into account.

0: The new division factor is not yet taken into account.

1: The new division factor is taken into account (default after reset).

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

Bits 2:0 APBDBGDIV[2:0]: APBDBG clock divider

Set and cleared by software to control APBDBG clock division factor. This division ratio can be changed on-the-fly. It impacts only the APBDBG clock frequency. Clocks are divided with the new prescaler factor, from 1 to 16 \(ck_{icn\_ls\_mcu}\) cycles after APBDBGDIV update.

The application can check if the new division factor is taken into account by reading APBDBGDIVRDY.

0x0: \(ck_{icn\_ls\_mcu}\) (default after reset)

0x1: \(ck_{icn\_ls\_mcu} / 2\)

0x2: \(ck_{icn\_ls\_mcu} / 4\)

0x3: \(ck_{icn\_ls\_mcu} / 8\)

0x4: \(ck_{icn\_ls\_mcu} / 16\)

Others: Reserved

20.8.61 RCC TIM group 1 prescaler register (RCC_TIMG1PRER)

Address offset: 0x4C8

Reset value: 0x8000 0000

This register is used to control the prescaler value of timers located in the APB1 domain: TIM2 to TIM7, and TIM10 to TIM14 (see Root clock generation for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
TIMG1
PRERDY
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIMG1
PRE
rw

Bit 31 TIMG1PRERDY: Clock prescaler status for timers of group 1

Set and cleared by hardware to indicate if the new division factor is taken into account.

0: The new division factor is not yet taken into account.

1: The new division factor is taken into account (default after reset).

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

Bit 0 TIMG1PRE: Clock prescaler selection for timers of group 1

This bit is set and cleared by software to control the clock frequency of all timers connected to APB1 domain (see Table 126).

0: Timer kernel clock is equal to \(ck_{icn\_ls\_mcu}\) if APB1DIV corresponds to a division by 1 or 2. Otherwise it is equal to \(2 \times Fck_{icn\_apb1}\) (default after reset).

1: Timer kernel clock is equal to \(ck_{icn\_ls\_mcu}\) if APB1DIV corresponds to a division by 1, 2, or 4. Otherwise, it is equal to \(4 \times Fck_{icn\_apb1}\).

20.8.62 RCC TIM group 2 prescaler register (RCC_TIMG2PRER)

Address offset: 0x4CC

Reset value: 0x8000 0000

This register is used to control the prescaler value of timers located in the APB2 domain: TIM1, TIM8, TIM15, TIM16, TIM17 (see Root clock generation for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
TIMG2
PRERDY
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TIMG2
PRE
rw

Bit 31 TIMG2PRERDY: Clock prescaler status for timers of group 2

Set and cleared by hardware to indicate if the new division factor is taken into account.

0: The new division factor is not yet taken into account.

1: The new division factor is taken into account. (default after reset)

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

Bit 0 TIMG2PRE: Clock prescaler selection for timers of group 2

This bit is set and cleared by software to control the clock frequency of all timers connected to APB2 domain (see Table 126).

0: Timer kernel clock is equal to ck_icn_ls_mcu if APB2DIV corresponds to a division by 1 or 2. Otherwise it is equal to 2 x Fck_icn_apb2 (default after reset).

1: Timer kernel clock is equal to ck_icn_ls_mcu if APB2DIV corresponds to division by 1, 2, or 4.Otherwise it is equal to 4 x Fck_icn_apb2.

20.8.63 RCC LSMMCU clock divider register (RCC_LSMCUDIVR)

Address offset: 0x4D0

Reset value: 0x8000 0000

This register is used to control the LSMU (low-speed MCU clock divider, see Root clock generation for details). Write accesses are defined according to the RCC local resource number 69 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
LSMCU
DIVRD
Y
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LSMCU
DIV
rw

Bit 31 LSMCUDIVRDY: LSMMCU clock divider status

Set and cleared by hardware to indicate if the new division factor is taken into account.

0: The new division factor is not yet taken into account.

1: The new division factor is taken into account (default after reset).

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

Bit 0 LSMCUDIV: LSMMCU clock divider

Set and cleared by software to control ck_icn_ls_mcu clock division factor. This division ratio can be changed on-the-fly. It impacts only the ck_icn_ls_mcu clock frequency. This clock is divided with the new prescaler factor, from 1 to 2 ck_icn_hs_mcu cycles after LSMCUDIV update. The application can check if the new division factor is taken into account by reading LSMCUDIVRDY.

0x0: ck_icn_hs_mcu (default after reset)

0x1: ck_icn_hs_mcu / 2

20.8.64 RCC DDRCTRL AXI port configuration register (RCC_DDRCPCFGR)

Address offset: 0x4D4

Reset value: 0x0000 0005

This register is used to control reset, clock gating, and low-power behavior of the DDRCTRL AXI ports. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

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.DDRC
PLPEN
DDRC
PEN
DDRC
PRST
rwrwrw

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

Bit 2 DDRCPLPEN: DDRCTRL AXI port clock enable during CSleep

Set and cleared by software. This bit controls ck_icn_s_ddr clock gating in CSleep.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 DDRCPEN: DDRCTRL AXI port clock enable

Set and cleared by software. This bit control sck_icn_s_ddr clock gating.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 DDRCPRST: DDRCTRL AXI port reset

Set and cleared by software.

0: Writing 0 releases DDRCTRL AXI port interface reset. Reading 0 means that DDRCTRL AXI port interface is not under reset (default after reset).

1: Writing 1 sets DDRCTRL AXI port interface under reset. Reading 1 means that DDRCTRL AXI port interface is under reset.

20.8.65 RCC DDRCTRL APB configuration register (RCC_DDRCAPBCFGR)

Address offset: 0x4D8

Reset value: 0x0000 0005

This register is used to control reset, clock gating, and low-power behavior of the DDRCTRL APB. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

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.DDRC
APBLP
EN
DDRC
APBEN
DDRC
APBRS
T
rwrwrw

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

Bit 2 DDRCAPBLPEN: DDRCTRL APB clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 DDRCAPBEN: DDRCTRL APB clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 DDRCAPBRST: DDRCTRL APB reset

Set and cleared by software.

0: Writing 0 releases DDRCTRL APB interface reset. Reading 0 means that DDRCTRL APB interface is not under reset (default after reset).

1: Writing 1 sets DDRCTRL APB interface under reset. Reading 1 means that DDRCTRL APB interface is under reset.

20.8.66 RCC DDRPHYC APB configuration register (RCC_DDRPHYCAPBCFGR)

Address offset: 0x4DC

Reset value: 0x0000 0005

This register is used to control reset, clock gating, and low-power behavior of the DDRPHYC APB interface. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

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.DDRP
HYCAP
BLPEN
DDRP
HYCAP
BEN
DDRP
HYCAP
BRST
rwrwrw

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

Bit 2 DDRPHYCAPBLPEN: DDRPHYC APB clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 DDRPHYCAPBEN: DDRPHYC APB clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 DDRPHYCAPBRST: DDRPHYC APB reset

Set and cleared by software.

0: Writing 0 releases DDRPHYC APB interface reset. Reading 0 means that DDRPHYC APB interface is not under reset (default after reset).

1: Writing 1 sets DDRPHYC APB interface under reset. Reading 1 means that DDRPHYC APB interface is under reset.

20.8.67 RCC DDRPHYC configuration register (RCC_DDRPHYCCFGR)

Address offset: 0x4E0

Reset value: 0x0000 0000

This register is used to control clock gating behavior of the DDRPHYC. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

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.DDRP
HYCEN
Res.
rw

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

Bit 1 DDRPHYCEN: DDRPHYC kernel clock enable

Set and cleared by software.

0: Writing 0 disables DDRPHYC kernel clock. Reading 0 means that DDRPHYC kernel clock is disabled.

1: Writing 1 enables DDRPHYC kernel clock. Reading 1 means that DDRPHYC kernel clock is enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.68 RCC DDR configuration register (RCC_DDRCFGR)

Address offset: 0x4E4

Reset value: 0x0000 0005

This register is used to control reset, clock gating, and low-power behavior of the DDR APB configuration. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

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.DDRCF
GLPEN
DDRCF
GEN
DDRCF
GRST
rwrwrw

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

Bit 2 DDRCFGLPEN: DDR APB configuration clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 DDRCFGEN: DDR APB configuration clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 DDRCFGRST: DDR APB configuration reset

Set and cleared by software.

0: Writing 0 releases DDR APB configuration interface reset. Reading 0 means that DDR APB configuration interface is not under reset (default after reset).

1: Writing 1 sets DDR APB configuration interface under reset. Reading 1 means that DDR APB configuration interface is under reset.

20.8.69 RCC DDR interface configuration register (RCC_DDRITFCFGR)

Address offset: 0x4E8

Reset value: 0x0000 0001

This register is used to control the DDR interface according to supported low-power modes. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DDRP
HYDLP
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.DDRS
HR
Res.Res.DDRCCKMOD[1:0]Res.Res.Res.DDRR
ST
rwrwrwrw

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

Bit 16 DDRPHYDLP: DDRPHY deep low-power mode (LP2 or LP3)

Set and cleared by software.

0: DDRPHY not set in low-power mode (default after reset)

1: DDRPHY set in deep low-power mode

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

Bit 8 DDRSR: DDR peripheral mode

Set and cleared by software.

0: DDR defined as single peripheral (default after reset)

1: DDR defined as shared peripheral

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

Bits 5:4 DDRCKMOD[1:0]: RCC mode for DDR clock control

Set and cleared by software.

0x0: Normal mode: dphy_ker_ck and dphy_ker_byp_ck gating depends on DDRPHYCEN, DDRSHR, DDRPHYDLP, and CPU1 or system mode. ddrc_ker_ck gating depends on DDRCPEN, DDRCPLPEN, DDRSHR, and CPU1 or system mode. This mode must be selected during DDRCTRL and DDRPHYC initialization phase, and if the application uses SSR (software self-refresh) mode.

0x1: ASR (automatic self-refresh) mode: ddrc_ker_ck is gated automatically according to cactive_ddrc signal. dphy_ker_ck and dphy_ker_byp_ck must be kept running in this mode.

0x2: HSR (hardware self-refresh) mode: ddrc_ker_ck gating depends on DDRCPEN, DDRCPLPEN, DDRSHR, and CPU1 or system mode. The dphy_ker_ck and dphy_ker_byp_ck must be kept running in this mode.

Others: Reserved

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

Bit 0 DDRRST: DDR core and PHY reset

Set and cleared by software.

0: DDR core and PHY are not reset.

1: DDR core and PHY are reset (default after reset).

20.8.70 RCC SYSRAM configuration register (RCC_SYSRAMCFGR)

Address offset: 0x4F0

Reset value: 0x0000 0004

This register is used to control clock gating and low-power behavior of the SYSRAM.

Write accesses are defined according to the RCC local resource number 74 configuration (see Table 161 for details). Any read access is allowed.

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

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

Bit 2 SYSRAMLPEN: SYSRAM clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SYSRAMEN: SYSRAM clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.71 RCC SRAM1 configuration register (RCC_SRAM1CFGR)

Address offset: 0x4F8

Reset value: 0x0000 0004

This register is used to control clock gating and low-power behavior of the SRAM1.
Write accesses are defined according to the RCC local resource number 78 configuration (see Table 161 for details). Any read access is allowed.

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.SRAM1
LPEN
SRAM1
EN
Res.
rwrw

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

Bit 2 SRAM1LPEN: SRAM1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SRAM1EN: SRAM1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.72 RCC RETRAM configuration register (RCC_RETRAMCFGR)

Address offset: 0x500

Reset value: 0x0000 0006

This register is used to control clock gating and low-power behavior of the RETRAM.
Write accesses are defined according to the RCC local resource number 76 configuration (see Table 161 for details). Any read access is allowed.

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.RETRA
MLPEN
RETRA
MEN
Res.
rwrw

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

Bit 2 RETRAMLPEN: RETRAM clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 RETRAMEN: RETRAM clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.73 RCC BKPSRAM configuration register (RCC_BKPSRAMCFGR)

Address offset: 0x504

Reset value: 0x0000 0004

This register is used to control clock gating and low-power behavior of the BKPSRAM. Write accesses are defined according to the RCC local resource number 77 configuration (see Table 161 for details). Any read access is allowed.

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.BKPSR
AMLPE
N
BKPSR
AMEN
Res.
rwrw

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

Bit 2 BKPSRAMLPEN: BKPSRAM clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 BKPSRAMEN: BKPSRAM clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.74 RCC OCTOSPI1 configuration register (RCC_OSPI1CFGR)

Address offset: 0x514

Reset value: 0x0000 0004

This register is used to control the reset, clock gating, and low-power behavior of the OCTOSPI1 and the OTFDEC1. Write accesses are defined according to the RCC local resource number 110 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OSPI1
DLLRST
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.OTFDEC1RSTRes.Res.Res.Res.Res.OSPI1LPENOSPI1ENOSPI1RST
rwrwrwrw

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

Bit 16 OSPI1DLLRST: OCTOSPI1 DLL reset

Set and cleared by software.

0: Writing 0 releases OCTOSPI1 DLL reset. Reading 0 means that OCTOSPI1 DLL reset is released.

1: Writing 1 asserts OCTOSPI1 DLL reset. Reading 1 means that OCTOSPI1 DLL reset is asserted.

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

Bit 8 OTFDEC1RST: OTFDEC1 reset

Set and cleared by software.

0: Writing 0 releases OTFDEC1 reset. Reading 0 means that OTFDEC1 reset is released.

1: Writing 1 asserts OTFDEC1 reset. Reading 1 means that OTFDEC1 reset is asserted.

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

Bit 2 OSPI1LPEN: OCTOSPI1, OTFDEC1 and OCTOSPI1 delay (DLYBOSPI1) clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 OSPI1EN: OCTOSPI1 and OTFDEC1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 OSPI1RST: OCTOSPI1 reset

Set and cleared by software.

0: Writing 0 releases OCTOSPI1 reset. Reading 0 means that OCTOSPI1 reset is released.

1: Writing 1 asserts OCTOSPI1 reset. Reading 1 means that OCTOSPI1 reset is asserted.

20.8.75 RCC FMC configuration register (RCC_FMCCFGR)

Address offset: 0x51C

Reset value: 0x0000 0004

This register is used to control the reset, clock gating, and low-power behavior of the FMC. Write accesses are defined according to the RCC local resource number 112 configuration (see Table 161 for details). Any read access is allowed.

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.FMCLP
EN
FMCE
N
FMCR
ST
rwrwrw

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

Bit 2 FMCLPEN: FMC clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 FMCE: FMC clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 FMCRST: FMC reset

Set and cleared by software.

0: Writing 0 releases FMC reset. Reading 0 means that FMC reset is released.

1: Writing 1 asserts FMC reset. Reading 1 means that FMC reset is asserted.

20.8.76 RCC debug configuration register (RCC_DBGCFGR)

Address offset: 0x520

Reset value: 0x0000 0000

This register contains the enable control of debug and trace functions. Write accesses are defined according to the RCC local resource number 73 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.DBG
RST
Res.DBG
M
CUEN
TRACE
EN
DBG
E
N
Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrwrw

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

Bit 12 DBGRST: Debug function reset

Set and cleared by software to control the reset generation for trace and all debug.

0: Trace and debug parts are not reset (default after reset).

1: Trace and debug parts are under reset.

Bit 11 Reserved, must be kept at reset value.

Bit 10 DBGMCUEN: Clock enable for dbgmcu

Set and cleared by software to control ck_icn_p_dbgmcu and ck_dap generation.

0: Clock for dbgmcu function disabled (default after reset)

1: Clock for dbgmcu function enabled

Bit 9 TRACEEN: Clock enable for trace port interface

Set and cleared by software to control ck_ker_tpiu generation.

0: Clock for trace function disabled (default after reset)

1: Clock for trace function enabled

Bit 8 DBGGEN: Debug function clock enable

Set and cleared by software to control ck_icn_apbdbg and ck_sys_atb generation.

0: Enabling of clocks for debug function is controlled by cdbgpwrupreq signal from DAP (default after reset).

1: Clocks for debug function are enabled.

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

20.8.77 RCC STM configuration register (RCC_STMCFGR)

Address offset: 0x524

Reset value: 0x0000 0004

This register is used to control clock gating and low-power behavior of the STM. Write accesses are defined according to the RCC local resource number 73 configuration (see Table 161 for details). Any read access is allowed.

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.STMLP
EN
STMENRes.
rwrw

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

Bit 2 STMLPEN: STM clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 STMEN: STM clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.78 RCC ETR configuration register (RCC_ETRCFGR)

Address offset: 0x528

Reset value: 0x0000 0004

This register is used to control clock gating and low-power behavior of the Cortex-A35 ETR interface. Write accesses are defined according to the RCC local resource number 73 configuration (see Table 161 for details). Any read access is allowed.

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.ETRLP
EN
ETRENRes.
rwrw

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

Bit 2 ETRLPEN: ETR clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 ETREN: ETR clocks enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.79 RCC GPIOx configuration register (RCC_GPIOxCFGR) (x = A to I)

Address offset: Block A: 0x52C

Address offset: Block B: 0x530

Address offset: Block C: 0x534

Address offset: Block D: 0x538

Address offset: Block E: 0x53C

Address offset: Block F: 0x540

Address offset: Block G: 0x544

Address offset: Block H: 0x548

Address offset: Block I: 0x54C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the GPIOx. Write accesses are defined according to the RCC local resource number 90 to 98 configuration (see Table 161 for details). Any read access is allowed.

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.GPIOx LPENGPIOx ENGPIOx RST
rwrwrw

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

Bit 2 GPIOxLPEN: GPIO x clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 GPIOxEN: GPIO x clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 GPIOxRST: GPIO x reset

Set and cleared by software.

0: Writing 0 releases GPIOx reset. Reading 0 means that GPIOx reset is released.

1: Writing 1 asserts GPIOx reset. Reading 1 means that GPIOx reset is asserted.

20.8.80 RCC GPIOZ configuration register (RCC_GPIOZCFGR)

Address offset: 0x558

Reset value: 0x0000 0004

This register is used to control reset, clock gating, low-power, and autonomous clock mode behavior of the GPIOZ. Wait states are inserted in case of successive write accesses to this register, except on GPIOZRST. The number of wait states may be up to 7 cycles of the RCC clock. Write accesses are defined according to the RCC local resource number 101 configuration (see Table 161 for details). Any read access is allowed.

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.GPIOZ
LPEN
GPIOZ
EN
GPIOZ
RST
rwrwrw

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

Bit 2 GPIOZLPEN: GPIOZ clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 GPIOZEN: GPIOZ clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 GPIOZRST: GPIOZ reset

Set and cleared by software.

0: Writing 0 releases GPIOZ reset. Reading 0 means that GPIOZ reset is released.

1: Writing 1 asserts GPIOZ reset. Reading 1 means that GPIOZ reset is asserted.

20.8.81 RCC HPDMA1 configuration register (RCC_HPDMA1CFGR)

Address offset: 0x55C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the HPDMA1. Write accesses are defined according to the RCC local resource number 83 configuration (see Table 161 for details). Any read access is allowed.

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.HPDM
A1LPE
N
HPDM
A1EN
HPDM
A1RST
rwrwrw

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

Bit 2 HPDMA1LPEN: HPDMA1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 HPDMA1EN: HPDMA1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 HPDMA1RST: HPDMA1 reset

Set and cleared by software.

0: Writing 0 releases HPDMA1 reset. Reading 0 means that HPDMA1 reset is released.

1: Writing 1 asserts HPDMA1 reset. Reading 1 means that HPDMA1 reset is asserted.

20.8.82 RCC HPDMA2 configuration register (RCC_HPDMA2CFGR)

Address offset: 0x560

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the HPDMA2. Write accesses are defined according to the RCC local resource number 84 configuration (see Table 161 for details). Any read access is allowed.

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.HPDM
A2LPE
N
HPDM
A2EN
HPDM
A2RST
rwrwrw

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

Bit 2 HPDMA2LPEN: HPDMA2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 HPDMA2EN: HPDMA2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 HPDMA2RST: HPDMA2 reset

Set and cleared by software.

0: Writing 0 releases HPDMA2 reset. Reading 0 means that HPDMA2 reset is released.

1: Writing 1 asserts HPDMA2 reset. Reading 1 means that HPDMA2 reset is asserted.

20.8.83 RCC HPDMA3 configuration register (RCC_HPDMA3CFGR)

Address offset: 0x564

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the HPDMA3. Write accesses are defined according to the RCC local resource number 85 configuration (see Table 161 for details). Any read access is allowed.

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.HPDM
A3LPE
N
HPDM
A3EN
HPDM
A3RST
rwrwrw

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

Bit 2 HPDMA3LPEN: HPDMA3 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 HPDMA3EN: HPDMA3 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 HPDMA3RST: HPDMA3 reset

Set and cleared by software.

0: Writing 0 releases HPDMA3 reset. Reading 0 means that HPDMA3 reset is released.

1: Writing 1 asserts HPDMA3 reset. Reading 1 means that HPDMA3 reset is asserted.

20.8.84 RCC IPCC1 configuration register (RCC_IPCC1CFGR)

Address offset: 0x570

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of IPCC1. Write accesses are defined according to the RCC local resource number 87 configuration (see Table 161 for details). Any read access is allowed.

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

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

Bit 2 IPCC1LPEN: IPCC1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 IPCC1EN: IPCC1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 IPCC1RST: IPCC1 reset

Set and cleared by software.

0: Writing 0 releases IPCC1 reset. Reading 0 means that IPCC1 reset is released.

1: Writing 1 asserts IPCC1 reset. Reading 1 means that IPCC1 reset is asserted.

20.8.85 RCC RTC configuration register (RCC_RTCCFGR)

Address offset: 0x578

Reset value: 0x0000 0004

This register is used to control clock gating, low-power, and autonomous clock mode behavior of the RTC. Wait states are inserted in case of successive write accesses to this register. The number of wait states may be up to 7 cycles of the RCC clock. Write accesses are defined according to the RCC local resource number 102 configuration (see Table 161 for details). Any read access is allowed.

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.RTCLP
EN
RTCENRes.
rwrw

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

Bit 2 RTCLPEN: RTC bus clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables APB clock in CSleep. Reading 0 means that APB clock is disabled in CSleep.

1: Writing 1 enables APB clock in CSleep. Reading 1 means that APB clocks is enabled in CSleep.

Bit 1 RTCEN: RTC bus clock enable

Set and cleared by software.

0: Writing 0 disables APB clock. Reading 0 means that APB clock is disabled.

1: Writing 1 enables APB clock. Reading 1 means that APB clock is enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.86 RCC SYSCPU1 configuration register (RCC_SYSCPU1CFGR)

Address offset: 0x580

Reset value: 0x0000 0004

This register is used to control clock gating and low-power behavior of the CPU1 system configuration. Write accesses are defined according to the RCC local resource number 106 configuration (see Table 161 for details). Any read access is allowed.

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.SYSCP
U1LPE
N
SYSCP
U1EN
Res.
rwrw

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

Bit 2 SYSCPU1LPEN: CPU1 system configuration clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables APB clock in CSleep. Reading 0 means that APB clock is disabled in CSleep.

1: Writing 1 enables APB clock in CSleep. Reading 1 means that APB clocks is enabled in CSleep.

Bit 1 SYSCPU1EN: CPU1 system configuration clock enable

Set and cleared by software.

0: Writing 0 disables APB clock. Reading 0 means that APB clock is disabled.

1: Writing 1 enables APB clock. Reading 1 means that APB clock is enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.87 RCC BSEC configuration register (RCC_BSECCFGR)

Address offset: 0x584

Reset value: 0x0000 0004

This register is used to control clock gating and low-power behavior of the BSEC. Write accesses are defined according to the RCC local resource number 103 configuration (see Table 161 for details). Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.BSECLBSECE
PEN rwN rwRes.
Bit 2BSECLPEN: BSEC clock enable during CSleep
Bit 1BSECEN: BSEC clock enable

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

Bit 2 BSECLPEN: BSEC clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables APB clock in CSleep. Reading 0 means that APB clock is disabled in CSleep.

1: Writing 1 enables APB clock in CSleep. Reading 1 means that APB clocks is enabled in CSleep.

Bit 1 BSECEN: BSEC clock enable

Set and cleared by software.

0: Writing 0 disables APB clock. Reading 0 means that APB clock is disabled.

1: Writing 1 enables APB clock. Reading 1 means that APB clock is enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.88 RCC PLL2 configuration register 1 (RCC_PLL2CFGR1)

Address offset: 0x590

Reset value: 0x0000 0001

This register is used to configure PLL2 in the device. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.CKREF
ST
Res.Res.Res.PLLRD
Y
Res.Res.Res.Res.Res.Res.Res.Res.
rc_wr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.PLLENRes.Res.Res.Res.Res.Res.Res.SSMO
DRST
rwrw

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

Bit 28 CKREFST: PLL2 reference clock state

Set by hardware and cleared by software. Indicates if PLL2 reference clock is running.

After any reset, this bit is updated after 5 clock cycles of the selected PLL reference clock.

0: Reading 0 means that PLL2 reference clock is not running. Writing 0 resets the reference clock running detector.

1: Reading 1 means that PLL2 reference clock is running. Writing 1 resets the reference clock running detector.

Bits 27:25 Reserved, must be kept at reset value.

Bit 24 PLLRDY: PLL2 clock ready flag

Set by hardware to indicate when the PLL2 is locked

0: PLL2 unlocked (default after reset)

1: PLL2 locked

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

Bit 8 PLLEN: PLL2 enable

Set and cleared by software to enable PLL2.

0: PLL2 off (default after reset)

1: PLL2 on

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

Bit 0 SSMODRST: PLL2 spread-spectrum modulator reset

Set and cleared by software.

0: PLL2 spread-spectrum modulator reset module is released.

1: PLL2 spread-spectrum modulator reset module is asserted (default after reset).

20.8.89 RCC PLL2 configuration register 2 (RCC_PLL2CFGR2)

Address offset: 0x594

Reset value: 0x0000 0000

This register is used to configure PLL2 in the device. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.FBDIV[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FREFDIV[5:0]
rwrwrwrwrwrw

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

Bits 27:16 FBDIV[11:0]: PLL2 VCO multiplication factor
Set and cleared by software to control the VCO multiplication factor.
In integer mode, this value must be set between 16 and 640.
In fractional mode, this value must be set between 20 and 320.

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

Bits 5:0 FREFDIV[5:0]: PLL2 reference input clock divide frequency ratio
Set and cleared by software.
0x0: Not applicable when PLL2 is enabled
0x1: FREF divided by 1 (min value)
0x2: FREF divided by 2
0x3: FREF divided by 3
...
0x3C: FREF divided by 60
0x3D: FREF divided by 61
0x3E: FREF divided by 62
0x3F: FREF divided by 63

ST logo
ST logo

20.8.90 RCC PLL2 configuration register 3 (RCC_PLL2CFGR3)

Address offset: 0x598

Reset value: 0x0400 0000

This register is used to configure the PLL2 in the device. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.SSCGDISDACENDOWNSPREADFRACIN[23:16]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FRACIN[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 26 SSCGDIS: PLL2 spread-spectrum modulator enable

Set and cleared by software to enable the PLL2 clock spreading generator.

0: PLL2 spread-spectrum modulator enabled

1: PLL2 spread-spectrum modulator disabled (default after reset)

Bit 25 DACEN: PLL2 noise canceling DAC enable in fractional mode

Set and cleared by software to enable the noise cancellation in fractional mode.

0: DAC not active (default after reset)

1: DAC active

Bit 24 DOWNSPREAD: PLL2 VCO frequency modulation mode

Set and cleared by software to select the PLL2 clock spreading mode.

0: Center-spread modulation selected (default after reset)

1: Down-spread modulation selected

Bits 23:0 FRACIN[23:0]: Fractional part of PLL2 VCO multiplication factor

Set and cleared by software to control the VCO fractional multiplication factor.

VCO output frequency = FREF*(FBDIV+FRAC/2²⁴)/FREFDIV

20.8.91 RCC PLL2 configuration register 4 (RCC_PLL2CFGR4)

Address offset: 0x59C

Reset value: 0x0000 0000

This register is used to configure PLL2 in the device. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.BYPAS
S
FOUTP
OSTDI
VEN
DSME
N
Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrw

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

Bit 10 BYPASS: PLL2 FOUTPOSTDIV bypass

Set and cleared by software to bypass FOUTPOSTDIV by FREF.

0: FOUTPOSTDIV driven by POSTDIV2

1: FOUTPOSTDIV driven by FREF

Bit 9 FOUTPOSTDIVEN: PLL2 output and post divider enable

Set and cleared by software to enable PLL2 output and post dividers.

0: FOUTPOSTDIV output, POSTDIV1, and POSTDIV2 are powered down.

1: FOUTPOSTDIV output, POSTDIV1, and POSTDIV2 dividers are active.

Bit 8 DSMEN: PLL2 delta-sigma modulator enable

Set and cleared by software to enable the delta-sigma modulator (DSM).

0: DSM is powered down.

1: DSM is active.

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

20.8.92 RCC PLL2 configuration register 5 (RCC_PLL2CFGR5)

Address offset: 0x5A0

Reset value: 0x0000 0000

This register is used to configure PLL2 in the device. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SPREAD[4:0]
rwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DIVVAL[3:0]
rwrwrwrw

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

Bits 20:16 SPREAD[4:0]: Modulation depth adjustment for PLL2

Set and cleared by software to adjust the modulation depth of clock spreading generator.

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

Bits 3:0 DIVVAL[3:0]: Modulation frequency adjustment for PLL2

Set and cleared by software to adjust the modulation frequency of clock spreading generator.

20.8.93 RCC PLL2 configuration register 6 (RCC_PLL2CFGR6)

Address offset: 0x5A8

Reset value: 0x0000 0000

This register is used to configure PLL2 in the product. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

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.POSTDIV1[2:0]
rwrwrw

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

Bits 2:0 POSTDIV1[2:0]: PLL2 VCO frequency divide level 1

Set and cleared by software to divide the VCO frequency output.

0x0: Not applicable

0x1: FOUTVCO divided by 1 (minimum value)

...

0x6: FOUTVCO divided by 6

0x7: FOUTVCO divided by 7

20.8.94 RCC PLL2 configuration register 7 (RCC_PLL2CFGR7)

Address offset: 0x5AC

Reset value: 0x0000 0000

This register is used to configure PLL2 in the product. Write accesses are defined according to the RCC local resource number 104 configuration (see Table 161 for details). Any read access is allowed.

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.POSTDIV2[2:0]
rwrwrw

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

Bits 2:0 POSTDIV2[2:0]: PLL2 VCO frequency divide level 2

Set and cleared by software to divide the VCO frequency output.

0x0: Not applicable

0x1: FOUTVCO/POSTDIV1 divided by 1 (minimum value)

...

0x6: FOUTVCO/POSTDIV1 divided by 6

0x7: FOUTVCO/POSTDIV1 divided by 7

Note: \(FOUTPOSTDIV = FOUTVCO / POSTDIV1 * POSTDIV2\)

20.8.95 RCC HSI frequency monitoring control register (RCC_HSIFMONCR)

Address offset: 0x5E0

Reset value: 0x001F 07A1

This register is used to control the HSI frequency monitoring module. Write accesses are defined according to the RCC local resource number 113 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
HSIMO
NF
HSIMO
NIE
Res.Res.Res.Res.Res.Res.Res.Res.HSIDEV[5:0]
rc_w1rwrwrwrwrwrwrw
1514131211109876543210
HSIMO
NEN
Res.Res.Res.Res.HSIREF[10:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 HSIMONF: HSI clock period monitor interrupt flag

Reset by software by writing 1 to this flag. Set by hardware when a deviation is detected on HSI clock period.

0: No deviation detected on HSI clock period (default after reset)

1: Deviation detected on HSI clock period. Writing 1 clears this flag.

Bit 30 HSIMONIE: HSI clock period monitor interrupt enable

Set and cleared by software to enable/disable interrupt caused by HSI clock period monitoring.

0: HSI clock period monitoring interrupt disabled (default after reset)

1: HSI clock period monitoring interrupt enabled

Bits 29:22 Reserved, must be kept at reset value.

Bits 21:16 HSIDEV[5:0]: HSI clock count deviation value

Set and cleared by software.

Bit 15 HSIMONEN: HSI clock period monitor enable

Set and cleared by software.

0: Writing 0 disables HSI clock period monitoring. Reading 0 means that HSI clock period monitoring is disabled.

1: Writing 1 enables HSI clock period monitoring. Reading 1 means that HSI clock period monitoring is enabled.

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

Bits 10:0 HSIREF[10:0]: HSI clock count reference value
Set and cleared by software.

20.8.96 RCC HSI frequency value register (RCC_HSIFVALR)

Address offset: 0x5E4

Reset value: 0x0000 0000

This read-only access register contains the number of HSI clock cycles measured between consecutive edges of LSE. Writing has no effect. Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.HSIVAL[10:0]
rrrrrrrrrrr

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

Bits 10:0 HSIVAL[10:0]: HSI clock-cycle counter value
Set by hardware.

20.8.97 RCC MSI frequency monitoring control register (RCC_MSIFMONCR)

Address offset: 0x5E8

Reset value: 0x000F 01E8

This register is used to control the MSI frequency monitoring module. Write accesses are defined according to the RCC local resource number 88 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
MSIMONFMSIMONIERes.Res.Res.Res.Res.Res.Res.Res.Res.MSIDEV[4:0]
rc_w1rwrwrwrwrwrw
1514131211109876543210
MSIMONENRes.Res.Res.Res.Res.Res.MSIREF[8:0]
rwrwrwrwrwrwrwrwrwrw

Bit 31 MSIMONF: MSI clock period monitor interrupt flag

Reset by software by writing 1 to this flag. Set by hardware when a deviation is detected on MSI clock period.

0: No deviation detected on MSI clock period (default after reset)

1: Deviation detected on MSI clock period. Writing 1 clears this flag.

Bit 30 MSIMONIE: MSI clock period monitor interrupt enable

Set and cleared by software to enable/disable interrupt caused by MSI clock period monitoring.

0: MSI clock period monitoring interrupt disabled (default after reset)

1: MSI clock period monitoring interrupt enabled

Bits 29:21 Reserved, must be kept at reset value.

Bits 20:16 MSIDEV[4:0]: MSI clock count deviation value

Set and cleared by software.

Bit 15 MSIMONEN: MSI clock period monitor enable

Set and cleared by software.

0: Writing 0 disables MSI clock period monitoring. Reading 0 means that MSI clock period monitoring is disabled.

1: Writing 1 enables MSI clock period monitoring. Reading 1 means that MSI clock period monitoring is enabled.

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

Bits 8:0 MSIREF[8:0]: MSI clock count reference value

Set and cleared by software.

20.8.98 RCC MSI frequency value register (RCC_MSIFVALR)

Address offset: 0x5EC

Reset value: 0x0000 0000

This read-only access register contains the number of MSI clock cycles measured between consecutive edges of LSE. Writing has no effect. Any read access is allowed.

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.MSIVAL[8:0]
rrrrrrrrr

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

Bits 8:0 MSIVAL[8:0]: MSI clock-cycle counter value

Set by hardware.

20.8.99 RCC TIM1 configuration register (RCC_TIM1CFGR)

Address offset: 0x700

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM1.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.TIM1LPTIM1ETIM1R
ENNST
rwrwrw
Bit 2TIM1LPEN: TIM1 clock enable during CSleep
Bit 1TIM1EN: TIM1 clock enable
Bit 0TIM1RST: TIM1 reset
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.TIM2LPTIM2ETIM2R
ENNST
rwrwrw

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

Bit 2 TIM1LPEN: TIM1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM1EN: TIM1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM1RST: TIM1 reset

Set and cleared by software.

0: Writing 0 releases TIM1 reset. Reading 0 means that TIM1 reset is released.

1: Writing 1 asserts TIM1 reset. Reading 1 means that TIM1 reset is asserted.

20.8.100 RCC TIM2 configuration register (RCC_TIM2CFGR)

Address offset: 0x704

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM2.
Any read access is allowed.

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

Bit 2 TIM2LPEN: TIM2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM2EN: TIM2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM2RST: TIM2 reset

Set and cleared by software.

0: Writing 0 releases TIM2 reset. Reading 0 means that TIM2 reset is released.

1: Writing 1 asserts TIM2 reset. Reading 1 means that TIM2 reset is asserted.

20.8.101 RCC TIM3 configuration register (RCC_TIM3CFGR)

Address offset: 0x708

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM3.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.TIM3LPTIM3ETIM3R
ENNST
rwrwrw
Bit 2TIM3LPEN: TIM3 clock enable during CSleep
Bit 1TIM3EN: TIM3 clock enable
Bit 0TIM3RST: TIM3 reset

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

Bit 2 TIM3LPEN: TIM3 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM3EN: TIM3 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM3RST: TIM3 reset

Set and cleared by software.

0: Writing 0 releases TIM3 reset. Reading 0 means that TIM3 reset is released.

1: Writing 1 asserts TIM3 reset. Reading 1 means that TIM3 reset is asserted.

20.8.102 RCC TIM4 configuration register (RCC_TIM4CFGR)

Address offset: 0x70C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM4.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.TIM4LPTIM4ETIM4R
ENNST
rwrwrw
Bit 2TIM4LPEN: TIM4 clock enable during CSleep
Bit 1TIM4EN: TIM4 clock enable
Bit 0TIM4RST: TIM4 reset
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.TIM5LPTIM5ETIM5R
ENNST
rwrwrw

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

Bit 2 TIM4LPEN: TIM4 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM4EN: TIM4 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM4RST: TIM4 reset

Set and cleared by software.

0: Writing 0 releases TIM4 reset. Reading 0 means that TIM4 reset is released.

1: Writing 1 asserts TIM4 reset. Reading 1 means that TIM4 reset is asserted.

20.8.103 RCC TIM5 configuration register (RCC_TIM5CFGR)

Address offset: 0x710

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM5.
Any read access is allowed.

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

Bit 2 TIM5LPEN: TIM5 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM5EN: TIM5 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM5RST: TIM5 reset

Set and cleared by software.

0: Writing 0 releases TIM5 reset. Reading 0 means that TIM5 reset is released.

1: Writing 1 asserts TIM5 reset. Reading 1 means that TIM5 reset is asserted.

20.8.104 RCC TIM6 configuration register (RCC_TIM6CFGR)

Address offset: 0x714

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM6.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.TIM6LPTIM6ETIM6R
ENNST
rwrwrw
Bit 2TIM6LPEN: TIM6 clock enable during CSleep
Bit 1TIM6EN: TIM6 clock enable
Bit 0TIM6RST: TIM6 reset

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

Bit 2 TIM6LPEN: TIM6 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM6EN: TIM6 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM6RST: TIM6 reset

Set and cleared by software.

0: Writing 0 releases TIM6 reset. Reading 0 means that TIM6 reset is released.

1: Writing 1 asserts TIM6 reset. Reading 1 means that TIM6 reset is asserted.

20.8.105 RCC TIM7 configuration register (RCC_TIM7CFGR)

Address offset: 0x718

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM7.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.TIM7LPTIM7ETIM7R
ENNST
rwrwrw
Bit 2TIM7LPEN: TIM7 clock enable during CSleep
Bit 1TIM7EN: TIM7 clock enable
Bit 0TIM7RST: TIM7 reset
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.TIM8LPTIM8ETIM8R
ENNST
rwrwrw

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

Bit 2 TIM7LPEN: TIM7 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM7EN: TIM7 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM7RST: TIM7 reset

Set and cleared by software.

0: Writing 0 releases TIM7 reset. Reading 0 means that TIM7 reset is released.

1: Writing 1 asserts TIM7 reset. Reading 1 means that TIM7 reset is asserted.

20.8.106 RCC TIM8 configuration register (RCC_TIM8CFGR)

Address offset: 0x71C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM8.
Any read access is allowed.

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

Bit 2 TIM8LPEN: TIM8 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM8EN: TIM8 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM8RST: TIM8 reset

Set and cleared by software.

0: Writing 0 releases TIM8 reset. Reading 0 means that TIM8 reset is released.

1: Writing 1 asserts TIM8 reset. Reading 1 means that TIM8 reset is asserted.

20.8.107 RCC TIM10 configuration register (RCC_TIM10CFGR)

Address offset: 0x720

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM10. Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.TIM10LTIM10ETIM10
PENNRST
rwrwrw
Bit 2TIM10LPEN: TIM10 clock enable during CSleep
Bit 1TIM10EN: TIM10 clock enable
Bit 0TIM10RST: TIM10 reset

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

Bit 2 TIM10LPEN: TIM10 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM10EN: TIM10 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM10RST: TIM10 reset

Set and cleared by software.

0: Writing 0 releases TIM10 reset. Reading 0 means that TIM10 reset is released.

1: Writing 1 asserts TIM10 reset. Reading 1 means that TIM10 reset is asserted.

20.8.108 RCC TIM11 configuration register (RCC_TIM11CFGR)

Address offset: 0x724

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM11.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.TIM11LTIM11ETIM11R
PENNST
rwrwrw
Bit 2TIM11LPEN: TIM11 clock enable during CSleep
Bit 1TIM11EN: TIM11 clock enable
Bit 0TIM11RST: TIM11 reset
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.TIM12LTIM12ETIM12
PENNRST
rwrwrw

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

Bit 2 TIM11LPEN: TIM11 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM11EN: TIM11 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM11RST: TIM11 reset

Set and cleared by software.

0: Writing 0 releases TIM11 reset. Reading 0 means that TIM11 reset is released.

1: Writing 1 asserts TIM11 reset. Reading 1 means that TIM11 reset is asserted.

20.8.109 RCC TIM12 configuration register (RCC_TIM12CFGR)

Address offset: 0x728

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM12.
Any read access is allowed.

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

Bit 2 TIM12LPEN: TIM12 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM12EN: TIM12 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM12RST: TIM12 reset

Set and cleared by software.

0: Writing 0 releases TIM12 reset. Reading 0 means that TIM12 reset is released.

1: Writing 1 asserts TIM12 reset. Reading 1 means that TIM12 reset is asserted.

20.8.110 RCC TIM13 configuration register (RCC_TIM13CFGR)

Address offset: 0x72C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM13. Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.TIM13LTIM13ETIM13
PENNRST
rwrwrw
Bit 2TIM13LPEN: TIM13 clock enable during CSleep
Bit 1TIM13EN: TIM13 clock enable
Bit 0TIM13RST: TIM13 reset

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

Bit 2 TIM13LPEN: TIM13 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM13EN: TIM13 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM13RST: TIM13 reset

Set and cleared by software.

0: Writing 0 releases TIM13 reset. Reading 0 means that TIM13 reset is released.

1: Writing 1 asserts TIM13 reset. Reading 1 means that TIM13 reset is asserted.

20.8.111 RCC TIM14 configuration register (RCC_TIM14CFGR)

Address offset: 0x730

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM14.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.TIM14LTIM14ETIM14
PENNRST
rwrwrw
Bit 2TIM14LPEN: TIM14 clock enable during CSleep
Bit 1TIM14EN: TIM14 clock enable
Bit 0TIM14RST: TIM14 reset
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.TIM15LTIM15ETIM15
PENNRST
rwrwrw

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

Bit 2 TIM14LPEN: TIM14 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM14EN: TIM14 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM14RST: TIM14 reset

Set and cleared by software.

0: Writing 0 releases TIM14 reset. Reading 0 means that TIM14 reset is released.

1: Writing 1 asserts TIM14 reset. Reading 1 means that TIM14 reset is asserted.

20.8.112 RCC TIM15 configuration register (RCC_TIM15CFGR)

Address offset: 0x734

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM15.
Any read access is allowed.

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

Bit 2 TIM15LPEN: TIM15 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM15EN: TIM15 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM15RST: TIM15 reset

Set and cleared by software.

0: Writing 0 releases TIM15 reset. Reading 0 means that TIM15 reset is released.

1: Writing 1 asserts TIM15 reset. Reading 1 means that TIM15 reset is asserted.

20.8.113 RCC TIM16 configuration register (RCC_TIM16CFGR)

Address offset: 0x738

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM16. Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.TIM16LTIM16ETIM16
PENNRST
rwrwrw
Bit 2TIM16LPEN: TIM16 clock enable during CSleep
Bit 1TIM16EN: TIM16 clock enable
Bit 0TIM16RST: TIM16 reset

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

Bit 2 TIM16LPEN: TIM16 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM16EN: TIM16 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM16RST: TIM16 reset

Set and cleared by software.

0: Writing 0 releases TIM16 reset. Reading 0 means that TIM16 reset is released.

1: Writing 1 asserts TIM16 reset. Reading 1 means that TIM16 reset is asserted.

20.8.114 RCC TIM17 configuration register (RCC_TIM17CFGR)

Address offset: 0x73C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the TIM17.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.TIM17LTIM17ETIM17
PENNRST
rwrwrw
Bit 2TIM17LPEN: TIM17 clock enable during CSleep
Bit 1TIM17EN: TIM17 clock enable
Bit 0TIM17RST: TIM17 reset
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.LPTIM1LPTIM1LPTIM1
LPENENRST
rwrwrw

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

Bit 2 TIM17LPEN: TIM17 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 TIM17EN: TIM17 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 TIM17RST: TIM17 reset

Set and cleared by software.

0: Writing 0 releases TIM17 reset. Reading 0 means that TIM17 reset is released.

1: Writing 1 asserts TIM17 reset. Reading 1 means that TIM17 reset is asserted.

20.8.115 RCC LPTIM1 configuration register (RCC_LPTIM1CFGR)

Address offset: 0x744

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the LPTIM1.
Any read access is allowed.

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

20.8.116 RCC LPTIM2 configuration register (RCC_LPTIM2CFGR)

Address offset: 0x748

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the LPTIM2.
Any read access is allowed.

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.LPTIM2
LPEN
LPTIM2
EN
LPTIM2
RST
rwrwrw

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

20.8.117 RCC LPTIM3 configuration register (RCC_LPTIM3CFGR)

Address offset: 0x74C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, low-power behavior of the LPTIM3.
Any read access is allowed.

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.LPTIM3
LPEN
LPTIM3
EN
LPTIM3
RST
rwrwrw

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

Bit 2 LPTIM3LPEN: LPTIM3 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 LPTIM3EN: LPTIM3 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 LPTIM3RST: LPTIM3 reset

Set and cleared by software.

0: Writing 0 releases LPTIM3 reset. Reading 0 means that LPTIM3 reset is released.

1: Writing 1 asserts LPTIM3 reset. Reading 1 means that LPTIM3 reset is asserted.

20.8.118 RCC LPTIM4 configuration register (RCC_LPTIM4CFGR)

Address offset: 0x750

Reset value: 0x0000 0004

This register is used to control reset, clock gating, low-power behavior of the LPTIM4.
Any read access is allowed.

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.LPTIM4
LPEN
LPTIM4
EN
LPTIM4
RST
rwrwrw

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

20.8.119 RCC LPTIM5 configuration register (RCC_LPTIM5CFGR)

Address offset: 0x754

Reset value: 0x0000 0004

This register is used to control reset, clock gating, low-power behavior of the LPTIM5.
Any read access is allowed.

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.LPTIM5
LPEN
LPTIM5
EN
LPTIM5
RST
rwrwrw

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

20.8.120 RCC SPI1 configuration register (RCC_SPI1CFGR)

Address offset: 0x758

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SPI1.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.SPI1LPSPI1ESPI1R
ENNST
rwrwrw
Bit 2SPI1LPEN: SPI1 clock enable during CSleep
Bit 1SPI1EN: SPI1 clock enable
Bit 0SPI1RST: SPI1 reset
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.SPI2LPSPI2ESPI2R
ENNST
rwrwrw

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

Bit 2 SPI1LPEN: SPI1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SPI1EN: SPI1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SPI1RST: SPI1 reset

Set and cleared by software.

0: Writing 0 releases SPI1 reset. Reading 0 means that SPI1 reset is released.

1: Writing 1 asserts SPI1 reset. Reading 1 means that SPI1 reset is asserted.

20.8.121 RCC SPI2 configuration register (RCC_SPI2CFGR)

Address offset: 0x75C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SPI2.
Any read access is allowed.

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

Bit 2 SPI2LPEN: SPI2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SPI2EN: SPI2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SPI2RST: SPI2 reset

Set and cleared by software.

0: Writing 0 releases SPI2 reset. Reading 0 means that SPI2 reset is released.

1: Writing 1 asserts SPI2 reset. Reading 1 means that SPI2 reset is asserted.

20.8.122 RCC SPI3 configuration register (RCC_SPI3CFGR)

Address offset: 0x760

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SPI3.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.SPI3LPSPI3ESPI3R
ENNST
rwrwrw
Bit 2SPI3LPEN: SPI3 clock enable during CSleep
Bit 1SPI3EN: SPI3 clock enable
Bit 0SPI3RST: SPI3 reset

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

Bit 2 SPI3LPEN: SPI3 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SPI3EN: SPI3 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SPI3RST: SPI3 reset

Set and cleared by software.

0: Writing 0 releases SPI3 reset. Reading 0 means that SPI3 reset is released.

1: Writing 1 asserts SPI3 reset. Reading 1 means that SPI3 reset is asserted.

20.8.123 RCC SPI4 configuration register (RCC_SPI4CFGR)

Address offset: 0x764

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SPI4. Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.SPI4LPSPI4ESPI4R
ENNST
rwrwrw
Bit 2SPI4LPEN: SPI4 clock enable during CSleep
Bit 1SPI4EN: SPI4 clock enable
Bit 0SPI4RST: SPI4 reset
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.SPI5LPSPI5ESPI5R
ENNST
rwrwrw

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

Bit 2 SPI4LPEN: SPI4 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SPI4EN: SPI4 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SPI4RST: SPI4 reset

Set and cleared by software.

0: Writing 0 releases SPI4 reset. Reading 0 means that SPI4 reset is released.

1: Writing 1 asserts SPI4 reset. Reading 1 means that SPI4 reset is asserted.

20.8.124 RCC SPI5 configuration register (RCC_SPI5CFGR)

Address offset: 0x768

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SPI5. Any read access is allowed.

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

Bit 2 SPI5LPEN: SPI5 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SPI5EN: SPI5 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SPI5RST: SPI5 reset

Set and cleared by software.

0: Writing 0 releases SPI5 reset. Reading 0 means that SPI5 reset is released.

1: Writing 1 asserts SPI5 reset. Reading 1 means that SPI5 reset is asserted.

20.8.125 RCC SPI6 configuration register (RCC_SPI6CFGR)

Address offset: 0x76C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SPI6.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.SPI6LPSPI6ESPI6R
ENNST
rwrwrw
Bit 2SPI6LPEN: SPI6 clock enable during CSleep
Bit 1SPI6EN: SPI6 clock enable
Bit 0SPI6RST: SPI6 reset

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

Bit 2 SPI6LPEN: SPI6 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SPI6EN: SPI6 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SPI6RST: SPI6 reset

Set and cleared by software.

0: Writing 0 releases SPI6 reset. Reading 0 means that SPI6 reset is released.

1: Writing 1 asserts SPI6 reset. Reading 1 means that SPI6 reset is asserted.

20.8.126 RCC SPDIFRX configuration register (RCC_SPDIFRXCFGR)

Address offset: 0x778

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SPDIFRX. Any read access is allowed.

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.SPDIF
RXLPEN
SPDIF
RXEN
SPDIF
RXRST
rwrwrw

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

Bit 2 SPDIFRXLPEN: SPDIFRX clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SPDIFRXEN: SPDIFRX clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SPDIFRXRST: SPDIFRX reset

Set and cleared by software.

0: Writing 0 releases SPDIFRX reset. Reading 0 means that SPDIFRX reset is released.

1: Writing 1 asserts SPDIFRX reset. Reading 1 means that SPDIFRX reset is asserted.

20.8.127 RCC USART1 configuration register (RCC_USART1CFGR)

Address offset: 0x77C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the USART1. Any read access is allowed.

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.USART
1LPEN
USART
1EN
USART
1RST
rwrwrw

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

Bit 2 USART1LPEN: USART1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 USART1EN: USART1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 USART1RST: USART1 reset

Set and cleared by software.

0: Writing 0 releases USART1 reset. Reading 0 means that USART1 reset is released.

1: Writing 1 asserts USART1 reset. Reading 1 means that USART1 reset is asserted.

20.8.128 RCC USART2 configuration register (RCC_USART2CFGR)

Address offset: 0x780

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the USART2. Any read access is allowed.

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.USART
2LPEN
USART
2EN
USART
2RST
rwrwrw

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

Bit 2 USART2LPEN: USART2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 USART2EN: USART2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 USART2RST: USART2 reset

Set and cleared by software.

0: Writing 0 releases USART2 reset. Reading 0 means that USART2 reset is released.

1: Writing 1 asserts USART2 reset. Reading 1 means that USART2 reset is asserted.

20.8.129 RCC USART3 configuration register (RCC_USART3CFGR)

Address offset: 0x784

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the USART3.
Any read access is allowed.

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

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

Bit 2 USART3LPEN: USART3 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 USART3EN: USART3 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 USART3RST: USART3 reset

Set and cleared by software.

0: Writing 0 releases USART3 reset. Reading 0 means that USART3 reset is released.

1: Writing 1 asserts USART3 reset. Reading 1 means that USART3 reset is asserted.

20.8.130 RCC UART4 configuration register (RCC_UART4CFGR)

Address offset: 0x788

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the UART4.
Any read access is allowed.

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

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

Bit 2 UART4LPEN: UART4 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 UART4EN: UART4 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 UART4RST: UART4 reset

Set and cleared by software.

0: Writing 0 releases UART4 reset. Reading 0 means that UART4 reset is released.

1: Writing 1 asserts UART4 reset. Reading 1 means that UART4 reset is asserted.

20.8.131 RCC UART5 configuration register (RCC_UART5CFGR)

Address offset: 0x78C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the UART5.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.UART5UART5UART5
LPENENRST
rwrwrw
Bit 2UART5LPEN: UART5 clock enable during CSleep
Bit 1UART5EN: UART5 clock enable
Bit 0UART5RST: UART5 reset

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

Bit 2 UART5LPEN: UART5 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 UART5EN: UART5 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 UART5RST: UART5 reset

Set and cleared by software.

0: Writing 0 releases UART5 reset. Reading 0 means that UART5 reset is released.

1: Writing 1 asserts UART5 reset. Reading 1 means that UART5 reset is asserted.

20.8.132 RCC USART6 configuration register (RCC_USART6CFGR)

Address offset: 0x790

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the USART6.
Any read access is allowed.

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.USART
6LPEN
USART
6EN
USART
6RST
rwrwrw

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

Bit 2 USART6LPEN: USART6 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 USART6EN: USART6 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 USART6RST: USART6 reset

Set and cleared by software.

0: Writing 0 releases USART6 reset. Reading 0 means that USART6 reset is released.

1: Writing 1 asserts USART6 reset. Reading 1 means that USART6 reset is asserted.

20.8.133 RCC UART7 configuration register (RCC_UART7CFGR)

Address offset: 0x794

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the UART7.
Any read access is allowed.

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.UART7
LPEN
UART7
EN
UART7
RST
rwrwrw

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

Bit 2 UART7LPEN: UART7 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 UART7EN: UART7 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 UART7RST: UART7 reset

Set and cleared by software.

0: Writing 0 releases UART7 reset. Reading 0 means that UART7 reset is released.

1: Writing 1 asserts UART7 reset. Reading 1 means that UART7 reset is asserted.

20.8.134 RCC LPUART1 configuration register (RCC_LPUART1CFGR)

Address offset: 0x7A0

Reset value: 0x0000 0004

This register is used to control reset, clock gating, low-power behavior of the LPUART1.
Any read access is allowed.

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

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

Bit 2 LPUART1LPEN: LPUART1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 LPUART1EN: LPUART1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 LPUART1RST: LPUART1 reset

Set and cleared by software.

0: Writing 0 releases LPUART1 reset. Reading 0 means that LPUART1 reset is released.

1: Writing 1 asserts LPUART1 reset. Reading 1 means that LPUART1 reset is asserted.

20.8.135 RCC I2C1 configuration register (RCC_I2C1CFGR)

Address offset: 0x7A4

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the I2C1. Any read access is allowed.

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.I2C1LP
EN
I2C1ENI2C1RS
T
rwrwrw

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

Bit 2 I2C1LPEN: I2C1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 I2C1EN: I2C1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 I2C1RST: I2C1 reset

Set and cleared by software.

0: Writing 0 releases I2C1 reset. Reading 0 means that I2C1 reset is released.

1: Writing 1 asserts I2C1 reset. Reading 1 means that I2C1 reset is asserted.

20.8.136 RCC I2C2 configuration register (RCC_I2C2CFGR)

Address offset: 0x7A8

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the I2C2. Any read access is allowed.

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.I2C2LP
EN
I2C2ENI2C2RS
T
rwrwrw

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

Bit 2 I2C2LPEN: I2C2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 I2C2EN: I2C2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 I2C2RST: I2C2 reset

Set and cleared by software.

0: Writing 0 releases I2C2 reset. Reading 0 means that I2C2 reset is released.

1: Writing 1 asserts I2C2 reset. Reading 1 means that I2C2 reset is asserted.

20.8.137 RCC I2C3 configuration register (RCC_I2C3CFGR)

Address offset: 0x7AC

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the I2C3.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.I2C3LP
ENI2C3ENI2C3RS T
rwrwrw
Bit 2I2C3LPEN: I2C3 clock enable during CSleep
Bit 1I2C3EN: I2C3 clock enable
Bit 0I2C3RST: I2C3 reset

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

Bit 2 I2C3LPEN: I2C3 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 I2C3EN: I2C3 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 I2C3RST: I2C3 reset

Set and cleared by software.

0: Writing 0 releases I2C3 reset. Reading 0 means that I2C3 reset is released.

1: Writing 1 asserts I2C3 reset. Reading 1 means that I2C3 reset is asserted.

20.8.138 RCC SAI1 configuration register (RCC_SAI1CFGR)

Address offset: 0x7C4

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SAI1. Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.SAI1LPSAI1ESAI1R
ENNST
rwrwrw
Bit 2SAI1LPEN: SAI1 clock enable during CSleep
Bit 1SAI1EN: SAI1 clock enable
Bit 0SAI1RST: SAI1 reset
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.SAI2LPSAI2ESAI2R
ENNST
rwrwrw

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

Bit 2 SAI1LPEN: SAI1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SAI1EN: SAI1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SAI1RST: SAI1 reset

Set and cleared by software.

0: Writing 0 releases SAI1 reset. Reading 0 means that SAI1 reset is released.

1: Writing 1 asserts SAI1 reset. Reading 1 means that SAI1 reset is asserted.

20.8.139 RCC SAI2 configuration register (RCC_SAI2CFGR)

Address offset: 0x7C8

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SAI2. Any read access is allowed.

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

Bit 2 SAI2LPEN: SAI2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SAI2EN: SAI2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SAI2RST: SAI2 reset

Set and cleared by software.

0: Writing 0 releases SAI2 reset. Reading 0 means that SAI2 reset is released.

1: Writing 1 asserts SAI2 reset. Reading 1 means that SAI2 reset is asserted.

20.8.140 RCC SAI3 configuration register (RCC_SAI3CFGR)

Address offset: 0x7CC

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SAI3.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.SAI3LPSAI3ESAI3R
ENNST
rwrwrw
Bit 2SAI3LPEN: SAI3 clock enable during CSleep
Bit 1SAI3EN: SAI3 clock enable
Bit 0SAI3RST: SAI3 reset

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

Bit 2 SAI3LPEN: SAI3 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SAI3EN: SAI3 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SAI3RST: SAI3 reset

Set and cleared by software.

0: Writing 0 releases SAI3 reset. Reading 0 means that SAI3 reset is released.

1: Writing 1 asserts SAI3 reset. Reading 1 means that SAI3 reset is asserted.

20.8.141 RCC SAI4 configuration register (RCC_SAI4CFGR)

Address offset: 0x7D0

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SAI4.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.SAI4LPSAI4ESAI4R
ENNST
rwrwrw
Bit 2SAI4LPEN: SAI4 clock enable during CSleep
Bit 1SAI4EN: SAI4 clock enable
Bit 0SAI4RST: SAI4 reset
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.MDF1LMDF1EMDF1R
PENNST
rwrwrw

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

Bit 2 SAI4LPEN: SAI4 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SAI4EN: SAI4 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SAI4RST: SAI4 reset

Set and cleared by software.

0: Writing 0 releases SAI4 reset. Reading 0 means that SAI4 reset is released.

1: Writing 1 asserts SAI4 reset. Reading 1 means that SAI4 reset is asserted.

20.8.142 RCC MDF1 configuration register (RCC_MDF1CFGR)

Address offset: 0x7D8

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the MDF1.
Any read access is allowed.

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

Bit 2 MDF1LPEN: MDF1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 MDF1EN: MDF1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 MDF1RST: MDF1 reset

Set and cleared by software.

0: Writing 0 releases MDF1 reset. Reading 0 means that MDF1 reset is released.

1: Writing 1 asserts MDF1 reset. Reading 1 means that MDF1 reset is asserted.

20.8.143 RCC FDCAN configuration register (RCC_FDCANCFGR)

Address offset: 0x7E0

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the FDCAN and CANRAM.

Any read access is allowed.

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.FDCAN
LPEN
FDCAN
EN
FDCAN
RST
rwrwrw

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

Bit 2 FDCANLPEN: FDCAN clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 FDCANEN: FDCAN clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 FDCANRST: FDCAN reset

Set and cleared by software.

0: Writing 0 releases FDCAN reset. Reading 0 means that FDCAN reset is released.

1: Writing 1 asserts FDCAN reset. Reading 1 means that FDCAN reset is asserted.

20.8.144 RCC HDP configuration register (RCC_HDPCFGR)

Address offset: 0x7E4

Reset value: 0x0000 0000

This register is used to control reset and clock gating behavior of the HDP.
Any read access is allowed.

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

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

Bit 1 HDPEN: HDP clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 HDPRST: HDP reset

Set and cleared by software.

0: Writing 0 releases HDP reset. Reading 0 means that HDP reset is released.

1: Writing 1 asserts HDP reset. Reading 1 means that HDP reset is asserted.

20.8.145 RCC ADC1 configuration register (RCC_ADC1CFGR)

Address offset: 0x7E8

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the ADC1.
Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.ADC1KERSELRes.Res.Res.Res.Res.Res.Res.Res.Res.ADC1LPENADC1ENADC1RST
rwrwrwrw

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

Bit 12 ADC1KERSEL: ADC1 kernel clock source select

Set and cleared by software.

0x0: Kernel source clock is ck_ker_adc1.

0x1: Kernel source clock is ck_icn_ls_mcu.

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

Bit 2 ADC1LPEN: ADC1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 ADC1EN: ADC1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 ADC1RST: ADC1 reset

Set and cleared by software.

0: Writing 0 releases ADC1 reset. Reading 0 means that ADC1 reset is released.

1: Writing 1 asserts ADC1 reset. Reading 1 means that ADC1 reset is asserted.

20.8.146 RCC ADC2 configuration register (RCC_ADC2CFGR)

Address offset: 0x7EC

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the ADC2.
Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.ADC2KERSEL[1:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.ADC2LPENADC2ENADC2RST
rwrwrwrwrw

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

Bits 13:12 ADC2KERSEL[1:0]: ADC2 kernel clock source select

Set and cleared by software.

0x0: Kernel source clock is ck_ker_adc2.

0x1: Kernel source clock is ck_icn_ls_mcu.

0x2: Kernel source clock is ck_ker_adc1.

0x3: Reserved

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

Bit 2 ADC2LPEN: ADC2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 ADC2EN: ADC2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 ADC2RST: ADC2 reset

Set and cleared by software.

0: Writing 0 releases ADC2 reset. Reading 0 means that ADC2 reset is released.

1: Writing 1 asserts ADC2 reset. Reading 1 means that ADC2 reset is asserted.

20.8.147 RCC Ethernet 1 configuration register (RCC_ETH1CFGR)

Address offset: 0x7F0

Reset value: 0x0000 0A44

This register is used to control reset, clock gating, and low-power behavior of the Ethernet 1. Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
15141312111098765432 ETH1M10
Res.Res.Res.Res.ETH1RETH1RETH1TETH1TETH1EETH1SETH1METH1R
XENRes.ETH1L
XLPENXENXLPENPENNTPENRes.ACLPE NACENST
rwrwrwrwrwrwrwrwrwrw
Bit 11ETH1RXLPEN: Ethernet 1 reception clock enable during CSleep
Bit 10ETH1RXEN: Ethernet 1 reception clock enable
Bit 9 ETH1TXLPEN: Ethernet 1 transmission clock enable during CSleep
Bit 8 ETH1TXEN: Ethernet 1 transmission clock enable

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

Bit 11 ETH1RXLPEN: Ethernet 1 reception clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables reception clock in CSleep. Reading 0 means that reception clock is disabled in CSleep.

1: Writing 1 enables reception clock in CSleep. Reading 1 means that reception clock is enabled in CSleep.

Bit 10 ETH1RXEN: Ethernet 1 reception clock enable

Set and cleared by software.

0: Writing 0 disables reception clock. Reading 0 means that reception clock is disabled.

1: Writing 1 enables reception clock. Reading 1 means that reception clock is enabled.

Bit 9 ETH1TXLPEN: Ethernet 1 transmission clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables transmission clock in CSleep. Reading 0 means that transmission clock is disabled in CSleep.

1: Writing 1 enables transmission clock in CSleep. Reading 1 means that transmission clock is enabled in CSleep.

Bit 8 ETH1TXEN: Ethernet 1 transmission clock enable

Set and cleared by software.

0: Writing 0 disables transmission clock. Reading 0 means that transmission clock is disabled.

1: Writing 1 enables transmission clock. Reading 1 means that transmission clock is enabled.

Bit 7 Reserved, must be kept at reset value.

20.8.148 RCC Ethernet 2 configuration register (RCC_ETH2CFGR)

Address offset: 0x7F4

Reset value: 0x0000 0A44

This register is used to control reset, clock gating, and low-power behavior of the Ethernet 2.
Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.ETH2RXLPENETH2RXENETH2TXLPENETH2TXENRes.ETH2LPENETH2ENETH2STPENRes.ETH2MACLPENETH2MACENETH2RST
rwrwrwrwrwrwrwrwrwrw

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

Bit 11 ETH2RXLPEN: Ethernet 2 reception clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables reception clock in CSleep. Reading 0 means that reception clock is disabled in CSleep.

1: Writing 1 enables reception clock in CSleep. Reading 1 means that reception clock is enabled in CSleep.

Bit 10 ETH2RXEN: Ethernet 2 reception clock enable

Set and cleared by software.

0: Writing 0 disables reception clock. Reading 0 means that reception clock is disabled.

1: Writing 1 enables reception clock. Reading 1 means that reception clock is enabled.

Bit 9 ETH2TXLPEN: Ethernet 2 transmission clock enable during CSleep mode

Set and cleared by software.

0: Writing 0 disables transmission clock in CSleep. Reading 0 means that transmission clock is disabled in CSleep.

1: Writing 1 enables transmission clock in CSleep. Reading 1 means that transmission clock is enabled in CSleep.

Bit 8 ETH2TXEN: Ethernet 2 transmission clock enable

Set and cleared by software.

0: Writing 0 disables transmission clock. Reading 0 means that transmission clock is disabled.

1: Writing 1 enables transmission clock. Reading 1 means that transmission clock is enabled

Bit 7 Reserved, must be kept at reset value.

Bit 6 ETH2LPEN: Ethernet 2 kernel clocks enable during CSleep

Set and cleared by software.

0: Writing 0 disables kernel clocks in CSleep. Reading 0 means that kernel clocks are disabled in CSleep.

1: Writing 1 enables kernel clocks in CSleep. Reading 1 means that kernel clocks are enabled in CSleep.

Bit 5 ETH2EN: Ethernet 2 kernel clocks enable

Set and cleared by software.

0: Writing 0 disables kernel clocks. Reading 0 means that kernel clocks are disabled.

1: Writing 1 enables kernel clocks. Reading 1 means that kernel clocks are enabled.

Bit 4 ETH2STPEN: Ethernet 2 kernel clocks enable during CStop

Set and cleared by software. This bits allows ETH2 to receive clocks coming from ETH2_TX_CLK and ETH2_RX_CLK pins during CStop.

0: Writing 0 disables ETH2 TX and RX kernel clocks in CStop. Reading 0 means that ETH2 TX and RX kernel clocks are disabled in CStop.

1: Writing 1 enables ETH2 TX and RX kernel clocks in CStop. Reading 1 means that ETH2 TX and RX kernel clocks are enabled in CStop.

Bit 3 Reserved, must be kept at reset value.

Bit 2 ETH2MACLPEN: Ethernet 2 bus clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables bus clocks in CSleep. Reading 0 means that bus clocks are disabled in CSleep.

1: Writing 1 enables bus clocks in CSleep. Reading 1 means that bus clocks are enabled in CSleep.

20.8.149 RCC USBH configuration register (RCC_USBHCFGR)

Address offset: 0x7FC

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the USBH.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.USBHLUSBHEUSBHR
PENNST
rwrwrw
Bit 2USBHLPEN: USBH clock enable during CSleep
Bit 1USBHEN: USBH peripheral clock enable
Bit 0USBHRST: USBH reset
ST logo
ST logo

20.8.150 RCC USB2PHY1 configuration register (RCC_USB2PHY1CFGR)

Address offset: 0x800

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the USB2PHY1. Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
USB2P
HY1CK
REFSE
L
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.USB2P
HY1LP
EN
USB2P
HY1EN
USB2P
HY1RS
T
rwrwrwrw

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

Bit 15 USB2PHY1CKREFSEL: USB2PHY1 reference clock selection

Set and cleared by software.

0: USB2PHY1 reference clock is channel 57 (ck_ker_usb2phy1) of the flexclkgen (default after reset).

1: USB2PHY1 reference clock is the HSE oscillator divided by 2 (hse_div2_ck).

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

Bit 2 USB2PHY1LPEN: USB2PHY1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 USB2PHY1EN: USB2PHY1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 USB2PHY1RST: USB2PHY1 reset

Set and cleared by software.

0: Writing 0 releases USB2PHY1 reset. Reading 0 means that USB2PHY1 reset is released.

1: Writing 1 asserts USB2PHY1 reset. Reading 1 means that USB2PHY1 reset is asserted.

20.8.151 RCC OTG configuration register (RCC_OTGCFGR)

Address offset: 0x808

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the OTG. Any read access is allowed.

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.OTGLP
EN
OTGE
N
OTGR
ST
rwrwrw

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

Bit 2 OTGLPEN: OTG clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 OTGEN: OTG peripheral clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 OTGRST: OTG reset

Set and cleared by software.

0: Writing 0 releases OTG reset. Reading 0 means that OTG reset is released.

1: Writing 1 asserts OTG reset. Reading 1 means that OTG reset is asserted.

20.8.152 RCC USB2PHY2 configuration register (RCC_USB2PHY2CFGR)

Address offset: 0x80C

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the USB2PHY2.

Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
USB2P
HY2CK
REFSE
L
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.USB2P
HY2LP
EN
USB2P
HY2EN
USB2P
HY2RS
T
rwrwrwrw

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

Bit 15 USB2PHY2CKREFSEL: USB2PHY2 reference clock select

Set and cleared by software.

0: USB2PHY2 reference clock is channel 58 (ck_ker_usb2phy2) of the flexclkgen (default after reset).

1: USB2PHY2 reference clock is the HSE oscillator divided by 2 (hse_div2_ck).

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

Bit 2 USB2PHY2LPEN: USB2PHY2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 USB2PHY2EN: USB2PHY2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 USB2PHY2RST: USB2PHY2 reset

Set and cleared by software.

0: Writing 0 releases USB2PHY2 reset. Reading 0 means that USB2PHY2 reset is released.

1: Writing 1 asserts USB2PHY2 reset. Reading 1 means that USB2PHY2 reset is asserted.

20.8.153 RCC STGEN configuration register (RCC_STGENCFGR)

Address offset: 0x824

Reset value: 0x0000 0004

This register is used to control clock gating and low-power clock mode behavior of the STGENC and STGENR.

Any read access is allowed.

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.STGEN
STPEN
Res.STGEN
LPEN
STGEN
EN
Res.
rwrwrw

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

Bit 4 STGENSTPEN: STGENRW and STGENRO kernel clock enable during CStop

Set and cleared by software.

0: Writing 0 disables kernel clocks in CStop. Reading 0 means that kernel clocks are disabled in CStop.

1: Writing 1 enables kernel clocks in CStop. Reading 1 means that kernel clocks are enabled in CStop.

Bit 3 Reserved, must be kept at reset value.

Bit 2 STGENLPEN: STGENRW and STGENRO clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 STGENEN: STGENRW and STGENRO clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.154 RCC SDMMC1 configuration register (RCC_SDMMC1CFGR)

Address offset: 0x830

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SDMMC1. Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SDMMC1DLLRST
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SDMMC1LPENSDMMC1ENSDMMC1RST
rwrwrw

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

Bit 16 SDMMC1DLLRST: SDMMC1 DLL reset

Set and cleared by software.

0: Writing 0 releases DLL reset. Reading 0 means that DLL reset is released.

1: Writing 1 asserts DLL reset. Reading 1 means that DLL reset is asserted.

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

Bit 2 SDMMC1LPEN: SDMMC1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SDMMC1EN: SDMMC1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SDMMC1RST: SDMMC1 reset

Set and cleared by software.

0: Writing 0 releases SDMMC1 reset. Reading 0 means that SDMMC1 reset is released.

1: Writing 1 asserts SDMMC1 reset. Reading 1 means that SDMMC1 reset is asserted.

20.8.155 RCC SDMMC2 configuration register (RCC_SDMMC2CFGR)

Address offset: 0x834

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SDMMC2.
Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SDMMC2DLLRST
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SDMMC2LPENSDMMC2ENSDMMC2RST
rwrwrw

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

Bit 16 SDMMC2DLLRST: SDMMC2 DLL reset

Set and cleared by software.

0: Writing 0 releases DLL reset. Reading 0 means that DLL reset is released.

1: Writing 1 asserts DLL reset. Reading 1 means that DLL reset is asserted.

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

Bit 2 SDMMC2LPEN: SDMMC2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SDMMC2EN: SDMMC2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SDMMC2RST: SDMMC2 reset

Set and cleared by software.

0: Writing 0 releases SDMMC2 reset. Reading 0 means that SDMMC2 reset is released.

1: Writing 1 asserts SDMMC2 reset. Reading 1 means that SDMMC2 reset is asserted.

20.8.156 RCC SDMMC3 configuration register (RCC_SDMMC3CFGR)

Address offset: 0x838

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the SDMMC3.
Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SDMMC3DLLRST
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SDMMC3LPENSDMMC3ENSDMMC3RST
rwrwrw

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

Bit 16 SDMMC3DLLRST: SDMMC3 DLL reset

Set and cleared by software.

0: Writing 0 releases DLL reset. Reading 0 means that DLL reset is released.

1: Writing 1 asserts DLL reset. Reading 1 means that DLL reset is asserted.

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

Bit 2 SDMMC3LPEN: SDMMC3 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SDMMC3EN: SDMMC3 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SDMMC3RST: SDMMC3 block reset

Set and cleared by software.

0: Writing 0 releases SDMMC3 reset. Reading 0 means that SDMMC3 reset is released.

1: Writing 1 asserts SDMMC3 reset. Reading 1 means that SDMMC3 reset is asserted.

20.8.157 RCC LTDC configuration register (RCC_LTDCCFGR)

Address offset: 0x840

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of LTDC.
Any read access is allowed.

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.LTDCL
PEN
LTDCENLTDCRST
rwrwrw

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

Bit 2 LTDCLPEN: LTDC clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 LTDCEN: LTDC peripheral clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 LTDCRST: LTDC reset

Set and cleared by software.

0: Writing 0 releases LTDC reset. Reading 0 means that LTDC reset is released.

1: Writing 1 asserts LTDC reset. Reading 1 means that LTDC reset is asserted.

20.8.158 RCC CSI configuration register (RCC_CSICFGR)

Address offset: 0x858

Reset value: 0x0000 0004

This register is used to control reset, clock gating, and low-power behavior of the CSI.
Any read access is allowed.

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.CSILP
EN
CSIENCSIRS
T
rwrwrw

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

Bit 2 CSILPEN: CSI clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 CSIEN: CSI clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 CSIRST: CSI reset

Set and cleared by software.

0: Writing 0 releases CSI reset. Reading 0 means that CSI reset is released.

1: Writing 1 asserts CSI reset. Reading 1 means that CSI reset is asserted.

20.8.159 RCC DCMIPP configuration register (RCC_DCMIPPCFGR)

Address offset: 0x85C

Reset value: 0x0000 0004

This register is used to control the reset, clock gating and low-power behavior of DCMIPP. Any read access is allowed.

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.DCMIP
LPEN
DCMIP
PEN
DCMIP
PRST
rwrwrw

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

Bit 2 DCMIPPLPEN: DCMIPP clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 DCMIPPEN: DCMIPP clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 DCMIPPRST: DCMIPP reset

Set and cleared by software.

0: Writing 0 releases DCMIPP reset. Reading 0 means that DCMIPP reset is released.

1: Writing 1 asserts DCMIPP reset. Reading 1 means that DCMIPP reset is asserted.

20.8.160 RCC DCMIPSSI configuration register (RCC_DCMIPSSICFGR)

Address offset: 0x860

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of DCMIPSSI.
Any read access is allowed.

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.DCMIP
SSILPE
N
DCMIP
SSIEN
DCMIP
SSIRS
T
rwrwrw

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

Bit 2 DCMIPSSILPEN: DCMIPSSI clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 DCMIPSSIEN: DCMIPSSI clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 DCMIPSSIRST: DCMIPSSI reset

Set and cleared by software.

0: Writing 0 releases DCMIPSSI reset. Reading 0 means that DCMIPSSI reset is released.

1: Writing 1 asserts DCMIPSSI reset. Reading 1 means that DCMIPSSI reset is asserted.

20.8.161 RCC RNG1 configuration register (RCC_RNG1CFGR)

Address offset: 0x870

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of RNG1.
Any read access is allowed.

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.RNG1L
PEN
RNG1E
N
RNG1R
ST
rwrwrw

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

Bit 2 RNG1LPEN: RNG1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 RNG1EN: RNG1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 RNG1RST: RNG1 reset

Set and cleared by software.

0: Writing 0 releases RNG1 reset. Reading 0 means that RNG1 reset is released.

1: Writing 1 asserts RNG1 reset. Reading 1 means that RNG1 reset is asserted.

Note: The clocks of the following cryptographic peripherals must all be disabled before setting this bit: PKA, RNG1, SAES, HASH1, CRYP1.

20.8.162 RCC RNG2 configuration register (RCC_RNG2CFGR)

Address offset: 0x874

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of RNG2.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.RNG2LRNG2ERNG2R
PENNST
rwrwrw
Bit 2RNG2LPEN: RNG2 clock enable during CSleep
Bit 1RNG2EN: RNG2 clock enable
Bit 0RNG2RST: RNG2 reset

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

Bit 2 RNG2LPEN: RNG2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 RNG2EN: RNG2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 RNG2RST: RNG2 reset

Set and cleared by software.

0: Writing 0 releases RNG2 reset. Reading 0 means that RNG2 reset is released.

1: Writing 1 asserts RNG2 reset. Reading 1 means that RNG2 reset is asserted.

20.8.163 RCC PKA configuration register (RCC_PKACFGR)

Address offset: 0x878

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of PKA.
Any read access is allowed.

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.PKALP
EN
PKAENPKARST
rwrwrw

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

Bit 2 PKALPEN: PKA clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 PKAEN: PKA clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 PKARST: PKA reset

Set and cleared by software.

0: Writing 0 releases PKA reset. Reading 0 means that PKA reset is released.

1: Writing 1 asserts PKA reset. Reading 1 means that PKA reset is asserted.

Note: The clocks of the following cryptographic peripherals must all be disabled before setting this bit: PKA, RNG1, SAES, HASH1, CRYP1.

20.8.164 RCC SAES configuration register (RCC_SAESCFGR)

Address offset: 0x87C

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of SAES.
Any read access is allowed.

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.SAESL
PEN
SAESE
N
SAESR
ST
rwrwrw

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

Bit 2 SAESLPEN: SAES clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SAESEN: SAES clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SAESRST: SAES reset

Set and cleared by software.

0: Writing 0 releases SAES reset. Reading 0 means that SAES reset is released.

1: Writing 1 asserts SAES reset. Reading 1 means that SAES reset is asserted.

Note: The clocks of the following cryptographic peripherals must all be disabled before setting this bit: PKA, RNG1, SAES, HASH1, CRYP1.

20.8.165 RCC HASH1 configuration register (RCC_HASH1CFGR)

Address offset: 0x880

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of HASH1.
Any read access is allowed.

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.HASH1
LPEN
HASH1
EN
HASH1
RST
rwrwrw

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

Bit 2 HASH1LPEN: HASH1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 HASH1EN: HASH1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 HASH1RST: HASH1 reset

Set and cleared by software.

0: Writing 0 releases HASH1 reset. Reading 0 means that HASH1 reset is released.

1: Writing 1 asserts HASH1 reset. Reading 1 means that HASH1 reset is asserted.

Note: The clocks of the following cryptographic peripherals must all be disabled before setting this bit: PKA, RNG1, SAES, HASH1, CRYP1.

20.8.166 RCC HASH2 configuration register (RCC_HASH2CFGR)

Address offset: 0x884

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of HASH2.
Any read access is allowed.

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.HASH2
LPEN
HASH2
EN
HASH2
RST
rwrwrw

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

Bit 2 HASH2LPEN: HASH2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 HASH2EN: HASH2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 HASH2RST: HASH2 reset

Set and cleared by software.

0: Writing 0 releases HASH2 reset. Reading 0 means that HASH2 reset is released.

1: Writing 1 asserts HASH2 reset. Reading 1 means that HASH2 reset is asserted.

20.8.167 RCC CRYP1 configuration register (RCC_CRYP1CFGR)

Address offset: 0x888

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of CRYP1.
Any read access is allowed.

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.CRYP1
LPEN
CRYP1
EN
CRYP1
RST
rwrwrw

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

Bit 2 CRYP1LPEN: CRYP1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 CRYP1EN: CRYP1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 CRYP1RST: CRYP1 reset

Set and cleared by software.

0: Writing 0 releases CRYP1 reset. Reading 0 means that CRYP1 reset is released.

1: Writing 1 asserts CRYP1 reset. Reading 1 means that CRYP1 reset is asserted.

Note: The clocks of the following cryptographic peripherals must all be disabled before setting this bit: PKA, RNG1, SAES, HASH1, CRYP1.

20.8.168 RCC CRYP2 configuration register (RCC_CRYP2CFGR)

Address offset: 0x88C

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of CRYP2.
Any read access is allowed.

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.CRYP2
LPEN
CRYP2
EN
CRYP2
RST
rwrwrw

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

Bit 2 CRYP2LPEN: CRYP2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 CRYP2EN: CRYP2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 CRYP2RST: CRYP2 reset

Set and cleared by software.

0: Writing 0 releases CRYP2 reset. Reading 0 means that CRYP2 reset is released.

1: Writing 1 asserts CRYP2 reset. Reading 1 means that CRYP2 reset is asserted.

20.8.169 RCC IWDG1 configuration register (RCC_IWDG1CFGR)

Address offset: 0x894

Reset value: 0x0000 0004

This register is used to control clock gating and low-power behavior of IWDG1.

Any read access is allowed.

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.IWDG1
LPEN
IWDG1
EN
Res.
rwrw

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

Bit 2 IWDG1LPEN: IWDG1 bus clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables APB clock in CSleep. Reading 0 means that APB clock is disabled in CSleep.

1: Writing 1 enables APB clock in CSleep. Reading 1 means that APB clock is enabled in CSleep.

Bit 1 IWDG1EN: IWDG1 bus clock enable

Set and cleared by software.

0: Writing 0 disables APB clock. Reading 0 means that APB clock is disabled.

1: Writing 1 enables APB clock. Reading 1 means that APB clock is enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.170 RCC IWDG2 configuration register (RCC_IWDG2CFGR)

Address offset: 0x898

Reset value: 0x0000 0004

This register is used to control clock gating and low-power behavior of IWDG2.
Any read access is allowed.

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.IWDG2
LPEN
IWDG2
EN
Res.
rwrw

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

Bit 2 IWDG2LPEN: IWDG2 bus clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables APB clock in CSleep. Reading 0 means that APB clock is disabled in CSleep.

1: Writing 1 enables APB clock in CSleep. Reading 1 means that APB clock is enabled in CSleep.

Bit 1 IWDG2EN: IWDG2 bus clock enable

Set and cleared by software.

0: Writing 0 disables APB clock. Reading 0 means that APB clock is disabled.

1: Writing 1 enables APB clock. Reading 1 means that APB clock is enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.171 RCC IWDG3 configuration register (RCC_IWDG3CFGR)

Address offset: 0x89C

Reset value: 0x0000 0004

This register is used to control clock gating and low-power behavior of IWDG3.
Any read access is allowed.

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.IWDG3
LPEN
IWDG3
EN
Res.
rwrw

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

Bit 2 IWDG3LPEN: IWDG3 bus clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables APB clock in CSleep. Reading 0 means that APB clock is disabled in CSleep.

1: Writing 1 enables APB clock in CSleep. Reading 1 means that APB clock is enabled in CSleep.

Bit 1 IWDG3EN: IWDG3 bus clock enable

Set and cleared by software.

0: Writing 0 disables APB clock. Reading 0 means that APB clock is disabled.

1: Writing 1 enables APB clock. Reading 1 means that APB clock is enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.172 RCC IWDG4 configuration register (RCC_IWDG4CFGR)

Address offset: 0x8A0

Reset value: 0x0000 0004

This register is used to control clock gating and low-power behavior of IWDG4.
Any read access is allowed.

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.IWDG4
LPEN
IWDG4
EN
Res.
rwrw

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

Bit 2 IWDG4LPEN: IWDG4 bus clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables APB clock in CSleep. Reading 0 means that APB clock is disabled in CSleep.

1: Writing 1 enables APB clock in CSleep. Reading 1 means that APB clock is enabled in CSleep.

Bit 1 IWDG4EN: IWDG4 bus clock enable

Set and cleared by software.

0: Writing 0 disables APB clock. Reading 0 means that APB clock is disabled.

1: Writing 1 enables APB clock. Reading 1 means that APB clock is enabled.

Bit 0 Reserved, must be kept at reset value.

20.8.173 RCC WWDG1 configuration register (RCC_WWDG1CFGR)

Address offset: 0x8A4

Reset value: 0x0000 0004

This register is used to control th clock gating and low-power behavior of WWDG1.
Any read access is allowed.

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

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

Bit 2 WWDG1LPEN: WWDG1 bus clock enable during CSleep

Set and cleared by software.

0: ‘Writing 0 disables APB clock in CSleep. Reading 0 means that APB clock is disabled in CSleep.

1: Writing 1 enables APB clock in CSleep. Reading 1 means that APB clock is enabled in CSleep.

Bit 1 WWDG1EN: WWDG1 bus clock enable

Set and cleared by software.

0: Writing 0 disables APB clock. Reading 0 means that APB clock is disabled.

1: Writing 1 enables APB clock. Reading 1 means that APB clock is enabled.

Bit 0 WWDG1RST: WWDG1 reset

Set and cleared by software.

0: Writing 0 releases WWDG1 reset. Reading 0 means that WWDG1 reset is released.

1: Writing 1 asserts WWDG1 reset. Reading 1 means that WWDG1 reset is asserted.

20.8.174 RCC VREFBUF configuration register (RCC_VREFCFGR)

Address offset: 0x8AC

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of VREFBUF.
Any read access is allowed.

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

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

Bit 2 VREFLPEN: VREFBUF clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 VREFEN: VREFBUF clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 VREFRST: VREFBUF reset

Set and cleared by software.

0: Writing 0 releases VREFBUF reset. Reading 0 means that VREFBUF reset is released.

1: Writing 1 asserts VREFBUF reset. Reading 1 means that VREFBUF reset is asserted

20.8.175 RCC DTS configuration register (RCC_DTSCFGR)

Address offset: 0x8B0

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of DTS.

Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.DTSKERSEL[1:0
]Res.Res.Res.Res.Res.Res.Res.Res.Res.DTSLP
ENDTSENDTSRS T
rwrwrwrwrw
Bits 13:12DTSKERSEL[1:0]: DTS kernel clock selection
Bit 2DTSLPEN: DTS clock enable during CSleep

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

Bits 13:12 DTSKERSEL[1:0]: DTS kernel clock selection

Set and cleared by software.

0x0: hsi_ker_ck selected

0x1: hse_ker_ck selected

0x2: msi_ker_ck selected

0x3: Reserved

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

Bit 2 DTSLPEN: DTS clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 DTSEN: DTS clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 DTSRST: DTS reset

Set and cleared by software.

0: Writing 0 releases DTS reset. Reading 0 means that DTS reset is released.

1: Writing 1 asserts DTS reset. Reading 1 means that DTS reset is asserted

20.8.176 RCC CRC configuration register (RCC_CRCCFGR)

Address offset: 0x8B4

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of CRC.

Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.CRCLPCRCECRCR
ENNST
rwrwrw
Bit 2CRCLPEN: CRC clock enable during CSleep
Bit 1CRCEN: CRC clock enable
Bit 0CRCRST: CRC reset

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

Bit 2 CRCLPEN: CRC clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 CRCE: CRC clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 CRCRST: CRC reset

Set and cleared by software.

0: Writing 0 releases CRC reset. Reading 0 means that CRC reset is released.

1: Writing 1 asserts CRC reset. Reading 1 means that CRC reset is asserted

20.8.177 RCC SERC configuration register (RCC_SERCCFGR)

Address offset: 0x8B8

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of SERC.
Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.SERCLSERCESERCR
PENNST
rwrwrw
Bit 2SERCLPEN: SERC clock enable during CSleep
Bit 1SERCEN: SERC clocks enable
Bit 0SERCRST: SERC reset
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
DDRPEDDRPEDDRPE
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RFMLPRFMERFMR
ENNST
rwrwrw

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

Bit 2 SERCLPEN: SERC clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 SERCEN: SERC clocks enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 SERCRST: SERC reset

Set and cleared by software.

0: Writing 0 releases SERC reset. Reading 0 means that SERC reset is released.

1: Writing 1 asserts SERC reset. Reading 1 means that SERC reset is asserted

20.8.178 RCC DDRPERFM configuration register (RCC_DDRPERFMCFGR)

Address offset: 0x8C0

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of DDRPERFM.
Any read access is allowed.

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

Bit 2 DDRPERFMLPEN: DDRPERFM clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 DDRPERFMEN: DDRPERFM clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 DDRPERFMRST: DDRPERFM reset

Set and cleared by software.

0: Writing 0 releases DDRPERFM reset. Reading 0 means that DDRPERFM reset is released.

1: Writing 1 asserts DDRPERFM reset. Reading 1 means that DDRPERFM reset is asserted.

20.8.179 RCC I3C1 configuration register (RCC_I3C1CFGR)

Address offset: 0x8C8

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of I3C1.

Any read access is allowed.

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
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.I3C1LP
ENI3C1ENI3C1RS T
rwrwrw
Bit 2I3C1LPEN: I3C1 clock enable during CSleep
Bit 1I3C1EN: I3C1 clock enable
Bit 0I3C1RST: I3C1 reset

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

Bit 2 I3C1LPEN: I3C1 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 I3C1EN: I3C1 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 I3C1RST: I3C1 reset

Set and cleared by software.

0: Writing 0 releases I3C1 reset. Reading 0 means that I3C1 reset is released.

1: Writing 1 asserts I3C1 reset. Reading 1 means that I3C1 reset is asserted.

20.8.180 RCC I3C2 configuration register (RCC_I3C2CFGR)

Address offset: 0x8CC

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of I3C2.

Any read access is allowed.

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

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

Bit 2 I3C2LPEN: I3C2 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 I3C2EN: I3C2 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 I3C2RST: I3C2 reset

Set and cleared by software.

0: Writing 0 releases I3C2 reset. Reading 0 means that I3C2 reset is released.

1: Writing 1 asserts I3C2 reset. Reading 1 means that I3C2 reset is asserted.

20.8.181 RCC I3C3 configuration register (RCC_I3C3CFGR)

Address offset: 0x8D0

Reset value: 0x0000 0004

This register is used to control reset, clock gating and low-power behavior of I3C3.

Any read access is allowed.

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

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

Bit 2 I3C3LPEN: I3C3 clock enable during CSleep

Set and cleared by software.

0: Writing 0 disables peripheral clocks in CSleep. Reading 0 means that peripheral clocks are disabled in CSleep.

1: Writing 1 enables peripheral clocks in CSleep. Reading 1 means that peripheral clocks are enabled in CSleep.

Bit 1 I3C3EN: I3C3 clock enable

Set and cleared by software.

0: Writing 0 disables peripheral clocks. Reading 0 means that peripheral clocks are disabled.

1: Writing 1 enables peripheral clocks. Reading 1 means that peripheral clocks are enabled.

Bit 0 I3C3RST: I3C3 reset

Set and cleared by software.

0: Writing 0 releases I3C3 reset. Reading 0 means that I3C3 reset is released.

1: Writing 1 asserts I3C3 reset. Reading 1 means that I3C3 reset is asserted.

20.8.182 RCC MUXSEL configuration register (RCC_MUXSELCFGR)

Address offset: 0x1000

Reset value: 0x0000 0000

This register is used to select reference clock for each channel in MUXSEL of flexclkgen.
Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 64 configuration (see Table 161 for details). Any read access is allowed.

column_1column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.MUXSEL6[1:0]Res.Res.MUXSEL5[1:0]Res.MUXSEL4[2:0]
Res.rwrwrwrwrwrwrw
1514131211109876543210
Res.MUXSEL3[2:0]Res.MUXSEL2[2:0]Res.MUXSEL1[2:0]Res.MUXSEL0[2:0]
Res.rwrwrwrwrwrwrwrwrwrwrwrw
Res.Bits 25:24MUXSEL6[1:0]: PLL2 reference clock selection (ck_pll2_ref)
Res.Bits 21:20MUXSEL5[1:0]: PLL1 reference clock selection (ck_pll1_ref)

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

Bits 25:24 MUXSEL6[1:0]: PLL2 reference clock selection (ck_pll2_ref)

Set and cleared by software.

0x0: hsi_ck

0x1: hse_ck

0x2: msi_ck

0x3: Reserved

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

Bits 21:20 MUXSEL5[1:0]: PLL1 reference clock selection (ck_pll1_ref)

Set and cleared by software.

0x0: hsi_ck

0x1: hse_ck

0x2: msi_ck

0x3: Reserved

Bit 19 Reserved, must be kept at reset value.

Bits 18:16 MUXSEL4[2:0]: PLL8 reference clock selection

Set and cleared by software.

0x0: hsi_ck

0x1: hse_ck

0x2: msi_ck

0x5: ck_in

Others: Reserved

Bit 15 Reserved, must be kept at reset value.

Bits 14:12 MUXSEL3[2:0]: PLL7 reference clock selection

Set and cleared by software.

0x0: hsi_ck

0x1: hse_ck

0x2: msi_ck

0x5: ck_in

Others: Reserved

Bit 11 Reserved, must be kept at reset value.

Bits 10:8 MUXSEL2[2:0]: PLL6 reference clock selection

Set and cleared by software.

0x0: hsi_ck

0x1: hse_ck

0x2: msi_ck

0x5: ck_in

Others: Reserved

Bit 7 Reserved, must be kept at reset value.

Bits 6:4 MUXSEL1[2:0]: PLL5 reference clock selection

Set and cleared by software.

0x0: hsi_ck

0x1: hse_ck

0x2: msi_ck

0x5: ck_in

Others: Reserved

Bit 3 Reserved, must be kept at reset value.

Bits 2:0 MUXSEL0[2:0]: PLL4 reference clock selection

Set and cleared by software.

0x0: hsi_ck

0x1: hse_ck

0x2: msi_ck

0x5: ck_in

Others: Reserved

20.8.183 RCC cross bar x configuration register (RCC_XBARxCFGR)

Address offset: 0x1018+0x4*x, (x = 0 to 63)

Reset value: 0x0000 0045

This register is used to configure channel x output of cross bar (XBAR) in flexclkgen. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number x configuration (see Table 161 for details). Any read access is allowed.

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.XBARxSTSXBARxENRes.Res.XBARxSEL[3:0]
rrwrwrwrwrw

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

Bit 7 XBARxSTS: Cross bar channel x output status

Set and cleared by hardware to indicate channel x output status versus setting changes.

0: Channel x is aligned to given settings.

1: Indicates change ongoing.

Bit 6 XBARxEN: Cross bar channel x clock output enable

Set and cleared by software. It is recommended to keep the channel x enabled at cross bar stage, and to use the final divider enable bit to disable the channel x output.

0: Channel x output disabled

1: Channel x output enabled

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

Bits 3:0 XBARxSEL[3:0]: Cross bar channel x input clock selection

Set and cleared by software to select the input clock for the channel x.

0x0: PLL4 FOUTPOSTDIV clock selected

0x1: PLL5 FOUTPOSTDIV clock selected

0x2: PLL6 FOUTPOSTDIV clock selected

0x3: PLL7 FOUTPOSTDIV clock selected

0x4: PLL8 FOUTPOSTDIV clock selected

0x5: hsi_ck selected

0x6: hse_ck selected

0x7: msi_ck selected

0x8: hsi_ker_ck selected

0x9: hse_ker_ck selected

0xA: msi_ker_ck selected

0xB: spdifrx_symb_ck selected

0xC: ck_in selected

0xD: lsi_ck selected

0xE: lse_ck selected

Other: Reserved

20.8.184 RCC pre divider x configuration register (RCC_PREDIVxCFGR)

Address offset: 0x1118 + 0x4 * x, (x = 0 to 63)

Reset value: 0x0000 0000

This register is used to configure the channel x predivider (PREDIV) stage in flexclkgen. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number x configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.PREDIVx[9:0]
rwrwrwrwrwrwrwrwrwrw

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

Bits 9:0 PREDIVx[9:0]: Predivider channel x divider ratio

Set and cleared by software to select one div1, div2, div4 or div1024 ratio.

0x0: div1

0x1: div2

0x3: div4

0x3FF: div1024

Others: Reserved

20.8.185 RCC pre divider status register 1 (RCC_PREDIVSR1)

Address offset: 0x1218

Reset value: 0x0000 0000

This register is used to get status of first 32 channel outputs of PREDIV in flexclkgen. Word format data access only supported on this register. Any read access is allowed.

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

Bits 31:0 PREDIVSTS[31:0]: Predivider channel[31:0] output status

Set by hardware to indicate the status of channel output versus divide ratio changes.

0: Channel is aligned with divide ratio change.

1: Indicates that the divider is in the process of changing.

20.8.186 RCC pre divider status register 2 (RCC_PREDIVSR2)

Address offset: 0x121C

Reset value: 0x0000 0000

This register is used to get status of last 32 channel outputs of PREDIV in flexclkgen. Word format data access only supported on this register. Any read access is allowed.

31302928272625242322212019181716
PREDIVSTS[63:48]
rrrrrrrrrrrrrrrr
1514131211109876543210
PREDIVSTS[47:32]
rrrrrrrrrrrrrrrr

Bits 31:0 PREDIVSTS[63:32]: Predivider channel[63:32] output status

Set by hardware to indicate the status of channel output versus divide ratio changes.

0: Channel is aligned with divide ratio change.

1: Indicates that the divider is in the process of changing.

20.8.187 RCC final divider x configuration register (RCC_FINDIVxCFGR)

Address offset: 0x1224 + 0x4 * x, (x = 0 to 63)

Reset value: 0x0000 0040

This register is used to configure channel x final divider (FINDIV) in flexclkgen. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number x configuration (see Table 161 for details). Any read access is allowed.

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.FINDIV
xEN
FINDIVx[5:0]
rwrwrwrwrwrwrw

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

Bit 6 FINDIVxEN: Final divider channel x output enable

Set and cleared by software.

0: Channel x output disabled

1: Channel x output enabled

Bits 5:0 FINDIVx[5:0]: Channel x divider ratio

Set and cleared by software to select one div1 up to div64 step.

20.8.188 RCC final divider status register 1 (RCC_FINDIVSR1)

Address offset: 0x1324

Reset value: 0x0000 0000

This register is used to get status of first 32 channel outputs of FINDIV in flexclkgen. Word format access only supported on this register. Any read access is allowed.

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

Bits 31:0 FINDIVSTS[31:0]: Final divider channel[31:0] output status

Set by hardware to indicate the status of the channel output vs divide ratio changes.

0: Channel is aligned with divide ratio change.

1: Indicates that the divider is in the process of changing.

20.8.189 RCC final divider status register 2 (RCC_FINDIVSR2)

Address offset: 0x1328

Reset value: 0x0000 0000

This register is used to get status of last 32 channel outputs of FINDIV in flexclkgen. Word format access only supported on this register. Any read access is allowed.

31302928272625242322212019181716
FINDIVSTS[63:48]
rrrrrrrrrrrrrrrr
1514131211109876543210
FINDIVSTS[47:32]
rrrrrrrrrrrrrrrr

Bits 31:0 FINDIVSTS[63:32]: Final divider channel[63:32] output status

Set by hardware to indicate the status of the channel output versus divide ratio changes.

0: Channel is aligned with divide ratio change.

1: Indicates that the divider is in the process of changing.

20.8.190 RCC clock frequency calculator and observation 0 clock configuration register (RCC_FCALCOBS0CFGR)

Address offset: 0x1340

Reset value: 0x1600 0087

This register is used to configure clock frequency calculator and observation clock 0 in flexclkgen. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 65 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.CKOBS
EN
FCALC
CKEN
CKOBS DIV[2:0]Res.Res.Res.CKOBS
INV
FCALC
CKINV
CKOBS
EXTSE
L
rwrwrwrwrwrwrwrw
1514131211109876543210
FCALC
CKEXT
SEL
Res.Res.Res.Res.CKEXTSEL[2:0]CKINTSEL[7:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 26 CKOBSSEN: Observation clock 0 output enable

Set and cleared by software to enable the observation clock 0 output in front of the divider.

0: Observation clock 0 output disabled

1: Observation clock 0 output enabled (default after reset)

Bit 25 FCALCCKEN: Clock frequency calculator input clock enable

Set and cleared by software to enable the clock frequency calculator input clock.

0: Input clock disabled

1: Input clock enabled (default after reset)

Bits 24:22 CKOBS DIV[2:0]: Observation clock 0 divide ratio

Set and cleared by software to select the divide ratio for the observation clock 0.

000: div1 (default after reset)

001: div2

010: div4

011: div8

100: div16

101: div32

110: div64

111: div128

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

Bit 18 CKOBSINV: Observation clock 0 inverter

Set and cleared by software to invert the observation clock 0 in front of the divider.

0: Observation clock 0 not inverted (default after reset)

1: Observation clock 0 inverted

Bits 7:0 CKINTSEL[7:0]: Internal clock selector for clock frequency calculator and observation clock 0
Set and cleared by software to select the internal clock to be calculated or observed.

20.8.191 RCC clock frequency calculator and observation 1 clock configuration register (RCC_FCALCOBS1CFGR)

Address offset: 0x1344

Reset value: 0x0600 0087

This register is used to configure clock frequency calculator and observation clock 1 in flexclkgen. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 65 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.FCALC
RSTN
CKOBS
EN
Res.CKOBSDIV[2:0]Res.Res.Res.CKOBS
INV
Res.CKOBS
EXTSE
L
rwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.CKEXTSEL[2:0]CKINTSEL[7:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 7:0 CKINTSEL[7:0]: Internal clock selector for observation clock 1

Set and cleared by software to select the internal clock to be observed.

0000 0000: hsi_ck
0000 0001: hse_ck
0000 0010: msi_ck
0000 0110: PLL4 reference input clock
0000 0111: PLL5 reference input clock
0000 1000: PLL6 reference input clock
0000 1001: PLL7 reference input clock
0000 1010: PLL8 reference input clock
0000 1011: PLL1 reference input clock
0000 1100: PLL2 reference input clock
0100 0000: PLL4 output clock
0100 0001: PLL5 output clock
0100 0010: PLL6 output clock
0100 0011: PLL7 output clock
0100 0100: PLL8 output clock
1000 0000: hsi_ker_ck
1000 0001: hse_ker_ck
1000 0010: msi_ker_ck
1000 0011: spdifrx_symb_ck
1000 0100: ck_in
1000 0101: lsi_ck
1000 0110: lse_ck
1000 0111: ck_xbar_fsm (default after reset)
1000 1000: ck_icn_p_rcc
1100 0000: findiv[0]
1100 0001: findiv[1]
...
1111 1111: findiv[63]
Others: Reserved

20.8.192 RCC clock frequency calculator reference clock configuration register (RCC_FCALCREFCFGR)

Address offset: 0x1348

Reset value: 0x0000 4000

This register is used to configure clock frequency calculator reference clock in flexclkgen. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 65 configuration (see Table 161 for details). Any read access is allowed.

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.FCALCREFCSEL[2:0]
rwrwrw

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

Bits 2:0 FCALCREFCSEL[2:0]: Reference clock selection used by clock frequency calculator

Set and cleared by software to select clock frequency calculator reference clock used for definition of clock frequency calculation time window (see RCC_FCALCCR2).

000: PLL4 reference input clock

001: PLL5 reference input clock

010: PLL6 reference input clock

011: PLL7 reference input clock

100: PLL8 reference input clock

Others: Reserved

20.8.193 RCC clock frequency calculator control register 1 (RCC_FCALCCR1)

Address offset: 0x134C

Reset value: 0x0000 0000

This register is used to control clock frequency calculator in flexclkgen block. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 65 configuration (see Table 161 for details). Any read access is allowed.

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.FCALC RUN
rw

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

Bit 0 FCALCRUN: Clock frequency calculator run

Set and cleared by software to run the measure.

0: Clock frequency calculator off (default after reset)

1: Clock frequency calculator on

20.8.194 RCC clock frequency calculator control register 2 (RCC_FCALCCR2)

Address offset: 0x1354

Reset value: 0x0000 0000

This register is used to control the clock frequency calculator in flexclkgen. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 65 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCALCTYP[4:0]Res.
rwrwrwrwrw
1514131211109876543210
Res.FCALCTWC[3:0]Res.Res.Res.Res.Res.Res.FCALCMD[1:0]Res.Res.Res.
rwrwrwrwrwrw

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

Bits 21:17 FCALCTYP[4:0]: Clock frequency calculation type selection

Set and cleared by software to select the clock frequency calculation type.

0x0C: Frequency value type

Other: Reserved

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

Bits 14:11 FCALCTWC[3:0]: Time window code for clock frequency calculation

Set and cleared by software to set the number of reference clock cycles used for the clock frequency calculation in application mode (see FCALCMD).

0x0: 63 cycles

0x1: 3 cycles

0x2: 7 cycles

0x3: 15 cycles

0x4: 31 cycles

0x5: 63 cycles

0x6: 127 cycles

0x7: 255 cycles

0x8: 511 cycles

0x9: 1023 cycles

0xA: 2047 cycles

0xB: 4095 cycles

0xC: 8191 cycles

0xD: 16383 cycles

0xE: 32767 cycles

0xF: 65535 cycles

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

Bits 4:3 FCALCMD[1:0]: Clock frequency calculation method

Set and cleared by software to set the clock frequency calculation method.

11: Application method

Other: Reserved

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

20.8.195 RCC clock frequency calculator status register (RCC_FCALCSR)

Address offset: 0x1358

Reset value: 0x0000 0000

This register is used to get status of clock frequency calculator in flexclkgen. Word format data access only supported on this register. Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCALC
STS
Res.Res.FVAL[16]
rr
1514131211109876543210
FVAL[15:0]
rrrrrrrrrrrrrrrr

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

Bit 19 FCALCSTS: Clock frequency calculation status

Set by hardware to indicate the status of the clock frequency calculation.

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

Bits 16:0 FVAL[16:0]: Clock frequency calculation value

Set by hardware to indicate the clock frequency calculation value.

20.8.196 RCC PLLy configuration register 1 (RCC_PLLyCFGR1)

Address offset: 0x1360 + 0x28 * (y - 4), (y = 4 to 8)

Reset value: 0x1000 0001

This register is used to configure flexclkgen PLLy. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 64 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.CKREF
ST
Res.Res.Res.PLLRD
Y
Res.Res.Res.Res.Res.Res.Res.Res.
rc_wr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.PLLENRes.Res.Res.Res.Res.Res.Res.SSMO
DRST
rwrw

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

Bit 28 CKREFST: PLLy reference clock state

Set by hardware and cleared by software. Indicates if PLLy reference clock is running.

After any reset, this bit is updated after 5 clock cycles of the selected PLL reference clock.

0: Reading 0 means that PLLy reference clock does not run. Writing 0 resets the reference clock running detector.

1: Reading 1 means that PLLy reference clock is running. Writing 1 resets the reference clock running detector.

Bits 27:25 Reserved, must be kept at reset value.

Bit 24 PLLRDY: PLLy clock ready flag

Set by hardware to indicate when PLLy is locked.

0: PLLy unlocked (default after reset)

1: PLLy locked

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

Bit 8 PLEN: PLLy enable

Set and cleared by software to enable PLLy.

0: PLLy off (default after reset)

1: PLLy on

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

Bit 0 SSMODRST: PLLy spread-spectrum modulator reset

Set and cleared by software.

0: PLLy spread-spectrum modulator reset module released

1: PLLy spread-spectrum modulator reset module asserted (default after reset)

20.8.197 RCC PLLy configuration register 2 (RCC_PLLyCFGR2)

Address offset: 0x1364+0x28*(y-4), (y = 4 to 8)

Reset value: 0x0000 0000

This register is used to configure flexclkgen PLLy. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 64 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.FBDIV[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FREFDIV[5:0]
rwrwrwrwrwrw

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

Bits 27:16 FBDIV[11:0]: PLLy VCO multiplication factor

Set and cleared by software to control VCO multiplication factor.

In integer mode, this value must be set between 16 and 640.

In fractional mode, this value must be set between 20 and 320.

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

Bits 5:0 FREFDIV[5:0]: PLLy reference input clock divide frequency ratio

Set and cleared by software.

0x0: Not applicable

0x1: FREF divided by 1 (min value)

0x2: FREF divided by 2

0x3: FREF divided by 3

...

0x3C: FREF divided by 60

0x3D: FREF divided by 61

0x3E: FREF divided by 62

0x3F: FREF divided by 63

20.8.198 RCC PLLy configuration register 3 (RCC_PLLyCFGR3)

Address offset: 0x1368 + 0x28 * (y - 4), (y = 4 to 8)

Reset value: 0x0400 0000

This register is used to configure flexclkgen PLLy. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 64 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.SSCGDISDACENDOWNSPREADFRACIN[23:16]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FRACIN[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 26 SSCGDIS: PLLy spread-spectrum modulator disable

Set and cleared by software to enable the PLLy clock spreading generator.

0: PLLy spread-spectrum modulator enabled

1: PLLy spread-spectrum modulator disabled (default after reset)

Bit 25 DACEN: PLLy noise canceling DAC enable in fractional mode.

Set and cleared by software to enable the noise cancellation in fractional mode.

0: DAC not active (default after reset)

1: DAC active

Bit 24 DOWNSPREAD: PLLy VCO frequency modulation mode

Set and cleared by software to select the PLLy clock spreading mode.

0: Center-spread modulation selected (default after reset)

1: Down-spread modulation selected

Bits 23:0 FRACIN[23:0]: Fractional part of PLLy VCO multiplication factor

Set and cleared by software to control the VCO fractional multiplication factor.

VCO output frequency = FREF * (FBDIV + FRAC / 224) / FREFDIV

20.8.199 RCC PLLy configuration register 4 (RCC_PLLyCFGR4)

Address offset: 0x136C + 0x28 * (y - 4), (y = 4 to 8)

Reset value: 0x0000 0000

This register is used to configure flexclkgen PLLy. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 64 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.BYPAS
S
FOUTP
OSTDI
VEN
DSME
N
Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrw

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

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

ST logo
ST logo

20.8.200 RCC PLLy configuration register 5 (RCC_PLLyCFGR5)

Address offset: 0x1370+0x28*(y-4), (y = 4 to 8)

Reset value: 0x0000 0000

This register is used to configure flexclkgen PLLy. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 64 configuration (see Table 161 for details). Any read access is allowed.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SPREAD[4:0]
rwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DIVVAL[3:0]
rwrwrwrw

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

Bits 20:16 SPREAD[4:0]: Modulation depth adjustment for PLLy

Set and cleared by software to adjust modulation depth of the clock spreading generator.

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

Bits 3:0 DIVVAL[3:0]: Modulation frequency adjustment for PLLy

Set and cleared by software to adjust modulation frequency of the clock spreading generator.

20.8.201 RCC PLLy configuration register 6 (RCC_PLLyCFGR6)

Address offset: 0x1378+0x28*(y-4), (y = 4 to 8)

Reset value: 0x0000 0000

This register is used to configure flexclkgen PLLy. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 64 configuration (see Table 161 for details). Any read access is allowed.

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.POSTDIV1[2:0]
rwrwrw

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

Bits 2:0 POSTDIV1[2:0]: PLLy VCO frequency divide level 1

Set and cleared by software to divide the VCO frequency output.

0x0: Not applicable

0x1: FOUTVCO divided by 1 (minimum value)

0x2: FOUTVCO divided by 2

0x3: FOUTVCO divided by 3

0x4: FOUTVCO divided by 4

0x5: FOUTVCO divided by 5

0x6: FOUTVCO divided by 6

0x7: FOUTVCO divided by 7

20.8.202 RCC PLLy configuration register 7 (RCC_PLLyCFGR7)

Address offset: 0x137C + 0x28 * (y - 4), (y = 4 to 8)

Reset value: 0x0000 0000

This register is used to configure flexclkgen PLLy. Word format data access only supported on this register.

Write accesses are defined according to the RCC local resource number 64 configuration (see Table 161 for details). Any read access is allowed.

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.POSTDIV2[2:0]
rwrwrw

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

Bits 2:0 POSTDIV2[2:0]: PLLy VCO frequency divide level 2

Set and cleared by software to divide the VCO frequency output.

0x0: Not applicable

0x1: FOUTVCO/POSTDIV1 divided by 1 (minimum value)

0x2: FOUTVCO/POSTDIV1 divided by 2

0x3: FOUTVCO/POSTDIV1 divided by 3

0x4: FOUTVCO/POSTDIV1 divided by 4

0x5: FOUTVCO/POSTDIV1 divided by 5

0x6: FOUTVCO/POSTDIV1 divided by 6

0x7: FOUTVCO/POSTDIV1 divided by 7

Note: \(FOUTPOSTDIV = FOUTVCO / POSTDIV1 \times POSTDIV2\).

20.8.203 RCC version register (RCC_VERR)

Address offset: 0xFFF4

Reset value: 0x0000 0010

Any read access is allowed.

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 RCC revision

Bits 3:0 MINREV[3:0]: Minor RCC revision

20.8.204 RCC identifier register (RCC_IDR)

Address offset: 0xFFF8

Reset value: 0x0000 0003

Any read access is allowed.

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

Bits 31:0 ID[31:0]: RCC identifier

20.8.205 RCC size identification register (RCC_SIDR)

Address offset: 0xFFFC

Reset value: 0xA3C5 DD40

Any read access is allowed.

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

Bits 31:0 SID[31:0]: RCC decoding space (64 Kbytes)

20.8.206 RCC register map

Table 162. RCC register map and reset values

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x000RCC_SECCFGR0SEC[31:0]
Reset value00000000000000000000000000000000
0x004RCC_SECCFGR1SEC[63:32]
Reset value00000000000000000000000000000000
0x008RCC_SECCFGR2SEC95SEC94SEC93SEC92SEC91SEC90ResSEC88SEC87SEC86SEC85SEC84SEC83ResResResSEC79SEC78SEC77SEC76SEC75SEC74SEC73SEC72SEC71SEC70SEC69SEC68SEC67SEC66SEC65SEC64
Reset value00000000000000000000000000000
0x00CRCC_SECCFGR3ResResResResResResResResResResResResResResSEC113SEC112SEC111SEC110SEC109SEC108ResSEC106SEC105SEC104SEC103SEC102SEC101ResResSEC98SEC97SEC96
Reset value000000000000000
0x010RCC_PRIVCFGR0PRIV[31:0]
Reset value00000000000000000000000000000000
0x014RCC_PRIVCFGR1PRIV[63:32]
Reset value00000000000000000000000000000000
0x018RCC_PRIVCFGR2PRIV95PRIV94PRIV93PRIV92PRIV91PRIV90ResPRIV88PRIV87PRIV86PRIV85PRIV84PRIV83ResResResPRIV79PRIV78PRIV77PRIV76PRIV75PRIV74PRIV73PRIV72PRIV71PRIV70PRIV69PRIV68PRIV67PRIV66PRIV65PRIV64
Reset value00000000000000000000000000000
0x01CRCC_PRIVCFGR3ResResResResResResResResResResResResResResPRIV113PRIV112PRIV111PRIV110PRIV109PRIV108ResPRIV106PRIV105PRIV104PRIV103PRIV102PRIV101ResResPRIV98PRIV97PRIV96
Reset value000000000000000
0x020RCC_RCFGLOCKR0RLOCK[31:0]
Reset value00000000000000000000000000000000
0x024RCC_RCFGLOCKR1RLOCK[63:32]
Reset value00000000000000000000000000000000
0x028RCC_RCFGLOCKR2RLOCK95RLOCK94RLOCK93RLOCK92RLOCK91RLOCK90ResRLOCK88RLOCK87RLOCK86RLOCK85RLOCK84RLOCK83ResResResRLOCK79RLOCK78RLOCK77RLOCK76RLOCK75RLOCK74RLOCK73ResRLOCK71RLOCK70RLOCK69RLOCK68RLOCK67RLOCK66RLOCK65RLOCK64
Reset value0000000000000000000000000000
0x02CRCC_RCFGLOCKR3ResResResResResResResResResResResResResResRLOCK113RLOCK112RLOCK111RLOCK110RLOCK109RLOCK108ResRLOCK106RLOCK105RLOCK104RLOCK103RLOCK102RLOCK101ResResRLOCK98RLOCK97RLOCK96
Reset value000000000000000
0x030 + 0x8 * x (x=0 to 113) Last addr: 0x3B8RCC_RxCIDCFGRResResResResResResResSEMWLC[7:0]ResResResResResResResResResResSCID [2:0]ResResSEM_ENRLOCK97RLOCK96
Reset value0000000000000
Table 162. RCC register map and reset values (continued)
OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x034 + 0x8 * x
(x=0 to 113) Last addr: 0x3BC
RCC_RxSEMCRRes.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
0x3C0 - 0x3FCReservedRes.
0x400RCC_GRSTCSETRRes.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.SYSRST
Reset value0
0x404RCC_C1RSTCSETRRes.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.C1RST
Reset value0
0x408ReservedRes.
0x40CRCC_C2RSTCSETRRes.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.C2RST
Reset value0
0x410RCC_HWRSTSCLRRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RETECCFAILRESTRSTFRETECCFAILCRCRSTFRETCRCERRRSTFRes.IWDG4SYSRSTFIWDG3SYSRSTFIWDG2SYSRSTFIWDG1SYSRSTFSYSC2RSTFSYSC1RSTFVCORERSTFHCSSRSTFPADRSTFBORRSTFPORRSTF
Reset value00000000010101
0x414RCC_
C1HWRSTSCLRR
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.C1RSTFVCPURSTF
Reset value11
0x418RCC_
C2HWRSTSCLRR
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.C2RSTF
Reset value1
0x41CRCC_
C1BOOTRSTSSETR
Res.Res.Res.Res.Res.Res.D2STBYRSTFD1STBYRSTFRes.STBYC1RSTFRETECCFAILRESTRSTFRETECCFAILCRCRSTFRETCRCERRRSTFRes.Res.Res.Res.Res.C1RSTFRes.IWDG4SYSRSTFIWDG3SYSRSTFIWDG2SYSRSTFIWDG1SYSRSTFSYSC2RSTFSYSC1RSTFVCPURSTFVCORERSTFHCSSRSTFPADRSTFBORRSTFPORRSTF
Reset value0000000000000000000

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x420RCC_
C1BOOTRSTSCLRR
Res.Res.Res.Res.Res.Res.Res.Res.D2STBYRSTFD1STBYRSTFRes.STBYC1RSTFRETECCFAILRESTRSTFRETECCFAILCRCRSTFRETCRCERRRSTFRes.Res.Res.C1RSTFRes.IWDG4SYSRSTFIWDG3SYSRSTFIWDG2SYSRSTFIWDG1SYSRSTFSYSC2RSTFSYSC1RSTFVCPURSTFVCORERSTFHCSSRSTFPADRSTFBORRSTFPORRSTF
Reset value0000000000000000000
0x424RCC_
C2BOOTRSTSSETR
Res.Res.Res.Res.Res.Res.Res.Res.D2STBYRSTFRes.STBYC2RSTFRes.RETECCFAILRESTRSTFRETECCFAILCRCRSTFRETCRCERRRSTFRes.Res.C2RSTFRes.Res.IWDG4SYSRSTFIWDG3SYSRSTFIWDG2SYSRSTFIWDG1SYSRSTFSYSC2RSTFSYSC1RSTFRes.VCORERSTFHCSSRSTFPADRSTFBORRSTFPORRSTF
Reset value00000000000000000
0x428RCC_
C2BOOTRSTSCLRR
Res.Res.Res.Res.Res.Res.Res.Res.D2STBYRSTFRes.STBYC2RSTFRes.RETECCFAILRESTRSTFRETECCFAILCRCRSTFRETCRCERRRSTFRes.Res.C2RSTFRes.Res.IWDG4SYSRSTFIWDG3SYSRSTFIWDG2SYSRSTFIWDG1SYSRSTFSYSC2RSTFSYSC1RSTFRes.VCORERSTFHCSSRSTFPADRSTFBORRSTFPORRSTF
Reset value00000000000000000
0x42CRCC_C1SREQSETRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ESLPREQRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STPREQ_P0
Reset value00
0x430RCC_C1SREQCLRRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ESLPREQRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STPREQ_P0
Reset value00
0x434RCC_CPUBOOTCRRes.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.BOOT_CPU1BOOT_CPU2
Reset value00
0x438RCC_STBYBOOTCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RET_CRCERR_RSTENRes.Res.CPU1_HW_BENCPU2_HW_BENRes.COLD_CPU2CPU_BEN_SELRes.
Reset value00000
ST logo
ST logo

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x43CRCC_LEGBOOTCRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResLEGACY_BEN
Reset value00
0x440RCC_BDCRVSWRSTResResResResResResResResResResResRTCCKENResResRTCSRC[1:0]ResResResResResResResResLSECSSDLSEGFONLSECSSONLSEDRV[1:0]LSEDIGBYPLSERDYLSEBYPLSEON0
Reset value000 0000100000
0x444 - 0x448ReservedRes.
0x44CRCC_RDCRResResResResEADLY[3:0]ResResResMRD[4:0]ResResResResResResResResResResResResResResResResRes
Reset value011000000
0x450RCC_C1MSRDCRResResResResResResResResResResResResResResResResResResResResResResResC1MSRSTResResResResC1MSRD[4:0]
Reset value000000
0x454RCC_PWRLPDLYCRResResResResResResResCPU2TMPSKPResResResPWRLP_DLY[21:0]
Reset value0000000000000000000000
0x458RCC_C1CIESETRResResResResResResResResResResResWKUPIEResResResLSECSSIEResResResResResResResResResResResResResResResRes
Reset value00
0x45CRCC_C1CIFCLRRResResResResResResResResResResResWKUPFResResResLSECSSFResResResResResResResResResResResResResResResRes
Reset value00
0x460RCC_C2CIESETRResResResResResResResResResResResWKUPIEResResResLSECSSIEResResResResResResResResResResResResResResResRes
Reset value00
0x464RCC_C2CIFCLRRResResResResResResResResResResResWKUPFResResResLSECSSFResResResResResResResResResResResResResResResRes
Reset value000

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x468RCC_IWDGC1FZSETRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResFZ_IWDG2FZ_IWDG1
Reset value00
0x46CRCC_IWDGC1FZCLRRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResFZ_IWDG2FZ_IWDG1
Reset value00
0x470RCC_IWDGC1CFGSETRResResResResResResResResResResResResResIWDG2_KERRSTIWDG2_SYSRSTEN
Reset value00IWDG1_SYSRSTEN
0x474RCC_IWDGC1CFGCLRRResResResResResResResResResResResResResIWDG2_KERRSTIWDG2_SYSRSTEN
Reset value00IWDG1_SYSRSTEN
0x478RCC_IWDGC2FZSETRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResFZ_IWDG4FZ_IWDG3
Reset value00
0x47CRCC_IWDGC2FZCLRRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResFZ_IWDG4FZ_IWDG3
Reset value00
0x480RCC_IWDGC2CFGSETRResResResResResResResResResResResResResIWDG4_KERRSTIWDG4_SYSRSTEN
Reset value00IWDG3_SYSRSTEN
0x484RCC_IWDGC2CFGCLRRResResResResResResResResResResResResResIWDG4_KERRSTIWDG4_SYSRSTEN
Reset value00IWDG3_SYSRSTEN
Table 162. RCC register map and reset values (continued)
OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x488RCC_MCO1CFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MCO1ONRes.Res.Res.Res.Res.Res.Res.MCO1SEL
Reset value00
0x48CRCC_MCO2CFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MCO2ONRes.Res.Res.Res.Res.Res.Res.MCO2SEL
Reset value00
0x490RCC_OCENSETRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HSECSONHSEBYPHSEKERONHSEONHSEDIGBYPHSEDIV2BYPHSEDIV2ONRes.MSIKERONMSIONHSIKERONHSION
Reset value00000000001
0x494RCC_OCENCLRRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HSEBYPHSEKERONHSEONHSEDIGBYPHSEDIV2BYPHSEDIV2ONRes.MSIKERONMSIONHSIKERONHSION
Reset value0000000001
0x498RCC_OCRDYRRes.Res.Res.Res.Res.Res.CKRESTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HSERDRes.Res.Res.Res.Res.MSIRDYRes.HSIRDY
Reset value0001
0x49CRCC_HSICFGRRes.Res.Res.Res.Res.Res.Res.HSICAL[8:0]Res.HSITRIM[6:0]Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000000000000000
0x4A0RCC_MSICFGRRes.Res.Res.Res.Res.Res.Res.Res.MSICAL[7:0]Res.Res.Res.MSITRIM[4:0]Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0001000010000
0x4A4RCC_LSICRRes.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.LSIRDYLSION
Reset value00
0x4A8RCC_RTCDIVRRes.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.RTCDIV[5:0]
Reset value000000
0x4AC + 0x4 * (x-1) (x=1 to 5) Last addr: 0x4BCRCC_APBxDIVRAPB1DIVRDYRes.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.APBxDIV[2:0]
Reset value1000
0x4C0RCC_APBDBGDIVRAPBDBGDIVRDYRes.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.APBDBGDIV[2:0]
Reset value1000
Table 162. RCC register map and reset values (continued)
OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x4C4ReservedRes.
0x4C8RCC_TIMG1PRERTIMG1PRERDYRes.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.TIMG1PRE
Reset value10
0x4CCRCC_TIMG2PRERTIMG2PRERDYRes.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.TIMG2PRE
Reset value10
0x4D0RCC_LSMCUDIVRLSMCUDIVRDYRes.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.LSMCUDIV
Reset value10
0x4D4RCC_DDRCPCFGRRes.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.DDRCPLPENDDRCPENDDRCPRST
Reset value101
0x4D8RCC_DDRCAPBCFGRRes.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.DDRCAPBLPENDDRCAPBENDDRCAPBRST
Reset value101
0x4DCRCC_DDRPHYCAPBCFGRRes.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.DDRPHYCAPBLPENDDRPHYCAPBENDDRPHYCAPBRST
Reset value101
0x4E0RCC_DDRPHYCCFGRRes.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.DDRPHYCENRes.
Reset value0

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x4E4RCC_DDRCFGRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResDDRCFGLPENDDRCFGENDDRCFGRST
Reset value101
0x4E8RCC_DDRITFCFGRResResResResResResResResResResResResResResResDDRPHYDLPResResResResResResResResDDRSRSHRResResResResResResDDRRST
Reset value00001
0x4ECReservedRes.
0x4F0RCC_SYSRAMCFGRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResSYSRAML PENSYSRAMENRes
Reset value10
0x4F4ReservedRes.
0x4F8RCC_SRAM1CFGRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResSRAM1LPENSRAM1ENRes
Reset value10
0x4FCReservedRes.
0x500RCC_RETRAMCFGRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRETRAML PENRETRAMENRes
Reset value11
0x504RCC_BKPSRAMCFGRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResBKPSRAMLPENBKPSRAMENRes
Reset value10
0x508 - 0x510ReservedRes.
0x514RCC_OSPI1CFGRResResResResResResResResResResResResResResResOSPI1DLLRSTResResResResResResResResOTFDEC1RSTResResResResResOSPI1LPENOSPI1ENOSPI1RST
Reset value00100
0x518ReservedRes.

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x51CRCC_FMCCFGRRes.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.FMCLPENFMCENFMCRST
Reset value100
0x520RCC_DBGCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBGRSTRes.DBGMCUENTRACEENDBGENRes.Res.Res.Res.Res.Res.Res.Res.
Reset value0000
0x524RCC_STMCFGRRes.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.STMLPENSTMENRes.
Reset value10
0x528RCC_ETRCFGRRes.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.ETRLPENETRENRes.
Reset value10
0x52C + 0x4 * x (x=0 to 8) Last addr: 0x54CRCC_GPIOyCFGR
(y = A to I)
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.GPIOyLPENGPIOyENGPIOyRST
Reset value100
0x550 - 0x554ReservedRes.
0x558RCC_GPIOZCFGRRes.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.GPIOZLPENGPIOZENGPIOZRST
Reset value100
0x55CRCC_HPDMA1CFGRRes.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.HPDMA1LPENHPDMA1ENHPDMA1RST
Reset value100
0x560RCC_HPDMA2CFGRRes.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.HPDMA2LPENHPDMA2ENHPDMA2RST
Reset value100
Table 162. RCC register map and reset values (continued)
OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x564RCC_HPDMA3CFGRHPDMA3LPENHPDMA3ENHPDMA3RST
Reset valueRes.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.100
0x56CReservedRes.
0x570RCC_IPCC1CFGRRes.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.IPCC1LPENIPCC1ENIPCC1RST
Reset value100
0x574ReservedRes.
0x578RCC_RTCCFGRRes.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.RTCLPENRTCENRes.
Reset value10
0x57CReservedRes.
0x580RCC_
SYSCPU1CFGR
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.SYSCPU1LPENSYSCPU1ENRes.
Reset value10
0x584RCC_BSECCFGRRes.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.BSECLPENBSECENRes.
Reset value10
0x588 -
0x58C
ReservedRes.
0x590RCC_PLL2CFGR1Res.Res.Res.CKREFSTRes.Res.Res.PLLRDYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PLLENRes.Res.Res.Res.Res.Res.Res.SSMODRST
Reset value0001
0x594RCC_PLL2CFGR2Res.Res.Res.Res.FBDIV[11:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FREFDIV[5:0]
Reset value000000000000000000
0x598RCC_PLL2CFGR3Res.Res.Res.Res.Res.SSCGDISDACENDOWNSPREADFRACIN[23:0]
Reset value100000000000000000000000000

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x59CRCC_PLL2CFGR4ResResResResResResResResResResResResResResResResResResResResResResBYPASSFOUTPOSTDIVENDSMENResResResResResResRes
Reset value000
0x5A0RCC_PLL2CFGR5ResResResResResResResResResResResSPREAD[4:0]ResResResResResResResResResResResResResDIVVAL [3:0]
Reset value000000000
0x5A4ReservedRes.
0x5A8RCC_PLL2CFGR6ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResPOSTDIV1[2:0]
Reset value000
0x5ACRCC_PLL2CFGR7ResResResResResResResResResResResResResResResResResResResResResResResResResResResResResPOSTDIV2[2:0]
Reset value000
0x5B0 - 0x5DCReservedRes.
0x5E0RCC_HSIFMONCRHSIMONFHSIMONIEResResResResResResResResHSIDEV[5:0]HSIMONENResResResResResHSIREF[10:0]
Reset value0001111011110100001
0x5E4RCC_HSIFVALRResResResResResResResResResResResResResResResResResResResResHSIVAL[10:0]
Reset value000000000000
0x5E8RCC_MSIFMONCRMSIMONFMSIMONIEResResResResResResResResMSIDEV[4:0]MSIMONENResResResResResResResMSIREF[8:0]
Reset value00011110111101000
0x5ECRCC_MSIFVALRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MSIVAL[8:0]
Reset value00000000000
0x5F0 - 0x6FCReservedRes.
0x700 + 0x4 * (x-1) (x=1 to 8, 10 to 17)
Last addr: 0x73C
RCC_TIMxCFGRResResResResResResResResResResResResResResResResResResResResResResResResResResResResTIMxLPENTIMxENTIMxRST
Reset value100
ST logo
ST logo

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x740ReservedRes.
0x744 + 0x4 * (x-1) (x=1 to 5) Last addr: 0x754RCC_LPTIMxCFGRLPTIMxLPENLPTIMxENLPTIMxRST
Reset valueRes.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.100
0x758 + 0x4 * (x-1) (x=1 to 6) Last addr: 0x76CRCC_SPIxCFGRSPIxLPENSPIxENSPIxRST
Reset valueRes.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.100
0x770 - 0x774ReservedRes.
0x778RCC_SPDIFRXCFCGRRes.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.SPDIFRXLPENSPDIFRXENSPDIFRXRST
Reset value100
0x77C + 0x4 * (x-1) (x=1 to 3) Last addr: 0x784RCC_USARTxCFGRRes.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.USARTxLPENUSARTxENUSARTxRST
Reset value100
0x788 + 0x4 * (x-4) (x=4 to 5) Last addr: 0x78CRCC_UARTxCFGRRes.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.UARTxLPENUARTxENUARTxRST
Reset value100
0x790RCC_USART6CFGRRes.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.USART6LPENUSART6ENUSART6RST
Reset value100
0x794RCC_UART7CFGRRes.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.UART7LPENUART7ENUART7RST
Reset value100
0x798 - 0x79CReservedRes.

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x7A0RCC_LPUART1CFGRLPUART1LPENLPUART1ENLPUART1RST
Reset valueRes.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.100
0x7A4 + 0x4 * (x-1) (x=1 to 3) Last addr: 0x7ACRCC_I2CxCFGRI2CxLPENI2CxENI2CxRST
Reset valueRes.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.100
0x7B0 - 0x7C0ReservedRes.
0x7C4 + 0x4 * (x-1) (x=1 to 4) Last addr: 0x7D0RCC_SAIxCFGRRes.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.SAIxLPENSAIxENSAIxRST
Reset value100
0x7D4ReservedRes.
0x7D8RCC_MDF1CFGRMDF1LPENMDF1ENMDF1RST
Reset valueRes.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.100
0x7DCReservedRes.
0x7E0RCC_FDCANCFGRFDCANLPENFDCANENFDCANRST
Reset valueRes.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.100
0x7E4RCC_HDPCFGRRes.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.HDPENHDPRST
Reset value00
0x7E8RCC_ADC1CFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADC1KERSERes.Res.Res.Res.Res.Res.Res.Res.Res.ADC1LPENADC1ENADC1RST
Reset value0100
0x7ECRCC_ADC2CFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ADC2KERSEL[1:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.ADC2LPENADC2ENADC2RST
Reset value00100

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x7F0RCC_ETH1CFGRResResResResResResResResResResResResResResResResResResResResETH1RXLPENETH1RXENETH1TXLPENETH1TXENResETH1LPENETH1ENETH1STPENResETH1MACLPENETH1MACENETH1RST
Reset value1010100100
0x7F4RCC_ETH2CFGRResResResResResResResResResResResResResResResResResResResResETH2RXLPENETH2RXENETH2TXLPENETH2TXENResETH2LPENETH2ENETH2STPENResETH2MACLPENETH2MACENETH2RST
Reset value1010100100
0x7F8ReservedRes.
0x7FCRCC_USBHCFGRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResUSBHLPENUSBHENUSBHRST
Reset value100
0x800RCC_USB2PHY1CFGRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResUSB2PHY1LPENUSB2PHY1ENUSB2PHY1RST
Reset value100
0x804ReservedRes.
0x808RCC_OTGCFGRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResOTGLPENOTGENOTGRST
Reset value100
0x80CRCC_USB2PHY2CFGRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResUSB2PHY2LPENUSB2PHY2ENUSB2PHY2RST
Reset value100
0x810 - 0x820ReservedRes.
0x824RCC_STGENCFGRResResResResResResResResResResResResResResResResResResResResResResResResResResResSTGENSTPENResSTGENLPENSTGENENRes
Reset value010

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x828 - 0x82CReservedRes.
0x830 + 0x4 * (x-1) (x=1 to 3) Last addr: 0x838RCC_SDMMCxCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SDMMCxDLLRSTRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SDMMCxLPENSDMMCxENSDMMCxRST
Reset value0100
0x83CReservedRes.
0x840RCC_LTDCCFGRRes.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.LTDCLPENLTDCENLTDCRST
Reset value100
0x844 - 0x854ReservedRes.
0x858RCC_CSICFGRRes.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.CSILPENCSIENCSIRST
Reset value100
0x85CRCC_DCMIPPCFGRRes.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.DCMIPPLPENDCMIPPENDCMIPPRST
Reset value100
0x860RCC_DCMIPSSICFGRRes.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.DCMIPSSILPENDCMIPSSIENDCMIPSSIRST
Reset value100
0x864 - 0x86CReservedRes.
0x870 + 0x4 * (x-1) (x=1 to 2) Last addr: 0x874RCC_RNGxCFGRRes.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.RNGxLPENRNGxENRNGxRST
Reset value100
0x878RCC_PKACFGRRes.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.PKALPENPKAENPKARST
Reset value100
0x87CRCC_SAESCFGRRes.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.SAESLPENSAESENSAESRST
Reset value100
ST logo
ST logo

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x880 + 0x4 * (x-1) (x=1 to 2) Last addr: 0x884RCC_HASHxCFGRRes.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.HASHLPENHASHENHASHRST
Reset value100
0x888 + 0x4 * (x-1) (x=1 to 2) Last addr: 0x88CRCC_CRYPxCFGRRes.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.CRYPxLPENCRYPxENCRYPxRST
Reset value100
0x890ReservedRes.
0x894 + 0x4 * (x-1) (x=1 to 4) Last addr: 0x8A0RCC_IWDGxCFGRRes.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.IWDGxLPENIWDGxENRes.
Reset value10
0x8A4RCC_WWDG1CFGRRes.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.WWDG1LPENWWDG1ENWWDG1RST
Reset value100
0x8A8ReservedRes.
0x8ACRCC_VREFCFGRRes.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.VREFLPENVREFENVREFRST
Reset value100
0x8B0RCC_DTSCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DTSKERSEL[1:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.DTSLPENDTSENDTSRST
Reset value00100
0x8B4RCC_CRCCFGRRes.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.CRCLPENCRCENCRCRST
Reset value100
0x8B8RCC_SERCCFGRRes.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.SERCLPENSERCENSERCRST
Reset value100
0x8BCReservedRes.

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x8C0RCC_DDRPERFMCFGRRes.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.DDRPERFMLPENDDRPERFMENDDRPERFMRST
Reset value100
0x8C4ReservedRes.
0x8C8 + 0x4 * (x-1) (x=1 to 3) Last addr: 0x8D0RCC_I3CxCFGRRes.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.I3CxLPENI3CxENI3CxRST
Reset value100
0x8D4 - 0xFFCReservedRes.
0x1000RCC_MUXSELCFGRRes.Res.Res.Res.Res.Res.MUXSEL6[1:0]Res.Res.MUXSEL5[1:0]Res.MUXSEL4[2:0]Res.MUXSEL3[2:0]Res.MUXSEL2[2:0]Res.MUXSEL1[2:0]Res.MUXSEL0[2:0]
Reset value0000000000000000000
0x1004 - 0x1014Reserved
0x1018 + 0x4 *x (x=1 to 63) Last add: 0x1114RCC_XBARxCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.XBARxSTSXBARxENRes.Res.XBARxSEL[3:0]
Reset value010101
0x1118 + 0x4 *x (x=1 to 63) Last add: 0x1214RCC_PREDIVxCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PREDIVx[9:0]
Reset value0000000000
0x1218RCC_PREDIVSR1PREDIVSTS[31:0]
Reset value00000000000000000000000000000000
0x121CRCC_PREDIVSR2PREDIVSTS[31:0]
Reset value00000000000000000000000000000000
0x1220ReservedRes.
0x1224 + 0x4 *x (x=1 to 63) Last add: 0x1320RCC_FINDIVxCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FINDIVxENFINDIVx[5:0]
Reset value1000000
0x1324RCC_FINDIVSR1FINDIVSTS[31:0]
Reset value00000000000000000000000000000000
0x1328RCC_FINDIVSR2FINDIVSTS[31:0]
Reset value00000000000000000000000000000000
ST logo
ST logo

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x132C -
0x133C
ReservedRes.
0x1340RCC_
FCALCOBS0CFGR
Res.Res.Res.Res.Res.Res.CKOBSENFCALCKENCKOBSDIV[2:0]Res.Res.CKOBSINVFCALCCKINVCKOBSEXTSELFCALCCKEXTSELRes.Res.Res.Res.CKEXTSEL[2:0]CKINTSEL[7:0]
Reset value11000000000010000111
0x1344RCC_
FCALCOBS1CFGR
Res.Res.Res.Res.FCALCRSTNCKOBSENRes.CKOBSDIV[2:0]Res.Res.Res.CKOBSINVRes.CKOBSEXTSELRes.Res.Res.Res.Res.CKEXTSEL[2:0]CKINTSEL[7:0]
Reset value010000000010000111
0x1348RCC_
FCALCREFCFGR
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.FCALCREFCKSEL[2:0]
Reset value000
0x134CRCC_FCALCCR1Res.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.FCALCRUN
Reset value0
0x1350ReservedRes.
0x1354RCC_FCALCCR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCALCTYP[4:0]Res.Res.FCALCTWC[3:0]Res.Res.Res.Res.Res.Res.FCALCMD[1:0]Res.Res.
Reset value00000000000
0x1358RCC_FCALCSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FCALCSTSRes.FVAL[16:0]
Reset value000000000000000000
0x135CReservedRes.
0x1360
+0x28 * (y-4)
(y=4 to 8) Last
addr:
0x1400
RCC_PLLyCFGR1Res.Res.Res.CKREFSTRes.Res.Res.PLLRDYRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PLLENRes.Res.Res.Res.Res.Res.Res.SSMODRST
Reset value1001
ST logo
ST logo

Table 162. RCC register map and reset values (continued)

OffsetRegister name reset value313029282726252423222120191817161514131211109876543210
0x1364 +0x28 *
(y-4)
(y=4 to 8) Last addr: 0x1404
RCC_PLLyCFGR2Res.Res.Res.Res.FBDIV[11:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FREFDIV[5:0]
Reset value000000000000000000
0x1368 +0x28 *
(y-4)
(y=4 to 8) Last addr: 0x1408
RCC_PLLyCFGR3Res.Res.Res.Res.Res.SSCGDISDACENDOWNSPREADFRACIN[23:0]
Reset value100000000000000000000000000
0x136C +0x28 *
(y-4)
(y=4 to 8) Last addr: 0x140C
RCC_PLLyCFGR4Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BYPASSFOUTPOSTDIVENDSMENRes.Res.Res.Res.Res.Res.Res.Res.
Reset value000
0x1370 +0x28 *
(y-4)
(y=4 to 8) Last addr: 0x1410
RCC_PLLyCFGR5Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SPREAD[4:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DIVVAL
[3:0]
Reset value000000000
0x1374ReservedRes.
0x1378 +0x28 *
(y-4)
(y=4 to 8) Last addr: 0x1418
RCC_PLLyCFGR6Res.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.POSTDIV1[2:0]
Reset value000
0x137C +0x28 *
(y-4)
(y=4 to 8) Last addr: 0x141C
RCC_PLLyCFGR7Res.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.POSTDIV2[2:0]
Reset value000
0x1420 -
0xFFF0
ReservedRes.
0xFFF4RCC_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
0xFFF8RCC_IDRID[31:0]
Reset value00000000000000000000000000000011
0xFFFCRCC_SIDRSID[31:0]
Reset value10100011110001011101110101000000
STMicroelectronics logo
STMicroelectronics logo