6. Reset and clock control for STM32F42xxx and STM32F43xxx (RCC)

6.1 Reset

There are three types of reset, defined as system Reset, power Reset and backup domain Reset.

6.1.1 System reset

A system reset sets all registers to their reset values unless specified otherwise in the register description (see Figure 10).

A system reset is generated when one of the following events occurs:

  1. 1. A low level on the NRST pin (external reset)
  2. 2. Window watchdog end of count condition (WWDG reset)
  3. 3. Independent watchdog end of count condition (IWDG reset)
  4. 4. A software reset (SW reset) (see Software reset)
  5. 5. Low-power management reset (see Low-power management reset)

Software reset

The reset source can be identified by checking the reset flags in the RCC clock control & status register (RCC_CSR).

The SYSRESETREQ bit in Cortex®-M4 with FPU Application Interrupt and Reset Control Register must be set to force a software reset on the device. Refer to the Cortex®-M4 with FPU technical reference manual for more details.

Low-power management reset

There are two ways of generating a low-power management reset:

  1. 1. Reset generated when entering the Standby mode:
    This type of reset is enabled by resetting the nRST_STDBY bit in the user option bytes. In this case, whenever a Standby mode entry sequence is successfully executed, the device is reset instead of entering the Standby mode.
  2. 2. Reset when entering the Stop mode:
    This type of reset is enabled by resetting the nRST_STOP bit in the user option bytes. In this case, whenever a Stop mode entry sequence is successfully executed, the device is reset instead of entering the Stop mode.

6.1.2 Power reset

A power reset is generated when one of the following events occurs:

  1. 1. Power-on/power-down reset (POR/PDR reset) or brownout (BOR) reset
  2. 2. When exiting the Standby mode

A power reset sets all registers to their reset values except the Backup domain (see Figure 10)

These sources act on the NRST pin and it is always kept low during the delay phase. The RESET service routine vector is fixed at address 0x0000_0004 in the memory map.

The system reset signal provided to the device is output on the NRST pin. The pulse generator guarantees a minimum reset pulse duration of 20 µs for each internal reset source. In case of an external reset, the reset pulse is generated while the NRST pin is asserted low.

Figure 15. Simplified diagram of the reset circuit

Simplified diagram of the reset circuit. The diagram shows the NRST pin connected to an external reset source and a Schmitt trigger. The Schmitt trigger output is pulled up by a resistor RPU to VDD/VDDA and pulled down by a transistor to ground. The output of the Schmitt trigger goes to a filter and then to the System reset. The output of the Schmitt trigger also goes to a Pulse generator (min 20 µs), which then drives a bus for various internal reset sources: WWDG reset, IWDG reset, Power reset, Software reset, and Low-power management reset. The diagram is labeled ai16095c in the bottom right corner.
Simplified diagram of the reset circuit. The diagram shows the NRST pin connected to an external reset source and a Schmitt trigger. The Schmitt trigger output is pulled up by a resistor RPU to VDD/VDDA and pulled down by a transistor to ground. The output of the Schmitt trigger goes to a filter and then to the System reset. The output of the Schmitt trigger also goes to a Pulse generator (min 20 µs), which then drives a bus for various internal reset sources: WWDG reset, IWDG reset, Power reset, Software reset, and Low-power management reset. The diagram is labeled ai16095c in the bottom right corner.

The Backup domain has two specific resets that affect only the Backup domain (see Figure 10).

6.1.3 Backup domain reset

The backup domain reset sets all RTC registers, the RCC_BDCR register, and the BRE bit of the PWR_CSR register to their reset values. The BKPSRAM is not affected by this reset. The only way of resetting the BKPSRAM is through the Flash interface by requesting a protection level change from 1 to 0.

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

  1. 1. Software reset, triggered by setting the BDRST bit in the RCC Backup domain control register (RCC_BDCR).
  2. 2. VDD or VBAT power on, if both supplies have previously been powered off.

Note: The DBP bit of the PWR_CR register must be set to generate a backup domain reset.

6.2 Clocks

Three different clock sources can be used to drive the system clock (SYSCLK):

The devices have the two following secondary clock sources:

Each clock source can be switched on or off independently when it is not used, to optimize power consumption.

Figure 16. Clock tree Figure 16. Clock tree diagram for STM32F42xxx and STM32F43xxx showing clock distribution from internal and external sources (LSI, LSE, HSI, HSE, PLL, PLLI2S, PLLSAI) to core and peripherals.

Clock tree block diagram illustrating connections from inputs: OSC32_IN, OSC32_OUT (LSE OSC 32.768 kHz), LSI RC 32 kHz, OSC_IN, OSC_OUT (HSE OSC 4-26 MHz), HSI RC 16 MHz, I2S_CKIN, PHY Ethernet 25 to 50 MHz, USB2.0 PHY 24 to 60 MHz. Outputs include IWDGCLK to Independent watchdog, RTCCLK to RTC, Ethernet PTP clock, HCLK to AHB bus, core, memory and DMA (180 MHz max), Cortex System timer, FCLK Cortex free-running clock, APBx peripheral clocks, APBx timer clocks, 48 MHz clocks, I2S clocks, SAI1_A clock, SAI1_B clock, LCD-TFT clock, MACTXCLK, MACRXCLK, MACRMIICLK, and USBHS ULPI clock.

Figure 16. Clock tree diagram for STM32F42xxx and STM32F43xxx showing clock distribution from internal and external sources (LSI, LSE, HSI, HSE, PLL, PLLI2S, PLLSAI) to core and peripherals.

MSv30434V3

  1. 1. For full details about the internal and external clock source characteristics, refer to the Electrical characteristics section in the device datasheet.
  2. 2. When TIMPRE bit of the RCC_DCKCFGR register is reset, if APBx prescaler is 1, then TIMxCLK = PCLKx, otherwise TIMxCLK = 2x PCLKx.
  3. 3. When TIMPRE bit in the RCC_DCKCFGR register is set, if APBx prescaler is 1,2 or 4, then TIMxCLK = HCLK, otherwise TIMxCLK = 4x PCLKx.

The clock controller provides a high degree of flexibility to the application in the choice of the external crystal or the oscillator to run the core and peripherals at the highest frequency and, guarantee the appropriate frequency for peripherals that need a specific clock like Ethernet, USB OTG FS and HS, I2S, SAI, LTDC, and SDIO.

Several prescalers are used to configure the AHB frequency, the high-speed APB (APB2) and the low-speed APB (APB1) domains. The maximum frequency of the AHB domain is 180 MHz. The maximum allowed frequency of the high-speed APB2 domain is 90 MHz. The maximum allowed frequency of the low-speed APB1 domain is 45 MHz

All peripheral clocks are derived from the system clock (SYSCLK) except for:

The RCC feeds the external clock of the Cortex System Timer (SysTick) with the AHB clock (HCLK) divided by 8. The SysTick can work either with this clock or with the Cortex clock (HCLK), configurable in the SysTick control and status register.

The timer clock frequencies for STM32F42xxx and STM32F43xxx are automatically set by hardware. There are two cases depending on the value of TIMPRE bit in RCC_CFGR register:

FCLK acts as Cortex®-M4 with FPU free-running clock. For more details, refer to the Cortex®-M4 with FPU technical reference manual.

6.2.1 HSE clock

The high speed external clock signal (HSE) can be generated from two possible clock sources:

The resonator and the load capacitors have to be placed as close as possible to the oscillator pins in order to minimize output distortion and startup stabilization time. The loading capacitance values must be adjusted according to the selected oscillator.

Figure 17. HSE/ LSE clock sources

Schematic diagram for External clock configuration. It shows a line entering from the left, passing through a switch symbol, then through a block labeled OSC_IN, and exiting through a block labeled OSC_OUT. The output is labeled (HI-Z). An arrow labeled 'External source' points to the input line before the switch. Schematic diagram for Crystal/ceramic resonators configuration. It shows a line entering from the left, passing through a switch symbol, then through a block labeled OSC_IN. This is followed by a rectangular block representing a crystal or ceramic resonator. After the resonator, the line passes through another switch symbol and a block labeled OSC_OUT. The output is labeled (HI-Z). Two capacitors, labeled CL1 and CL2, are connected from the nodes between the switches and the resonator to ground symbols. The text 'Load capacitors' is placed between the two capacitors.
Hardware configuration
External clock
Crystal/ceramic resonators
Schematic diagram for External clock configuration. It shows a line entering from the left, passing through a switch symbol, then through a block labeled OSC_IN, and exiting through a block labeled OSC_OUT. The output is labeled (HI-Z). An arrow labeled 'External source' points to the input line before the switch. Schematic diagram for Crystal/ceramic resonators configuration. It shows a line entering from the left, passing through a switch symbol, then through a block labeled OSC_IN. This is followed by a rectangular block representing a crystal or ceramic resonator. After the resonator, the line passes through another switch symbol and a block labeled OSC_OUT. The output is labeled (HI-Z). Two capacitors, labeled CL1 and CL2, are connected from the nodes between the switches and the resonator to ground symbols. The text 'Load capacitors' is placed between the two capacitors.

External source (HSE bypass)

In this mode, an external clock source must be provided. You select this mode by setting the HSEBYP and HSEON bits in the RCC clock control register (RCC_CR). The external clock signal (square, sinus or triangle) with ~50% duty cycle has to drive the OSC_IN pin while the OSC_OUT pin should be left HI-Z. See Figure 17.

External crystal/ceramic resonator (HSE crystal)

The HSE has the advantage of producing a very accurate rate on the main clock.

The associated hardware configuration is shown in Figure 17. Refer to the electrical characteristics section of the datasheet for more details.

The HSERDY flag in the RCC clock control register (RCC_CR) indicates if the high-speed external oscillator is stable or not. At startup, the clock is not released until this bit is set by hardware. An interrupt can be generated if enabled in the RCC clock interrupt register (RCC_CIR).

