10. Reset and clock control (RCC) ..... 493

ST logo
ST logo
10.1RCC main features .....493
10.2RCC block diagram .....494
10.2.1RCC pin overview .....495
10.3RCC functional description - reset part .....496
10.3.1Reset overview .....496
10.3.2The power reset .....499
10.3.3Watchdog reset .....500
10.3.4Backup domain reset .....500
10.3.5Coresight debug reset .....502
10.3.6Option bytes loading .....502
10.3.7Per-peripheral reset .....502
10.3.8Reset pulse control (RPCTL) .....502
10.3.9Reset Delay Control (RDCTL) .....504
10.3.10Reset coverage summary .....506
10.3.11Reset source identification .....507
10.3.12Startup, cold/warm reset and wakeup sequences .....510
10.4RCC functional description - clock part .....512
10.4.1Clock naming convention .....514
10.4.2Oscillators description .....514
10.4.3Clock security system (CSS) .....522
10.4.4Clock output generation (MCO1 & MCO2) .....524
10.4.5PLLs description .....524
10.4.6Sub-system clocks .....532
10.4.7Clock generation in Stop and Standby modes .....536
10.4.8Peripheral clock distribution .....543
10.4.9General clock concept overview .....583
10.4.10Peripheral allocation .....583
10.4.11Peripheral clock gating control .....584
10.4.12Processor and interconnect clocks gating .....587
10.4.13Low-power emulation mode .....592
10.5RCC security .....593
10.6RCC interrupts .....598
10.7RCC application information .....600
10.7.1Handling dynamic clock switching .....600
10.7.2PLL programming .....606
10.7.3Configuring the sub-system clocks .....611
10.7.4The clock calibration using TIMx .....613
10.7.5Clock restore sequence examples .....615
10.8RCC registers .....617
10.8.1RCC secure configuration register (RCC_SECCFGR) .....618
10.8.2RCC stop request set register (RCC_MP_SREQSETR) .....621
10.8.3RCC stop request clear register (RCC_MP_SREQCLRR) .....622
10.8.4RCC application reset control register (RCC_MP_AP_RSTCR) .....623
10.8.5RCC application reset status register (RCC_MP_AP_RSTSR) .....624
10.8.6RCC low-power Stop modes delay control register
(RCC_PWRLPDLYCR) .....
625
10.8.7RCC global reset control set register
(RCC_MP_GRSTCSETR) .....
626
10.8.8RCC boot ROM reset status clear register
(RCC_BR_RSTSCLRR) .....
627
10.8.9RCC reset status set register (RCC_MP_RSTSSETR) .....629
10.8.10RCC reset status clear register (RCC_MP_RSTSCLRR) .....631
10.8.11RCC IWDG clock freeze set register (RCC_MP_IWDGFZSETR) ....633
10.8.12RCC IWDG clock freeze clear register
(RCC_MP_IWDGFZCLRR) .....
634
10.8.13RCC clock source interrupt enable register (RCC_MP_CIER) .....635
10.8.14RCC clock source interrupt flag register (RCC_MP_CIFR) .....638
10.8.15RCC backup domain control register (RCC_BDCR) .....641
10.8.16RCC reset duration and LSI control register (RCC_RDLISCR) .....643
10.8.17RCC oscillator clock enable set register (RCC_OCENSETR) .....645
10.8.18RCC oscillator clock enable clear register (RCC_OCENCLRR) ....647
10.8.19RCC oscillators and MPU and AXI clock ready register
(RCC_OCRDYR) .....
649
10.8.20RCC HSI configuration register (RCC_HSICFGR) .....651
10.8.21RCC CSI configuration register (RCC_CSICFGR) .....652
10.8.22RCC MCO1 configuration register (RCC_MCO1CFGR) .....653
10.8.23RCC MCO2 configuration register (RCC_MCO2CFGR) .....654
10.8.24RCC debug configuration register (RCC_DBGCFGR) .....655
10.8.25RCC PLL1 and PLL2 reference clock selection register
(RCC_RCK12SELR) .....
656
10.8.26RCC PLL3 reference clock selection register (RCC_RCK3SELR) ...657
10.8.27RCC PLL4 reference clock selection register (RCC_RCK4SELR) ...658
10.8.28RCC PLL1 control register (RCC_PLL1CR) .....659
10.8.29RCC PLL1 configuration register 1 (RCC_PLL1CFGR1) .....661
10.8.30RCC PLL1 configuration register 2 (RCC_PLL1CFGR2) .....662
10.8.31RCC PLL1 fractional register (RCC_PLL1FRACR) . . . . .663
10.8.32RCC PLL1 clock spreading generator register (RCC_PLL1CSGR) . .664
10.8.33RCC PLL2 control register (RCC_PLL2CR) . . . . .665
10.8.34RCC PLL2 configuration register 1 (RCC_PLL2CFGR1) . . . . .667
10.8.35RCC PLL2 configuration register 2 (RCC_PLL2CFGR2) . . . . .668
10.8.36RCC PLL2 fractional register (RCC_PLL2FRACR) . . . . .669
10.8.37RCC PLL2 clock spreading generator register (RCC_PLL2CSGR) . .670
10.8.38RCC PLL3 control register (RCC_PLL3CR) . . . . .671
10.8.39RCC PLL3 configuration register 1 (RCC_PLL3CFGR1) . . . . .673
10.8.40RCC PLL3 configuration register 2 (RCC_PLL3CFGR2) . . . . .675
10.8.41RCC PLL3 Fractional register (RCC_PLL3FRACR) . . . . .676
10.8.42RCC PLL3 clock spreading generator register (RCC_PLL3CSGR) . .677
10.8.43RCC PLL4 control register (RCC_PLL4CR) . . . . .678
10.8.44RCC PLL4 configuration register 1 (RCC_PLL4CFGR1) . . . . .680
10.8.45RCC PLL4 configuration register 2 (RCC_PLL4CFGR2) . . . . .682
10.8.46RCC PLL4 fractional register (RCC_PLL4FRACR) . . . . .683
10.8.47RCC PLL4 clock spreading generator register (RCC_PLL4CSGR) . .684
10.8.48RCC MPU clock selection register (RCC_MPCKSELR) . . . . .685
10.8.49RCC AXI sub-system clock selection register (RCC_ASSCKSELR) . .686
10.8.50RCC MLAHB sub-system clock selection register
(RCC_MSSCKSELR) . . . . .
687
10.8.51RCC common peripheral kernel clock selection register
(RCC_CPERCKSELR) . . . . .
688
10.8.52RCC RTC clock division register (RCC_RTCDIVR) . . . . .689
10.8.53RCC MPU clock divider register (RCC_MPCKDIVR) . . . . .690
10.8.54RCC AXI clock divider register (RCC_AXIDIVR) . . . . .691
10.8.55RCC MLAHB clock divider register (RCC_MLAHBIDVR) . . . . .692
10.8.56RCC APB1 clock divider register (RCC_APB1DIVR) . . . . .693
10.8.57RCC APB2 clock divider register (RCC_APB2DIVR) . . . . .694
10.8.58RCC APB3 clock divider register (RCC_APB3DIVR) . . . . .695
10.8.59RCC APB4 clock divider register (RCC_APB4DIVR) . . . . .696
10.8.60RCC APB5 clock divider register (RCC_APB5DIVR) . . . . .697
10.8.61RCC APB6 clock divider register (RCC_APB6DIVR) . . . . .698
10.8.62RCC APB1 timers group1 prescaler register (RCC_TIMG1PRER) . . .699
10.8.63RCC APB2 timers group2 prescaler register (RCC_TIMG2PRER) . . .700
10.8.64RCC APB6 timers group3 prescaler register (RCC_TIMG3PRER) . . .701
10.8.65RCC DDR interface control register (RCC_DDRITFCR) . . . . .702
10.8.66RCC I2C1 and I2C2 kernel clock selection register
(RCC_I2C12CKSELR) . . . . .
707
10.8.67RCC I2C3, I2C4 and I2C5 kernel clock selection register
(RCC_I2C345CKSELR) . . . . .
708
10.8.68RCC SPI/I2S1 kernel clock selection register
(RCC_SPI2S1CKSELR) . . . . .
709
10.8.69RCC SPI/I2S2 and SPI/I2S3 kernel clock selection register
(RCC_SPI2S23CKSELR) . . . . .
711
10.8.70RCC SPI/I2S4 and SPI5 kernel clock selection register
(RCC_SPI45CKSELR) 712
10.8.71RCC USART1 and USART2 kernel clock selection register
(RCC_UART12CKSELR) . . . . .
713
10.8.72RCC USART3 and UART5 kernel clock selection register
(RCC_UART35CKSELR) . . . . .
714
10.8.73RCC UART4 kernel clock selection register
(RCC_UART4CKSELR) . . . . .
715
10.8.74RCC USART6 kernel clock selection register
(RCC_UART6CKSELR) . . . . .
716
10.8.75RCC UART7 and UART8 kernel clock selection register
(RCC_UART78CKSELR) . . . . .
717
10.8.76RCC LPTIM1 kernel clock selection register
(RCC_LPTIM1CKSELR) . . . . .
718
10.8.77RCC LPTIM2 and LPTIM3 kernel clock selection register
(RCC_LPTIM23CKSELR) . . . . .
719
10.8.78RCC LPTIM4 and LPTIM5 kernel clock selection register
(RCC_LPTIM45CKSELR) . . . . .
720
10.8.79RCC SAI1 kernel clock selection register (RCC_SAI1CKSELR) . . . . .721
10.8.80RCC SAI2 kernel clock selection register (RCC_SAI2CKSELR) . . . . .722
10.8.81RCC FDCAN kernel clock selection register
(RCC_FDCANCKSELR) . . . . .
723
10.8.82RCC SPDIFRX kernel clock selection register
(RCC_SPDIFCKSELR) . . . . .
724
10.8.83RCC ADC1 and ADC2 kernel clock selection register
(RCC_ADC12CKSELR) 725
10.8.84RCC SDMMC1 and SDMMC2 kernel clock selection register
(RCC_SDMMC12CKSELR) . . . . .
726
10.8.85RCC ETH1 and ETH2 kernel clock selection register
(RCC_ETH12CKSELR) 727
10.8.86RCC USB kernel clock selection register (RCC_USBCKSELR) . . . . .729
10.8.87RCC QSPI kernel clock selection register
(RCC_QSPICKSELR) . . . . .
730
10.8.88RCC FMC kernel clock selection register (RCC_FMCCKSELR) . . . . .731
10.8.89RCC RNG1 kernel clock selection register (RCC_RNG1CKSELR) . . . . .732
10.8.90RCC STGEN clock selection register (RCC_STGENCKSELR) . . . . .733
10.8.91RCC DCMIPP kernel clock selection register
(RCC_DCMIPPCKSELR) . . . . .
734
10.8.92RCC SAES kernel clock selection register (RCC_SAESCKSELR) . . .735
10.8.93RCC APB1 peripheral reset set register (RCC_APB1RSTSETR) . . . .735
10.8.94RCC APB1 peripheral reset clear register (RCC_APB1RSTCLRR) . .738
10.8.95RCC APB2 peripheral reset set register (RCC_APB2RSTSETR) . . . .741
10.8.96RCC APB2 peripheral reset clear register (RCC_APB2RSTCLRR) . .742
10.8.97RCC APB3 peripheral reset set register (RCC_APB3RSTSETR) . . . .744
10.8.98RCC APB3 peripheral reset clear register (RCC_APB3RSTCLRR) . .746
10.8.99RCC APB4 peripheral reset set register (RCC_APB4RSTSETR) . . . .748
10.8.100RCC APB4 peripheral reset clear register (RCC_APB4RSTCLRR) . .749
10.8.101RCC APB5 peripheral reset set register (RCC_APB5RSTSETR) . . . .751
10.8.102RCC APB5 peripheral reset clear register (RCC_APB5RSTCLRR) . .752
10.8.103RCC APB6 peripheral reset set register (RCC_APB6RSTSETR) . . . .753
10.8.104RCC APB6 peripheral reset clear register (RCC_APB6RSTCLRR) . .756
10.8.105RCC AHB2 peripheral reset set register (RCC_AHB2RSTSETR) . . . .759
10.8.106RCC AHB2 peripheral reset clear register (RCC_AHB2RSTCLRR) . .761
10.8.107RCC AHB4 peripheral reset set register (RCC_AHB4RSTSETR) . . . .763
10.8.108RCC AHB4 peripheral reset clear register (RCC_AHB4RSTCLRR) . .765
10.8.109RCC AHB5 peripheral reset set register (RCC_AHB5RSTSETR) . . . .767
10.8.110RCC AHB5 peripheral reset clear register (RCC_AHB5RSTCLRR) . .769
10.8.111RCC AHB6 peripheral reset set register (RCC_AHB6RSTSETR) . . . .771
10.8.112RCC AHB6 peripheral reset clear register (RCC_AHB6RSTCLRR) . .774
10.8.113RCC APB1 peripheral enable set register
(RCC_MP_APB1ENSETR) . . . . .
777
10.8.114RCC APB1 peripheral enable clear register
(RCC_MP_APB1ENCLRR) . . . . .
780
10.8.115RCC APB2 peripheral enable set register
(RCC_MP_APB2ENSETR) . . . . .
783
10.8.116RCC APB2 peripheral enable clear register
(RCC_MP_APB2ENCLRR) . . . . .
785
10.8.117RCC APB3 peripheral enable set register
(RCC_MP_APB3ENSETR) . . . . .
787
10.8.118RCC APB3 peripheral enable clear register
(RCC_MP_APB3ENCLRR) . . . . .
788
10.8.119RCC secure APB3 peripheral enable set register
(RCC_MP_S_APB3ENSETR) . . . . .
791
10.8.120RCC secure APB3 peripheral enable clear register
(RCC_MP_S_APB3ENCLRR) . . . . .
792
10.8.121RCC non-secure APB3 peripheral enable set register
(RCC_MP_NS_APB3ENSETR) .....
793
10.8.122RCC non-secure APB3 peripheral enable clear register
(RCC_MP_NS_APB3ENCLRR) .....
794
10.8.123RCC APB4 peripheral enable set register
(RCC_MP_APB4ENSETR) .....
795
10.8.124RCC APB4 peripheral enable clear register
(RCC_MP_APB4ENCLRR) .....
797
10.8.125RCC secure APB4 peripheral enable set register
(RCC_MP_S_APB4ENSETR) .....
799
10.8.126RCC secure APB4 peripheral enable clear register
(RCC_MP_S_APB4ENCLRR) .....
800
10.8.127RCC non-secure APB4 peripheral enable set register
(RCC_MP_NS_APB4ENSETR) .....
801
10.8.128RCC non-secure APB4 peripheral enable clear register
(RCC_MP_NS_APB4ENCLRR) .....
802
10.8.129RCC APB5 peripheral enable set register
(RCC_MP_APB5ENSETR) .....
803
10.8.130RCC APB5 peripheral enable clear register
(RCC_MP_APB5ENCLRR) .....
805
10.8.131RCC APB6 peripheral enable set register
(RCC_MP_APB6ENSETR) .....
807
10.8.132RCC APB6 peripheral enable clear register
(RCC_MP_APB6ENCLRR) .....
810
10.8.133RCC AHB2 peripheral enable set register
(RCC_MP_AHB2ENSETR) .....
813
10.8.134RCC AHB2 peripheral enable clear register
(RCC_MP_AHB2ENCLRR) .....
815
10.8.135RCC secure AHB4 peripheral enable set register
(RCC_MP_S_AHB4ENSETR) .....
817
10.8.136RCC secure AHB4 peripheral enable clear register
(RCC_MP_S_AHB4ENCLRR) .....
819
10.8.137RCC non-secure AHB4 peripheral enable set register
(RCC_MP_NS_AHB4ENSETR) .....
821
10.8.138RCC non-secure AHB4 peripheral enable clear register
(RCC_MP_NS_AHB4ENCLRR) .....
823
10.8.139RCC AHB5 peripheral enable set register
(RCC_MP_AHB5ENSETR) .....
825
10.8.140RCC AHB5 peripheral enable clear register
(RCC_MP_AHB5ENCLRR) .....
827
10.8.141RCC AHB6 peripheral enable set register
(RCC_MP_AHB6ENSETR) .....
829
10.8.142RCC AHB6 peripheral enable clear register
(RCC_MP_AHB6ENCLRR) .....
833
10.8.143RCC secure AHB6 peripheral enable set register
(RCC_MP_S_AHB6ENSETR) .....
837
10.8.144RCC secure AHB6 peripheral enable clear register
(RCC_MP_S_AHB6ENCLRR) .....
838
10.8.145RCC non-secure AHB6 peripheral enable set register
(RCC_MP_NS_AHB6ENSETR) .....
839
10.8.146RCC non-secure AHB6 peripheral enable clear register
(RCC_MP_NS_AHB6ENCLRR) .....
840
10.8.147RCC APB1 Sleep clock enable set register
(RCC_MP_APB1LPENSETR) .....
841
10.8.148RCC APB1 Sleep clock enable clear register
(RCC_MP_APB1LPENCLRR) .....
844
10.8.149RCC APB2 Sleep clock enable set register
(RCC_MP_APB2LPENSETR) .....
847
10.8.150RCC APB2 Sleep clock enable clear register
(RCC_MP_APB2LPENCLRR) .....
849
10.8.151RCC APB3 Sleep clock enable set register
(RCC_MP_APB3LPENSETR) .....
851
10.8.152RCC APB3 Sleep clock enable clear register
(RCC_MP_APB3LPENCLRR) .....
852
10.8.153RCC secure APB3 Sleep clock enable set register
(RCC_MP_S_APB3LPENSETR) .....
854
10.8.154RCC secure APB3 Sleep clock enable clear register
(RCC_MP_S_APB3LPENCLRR) .....
855
10.8.155RCC non-secure APB3 Sleep clock enable set register
(RCC_MP_NS_APB3LPENSETR) .....
856
10.8.156RCC non-secure APB3 Sleep clock enable clear register
(RCC_MP_NS_APB3LPENCLRR) .....
857
10.8.157RCC APB4 Sleep clock enable set register
(RCC_MP_APB4LPENSETR) .....
858
10.8.158RCC APB4 Sleep clock enable clear register
(RCC_MP_APB4LPENCLRR) .....
860
10.8.159RCC secure APB4 sleep peripheral enable set register
(RCC_MP_S_APB4LPENSETR) .....
862
10.8.160RCC secure APB4 sleep peripheral enable clear register
(RCC_MP_S_APB4LPENCLRR) .....
863
10.8.161RCC non-secure APB4 sleep peripheral enable set register
(RCC_MP_NS_APB4LPENSETR) .....
864
10.8.162RCC non-secure APB4 sleep peripheral enable clear register
(RCC_MP_NS_APB4LPENCLRR) .....
865
10.8.163RCC APB5 Sleep clock enable set register
(RCC_MP_APB5LPENSETR) .....
866
10.8.164RCC APB5 Sleep clock enable clear register
(RCC_MP_APB5LPENCLRR) .....
869
10.8.165RCC APB6 sleep clock enable set register
(RCC_MP_APB6LPENSETR) .....
872
10.8.166RCC APB6 sleep clock enable clear register
(RCC_MP_APB6LPENCLRR) .....
876
10.8.167RCC AHB2 Sleep clock enable set register
(RCC_MP_AHB2LPENSETR) .....
880
10.8.168RCC AHB2 Sleep clock enable clear register
(RCC_MP_AHB2LPENCLRR) .....
882
10.8.169RCC secure AHB4 Sleep clock enable set register
(RCC_MP_S_AHB4LPENSETR) .....
884
10.8.170RCC secure AHB4 Sleep clock enable clear register
(RCC_MP_S_AHB4LPENCLRR) .....
886
10.8.171RCC non-secure AHB4 Sleep clock enable set register
(RCC_MP_NS_AHB4LPENSETR) .....
888
10.8.172RCC non-secure AHB4 Sleep clock enable clear register
(RCC_MP_NS_AHB4LPENCLRR) .....
890
10.8.173RCC AHB5 Sleep clock enable set register
(RCC_MP_AHB5LPENSETR) .....
892
10.8.174RCC AHB5 Sleep clock enable clear register
(RCC_MP_AHB5LPENCLRR) .....
894
10.8.175RCC AHB6 Sleep clock enable set register
(RCC_MP_AHB6LPENSETR) .....
896
10.8.176RCC AHB6 Sleep clock enable clear register
(RCC_MP_AHB6LPENCLRR) .....
901
10.8.177RCC secure AHB6 Sleep clock enable set register
(RCC_MP_S_AHB6LPENSETR) .....
906
10.8.178RCC secure AHB6 Sleep clock enable clear register
(RCC_MP_S_AHB6LPENCLRR) .....
907
10.8.179RCC non-secure AHB6 Sleep clock enable set register
(RCC_MP_NS_AHB6LPENSETR) .....
908
10.8.180RCC non-secure AHB6 Sleep clock enable clear register
(RCC_MP_NS_AHB6LPENCLRR) .....
909
10.8.181RCC secure AXI Sleep clock enable set register
(RCC_MP_S_AXIMLPENSETR) .....
910
10.8.182RCC secure AXI Sleep clock enable clear register
(RCC_MP_S_AXIMLPENCLRR) .....
911
10.8.183RCC non-secure AXI Sleep clock enable set register
(RCC_MP_NS_AXIMLPENSETR) .....
912
10.8.184RCC non-secure AXI Sleep clock enable clear register
(RCC_MP_NS_AXIMLPENCLRR) .....
913
10.8.185RCC MLAHB Sleep clock enable set register
(RCC_MP_MLAHBLPENSETTR) .....
914
10.8.186RCC MLAHB Sleep clock enable clear register
(RCC_MP_MLAHBLPENCLRR) .....
915
10.8.187RCC APB3 peripheral secure state register (RCC_APB3SECSR) ...916
10.8.188RCC APB4 peripheral secure state register (RCC_APB4SECSR) ...916
10.8.189RCC APB5 peripheral secure state register (RCC_APB5SECSR) ...917
10.8.190RCC APB6 peripheral secure state register (RCC_APB6SECSR) ...919
10.8.191RCC AHB2 peripheral secure state register (RCC_AHB2SECSR) ...920
10.8.192RCC AHB5 peripheral secure state register (RCC_AHB5SECSR) ...921
10.8.193RCC AHB6 peripheral secure state register (RCC_AHB6SECSR) ...923
10.8.194RCC Version register (RCC_VERR) .....925
10.8.195RCC ID register (RCC_IDR) .....925
10.8.196RCC Size ID register (RCC_SIDR) .....925
10.9RCC register map .....926
11General-purpose I/Os (GPIO) .....953
11.1Introduction .....953
11.2GPIO main features .....953
11.3GPIO functional description .....953
11.3.1General-purpose I/O (GPIO) .....955
11.3.2I/O pin alternate function multiplexer and mapping .....956
11.3.3I/O port control registers .....957
11.3.4I/O port data registers .....957
11.3.5I/O data bitwise handling .....957
11.3.6GPIO locking mechanism .....957
11.3.7I/O alternate function input/output .....958
11.3.8External interrupt/wakeup lines .....958
11.3.9Input configuration .....958
11.3.10Output configuration .....959
11.3.11I/O compensation cell .....960
11.3.12High-speed-low-voltage mode .....960
11.3.13Alternate function configuration .....961
11.3.14Analog configuration .....961
11.3.15Using the HSE or LSE oscillator pins as GPIOs .....962
11.3.16Using the GPIO pins in the backup supply domain .....962
11.3.17BOOT/GPIO pin sharing962
11.3.18TrustZone security963
11.4GPIO registers964
11.4.1GPIO port mode register (GPIOx_MODER) (x = A to I)964
11.4.2GPIO port output type register (GPIOx_OTYPER) (x = A to I)964
11.4.3GPIO port output speed register (GPIOx_OSPEEDR) (x = A to I)965
11.4.4GPIO port pull-up/pull-down register (GPIOx_PUPDR) (x = A to I)965
11.4.5GPIO port input data register (GPIOx_IDR) (x = A to I)966
11.4.6GPIO port output data register (GPIOx_ODR) (x = A to I)966
11.4.7GPIO port bit set/reset register (GPIOx_BSRR) (x = A to I)966
11.4.8GPIO port configuration lock register (GPIOx_LCKR) (x = A to I)967
11.4.9GPIO alternate function low register (GPIOx_AFRL) (x = A to I)968
11.4.10GPIO alternate function high register (GPIOx_AFRH) (x = A to I)969
11.4.11GPIO port bit reset register (GPIOx_BRR) (x = A to I)970
11.4.12GPIO secure configuration register (GPIOx_SECCFGR) (x = A to I)970
11.4.13GPIO hardware configuration register 10 (GPIOx_HWCFG10)
(x = A to I)
970
11.4.14GPIO hardware configuration register 9 (GPIOx_HWCFG9)
(x = A to I)
971
11.4.15GPIO hardware configuration register 8 (GPIOx_HWCFG8)
(x = A to I)
972
11.4.16GPIO hardware configuration register 7 (GPIOx_HWCFG7)
(x = A to I)
972
11.4.17GPIO hardware configuration register 6 (GPIOx_HWCFG6)
(x = A to I)
973
11.4.18GPIO hardware configuration register 5 (GPIOx_HWCFG5)
(x = A to I)
973
11.4.19GPIO hardware configuration register 4 (GPIOx_HWCFG4)
(x = A to I)
974
11.4.20GPIO hardware configuration register 3 (GPIOx_HWCFG3)
(x = A to I)
974
11.4.21GPIO hardware configuration register 2 (GPIOx_HWCFG2)
(x = A to I)
974
11.4.22GPIO hardware configuration register 1 (GPIOx_HWCFG1)
(x = A to I)
975
11.4.23GPIO hardware configuration register 0 (GPIOx_HWCFG0)
(x = A to I)
975
11.4.24GPIO version register (GPIOx_VERR) (x = A to I)975
11.4.25GPIO identification register (GPIOx_IPIDR) (x = A to I)976
11.4.26GPIO size identification register (GPIOx_SIDR) (x = A to I)976
11.4.27GPIO register map .....977
12System configuration controller (SYSCFG) .....980
12.1Trustzone security .....980
12.2I/O compensation cell .....980
12.3Ethernet PHY type and clock source selection .....982
12.4Analog switch power supply .....982
12.5High speed low voltage (HSLV) output buffers .....983
12.6SYSCFG registers .....985
12.6.1SYSCFG boot pins control register (SYSCFG_BOOTR) .....985
12.6.2SYSCFG peripheral mode configuration set register
(SYSCFG_PMCSETR) .....
985
12.6.3SYSCFG peripheral mode configuration clear register
(SYSCFG_PMCCLRR) .....
988
12.6.4SYSCFG boot control register (SYSCFG_BOOTCR) .....991
12.6.5SYSCFG SRAM3 erase register (SYSCFG_SRAM3ERASER) .....992
12.6.6SYSCFG SRAM3 erase key register (SYSCFG_SRAM3KR) .....992
12.6.7SYSCFG main compensation cell control register
(SYSCFG_CMPCR) .....
994
12.6.8SYSCFG main compensation cell enable set register
(SYSCFG_CMPENSETR) .....
996
12.6.9SYSCFG main compensation cell enable clear register
(SYSCFG_CMPENCLRR) .....
997
12.6.10SYSCFG control timer break register (SYSCFG_CBR) .....998
12.6.11SYSCFG VDDSD1 compensation cell control register
(SYSCFG_CMPSD1CR) .....
999
12.6.12SYSCFG VDDSD1 compensation cell enable set register
(SYSCFG_CMPSD1ENSETR) .....
1001
12.6.13SYSCFG VDDSD1 compensation cell enable clear register
(SYSCFG_CMPSD1ENCLRR) .....
1002
12.6.14SYSCFG VDDSD2 compensation cell control register
(SYSCFG_CMPSD2CR) .....
1003
12.6.15SYSCFG VDDSD2 compensation cell enable set register
(SYSCFG_CMPSD2ENSETR) .....
1005
12.6.16SYSCFG VDDSD2 compensation cell enable clear register
(SYSCFG_CMPSD2ENCLRR) .....
1006
12.6.17SYSCFG high-speed low-voltage enable register x
(SYSCFG_HSLVENxR) .....
1007
12.6.18SYSCFG identity code register (SYSCFG_IDC) .....1007
12.6.19SYSCFG version register (SYSCFG_VERR) .....1009
12.6.20SYSCFG identification register (SYSCFG_IPIDR) .....1009
12.6.21SYSCFG size identification register (SYSCFG_SIDR) .....1010
12.6.22SYSCFG interface register map .....1011
13Extended TrustZone® protection controller (ETZPC) .....1015
13.1ETZPC introduction .....1015
13.2ETZPC features .....1015
13.3Extended TrustZone architecture and ETZPC .....1015
13.4ETZPC functional description .....1017
13.5STM32MP13xx security architecture .....1017
13.6ETZPC registers .....1023
13.6.1ETZPC ROM secure size definition (ETZPC_TZMA0_SIZE) .....1024
13.6.2ETZPC RAM secure size definition (ETZPC_TZMA1_SIZE) .....1025
13.6.3ETZPC securable peripheral control register x
(ETZPC_DECPROTx) .....
1026
13.6.4ETZPC decprot lock x register (ETZPC_DECPROT_LOCKx) .....1027
13.6.5ETZPC HW configuration register (ETZPC_HWCFGR) .....1031
13.6.6ETZPC version register (ETZPC_VERR) .....1031
13.6.7ETZPC identification register (ETZPC_IDR) .....1032
13.6.8ETZPC size identification register (ETZPC_SIDR) .....1032
13.6.9ETZPC register map .....1033
14Peripheral interconnect matrix .....1035
14.1Peripheral interconnects .....1035
14.1.1Introduction .....1035
14.1.2Connection overview .....1035
14.2MDMA .....1047
15MDMA controller (MDMA) .....1049
15.1MDMA introduction .....1049
15.2MDMA main features .....1049
15.3MDMA functional description .....1051
15.3.1MDMA block diagram .....1051
15.3.2MDMA internal signals .....1051
15.3.3MDMA overview .....1051
15.3.4MDMA channel .....1053
15.3.5Source, destination and transfer modes .....1053
15.3.6Pointer update .....1053
15.3.7MDMA buffer transfer .....1054
15.3.8Request arbitration .....1055
15.3.9FIFO .....1055
15.3.10Block transfer .....1055
15.3.11Block repeat mode .....1056
15.3.12Linked-list mode .....1056
15.3.13MDMA transfer completion .....1056
15.3.14MDMA transfer suspension .....1056
15.3.15Error management .....1057
15.4MDMA interrupts .....1057
15.5MDMA registers .....1058
15.5.1MDMA global interrupt status register (MDMA_GISR0) .....1058
15.5.2MDMA secure global interrupt status register (MDMA_SGISR0) ...1058
15.5.3MDMA channel x interrupt status register (MDMA_CxISR) .....1059
15.5.4MDMA channel x interrupt flag clear register (MDMA_CxIFCR) ....1060
15.5.5MDMA channel x error status register (MDMA_CxESR) .....1061
15.5.6MDMA channel x control register (MDMA_CxCR) .....1062
15.5.7MDMA channel x transfer configuration register (MDMA_CxTCR) ..1064
15.5.8MDMA channel x block number of data register (MDMA_CxBNDTR) 1067
15.5.9MDMA channel x source address register (MDMA_CxSAR) .....1068
15.5.10MDMA channel x destination address register (MDMA_CxDAR) ...1069
15.5.11MDMA channel x block repeat address update register
(MDMA_CxBRUR) .....
1069
15.5.12MDMA channel x link address register (MDMA_CxLAR) .....1070
15.5.13MDMA channel x trigger and bus selection register
(MDMA_CxTBR) .....
1071
15.5.14MDMA channel x mask address register (MDMA_CxMAR) .....1071
15.5.15MDMA channel x mask data register (MDMA_CxMDR) .....1072
15.5.16MDMA register map .....1072
16Direct memory access controller (DMA) .....1074
16.1DMA introduction .....1074
16.2DMA main features .....1074
16.3DMA functional description .....1076
16.3.1DMA block diagram .....1076
16.3.2DMA overview1076
16.3.3DMA transactions1077
16.3.4DMA request mapping1077
16.3.5Arbiter1077
16.3.6DMA streams1078
16.3.7Source, destination and transfer modes1078
16.3.8Pointer incrementation1081
16.3.9Circular mode1082
16.3.10Double-buffer mode1082
16.3.11Programmable data width, packing/unpacking, endianness1083
16.3.12Single and burst transfers1084
16.3.13FIFO1085
16.3.14DMA transfer completion1088
16.3.15DMA transfer suspension1089
16.3.16Flow controller1090
16.3.17Summary of the possible DMA configurations1091
16.3.18Stream configuration procedure1091
16.3.19Error management1092
16.4DMA interrupts1093
16.5DMA registers1094
16.5.1DMA low interrupt status register (DMA_LISR)1094
16.5.2DMA high interrupt status register (DMA_HISR)1095
16.5.3DMA low interrupt flag clear register (DMA_LIFCR)1095
16.5.4DMA high interrupt flag clear register (DMA_HIFCR)1096
16.5.5DMA stream x configuration register (DMA_SxCR)1097
16.5.6DMA stream x number of data register (DMA_SxNDTR)1100
16.5.7DMA stream x peripheral address register (DMA_SxPAR)1100
16.5.8DMA stream x memory 0 address register
(DMA_SxM0AR)
1101
16.5.9DMA stream x memory 1 address register
(DMA_SxM1AR)
1101
16.5.10DMA stream x FIFO control register (DMA_SxFCR)1102
16.5.11DMA hardware configuration 2 register (DMA_HWCFG2)1103
16.5.12DMA hardware configuration 1 register (DMA_HWCFG1)1104
16.5.13DMA version register (DMA_VERR)1105
16.5.14DMA identification register (DMA_IPDR)1105
16.5.15DMA size identification register (DMA_SIDR)1106
16.5.16DMA register map .....1106
17DMA request multiplexer (DMAMUX) .....1111
17.1Introduction .....1111
17.2DMAMUX main features .....1112
17.3DMAMUX implementation .....1112
17.3.1DMAMUX instantiation .....1112
17.3.2DMAMUX1 mapping .....1112
17.3.3DMAMUX2 mapping .....1114
17.4DMAMUX functional description .....1116
17.4.1DMAMUX block diagram .....1116
17.4.2DMAMUX signals .....1117
17.4.3DMAMUX channels .....1117
17.4.4DMAMUX request line multiplexer .....1117
17.4.5DMAMUX request generator .....1120
17.5DMAMUX interrupts .....1121
17.6DMAMUX registers .....1122
17.6.1DMAMUX request line multiplexer channel x configuration register
(DMAMUX_CxCR) .....
1122
17.6.2DMAMUX request line multiplexer channel x configuration register
[alternate] (DMAMUX_CxCR) .....
1123
17.6.3DMAMUX request line multiplexer interrupt channel status register
(DMAMUX_CSR) .....
1124
17.6.4DMAMUX request line multiplexer interrupt clear flag register
(DMAMUX_CFR) .....
1125
17.6.5DMAMUX request generator channel x configuration register
(DMAMUX_RGxCR) .....
1125
17.6.6DMAMUX request generator interrupt status register
(DMAMUX_RGSR) .....
1126
17.6.7DMAMUX request generator interrupt clear flag register
(DMAMUX_RGCFR) .....
1126
17.6.8DMAMUX size identification register (DMAMUX_SIDR) .....1127
17.6.9DMAMUX IP identification register (DMAMUX_IPIDR) .....1127
17.6.10DMAMUX version register (DMAMUX_VERR) .....1127
17.6.11DMAMUX hardware configuration 1 register
(DMAMUX_HWCFGR1) .....
1128
17.6.12DMAMUX hardware configuration 2 register
(DMAMUX_HWCFGR2) .....
1128
17.6.13DMAMUX register map .....1129
18Interrupt list1132
18.1GIC Interrupts1132
18.2EXTI events1137
19Global interrupt controller (GIC)1141
19.1Introduction1141
19.2GIC main features1141
19.3GIC functional description1141
19.4Interrupt sources1142
19.4.1Software generated interrupts (SGI)1142
19.4.2Private peripheral interrupts (PPI)1142
19.4.3Shared peripheral interrupts (SPI)1143
19.4.4Interrupt priority formats1144
19.5GIC distributor (GICD)1144
19.5.1GICD control register (GICD_CTLR)1144
19.5.2GICD control non-secure access register (GICD_CTLRNS)1145
19.5.3GICD interrupt controller type register (GICD_TYPER)1145
19.5.4GICD implementer identification register (GICD_IIDR)1146
19.5.5GICD interrupt group register x (GICD_IGROUPRx)1146
19.5.6GICD interrupt set-enable register (GICD_ISENABLER0)1146
19.5.7GICD interrupt set-enable register x (GICD_ISENABLERx)1147
19.5.8GICD interrupt clear-enable register (GICD_ICENABLER0)1147
19.5.9GICD interrupt clear-enable register x (GICD_ICENABLERx)1147
19.5.10GICD interrupt set-pending register x (GICD_ISPENDRx)1148
19.5.11GICD interrupt clear-pending register x (GICD_ICPENDRx)1148
19.5.12GICD interrupt set-active register x (GICD_ISACTIVERx)1148
19.5.13GICD interrupt clear-active register x (GICD_ICACTIVERx)1149
19.5.14GICD interrupt priority register x (GICD_IPRIORITYRx)1149
19.5.15GICD interrupt processor target register x (GICD_ITARGETSRx)1150
19.5.16GICD interrupt processor target register x (GICD_ITARGETSRx)1151
19.5.17GICD interrupt configuration register (GICD_ICFGR0)1151
19.5.18GICD interrupt configuration register (GICD_ICFGR1)1152
19.5.19GICD interrupt configuration register x (GICD_ICFGRx)1153
19.5.20GICD private peripheral interrupt status register (GICD_PPISR)1154
19.5.21GICD shared peripheral interrupt register x (GICD_SPISRx)1155
19.5.22GICD software generated interrupt register (GICD_SGIR)1155
19.5.23GICD SGI clear-pending register x (GICD_CPENDSGIRx) . . . . .1156
19.5.24GICD SGI set-pending register x (GICD_SPENDSGIRx) . . . . .1158
19.5.25GICD peripheral ID4 register (GICD_PIDR4) . . . . .1159
19.5.26GICD peripheral ID5 to ID7 register x (GICD_PIDRx) . . . . .1159
19.5.27GICD peripheral ID0 register (GICD_PIDR0) . . . . .1160
19.5.28GICD peripheral ID1 register (GICD_PIDR1) . . . . .1160
19.5.29GICD peripheral ID2 register (GICD_PIDR2) . . . . .1160
19.5.30GICD peripheral ID3 register (GICD_PIDR3) . . . . .1161
19.5.31GICD component ID0 register (GICD_CIDR0) . . . . .1161
19.5.32GICD component ID1 register (GICD_CIDR1) . . . . .1161
19.5.33GICD component ID2 register (GICD_CIDR2) . . . . .1162
19.5.34GICD component ID3 register (GICD_CIDR3) . . . . .1162
19.5.35GICD register map . . . . .1162
19.6GIC CPU Interface (GICC) . . . . .1166
19.6.1GICC control register (GICC_CTLR) . . . . .1166
19.6.2GICC control non-secure access register (GICC_CTLRNS) . . . . .1167
19.6.3GICC input priority mask register (GICC_PMR) . . . . .1168
19.6.4GICC binary point register (GICC_BPR) . . . . .1168
19.6.5GICC binary point non-secure access register (GICC_BPRNS) . . . . .1169
19.6.6GICC interrupt acknowledge register (GICC_IAR) . . . . .1169
19.6.7GICC end of interrupt register (GICC_EOIR) . . . . .1170
19.6.8GICC running priority register (GICC_RPR) . . . . .1170
19.6.9GICC highest priority pending interrupt register (GICC_HPPIR) . . . . .1171
19.6.10GICC aliased binary point register (GICC_ABPR) . . . . .1171
19.6.11GICC aliased interrupt acknowledge register (GICC_AIAR) . . . . .1172
19.6.12GICC aliased end of interrupt register (GICC_AEOIR) . . . . .1172
19.6.13GICC aliased highest priority pending interrupt register
(GICC_AHPPIR) . . . . .
1173
19.6.14GICC active priority register (GICC_APR0) . . . . .1173
19.6.15GICC non-secure active priority register (GICC_NSAPR0) . . . . .1174
19.6.16GICC interface identification register (GICC_IIDR) . . . . .1174
19.6.17GICC deactivate interrupt register (GICC_DIR) . . . . .1174
19.6.18GICC register map . . . . .1175
19.7GIC virtual interface control, common (GICH) . . . . .1177
19.7.1GICH hypervisor control register (GICH_HCR) . . . . .1177
19.7.2GICH VGIC type register (GICH_VTR) . . . . .1178
19.7.3GICH virtual machine control register (GICH_VMCR) . . . . .1178
19.7.4GICH maintenance interrupt status register (GICH_MISR) . . . . .1179
19.7.5GICH end of interrupt status register (GICH_EISR0) . . . . .1180
19.7.6GICH empty list status register (GICH_ELSR0) . . . . .1180
19.7.7GICH active priority register (GICH_APR0) . . . . .1181
19.7.8GICH list register x (GICH_LRx) . . . . .1181
19.7.9GICH register map . . . . .1182
19.8GIC virtual CPU interface (GICV) . . . . .1183
19.8.1GICV virtual machine control register (GICV_CTLR) . . . . .1183
19.8.2GICV VM priority mask register (GICV_PMR) . . . . .1184
19.8.3GICV VM binary point register (GICV_BPR) . . . . .1185
19.8.4GICV VM interrupt acknowledge register (GICV_IAR) . . . . .1185
19.8.5GICV VM end of interrupt register (GICV_EOIR) . . . . .1185
19.8.6GICV VM running priority register (GICV_RPR) . . . . .1186
19.8.7GICV VM highest priority pending interrupt register (GICV_HPPIR) . . . . .1186
19.8.8GICV VM aliased binary point register (GICV_ABPR) . . . . .1187
19.8.9GICV VM aliased interrupt register (GICV_AIAR) . . . . .1187
19.8.10GICV VM aliased end of interrupt register (GICV_AEOIR) . . . . .1188
19.8.11GICV VM aliased highest priority pending interrupt register
(GICV_AHPPIR) . . . . .
1188
19.8.12GICV VM active priority register (GICV_APR0) . . . . .1189
19.8.13GICV VM CPU interface identification register (GICV_IIDR) . . . . .1189
19.8.14GICV VM deactivate interrupt register (GICV_DIR) . . . . .1189
19.8.15GICV register map . . . . .1190
20Extended interrupt and event controller (EXTI) . . . . .1192
20.1EXTI main features . . . . .1192
20.2EXTI block diagram . . . . .1193
20.2.1EXTI connections between peripherals and CPU . . . . .1194
20.3EXTI functional description . . . . .1195
20.3.1EXTI configurable event input wakeup . . . . .1195
20.3.2EXTI direct event input wakeup . . . . .1197
20.3.3EXTI mux selection . . . . .1197
20.4EXTI functional behavior . . . . .1198
20.5EXTI TrustZone security . . . . .1199
20.6EXTI registers . . . . .1200
20.6.1EXTI rising trigger selection register (EXTI_RTSR1) . . . . .1200
20.6.2EXTI falling trigger selection register (EXTI_FTSR1) . . . . .1201
20.6.3EXTI software interrupt event register (EXTI_SWIER1) .....1201
20.6.4EXTI rising edge pending register (EXTI_RPR1) .....1202
20.6.5EXTI falling edge pending register (EXTI_FPR1) .....1202
20.6.6EXTI TrustZone enable register (EXTI_TZENR1) .....1203
20.6.7EXTI rising trigger selection register (EXTI_RTSR2) .....1203
20.6.8EXTI falling trigger selection register (EXTI_FTSR2) .....1204
20.6.9EXTI software interrupt event register (EXTI_SWIER2) .....1204
20.6.10EXTI rising edge pending register (EXTI_RPR2) .....1204
20.6.11EXTI falling edge pending register (EXTI_FPR2) .....1205
20.6.12EXTI TrustZone enable register (EXTI_TZENR2) .....1205
20.6.13EXTI rising trigger selection register (EXTI_RTSR3) .....1206
20.6.14EXTI falling trigger selection register (EXTI_FTSR3) .....1206
20.6.15EXTI software interrupt event register (EXTI_SWIER3) .....1207
20.6.16EXTI rising edge pending register (EXTI_RPR3) .....1207
20.6.17EXTI falling edge pending register (EXTI_FPR3) .....1207
20.6.18EXTI TrustZone enable register (EXTI_TZENR3) .....1208
20.6.19EXTI external interrupt selection register 1 (EXTI_EXTICR1) .....1208
20.6.20EXTI external interrupt selection register 2 (EXTI_EXTICR2) .....1210
20.6.21EXTI external interrupt selection register 3 (EXTI_EXTICR3) .....1212
20.6.22EXTI external interrupt selection register 4 (EXTI_EXTICR4) .....1213
20.6.23EXTI CPU wakeup with interrupt mask register (EXTI_IMR1) .....1215
20.6.24EXTI CPU wakeup with event mask register (EXTI_EMR1) .....1216
20.6.25EXTI CPU wakeup with interrupt mask register (EXTI_IMR2) .....1216
20.6.26EXTI CPU wakeup with event mask register (EXTI_EMR2) .....1217
20.6.27EXTI CPU wakeup with interrupt mask register (EXTI_IMR3) .....1217
20.6.28EXTI CPU wakeup with event mask register (EXTI_EMR3) .....1218
20.6.29EXTI hardware configuration register x (EXTI_HWCFGRx) .....1218
20.6.30EXTI hardware configuration register x (EXTI_HWCFGRx) .....1218
20.6.31EXTI hardware configuration register x (EXTI_HWCFGRx) .....1219
20.6.32EXTI hardware configuration register x (EXTI_HWCFGRx) .....1219
20.6.33EXTI hardware configuration register 1 (EXTI_HWCFGR1) .....1219
20.6.34EXTI IP version register (EXTI_VERR) .....1220
20.6.35EXTI identification register (EXTI_IPIDR) .....1220
20.6.36EXTI size ID register (EXTI_SIDR) .....1221
20.6.37EXTI register map .....1222