The HSE Crystal can be switched on and off using the HSEON bit in the RCC clock control register (RCC_CR).

6.2.2 HSI clock

The HSI clock signal is generated from an internal 16 MHz RC oscillator and can be used directly as a system clock, or used as PLL input.

The HSI RC oscillator has the advantage of providing a clock source at low cost (no external components). It also has a faster startup time than the HSE crystal oscillator however, even with calibration the frequency is less accurate than an external crystal oscillator or ceramic resonator.

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 1% accuracy at TA= 25 °C.

After reset, the factory calibration value is loaded in the HSICAL[7:0] bits in the RCC clock control register (RCC_CR).

If the application is subject to voltage or temperature variations this may affect the RC oscillator speed. You can trim the HSI frequency in the application using the HSITRIM[4:0] bits in the RCC clock control register (RCC_CR).

The HSIRDY flag in the RCC clock control register (RCC_CR) indicates if the HSI RC is stable or not. At startup, the HSI RC output clock is not released until this bit is set by hardware.

The HSI RC can be switched on and off using the HSION bit in the RCC clock control register (RCC_CR).

The HSI signal can also be used as a backup source (Auxiliary clock) if the HSE crystal oscillator fails. Refer to Section 6.2.7: Clock security system (CSS) on page 158.

6.2.3 PLL configuration

The STM32F4xx devices feature three PLLs:

Since the main-PLL configuration parameters cannot be changed once PLL is enabled, it is recommended to configure PLL before enabling it (selection of the HSI or HSE oscillator as PLL clock source, and configuration of division factors M, N, P, and Q).

The PLLI2S and PLLSAI use the same input clock as PLL (PLLM[5:0] and PLLSRC bits are common to both PLLs). However, the PLLI2S and PLLSAI have dedicated enable/disable and division factors (N and R) configuration bits. Once the PLLI2S and PLLSAI are enabled, the configuration parameters cannot be changed.

The three PLLs are disabled by hardware when entering Stop and Standby modes, or when an HSE failure occurs when HSE or PLL (clocked by HSE) are used as system clock. RCC PLL configuration register (RCC_PLLCFGR), RCC clock configuration register (RCC_CFGR), and RCC Dedicated Clock Configuration Register (RCC_DCKCFGR) can be used to configure PLL, PLLI2S, and PLLSAI.

6.2.4 LSE clock

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

The LSE oscillator is switched on and off using the LSEON bit in RCC Backup domain control register (RCC_BDCR).

The LSERDY flag in the RCC Backup domain control register (RCC_BDCR) indicates if the LSE crystal is stable or not. At startup, the LSE crystal output clock signal is not released until this bit is set by hardware. An interrupt can be generated if enabled in the RCC clock interrupt register (RCC_CIR).

External source (LSE bypass)

In this mode, an external clock source must be provided. It must have a frequency up to 1 MHz. You select this mode by setting the LSEBYP and LSEON bits in the RCC Backup domain control register (RCC_BDCR). The external clock signal (square, sinus or triangle) with ~50% duty cycle has to drive the OSC32_IN pin while the OSC32_OUT pin should be left HI-Z. See Figure 17.

6.2.5 LSI clock

The LSI RC acts as an low-power clock source that can be kept running in Stop and Standby mode for the independent watchdog (IWDG) and Auto-wakeup unit (AWU). The clock frequency is around 32 kHz. For more details, refer to the electrical characteristics section of the datasheets.

The LSI RC can be switched on and off using the LSION bit in the RCC clock control & status register (RCC_CSR).

The LSIRDY flag in the RCC clock control & status register (RCC_CSR) indicates if the low-speed internal oscillator is stable or not. At startup, the clock is not released until this bit is set by hardware. An interrupt can be generated if enabled in the RCC clock interrupt register (RCC_CIR).

6.2.6 System clock (SYSCLK) selection

After a system reset, the HSI oscillator is selected as the system clock. When a clock source is used directly or through PLL as the system clock, it is not possible to stop it.

A switch from one clock source to another occurs only if the target clock source is ready (clock stable after startup delay or PLL locked). If a clock source that is not yet ready is selected, the switch occurs when the clock source is ready. Status bits in the RCC clock control register (RCC_CR) indicate which clock(s) is (are) ready and which clock is currently used as the system clock.

6.2.7 Clock security system (CSS)

The clock security system can be activated by software. In this case, the clock detector is enabled after the HSE oscillator startup delay, and disabled when this oscillator is stopped.

If a failure is detected on the HSE clock, this oscillator is automatically disabled, a clock failure event is sent to the break inputs of advanced-control timers TIM1 and TIM8, and an interrupt is generated to inform the software about the failure (clock security system interrupt CSSI), allowing the MCU to perform rescue operations. The CSSI is linked to the Cortex®-M4 with FPU NMI (non-maskable interrupt) exception vector.

Note: When the CSS is enabled, if the HSE clock happens to fail, the CSS generates an interrupt, which causes the automatic generation of an NMI. The NMI is executed indefinitely unless the CSS interrupt pending bit is cleared. As a consequence, the application has to clear the CSS interrupt in the NMI ISR by setting the CSSC bit in the Clock interrupt register (RCC_CIR).

If the HSE oscillator is used directly or indirectly as the system clock (indirectly meaning that it is directly used as PLL input clock, and that PLL clock is the system clock) and a failure is detected, then the system clock switches to the HSI oscillator and the HSE oscillator is disabled.

If the HSE oscillator clock was the clock source of PLL used as the system clock when the failure occurred, PLL is also disabled. In this case, if the PLLI2S was enabled, it is also disabled when the HSE fails.

6.2.8 RTC/AWU clock

Once the RTCCLK clock source has been selected, the only possible way of modifying the selection is to reset the power domain.

The RTCCLK clock source can be either the HSE 1 MHz (HSE divided by a programmable prescaler), the LSE or the LSI clock. This is selected by programming the RTCSEL[1:0] bits in the RCC Backup domain control register (RCC_BDCR) and the RTCPRE[4:0] bits in RCC clock configuration register (RCC_CFGR). This selection cannot be modified without resetting the Backup domain.

If the LSE is selected as the RTC clock, the RTC operates normally if the backup or the system supply disappears. If the LSI is selected as the AWU clock, the AWU state is not guaranteed if the system supply disappears. If the HSE oscillator divided by a value between 2 and 31 is used as the RTC clock, the RTC state is not guaranteed if the backup or the system supply disappears.

The LSE clock is in the Backup domain, whereas the HSE and LSI clocks are not. As a consequence:

Note: To read the RTC calendar register when the APB1 clock frequency is less than seven times the RTC clock frequency (\(f_{APB1} < 7 \times f_{RTCLK}\)), the software must read the calendar time and date registers twice. The data are correct if the second read access to RTC_TR gives the same result than the first one. Otherwise a third read access must be performed.

6.2.9 Watchdog clock

If the independent watchdog (IWDG) is started by either hardware option or software access, the LSI oscillator is forced ON and cannot be disabled. After the LSI oscillator temporization, the clock is provided to the IWDG.

6.2.10 Clock-out capability

Two microcontroller clock output (MCO) pins are available:

For the different MCO pins, the corresponding GPIO port has to be programmed in alternate function mode.

The selected clock to output onto MCO must not exceed 100 MHz (the maximum I/O speed).

6.2.11 Internal/external clock measurement using TIM5/TIM11

It is possible to indirectly measure the frequencies of all on-board clock source generators by means of the input capture of TIM5 channel4 and TIM11 channel1 as shown in Figure 18 and Figure 19.

Internal/external clock measurement using TIM5 channel4

TIM5 has an input multiplexer which allows choosing whether the input capture is triggered by the I/O or by an internal clock. This selection is performed through the TI4_RMP [1:0] bits in the TIM5_OR register.

The primary purpose of having the LSE connected to the channel4 input capture is to be able to precisely measure the HSI (this requires to have the HSI used as the system clock source). The number of HSI clock counts between consecutive edges of the LSE signal provides a measurement of the internal clock period. Taking advantage of the high precision of LSE crystals (typically a few tens of ppm) we can determine the internal clock frequency with the same resolution, and trim the source to compensate for manufacturing-process and/or temperature- and voltage-related frequency deviations.

The HSI oscillator has dedicated, user-accessible calibration bits for this purpose.

The basic concept consists in providing a relative measurement (e.g. HSI/LSE ratio): the precision is therefore tightly linked to the ratio between the two clock sources. The greater the ratio, the better the measurement.

It is also possible to measure the LSI frequency: this is useful for applications that do not have a crystal. The ultralow-power LSI oscillator has a large manufacturing process deviation: by measuring it versus the HSI clock source, it is possible to determine its frequency with the precision of the HSI. The measured value can be used to have more accurate RTC time base timeouts (when LSI is used as the RTC clock source) and/or an IWDG timeout with an acceptable accuracy.

Use the following procedure to measure the LSI frequency:

  1. 1. Enable the TIM5 timer and configure channel4 in Input capture mode.
  2. 2. This bit is set the TI4_RMP bits in the TIM5_OR register to 0x01 to connect the LSI clock internally to TIM5 channel4 input capture for calibration purposes.
  3. 3. Measure the LSI clock frequency using the TIM5 capture/compare 4 event or interrupt.
  4. 4. Use the measured LSI frequency to update the prescaler of the RTC depending on the desired time base and/or to compute the IWDG timeout.

Figure 18. Frequency measurement with TIM5 in Input capture mode

Block diagram showing the connection of various clock sources (GPIO, RTC_WakeUp_IT, LSE, LSI) through a multiplexer controlled by TI4_RMP[1:0] to the TI4 input of the TIM5 timer block.

The diagram illustrates the internal connection for frequency measurement using TIM5. On the left, four input lines are shown: GPIO (with a small square symbol), RTC_WakeUp_IT, LSE, and LSI. These lines enter a multiplexer block. A control signal labeled TI4_RMP[1:0] is connected to the multiplexer. The output of the multiplexer is labeled TI4 and connects to the input of a larger block labeled TIM5. In the bottom right corner of the diagram area, the identifier 'ai17741V2' is present.

Block diagram showing the connection of various clock sources (GPIO, RTC_WakeUp_IT, LSE, LSI) through a multiplexer controlled by TI4_RMP[1:0] to the TI4 input of the TIM5 timer block.

Internal/external clock measurement using TIM11 channel1

TIM11 has an input multiplexer which allows choosing whether the input capture is triggered by the I/O or by an internal clock. This selection is performed through TI1_RMP [1:0] bits in the TIM11_OR register. The HSE_RTC clock (HSE divided by a programmable prescaler) is connected to channel 1 input capture to have a rough indication of the external crystal frequency. This requires that the HSI is the system clock source. This can be useful for instance to ensure compliance with the IEC 60730/IEC 61335 standards which require to be able to determine harmonic or subharmonic frequencies (-50/+100% deviations).

Figure 19. Frequency measurement with TIM11 in Input capture mode

Block diagram showing frequency measurement setup for TIM11. A multiplexer selects between a GPIO input and an HSE_RTC(1 MHz) reference. The selected signal is sent to the TI1 input of the TIM11 timer block. The output of the multiplexer is labeled TI1_RMP[1:0].

The diagram illustrates the configuration for frequency measurement using TIM11 in Input capture mode. It features a multiplexer that selects between two input sources: a GPIO input (indicated by a square symbol) and an HSE_RTC(1 MHz) reference. The output of this multiplexer, labeled TI1_RMP[1:0], is connected to the TI1 input of the TIM11 timer block. The entire setup is contained within a rectangular frame, with the identifier 'ai18433' located in the bottom right corner.

Block diagram showing frequency measurement setup for TIM11. A multiplexer selects between a GPIO input and an HSE_RTC(1 MHz) reference. The selected signal is sent to the TI1 input of the TIM11 timer block. The output of the multiplexer is labeled TI1_RMP[1:0].

6.3 RCC registers

Refer to Section 1.1: List of abbreviations for registers for a list of abbreviations used in register descriptions.

6.3.1 RCC clock control register (RCC_CR)

Address offset: 0x00

Reset value: 0x0000 XX83 where X is undefined.

Access: no wait state, word, half-word and byte access

31302928272625242322212019181716
ReservedPLLSAI
RDY
PLLSAI
ON
PLLI2S
RDY
PLLI2S
ON
PLLRD
Y
PLLONReservedCSS
ON
HSE
BYP
HSE
RDY
HSE
ON
rrwrrwrrwrwrwrrw
1514131211109876543210
HSICAL[7:0]HSITRIM[4:0]Res.HSI
RDY
HSION
rrrrrrrrrwrwrwrwrwrrw

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

Bit 29 PLLSAIRDY: PLLSAI clock ready flag

Set by hardware to indicate that the PLLSAI is locked.

0: PLLSAI unlocked

1: PLLSAI locked

Bit 28 PLLSAION: PLLSAI enable

Set and cleared by software to enable PLLSAI.

Cleared by hardware when entering Stop or Standby mode.

0: PLLSAI OFF

1: PLLSAI ON

Bit 27 PLLI2SRDY: PLLI2S clock ready flag

Set by hardware to indicate that the PLLI2S is locked.

0: PLLI2S unlocked

1: PLLI2S locked

Bit 26 PLLI2SON: PLLI2S enable

Set and cleared by software to enable PLLI2S.

Cleared by hardware when entering Stop or Standby mode.

0: PLLI2S OFF

1: PLLI2S ON

Bit 25 PLLRDY: Main PLL (PLL) clock ready flag

Set by hardware to indicate that PLL is locked.

0: PLL unlocked

1: PLL locked

Bit 24 PLLON: Main PLL (PLL) enable

Set and cleared by software to enable PLL.

Cleared by hardware when entering Stop or Standby mode. This bit cannot be reset if PLL clock is used as the system clock.

0: PLL OFF

1: PLL ON

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

Bit 19 CSSON: Clock security system enable

Set and cleared by software to enable the clock security system. When CSSON is set, the clock detector is enabled by hardware when the HSE oscillator is ready, and disabled by hardware if an oscillator failure is detected.

0: Clock security system OFF (Clock detector OFF)

1: Clock security system ON (Clock detector ON if HSE oscillator is stable, OFF if not)

Bit 18 HSEBYP: HSE clock bypass

Set and cleared by software to bypass the oscillator with an external clock. The external clock must be enabled with the HSEON bit, to be used by the device.

The HSEBYP bit can be written only if the HSE oscillator is disabled.

0: HSE oscillator not bypassed

1: HSE oscillator bypassed with an external clock

Bit 17 HSERDY: HSE clock ready flag

Set by hardware to indicate that the HSE oscillator is stable. After the HSEON bit is cleared, HSERDY goes low after 6 HSE oscillator clock cycles.

0: HSE oscillator not ready

1: HSE oscillator ready

Bit 16 HSEON: HSE clock enable

Set and cleared by software.

Cleared by hardware to stop the HSE oscillator when entering Stop or Standby mode. This bit cannot be reset if the HSE oscillator is used directly or indirectly as the system clock.

0: HSE oscillator OFF

1: HSE oscillator ON

Bits 15:8 HSICAL[7:0]: Internal high-speed clock calibration

These bits are initialized automatically at startup.

Bits 7:3 HSITRIM[4:0]: Internal high-speed clock trimming

These bits provide an additional user-programmable trimming value that is added to the HSICAL[7:0] bits. It can be programmed to adjust to variations in voltage and temperature that influence the frequency of the internal HSI RC.

Bit 2 Reserved, must be kept at reset value.

Bit 1 HSIRDY: Internal high-speed clock ready flag

Set by hardware to indicate that the HSI oscillator is stable. After the HSION bit is cleared, HSIRDY goes low after 6 HSI clock cycles.

0: HSI oscillator not ready

1: HSI oscillator ready

Bit 0 HSION: Internal high-speed clock enable

Set and cleared by software.

Set by hardware to force the HSI oscillator ON when leaving the Stop or Standby mode or in case of a failure of the HSE oscillator used directly or indirectly as the system clock. This bit cannot be cleared if the HSI is used directly or indirectly as the system clock.

0: HSI oscillator OFF

1: HSI oscillator ON

6.3.2 RCC PLL configuration register (RCC_PLLCFGR)

Address offset: 0x04

Reset value: 0x2400 3010

Access: no wait state, word, half-word and byte access.

This register is used to configure the PLL clock outputs according to the formulas:

31302928272625242322212019181716
ReservedPLLQ3PLLQ2PLLQ1PLLQ0Reserv
ed
PLLSR
C
ReservedPLLP1PLLP0
rwrwrwrwrwrwrw
1514131211109876543210
Reserv
ed
PLLNPLLM5PLLM4PLLM3PLLM2PLLM1PLLM0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 27:24 PLLQ: Main PLL (PLL) division factor for USB OTG FS, SDIO and random number generator clocks

Set and cleared by software to control the frequency of USB OTG FS clock, the random number generator clock and the SDIO clock. These bits should be written only if PLL is disabled.

Caution: The USB OTG FS requires a 48 MHz clock to work correctly. The SDIO and the random number generator need a frequency lower than or equal to 48 MHz to work correctly.

USB OTG FS clock frequency = VCO frequency / PLLQ with 2 ≤ PLLQ ≤ 15

0000: PLLQ = 0, wrong configuration

0001: PLLQ = 1, wrong configuration

0010: PLLQ = 2

0011: PLLQ = 3

0100: PLLQ = 4

...

1111: PLLQ = 15

Bit 23 Reserved, must be kept at reset value.

Bit 22 PLLSRC: Main PLL(PLL) and audio PLL (PLLI2S) entry clock source

Set and cleared by software to select PLL and PLLI2S clock source. This bit can be written only when PLL and PLLI2S are disabled.

0: HSI clock selected as PLL and PLLI2S clock entry

1: HSE oscillator clock selected as PLL and PLLI2S clock entry

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

Bits 17:16 PLLP: Main PLL (PLL) division factor for main system clock

Set and cleared by software to control the frequency of the general PLL output clock. These bits can be written only if PLL is disabled.

Caution: The software has to set these bits correctly not to exceed 180 MHz on this domain.

PLL output clock frequency = VCO frequency / PLLP with PLLP = 2, 4, 6, or 8

00: PLLP = 2

01: PLLP = 4

10: PLLP = 6

11: PLLP = 8

Bits 14:6 PLLN: Main PLL (PLL) multiplication factor for VCO

Set and cleared by software to control the multiplication factor of the VCO. These bits can be written only when PLL is disabled. Only half-word and word accesses are allowed to write these bits.

Caution: The software has to set these bits correctly to ensure that the VCO output frequency is between 100 and 432 MHz.

VCO output frequency = VCO input frequency × PLLN with 50 ≤ PLLN ≤ 432

000000000: PLLN = 0, wrong configuration

000000001: PLLN = 1, wrong configuration

...

000110010: PLLN = 50

...

001100011: PLLN = 99

001100100: PLLN = 100

...

110110000: PLLN = 432

110110001: PLLN = 433, wrong configuration

...

111111111: PLLN = 511, wrong configuration

Note: Multiplication factors ranging from 50 and 99 are possible for VCO input frequency higher than 1 MHz. However care must be taken that the minimum VCO output frequency respects the value specified above.

Bits 5:0 PLLM: Division factor for the main PLL (PLL) and audio PLL (PLLI2S) input clock

Set and cleared by software to divide the PLL and PLLI2S input clock before the VCO. These bits can be written only when the PLL and PLLI2S are disabled.

Caution: The software has to set these bits correctly to ensure that the VCO input frequency ranges from 1 to 2 MHz. It is recommended to select a frequency of 2 MHz to limit PLL jitter.

VCO input frequency = PLL input clock frequency / PLLM with 2 ≤ PLLM ≤ 63

000000: PLLM = 0, wrong configuration

000001: PLLM = 1, wrong configuration

000010: PLLM = 2

000011: PLLM = 3

000100: PLLM = 4

...

111110: PLLM = 62

111111: PLLM = 63

6.3.3 RCC clock configuration register (RCC_CFGR)

Address offset: 0x08

Reset value: 0x0000 0000

Access: 0 ≤ wait state ≤ 2, word, half-word and byte access

1 or 2 wait states inserted only if the access occurs during a clock source switch.

31302928272625242322212019181716
MCO2MCO2 PRE[2:0]MCO1 PRE[2:0]I2SSC
R
MCO1RTCPRE[4:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PPRE2[2:0]PPRE1[2:0]ReservedHPRE[3:0]SWS1SWS0SW1SW0
rwrwrwrwrwrwrwrwrwrwrrrwrw

Bits 31:30 MCO2[1:0]: Microcontroller clock output 2

Set and cleared by software. Clock source selection may generate glitches on MCO2. It is highly recommended to configure these bits only after reset before enabling the external oscillators and the PLLs.

00: System clock (SYSCLK) selected

01: PLLI2S clock selected

10: HSE oscillator clock selected

11: PLL clock selected

Bits 27:29 MCO2PRE: MCO2 prescaler

Set and cleared by software to configure the prescaler of the MCO2. Modification of this prescaler may generate glitches on MCO2. It is highly recommended to change this prescaler only after reset before enabling the external oscillators and the PLLs.

0xx: no division

100: division by 2

101: division by 3

110: division by 4

111: division by 5

Bits 24:26 MCO1PRE: MCO1 prescaler

Set and cleared by software to configure the prescaler of the MCO1. Modification of this prescaler may generate glitches on MCO1. It is highly recommended to change this prescaler only after reset before enabling the external oscillators and the PLL.

0xx: no division

100: division by 2

101: division by 3

110: division by 4

111: division by 5

Bit 23 I2SSRC: I2S clock selection

Set and cleared by software. This bit allows to select the I2S clock source between the PLLI2S clock and the external clock. It is highly recommended to change this bit only after reset and before enabling the I2S module.

0: PLLI2S clock used as I2S clock source

1: External clock mapped on the I2S_CKIN pin used as I2S clock source

Bits 7:4 HPRE: AHB prescaler

Set and cleared by software to control AHB clock division factor.

Caution: The clocks are divided with the new prescaler factor from 1 to 16 AHB cycles after HPRE write.

Caution: The AHB clock frequency must be at least 25 MHz when the Ethernet is used.

0xxx: system clock not divided
1000: system clock divided by 2
1001: system clock divided by 4
1010: system clock divided by 8
1011: system clock divided by 16
1100: system clock divided by 64
1101: system clock divided by 128
1110: system clock divided by 256
1111: system clock divided by 512

Bits 3:2 SWS: System clock switch status

Set and cleared by hardware to indicate which clock source is used as the system clock.

00: HSI oscillator used as the system clock
01: HSE oscillator used as the system clock
10: PLL used as the system clock
11: not applicable

Bits 1:0 SW: System clock switch

Set and cleared by software to select the system clock source.

Set by hardware to force the HSI selection when leaving the Stop or Standby mode or in case of failure of the HSE oscillator used directly or indirectly as the system clock.

00: HSI oscillator selected as system clock
01: HSE oscillator selected as system clock
10: PLL selected as system clock
11: not allowed

6.3.4 RCC clock interrupt register (RCC_CIR)

Address offset: 0x0C

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access

31302928272625242322212019181716
ReservedCSSCPLLSAI
RDYC
PLLI2S
RDYC
PLL
RDYC
HSE
RDYC
HSI
RDYC
LSE
RDYC
LSI
RDYC
wwwwwwww
1514131211109876543210
Reserv
ed
PLLSAI
RDYIE
PLLI2S
RDYIE
PLL
RDYIE
HSE
RDYIE
HSI
RDYIE
LSE
RDYIE
LSI
RDYIE
CSSFPLLSAI
RDYF
PLLI2S
RDYF
PLL
RDYF
HSE
RDYF
HSI
RDYF
LSE
RDYF
LSI
RDYF
rwrwrwrwrwrwrwrrrrrrrr

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

Bit 23 CSSC: Clock security system interrupt clear

This bit is set by software to clear the CSSF flag.

0: No effect

1: Clear CSSF flag

Bit 22 PLLSAIRDYC: PLLSAI Ready Interrupt Clear

This bit is set by software to clear PLLSAIRDYF flag. It is reset by hardware when the PLLSAIRDYF is cleared.

0: PLLSAIRDYF not cleared

1: PLLSAIRDYF cleared

Bit 21 PLLI2SRDYC: PLLI2S ready interrupt clear

This bit is set by software to clear the PLLI2SRDYF flag.

0: No effect

1: PLLI2SRDYF cleared

Bit 20 PLLRDYC: Main PLL(PLL) ready interrupt clear

This bit is set by software to clear the PLLRDYF flag.

0: No effect

1: PLLRDYF cleared

Bit 19 HSERDYC: HSE ready interrupt clear

This bit is set by software to clear the HSERDYF flag.

0: No effect

1: HSERDYF cleared

Bit 18 HSIRDYC: HSI ready interrupt clear

This bit is set software to clear the HSIRDYF flag.

0: No effect

1: HSIRDYF cleared

Bit 17 LSERDYC: LSE ready interrupt clear

This bit is set by software to clear the LSERDYF flag.

0: No effect

1: LSERDYF cleared

Bit 16 LSIRDYC: LSI ready interrupt clear

This bit is set by software to clear the LSIRDYF flag.

0: No effect

1: LSIRDYF cleared

Bit 15 Reserved, must be kept at reset value.

Bit 14 PLLSAIRDYIE: PLLSAI Ready Interrupt Enable

This bit is set and reset by software to enable/disable interrupt caused by PLLSAI lock.

0: PLLSAI lock interrupt disabled

1: PLLSAI lock interrupt enabled

Bit 13 PLLI2SRDYIE: PLLI2S ready interrupt enable

This bit is set and cleared by software to enable/disable interrupt caused by PLLI2S lock.

0: PLLI2S lock interrupt disabled

1: PLLI2S lock interrupt enabled

Bit 3 HSERDYF: HSE ready interrupt flag

This bit is set by hardware when External High Speed clock becomes stable and HSERDYIE is set.

It is cleared by software by setting the HSERDYC bit.

0: No clock ready interrupt caused by the HSE oscillator

1: Clock ready interrupt caused by the HSE oscillator

Bit 2 HSIRDYF: HSI ready interrupt flag

This bit is set by hardware when the Internal High Speed clock becomes stable and HSIRDYIE is set.

It is cleared by software by setting the HSIRDYC bit.

0: No clock ready interrupt caused by the HSI oscillator

1: Clock ready interrupt caused by the HSI oscillator

Bit 1 LSERDYF: LSE ready interrupt flag

This bit is set by hardware when the External Low Speed clock becomes stable and LSERDYIE is set.

It is cleared by software by setting the LSERDYC bit.

0: No clock ready interrupt caused by the LSE oscillator

1: Clock ready interrupt caused by the LSE oscillator

Bit 0 LSIRDYF: LSI ready interrupt flag

This bit is set by hardware when the internal low speed clock becomes stable and LSIRDYIE is set.

It is cleared by software by setting the LSIRDYC bit.

0: No clock ready interrupt caused by the LSI oscillator

1: Clock ready interrupt caused by the LSI oscillator

6.3.5 RCC AHB1 peripheral reset register (RCC_AHB1RSTR)

Address offset: 0x10

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
ReservedOTGH
S
RST
ReservedETHMAC
RST
Res.DMA2D
RST
DMA2
RST
DMA1
RST
Reserved
rwrwrwrwrw
1514131211109876543210
ReservedCRCR
ST
Res.GPIOK
RST
GPIOJ
RST
GPIOI
RST
GPIOH
RST
GPIOGG
RST
GPIOF
RST
GPIOE
RST
GPIOE
RST
GPIOC
RST
GPIOB
RST
GPIOA
RST
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 29 OTGHSRST: USB OTG HS module reset

This bit is set and cleared by software.

0: does not reset the USB OTG HS module

1: resets the USB OTG HS module

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

6.3.6 RCC AHB2 peripheral reset register (RCC_AHB2RSTR)

Address offset: 0x14

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access

31302928272625242322212019181716
Reserved
1514131211109876543210
ReservedOTGFS
RST
RNG
RST
HASH
RST
CRYP
RST
ReservedDCMI
RST
rwrwrwrwrw

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

Bit 7 OTGFSRST: USB OTG FS module reset

Bit 6 RNGRST: Random number generator module reset

Bit 5 HASHRST: Hash module reset

Bit 4 CRYPRST: Cryptographic module reset

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

Bit 0 DCMIRST: Camera interface reset

ST logo
ST logo

6.3.7 RCC AHB3 peripheral reset register (RCC_AHB3RSTR)

Address offset: 0x18

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
Reserved
1514131211109876543210
ReservedFMC RST
rw

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

Bit 0 FMC RST: Flexible memory controller module reset

Set and cleared by software.

0: does not reset the FMC module

1: resets the FMC module

6.3.8 RCC APB1 peripheral reset register (RCC_APB1RSTR)

Address offset: 0x20

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
UART8 RSTUART7 RSTDAC RSTPWR RSTReser-vedCAN2 RSTCAN1 RSTReser-vedI2C3 RSTI2C2 RSTI2C1 RSTUART5 RSTUART4 RSTUART3 RSTUART2 RSTReser-ved
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI3 RSTSPI2 RSTReservedWWDG RSTReservedTIM14 RSTTIM13 RSTTIM12 RSTTIM7 RSTTIM6 RSTTIM5 RSTTIM4 RSTTIM3 RSTTIM2 RST
rwrwrwrwrwrwrwrwrwrwrwrw

6.3.9 RCC APB2 peripheral reset register (RCC_APB2RSTR)

Address offset: 0x24

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
ReservedLTD
CRST
ReservedSAI1
RST
SPI6
RST
SPI5
RST
Res.TIM11
RST
TIM10
RST
TIM9
RST
rwrwrwrwrwrwrw
1514131211109876543210
Reser-
ved
SYSCF
G RST
SPI4
RST
SPI1
RST
SDIO
RST
ReservedADC
RST
ReservedUSART
6
RST
USART
1
RST
ReservedTIM8
RST
TIM1
RST
rwrwrwrwrwrwrwrwrw

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

Bit 26 LTDCRST: LTDC reset

This bit is set and reset by software.

0: does not reset LCD-TFT

1: resets LCD-TFT

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

Bit 22 SAI1RST: SAI1 reset

This bit is set and reset by software.

0: does not reset SAI1

1: resets SAI1

Bit 21 SPI6RST: SPI6 reset

This bit is set and cleared by software.

0: does not reset SPI6

1: resets SPI6

Bit 20 SPI5RST: SPI5 reset

This bit is set and cleared by software.

0: does not reset SPI5

1: resets SPI5

Bit 19 Reserved, must be kept at reset value.

Bit 18 TIM11RST: TIM11 reset

This bit is set and cleared by software.

0: does not reset TIM11

1: resets TIM14

Bit 17 TIM10RST: TIM10 reset

This bit is set and cleared by software.

0: does not reset TIM10

1: resets TIM10

Bit 16 TIM9RST: TIM9 reset

This bit is set and cleared by software.

0: does not reset TIM9

1: resets TIM9

6.3.10 RCC AHB1 peripheral clock register (RCC_AHB1ENR)

Address offset: 0x30

Reset value: 0x0010 0000

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
Reser-vedOTGH
S
ULPIE
N
OTGH
SEN
ETHM
ACPTP
EN
ETHM
ACRXE
N
ETHM
ACTXE
N
ETHMA
CEN
Res.DMA2D
EN
DMA2E
N
DMA1E
N
CCMDAT
ARAMEN
Res.BKPSR
AMEN
Reserved
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
ReservedCRCE
N
Res.GPIOK
EN
GPIOJ
EN
GPIOIE
N
GPIOH
EN
GPIOG
EN
GPIOFE
N
GPIOEENGPIOE
EN
GPIOC
EN
GPIO
BEN
GPIO
AEN
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bit 30 OTGHSULPIEN: USB OTG HSULPI clock enable

This bit is set and cleared by software. It must be cleared when the OTG_HS is used in FS mode.

Bit 29 OTGHSEN: USB OTG HS clock enable

This bit is set and cleared by software.

Bit 28 ETHMACPTPEN: Ethernet PTP clock enable

This bit is set and cleared by software.

Bit 27 ETHMACRXEN: Ethernet Reception clock enable

This bit is set and cleared by software.

Bit 26 ETHMACTXEN: Ethernet Transmission clock enable

This bit is set and cleared by software.

Bit 25 ETHMACEN: Ethernet MAC clock enable

This bit is set and cleared by software.

Bit 24 Reserved, must be kept at reset value.

Bit 23 DMA2DEN: DMA2D clock enable

This bit is set and cleared by software.

6.3.11 RCC AHB2 peripheral clock enable register (RCC_AHB2ENR)

Address offset: 0x34

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
Reserved
1514131211109876543210
ReservedOTGFS
EN
RNG
EN
HASH
EN
CRYP
EN
ReservedDCMI
EN
rwrwrwrwrw

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

Bit 5 HASHEN: Hash modules clock enable

This bit is set and cleared by software.

0: Hash modules clock disabled

1: Hash modules clock enabled

Bit 4 CRYPEN: Cryptographic modules clock enable

This bit is set and cleared by software.

0: cryptographic module clock disabled

1: cryptographic module clock enabled

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

Bit 0 DCMIEN: Camera interface enable

This bit is set and cleared by software.

0: Camera interface clock disabled

1: Camera interface clock enabled

6.3.12 RCC AHB3 peripheral clock enable register (RCC_AHB3ENR)

Address offset: 0x38

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
Reserved
1514131211109876543210
ReservedFMCEN
rw

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

Bit 0 FMCEN: Flexible memory controller module clock enable

This bit is set and cleared by software.

0: FMC module clock disabled

1: FMC module clock enabled

6.3.13 RCC APB1 peripheral clock enable register (RCC_APB1ENR)

Address offset: 0x40

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
UART8
EN
UART7
EN
DAC
EN
PWR
EN
Reser-
ved
CAN2
EN
CAN1
EN
Reser-
ved
I2C3
EN
I2C2
EN
I2C1
EN
UART5
EN
UART4
EN
USART
3
EN
USART
2
EN
Reser-
ved
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI3
EN
SPI2
EN
ReservedWWDG
EN
ReservedTIM14
EN
TIM13
EN
TIM12
EN
TIM7
EN
TIM6
EN
TIM5
EN
TIM4
EN
TIM3
EN
TIM2
EN
rwrwrwrwrwrwrwrwrwrwrwrw

6.3.14 RCC APB2 peripheral clock enable register (RCC_APB2ENR)

Address offset: 0x44

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
ReservedLTDC
EN
ReservedSAI1ENSPI6ENSPI5ENRes.TIM11
EN
TIM10
EN
TIM9
EN
rwrwrwrwrwrwrw
1514131211109876543210
Reser-
ved
SYSCF
G EN
SPI4E
N
SPI1
EN
SDIO
EN
ADC3
EN
ADC2
EN
ADC1
EN
ReservedUSART
6
EN
USART
1
EN
ReservedTIM8
EN
TIM1
EN
rwrwrwrwrwrwrwrwrwrwrw

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

Bit 26 LTDCEN: LTDC clock enable
This bit is set and cleared by software.
0: LTDC clock disabled
1: LTDC clock enabled

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

Bit 22 SAI1EN: SAI1 clock enable
This bit is set and cleared by software.
0: SAI1 clock disabled
1: SAI1 clock enabled

Bit 21 SPI6EN: SPI6 clock enable
This bit is set and cleared by software.
0: SPI6 clock disabled
1: SPI6 clock enabled

Bit 20 SPI5EN: SPI5 clock enable
This bit is set and cleared by software.
0: SPI5 clock disabled
1: SPI5 clock enabled

Bit 18 TIM11EN: TIM11 clock enable
This bit is set and cleared by software.
0: TIM11 clock disabled
1: TIM11 clock enabled

Bit 17 TIM10EN: TIM10 clock enable
This bit is set and cleared by software.
0: TIM10 clock disabled
1: TIM10 clock enabled

Bit 16 TIM9EN: TIM9 clock enable
This bit is set and cleared by software.
0: TIM9 clock disabled
1: TIM9 clock enabled

Bit 15 Reserved, must be kept at reset value.

ST logo
ST logo

6.3.15 RCC AHB1 peripheral clock enable in low power mode register (RCC_AHB1LPENR)

Address offset: 0x50

Reset value: 0x7EEF 97FF

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
Res.OTGHS
ULPILPE
N
OTGH
S
LPEN
ETHPT
P
LPEN
ETHRX
LPEN
ETHTX
LPEN
ETHMA
C
LPEN
Res.DMA2D
LPEN
DMA2
LPEN
DMA1
LPEN
Res.SRAM3
LPEN
BKPSRA
M
LPEN
SRAM
2
LPEN
SRAM
1
LPEN
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FLITF
LPEN
ReservedCRC
LPEN
Res.GPIOK
LPEN
GPIOIJ
LPEN
GPIOI
LPEN
GPIOH
LPEN
GPIOG
G
LPEN
GPIO
F
LPEN
GPIOE
LPEN
GPIOD
LPEN
GPIOC
LPEN
GPIOB
LPEN
GPIOA
LPEN
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bit 30 OTGHSULPILPEN: USB OTG HS ULPI clock enable during Sleep mode

This bit is set and cleared by software. It must be cleared when the OTG_HS is used in FS mode.

Bit 29 OTGHSLPEN: USB OTG HS clock enable during Sleep mode

This bit is set and cleared by software.

Bit 28 ETHMACPTPLPEN: Ethernet PTP clock enable during Sleep mode

This bit is set and cleared by software.

Bit 27 ETHMACRXLPEN: Ethernet reception clock enable during Sleep mode

This bit is set and cleared by software.

Bit 26 ETHMACTXLPEN: Ethernet transmission clock enable during Sleep mode

This bit is set and cleared by software.

Bit 25 ETHMACLPEN: Ethernet MAC clock enable during Sleep mode

This bit is set and cleared by software.

Bit 24 Reserved, must be kept at reset value.

6.3.16 RCC AHB2 peripheral clock enable in low power mode register (RCC_AHB2LPENR)

Address offset: 0x54

Reset value: 0x0000 00F1

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
Reserved
1514131211109876543210
ReservedOTGFS
LPEN
RNG
LPEN
HASH
LPEN
CRYP
LPEN
ReservedDCMI
LPEN
rwrwrwrwrw

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

Bit 7 OTGFSLPEN: USB OTG FS clock enable during Sleep mode

This bit is set and cleared by software.

0: USB OTG FS clock disabled during Sleep mode

1: USB OTG FS clock enabled during Sleep mode

Bit 6 RNGLPEN: Random number generator clock enable during Sleep mode

This bit is set and cleared by software.

0: Random number generator clock disabled during Sleep mode

1: Random number generator clock enabled during Sleep mode

Bit 5 HASHLPEN: Hash modules clock enable during Sleep mode

This bit is set and cleared by software.

0: Hash modules clock disabled during Sleep mode

1: Hash modules clock enabled during Sleep mode

Bit 4 CRYPLPEN: Cryptography modules clock enable during Sleep mode

This bit is set and cleared by software.

0: cryptography modules clock disabled during Sleep mode

1: cryptography modules clock enabled during Sleep mode

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

Bit 0 DCMILPEN: Camera interface enable during Sleep mode

This bit is set and cleared by software.

0: Camera interface clock disabled during Sleep mode

1: Camera interface clock enabled during Sleep mode

6.3.17 RCC AHB3 peripheral clock enable in low power mode register (RCC_AHB3LPENR)

Address offset: 0x58

Reset value: 0x0000 0001

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
Reserved
1514131211109876543210
ReservedFMC LPEN
rw

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

6.3.18 RCC APB1 peripheral clock enable in low power mode register (RCC_APB1LPENR)

Address offset: 0x60

Reset value: 0xF6FE C9FF

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
UART8 LPENUART7 LPENDAC LPENPWR LPENRESER VEDCAN2 LPENCAN1 LPENReser- vedI2C3 LPENI2C2 LPENI2C1 LPENUART5 LPENUART4 LPENUSART 3 LPENUSART 2 LPENReser- ved
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI3 LPENSPI2 LPENReservedWWDG LPENReservedTIM14 LPENTIM13 LPENTIM12 LPENTIM7 LPENTIM6 LPENTIM5 LPENTIM4 LPENTIM3 LPENTIM2 LPEN
rwrwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

6.3.19 RCC APB2 peripheral clock enabled in low power mode register (RCC_APB2LPENR)

Address offset: 0x64

Reset value: 0x0x0477 7F33

Access: no wait state, word, half-word and byte access.

31302928272625242322212019181716
ReservedLTDC
LPEN
ReservedSAI1
LPEN
SPI6
LPEN
SPI5
LPEN
Reser-
ved
TIM11
LPEN
TIM10
LPEN
TIM9
LPEN
rwrwrwrwrwrwrw
1514131211109876543210
Reser-
ved
SYSC
FG
LPEN
SPI4
LPEN
SPI1
LPEN
SDIO
LPEN
ADC3
LPEN
ADC2
LPEN
ADC1
LPEN
ReservedUSART
6
LPEN
USART
1
LPEN
ReservedReservedTIM8
LPEN
TIM1
LPEN
rwrwrwrwrwrwrwrwrwrwrw

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

Bit 26 LTDCLPEN: LTDC clock enable during Sleep mode

This bit is set and cleared by software.

0: LTDC clock disabled during Sleep mode

1: LTDC clock enabled during Sleep mode

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

Bit 22 SAI1LPEN: SAI1 clock enable during Sleep mode

This bit is set and cleared by software.

0: SAI1 clock disabled during Sleep mode

1: SAI1 clock enabled during Sleep mode

Bit 21 SPI6LPEN: SPI6 clock enable during Sleep mode

This bit is set and cleared by software.

0: SPI6 clock disabled during Sleep mode

1: SPI6 clock enabled during Sleep mode

Bit 20 SPI5LPEN: SPI5 clock enable during Sleep mode

This bit is set and cleared by software.

0: SPI5 clock disabled during Sleep mode

1: SPI5 clock enabled during Sleep mode

Bit 19 Reserved, must be kept at reset value.

Bit 18 TIM11LPEN: TIM11 clock enable during Sleep mode

This bit is set and cleared by software.

0: TIM11 clock disabled during Sleep mode

1: TIM11 clock enabled during Sleep mode

Bit 17 TIM10LPEN: TIM10 clock enable during Sleep mode

This bit is set and cleared by software.

0: TIM10 clock disabled during Sleep mode

1: TIM10 clock enabled during Sleep mode

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

Bit 1 TIM8LPEN: TIM8 clock enable during Sleep mode

This bit is set and cleared by software.

0: TIM8 clock disabled during Sleep mode

1: TIM8 clock enabled during Sleep mode

Bit 0 TIM1LPEN: TIM1 clock enable during Sleep mode

This bit is set and cleared by software.

0: TIM1 clock disabled during Sleep mode

1: TIM1 clock enabled during Sleep mode

6.3.20 RCC Backup domain control register (RCC_BDCR)

Address offset: 0x70

Reset value: 0x0000 0000, reset by Backup domain reset.

Access: 0 ≤ wait state ≤ 3, word, half-word and byte access

Wait states are inserted in case of successive accesses to this register.

The LSEON, LSEBYP, RTCSEL and RTCEN bits in the RCC Backup domain control register (RCC_BDCR) are in the Backup domain. As a result, after Reset, these bits are write-protected and the DBP bit in the PWR power control register (PWR_CR) for STM32F42xxx and STM32F43xxx has to be set before these can be modified. Refer to Section 6.1.1: System reset on page 151 for further information. These bits are only reset after a Backup domain Reset (see Section 6.1.3: Backup domain reset). Any internal or external Reset has no effect on these bits.

31302928272625242322212019181716
ReservedBDRST
rw
1514131211109876543210
RTCENReservedRTCSEL[1:0]ReservedLSEBYPLSERDYLSEON
rwrwrwrwrrw

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

Bit 16 BDRST: Backup domain software reset

This bit is set and cleared by software.

0: Reset not activated

1: Resets the entire Backup domain

Note: The BKPSRAM is not affected by this reset, the only way of resetting the BKPSRAM is through the Flash interface when a protection level change from level 1 to level 0 is requested.

The backup domain software reset does not take effect until the DBP bit of the PWR_CR register is set.

Bit 15 RTCEN: RTC clock enable

This bit is set and cleared by software.

0: RTC clock disabled

1: RTC clock enabled

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

Bits 9:8 RTCSEL[1:0]: RTC clock source selection

These bits are set by software to select the clock source for the RTC. Once the RTC clock source has been selected, it cannot be changed anymore unless the Backup domain is reset. The BDRST bit can be used to reset them.

00: No clock

01: LSE oscillator clock used as the RTC clock

10: LSI oscillator clock used as the RTC clock

11: HSE oscillator clock divided by a programmable prescaler (selection through the RTCPRE[4:0] bits in the RCC clock configuration register (RCC_CFGR)) used as the RTC clock

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

Bit 2 LSEBYP: External low-speed oscillator bypass

This bit is set and cleared by software to bypass the oscillator. This bit can be written only when the LSE clock is disabled.

0: LSE oscillator not bypassed

1: LSE oscillator bypassed

Bit 1 LSERDY: External low-speed oscillator ready

This bit is set and cleared by hardware to indicate when the external 32 kHz oscillator is stable. After the LSEON bit is cleared, LSERDY goes low after 6 external low-speed oscillator clock cycles.

0: LSE clock not ready

1: LSE clock ready

Bit 0 LSEON: External low-speed oscillator enable

This bit is set and cleared by software.

0: LSE clock OFF

1: LSE clock ON

6.3.21 RCC clock control & status register (RCC_CSR)

Address offset: 0x74

Reset value: 0x0E00 0000, reset by system reset, except reset flags by power reset only.

Access: 0 ≤ wait state ≤ 3, word, half-word and byte access

Wait states are inserted in case of successive accesses to this register.

31302928272625242322212019181716
LPWR
RSTF
WWDG
RSTF
IWDG
RSTF
SFT
RSTF
POR
RSTF
PIN
RSTF
BORRS
TF
RMVFReserved
rrrrrrrrt_w
1514131211109876543210
ReservedLSIRDYLSION
rrw

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

Bit 1 LSIRDY: Internal low-speed oscillator ready

This bit is set and cleared by hardware to indicate when the internal RC 40 kHz oscillator is stable. After the LSION bit is cleared, LSIRDY goes low after 3 LSI clock cycles.

0: LSI RC oscillator not ready

1: LSI RC oscillator ready

Bit 0 LSION: Internal low-speed oscillator enable

This bit is set and cleared by software.

0: LSI RC oscillator OFF

1: LSI RC oscillator ON

6.3.22 RCC spread spectrum clock generation register (RCC_SSCGR)

Address offset: 0x80

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access.

The spread spectrum clock generation is available only for the main PLL.

The RCC_SSCGR register must be written either before the main PLL is enabled or after the main PLL disabled.

Note: For full details about PLL spread spectrum clock generation (SSCG) characteristics, refer to the “Electrical characteristics” section in your device datasheet.

31302928272625242322212019181716
SSCG
EN
SPR
EAD
SEL
ReservedINCSTEP
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
INCSTEPMODPER
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 SSCGEN: Spread spectrum modulation enable

This bit is set and cleared by software.

0: Spread spectrum modulation DISABLE. (To write after clearing CR[24]=PLLON bit)

1: Spread spectrum modulation ENABLE. (To write before setting CR[24]=PLLON bit)

Bit 30 SPREADSEL: Spread Select

This bit is set and cleared by software.

To write before to set CR[24]=PLLON bit.

0: Center spread

1: Down spread

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

Bits 27:13 INCSTEP: Incrementation step

These bits are set and cleared by software. To write before setting CR[24]=PLLON bit.
Configuration input for modulation profile amplitude.

Bits 12:0 MODPER: Modulation period

These bits are set and cleared by software. To write before setting CR[24]=PLLON bit.
Configuration input for modulation profile period.

6.3.23 RCC PLLI2S configuration register (RCC_PLLI2SCFGR)

Address offset: 0x84

Reset value: 0x2400 3000

Access: no wait state, word, half-word and byte access.

This register is used to configure the PLLI2S clock outputs according to the formulas:

\[f_{(VCO\ clock)} = f_{(PLLI2S\ clock\ input)} \times (PLLI2SN / PLLM)\]

\[f_{(PLL\ I2S\ clock\ output)} = f_{(VCO\ clock)} / PLLI2SR\]

31302928272625242322212019181716
Reserv
ed
PLLI2S
R2
PLLI2S
R1
PLLI2S
R0
PLLI2SQReserved
rwrwrwrwrwrwrw
1514131211109876543210
Reserv
ed
PLLI2SN
8
PLLI2SN
7
PLLI2SN
6
PLLI2SN
5
PLLI2SN
4
PLLI2SN
3
PLLI2SN
2
PLLI2SN
1
PLLI2SN
0
Reserved
rwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 PLLI2SR: PLLI2S division factor for I2S clocks

These bits are set and cleared by software to control the I2S clock frequency. These bits should be written only if the PLLI2S is disabled. The factor must be chosen in accordance with the prescaler values inside the I2S peripherals, to reach 0.3% error when using standard crystals and 0% error with audio crystals. For more information about I2S clock frequency and precision, refer to Section 28.4.4: Clock generator in the I2S chapter.

Caution: The I2Ss requires a frequency lower than or equal to 192 MHz to work correctly.

I2S clock frequency = VCO frequency / PLLR with 2 ≤ PLLR ≤ 7

000: PLLR = 0, wrong configuration

001: PLLR = 1, wrong configuration

010: PLLR = 2

...

111: PLLR = 7

Bits 27:24 PLLI2SQ: PLLI2S division factor for SAI1 clock

These bits are set and cleared by software to control the SAI1 clock frequency.

They should be written when the PLLI2S is disabled.

SAI1 clock frequency = VCO frequency / PLLI2SQ with 2 ≤ PLLI2SQ ≤ 15

0000: PLLI2SQ = 0, wrong configuration

0001: PLLI2SQ = 1, wrong configuration

0010: PLLI2SQ = 2

0011: PLLI2SQ = 3

0100: PLLI2SQ = 4

0101: PLLI2SQ = 5

...

1111: PLLI2SQ = 15

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

Bits 14:6 PLLI2SN: PLLI2S multiplication factor for VCO

These bits are set and cleared by software to control the multiplication factor of the VCO.
These bits can be written only when PLLI2S is disabled. Only half-word and word accesses are allowed to write these bits.

Caution: The software has to set these bits correctly to ensure that the VCO output frequency is between 100 and 432 MHz.

VCO output frequency = VCO input frequency × PLLI2SN with 50 ≤PLLI2SN ≤432

000000000: PLLI2SN = 0, wrong configuration

000000001: PLLI2SN = 1, wrong configuration

...

000110010: PLLI2SN = 50

...

001100011: PLLI2SN = 99

001100100: PLLI2SN = 100

001100101: PLLI2SN = 101

001100110: PLLI2SN = 102

...

110110000: PLLI2SN = 432

110110001: PLLI2SN = 433, wrong configuration

...

111111111: PLLI2SN = 511, wrong configuration

Note: Multiplication factors ranging from 50 and 99 are possible for VCO input frequency higher than 1 MHz. However care must be taken that the minimum VCO output frequency respects the value specified above.

Bits 5:0 Reserved, must be kept at reset value.

6.3.24 RCC PLL configuration register (RCC_PLLSAICFGR)

Address offset: 0x88

Reset value: 0x2400 3000

Access: no wait state, word, half-word and byte access.

This register is used to configure the PLLSAI clock outputs according to the formulas:

31302928272625242322212019181716
ReservedPLLSAIRPLLSAIQReserved
rwrwrwrwrwrwrw
1514131211109876543210
ReservedPLLSAINReserved
rwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 PLLSAIR: PLLSAI division factor for LCD clock

Set and reset by software to control the LCD clock frequency.

These bits should be written when the PLLSAI is disabled.

LCD clock frequency = VCO frequency / PLLSAIR with 2 ≤ PLLSAIR ≤ 7

000: PLLSAIR = 0, wrong configuration

001: PLLSAIR = 1, wrong configuration

010: PLLSAIR = 2

...

111: PLLSAIR = 7

Bits 27:24 PLLSAIQ: PLLSAI division factor for SAI1 clock

Set and reset by software to control the frequency of SAI1 clock.

These bits should be written when the PLLSAI is disabled.

SAI1 clock frequency = VCO frequency / PLLSAIQ with 2 ≤ PLLSAIQ ≤ 15

0000: PLLSAIQ = 0, wrong configuration

0001: PLLSAIQ = 1, wrong configuration

...

0010: PLLSAIQ = 2

0011: PLLSAIQ = 3

0100: PLLSAIQ = 4

0101: PLLSAIQ = 5

...

1111: PLLSAIQ = 15

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

Bits 14:6 PLLISAIN: PLLSAI division factor for VCO

These bits are set and cleared by software to control the multiplication factor of the VCO.
These bits can be written only when PLLSAI is disabled. Only half-word and word accesses are allowed to write these bits.

Caution: The software has to set these bits correctly to ensure that the VCO output frequency is between 100 and 432 MHz.

VCO output frequency = VCO input frequency × PLLISAIN with 50 ≤ PLLISAIN ≤ 432

00000000: PLLISAIN = 0, wrong configuration

00000001: PLLISAIN = 1, wrong configuration

...

000110010: PLLISAIN = 50

...

001100011: PLLISAIN = 99

001100100: PLLISAIN = 100

001100101: PLLISAIN = 101

001100110: PLLISAIN = 102

...

110110000: PLLISAIN = 432

110110001: PLLISAIN = 433, wrong configuration

...

111111111: PLLISAIN = 511, wrong configuration

Note: Multiplication factors ranging from 50 and 99 are possible for VCO input frequency higher than 1 MHz. However care must be taken that the minimum VCO output frequency respects the value specified above.

Bits 5:0 Reserved, must be kept at reset value

6.3.25 RCC Dedicated Clock Configuration Register (RCC_DCKCFGR)

Address offset: 0x8C

Reset value: 0x0000 0000

Access: no wait state, word, half-word and byte access.

The RCC_DCKCFGR register allows to configure the timer clock prescalers and the PLLSAI and PLLI2S output clock dividers for SAI1 and LTDC peripherals according to the following formula:

\[f_{(\text{PLLSAIDIVQ clock output})} = f_{(\text{PLLSAI}_Q)} / \text{PLLSAIDIVQ}\]

\[f_{(\text{PLLSAIDIVR clock output})} = f_{(\text{PLLSAI}_R)} / \text{PLLSAIDIVR}\]

\[f_{(\text{PLLI2SDIVQ clock output})} = f_{(\text{PLLI2S}_Q)} / \text{PLLI2SDIVQ}\]

31302928272625242322212019181716
ReservedTIMPRESAI1BSRCSAI1ASRCReservedPLLSAIDIVR
rwrwrwrwrwrwrw
1514131211109876543210
ReservedPLLSAIDIVQReservedPLLS2DIVQ
rwrwrwrwrwrwrwrwrwrw

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

Bit 24 TIMPRE: Timers clocks prescalers selection

This bit is set and reset by software to control the clock frequency of all the timers connected to APB1 and APB2 domain.

0: If the APB prescaler (PPRE1, PPRE2 in the RCC_CFGR register) is configured to a division factor of 1, TIMxCLK = PCLKx. Otherwise, the timer clock frequencies are set to twice to the frequency of the APB domain to which the timers are connected:

TIMxCLK = 2 × PCLKx.

1: If the APB prescaler (PPRE1, PPRE2 in the RCC_CFGR register) is configured to a division factor of 1, 2 or 4, TIMxCLK = HCLK. Otherwise, the timer clock frequencies are set to four times to the frequency of the APB domain to which the timers are connected:

TIMxCLK = 4 × PCLKx.

Bits 23:22 SAI1BSRC: SAI1-B clock source selection

These bits are set and cleared by software to control the SAI1-B clock frequency.

They should be written when the PLLSAI and PLLI2S are disabled.

00: SAI1-B clock frequency = f(PLLSAI_Q)/PLLSAIDIVQ

01: SAI1-B clock frequency = f(PLLI2S_Q)/PLLI2SDIVQ

10: SAI1-B clock frequency = Alternate function input frequency

11: wrong configuration

Bits 21:20 SAI1ASRC: SAI1-A clock source selection

These bits are set and cleared by software to control the SAI1-A clock frequency.

They should be written when the PLLSAI and PLLI2S are disabled.

00: SAI1-A clock frequency = f(PLLSAI_Q)/PLLSAIDIVQ

01: SAI1-A clock frequency = f(PLLI2S_Q)/PLLI2SDIVQ

10: SAI1-A clock frequency = Alternate function input frequency

11: wrong configuration

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

Bits 17:16 PLLSAIDIVR: division factor for LCD_CLK

These bits are set and cleared by software to control the frequency of LCD_CLK.

They should be written only if PLLSAI is disabled.

\(LCD\_CLK \text{ frequency} = f(PLLSAI\_R) / PLLSAIDIVR\) with 2 ≤ PLLSAIDIVR ≤ 16

00: PLLSAIDIVR = /2

01: PLLSAIDIVR = /4

10: PLLSAIDIVR = /8

11: PLLSAIDIVR = /16

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

Bits 12:8 PLLSAIDIVQ: PLLSAI division factor for SAI1 clock

These bits are set and reset by software to control the SAI1 clock frequency.

They should be written only if PLLSAI is disabled.

SAI1 clock frequency = f(PLLSAI_Q) / PLLSAIDIVQ with 1 ≤PLLSAIDIVQ ≤31

00000: PLLSAIDIVQ = /1

00001: PLLSAIDIVQ = /2

00010: PLLSAIDIVQ = /3

00011: PLLSAIDIVQ = /4

00100: PLLSAIDIVQ = /5

...

11111: PLLSAIDIVQ = /32

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

Bits 4:0 PLLI2SDIVQ: PLLI2S division factor for SAI1 clock

These bits are set and reset by software to control the SAI1 clock frequency.

They should be written only if PLLI2S is disabled.

SAI1 clock frequency = f(PLLI2S_Q) / PLLI2SDIVQ with 1 <= PLLI2SDIVQ <= 31

00000: PLLI2SDIVQ = /1

00001: PLLI2SDIVQ = /2

00010: PLLI2SDIVQ = /3

00011: PLLI2SDIVQ = /4

00100: PLLI2SDIVQ = /5

...

11111: PLLI2SDIVQ = /32

6.3.26 RCC register map

Table 34 gives the register map and reset values.

Table 34. RCC register map and reset values for STM32F42xxx and STM32F43xxx

Addr. offsetRegister name313029282726252423222120191817161514131211109876543210
0x00RCC_CRReservedPLL SAIRDYPLL SAIONPLL I2SRDYPLL I2SONPLL RDYPLL ONReservedCSSONHSEBYPHSERDYHSEONHSICAL 7HSICAL 6HSICAL 5HSICAL 4HSICAL 3HSICAL 2HSICAL 1HSICAL 0HSITRIM 4HSITRIM 3HSITRIM 2HSITRIM 1HSITRIM 0ReservedHSIRDYHSION
Reset value0000000000xxxxxxxx1000011
0x04RCC_PLLCFGRReservedPLLQ 3PLLQ 2PLLQ 1PLLQ 0ReservedPLLSRCReservedPLLP 1PLLP 0ReservedPLLN 8PLLN 7PLLN 6PLLN 5PLLN 4PLLN 3PLLN 2PLLN 1PLLN 0PLLM 5PLLM 4PLLM 3PLLM 2PLLM 1PLLM 0
Reset value0010000100110000010000
0x08RCC_CFGRMCO2 1MCO2 0MCO2PRE2MCO2PRE1MCO2PRE0MCO1PRE2MCO1PRE1MCO1PRE0I2SSRCMCO1 1MCO1 0RTCPRE 4RTCPRE 3RTCPRE 2RTCPRE 1RTCPRE 0PPRE2 2PPRE2 1PPRE2 0PPRE1 2PPRE1 1PPRE1 0ReservedHPRE 3HPRE 2HPRE 1HPRE 0SWS 1SWS 0SW 1SW 0
Reset value000000000000000000000000000000
0x0CRCC_CIRReservedCSSCPLLSAIRDYCPLLI2SRDYCPLLRDYCHSERDYCHSIRDYCLSERDYCLSIRDYCReservedPLLSAIRDYIEPLLI2SRDYIEPLLRDYIEHSERDYIEHSIRDYIELSERDYIELSIRDYIECSSFPLLSAIRDYFPLLI2SRDYFPLLRDYFHSERDYFHSIRDYFLSERDYFLSIRDYF
Reset value00000000000000000000000
0x10RCC_AHB1RSTRReservedOTGHRSTReservedETHMACRSTReservedDMA2DRSTDMA2RSTDMA1RSTReservedCRCRSTReservedGPIOKRSTGPIOJRSTGPIOIRSTGPIOHRSTGPIOGRSTGPIOFRSTGPIOERSTGPIODRSTGPIOCRSTGPIOBRSTGPIOARST
Reset value00000000000000000
0x14RCC_AHB2RSTRReservedOTGFSRSTRNGRSTHASHRSTCRYPRSTReservedDCMIRST
Reset value00000
0x18RCC_AHB3RSTRReservedFMCRST
Reset value0
0x1CReservedReserved
0x20RCC_APB1RSTRUART8RSTUART7RSTDACRSTPWRRSTReservedCAN2RSTCAN1RSTReservedI2C3RSTI2C2RSTI2C1RSTUART5RSTUART4RSTUART3RSTUART2RSTReservedSPI3RSTSPI2RSTReservedWWDGRSTReservedTIM14RSTTIM13RSTTIM12RSTTIM7RSTTIM6RSTTIM5RSTTIM4RSTTIM3RSTTIM2RST
Reset value0000000000000000000000000
0x24RCC_APB2RSTRReservedLTDCRSTReservedSAI1RSTSPI6RSTSPI5RSTReservedTIM11RSTTIM10RSTTIM9RSTReservedSYSCFGRSTSPI4RSTSPI1RSTSDIORSTReservedADCRSTReservedUSART6RSTUSART1RSTReservedTIM8RSTTIM1RST
Reset value0000000000000000
0x28ReservedReserved
0x2CReservedReserved
0x30RCC_AHB1ENRReservedOTGHSULPIENOTGHSENETHMACPTPENETHMACRXENETHMACTXENETHMACENReservedDMA2DENDMA2ENDMA1ENCCMDATARAMENReservedBKPSRAMENReservedCRCENReservedGPIOKENGPIOJENGPIOIENGPIOHENGPIOGENGPIOFENGPIOEENGPIODENGPIOCENGPIOBENGPIOAEN
Reset value00000000000000000000000

Table 34. RCC register map and reset values for STM32F42xxx and STM32F43xxx (continued)

Addr. offsetRegister name313029282726252423222120191817161514131211109876543210
0x34RCC_AHB2ENRReservedOTGFSENRNGENHASHENCRYPENReservedDCMIEN
Reset value00000
0x38RCC_AHB3ENRReservedFMCEN
Reset value0
0x3CReservedReserved
0x40RCC_APB1ENRUART8ENUART7ENDACENPWRENReservedCAN2ENCAN1ENReservedI2C3ENI2C2ENI2C1ENUART5ENUART4ENUSART3ENUSART2ENReservedSPI3ENSPI2ENReservedWWDGENReservedTIM14ENTIM13ENTIM12ENTIM7ENTIM6ENTIM5ENTIM4ENTIM3ENTIM2EN
Reset value0000000000000000000000000
0x44RCC_APB2ENRReservedLTDCENReservedSAI1ENSPI6ENSPI5ENReservedTIM11ENTIM10ENTIM9ENReservedSYSCFGENSPI4ENSPI1ENSDIOENADC3ENADC2ENADC1ENReservedUSART6ENUSART1ENReservedTIM8ENTIM1EN
Reset value000000000000000000
0x48ReservedReserved
0x4CReservedReserved
0x50RCC_AHB1LPENRReservedOTGHSULPILPENOTGHSLPENETHMACPTPLPENETHMACRXLPENETHMACTXLPENETHMACLPENReservedDMA2DLPENDMA2LPENDMA1LPENReservedSRAM3LPENBKPSRAMLPENSRAM2LPENSRAM1LPENFLITFLPENReservedCRCLPENReservedGPIOKLPENGPIOJLPENGPIOILPENGPIOHLPENGPIOGLPENGPIOFLPENGPIOELPENGPIODLPENGPIOCLPENGPIOBLPENGPIOALPEN
Reset value11111111111111111111111111
0x54RCC_AHB2LPENRReservedOTGFSLPENRNGLPENHASHLPENCRYPLPENReservedDCMILPEN
Reset value11111
0x58RCC_AHB3LPENRReservedFMCLPEN
Reset value1
0x5CReservedReserved
0x60RCC_APB1LPENRUART8LPENUART7LPENDACLPENPWRLPENReservedCAN2LPENCAN1LPENReservedI2C3LPENI2C2LPENI2C1LPENUART5LPENUART4LPENUSART3LPENUSART2LPENReservedSPI3LPENSPI2LPENReservedWWDGLPENReservedTIM14LPENTIM13LPENTIM12LPENTIM7LPENTIM6LPENTIM5LPENTIM4LPENTIM3LPENTIM2LPEN
Reset value1111111111111111111111111
0x64RCC_APB2LPENRReservedLTDCLPENReservedSAI1LPENSPI6LPENSPI5LPENReservedTIM11LPENTIM10LPENTIM9LPENReservedSYSCFGLPENSPI4LPENSPI1LPENSDIOLPENADC3LPENADC2LPENADC1LPENReservedUSART6LPENUSART1LPENReservedTIM8LPENTIM1LPEN
Reset value110110110111111111
0x68ReservedReserved
0x6CReservedReserved
0x70RCC_BDCRReservedBDRSTRTCENReservedRTCSEL 1RTCSEL 0ReservedLSEBYPLSERDYLSEON
Reset value0000000
Table 34. RCC register map and reset values for STM32F42xxx and STM32F43xxx (continued)
Addr. offsetRegister name313029282726252423222120191817161514131211109876543210
0x74RCC_CSRLPWRRSTFWWDGRSTFSFTRSTFPORRSTFPADRSTFBORRSTFRMVFReservedLSIRDYLSION
Reset value0000111100
0x78ReservedReserved
0x7CReservedReserved
0x80RCC_SSCGRSSCGENSPREADSELReservedINCSTEPMODPER
Reset value000000000000000000000000000000
0x84RCC_PLLI2SCFGRReservedPLLI2SRxPLLI2SQReservedPLLI2SNxReserved
Reset value0100100011000000
0x88RCC_PLLSAICFGRReservedPLLSAIRPLLSAIQReservedPLLSAINReserved
Reset value0100100011000000
0x8CRCC_DCKCFGRReservedTIMPRESAI1BSCRSAI1ASCRReservedPLLSAIDIVRReserved00000ReservedPLLI2SDIVQ
Reset value000000000000000

Refer to Section 2.3: Memory map for the register boundary addresses.