RM0477-STM32H7Rx-7Sx

This reference manual targets application developers. It provides complete information on how to use the STM32H7R3, STM32H7S3, STM32H7R7, and STM32H7S7 memory and peripherals.

Microcontrollers of the STM32H7R3/7S3 and STM32H7R7/7S7 lines have different memory sizes, packages, and peripherals. They are referred to as STM32H7Rx/7Sx hereafter.

For ordering information, mechanical, and electrical device characteristics refer to the corresponding datasheets.

For information on the Arm® Cortex®-M7 with FPU core, refer to the corresponding Arm technical reference manual available from www.arm.com.

STM32H7Rx/7Sx microcontrollers include ST state-of-the-art patented technology.

Contents

1Documentation conventions120
1.1General information120
1.2List of abbreviations for registers120
1.3Register reset value121
1.4Glossary121
1.5Availability of peripherals121
1.6Availability of security features121
2Memory and bus architecture122
2.1System architecture122
2.1.1Bus matrices124
2.1.2Bus-to-bus bridges125
2.1.3TCM-buses125
2.1.4CPU buses125
2.1.5Bus master peripherals126
2.1.6GPU2D-bus127
2.1.7GFXMMU-bus127
2.1.8Clocks to functional blocks127
2.2AXI interconnect matrix (AXIM)128
2.2.1AXI introduction128
2.2.2AXI interconnect main features128
2.2.3AXI interconnect functional description129
2.2.4AXI interconnect registers132
2.2.5AXI interconnect register map140
2.3Memory organization150
2.3.1Introduction150
2.3.2Memory map and register boundary addresses151
2.4Embedded SRAM160
2.5Flash memory overview163
2.6Boot configuration163
3RAMECC monitoring (RAMECC)165
3.1Introduction165
3.2RAMECC main features . . . . .165
3.3RAMECC functional description . . . . .165
3.3.1RAMECC internal signals . . . . .167
3.3.2RAMECC monitor mapping . . . . .168
3.3.3ECC fault injection test on SRAM1, SRAM3, and TCM . . . . .169
3.4RAMECC low-power modes . . . . .169
3.5RAMECC interrupts . . . . .170
3.6RAMECC registers . . . . .171
3.6.1RAMECC interrupt enable register (RAMECC_IER) . . . . .171
3.6.2RAMECC monitor x configuration register
(RAMECC_MxCR) . . . . .
172
3.6.3RAMECC monitor x status register
(RAMECC_MxSR) . . . . .
174
3.6.4RAMECC monitor x failing address register
(RAMECC_MxFAR) . . . . .
174
3.6.5RAMECC monitor x failing data low register
(RAMECC_MxFDRL) . . . . .
175
3.6.6RAMECC monitor x failing data high register
(RAMECC_MxFDRH) . . . . .
175
3.6.7RAMECC monitor x failing ECC error code register
(RAMECC_MxFECCR) . . . . .
176
3.6.8RAMECC register map . . . . .177
4System security . . . . .178
4.1Key security features . . . . .178
4.2Secure install . . . . .179
4.3Secure boot . . . . .180
4.3.1Unique boot entry . . . . .180
4.3.2Security services in system flash memory . . . . .181
4.4Secure update . . . . .183
4.5Resource isolation using hide protect levels . . . . .183
4.5.1Temporal isolation using secure hide protection (HDP) . . . . .183
4.6Secure execution . . . . .184
4.6.1Memory protection unit (MPU) . . . . .184
4.6.2Embedded flash memory write protection . . . . .184
4.6.3Tamper detection and response . . . . .184
4.7Secure storage . . . . .187
4.7.1Hardware secret key management . . . . .188
4.7.2Unique ID .....189
4.8Crypto engines .....189
4.8.1Crypto engines features .....189
4.8.2Secure AES co-processor (SAES) .....190
4.8.3Memory cipher engine (MCE) .....190
4.9Product life cycle .....191
4.9.1Product configurations and security services .....192
4.9.2Recommended product settings .....193
4.10System memory .....193
4.10.1Introduction .....193
4.10.2RSS user functions .....193
5Embedded flash memory (FLASH) .....200
5.1Introduction .....200
5.2FLASH main features .....200
5.3FLASH functional description .....201
5.3.1FLASH block diagram .....201
5.3.2FLASH internal signals .....202
5.3.3FLASH architecture and integration in the system .....202
5.3.4Flash memory architecture and usage .....204
5.3.5Flash hide protection schemes .....208
5.3.6Overview of FLASH operations .....209
5.3.7FLASH read operations .....210
5.3.8FLASH program operations .....212
5.3.9FLASH erase operations .....216
5.3.10Flash memory error protections .....218
5.3.11FLASH one-time programmable area .....219
5.3.12FLASH read-only area .....221
5.3.13FLASH reset and clocks .....221
5.4FLASH option bytes .....222
5.4.1About option bytes .....222
5.4.2Option byte loading .....222
5.4.3Option byte words modification .....223
5.4.4Option byte key management .....225
5.4.5Option byte user words overview .....226
5.4.6Description of user option byte word .....228
5.4.7Description of security option bytes .....229
5.5FLASH protection mechanisms .....231
5.5.1FLASH configuration protection .....231
5.5.2Write protection .....232
5.5.3Life cycle management .....233
5.5.4Hide protected system flash area .....234
5.5.5Hide protected user flash area .....234
5.6FLASH low-power modes .....237
5.6.1Introduction .....237
5.6.2Managing the FLASH domain switching to Stop or Standby .....237
5.7FLASH error management .....238
5.7.1Introduction .....238
5.7.2Write protection error (WRPERRF) .....238
5.7.3Programming sequence error (PGSERRF) .....239
5.7.4Strobe error (STRBERRF) .....239
5.7.5Inconsistency error (INCERRF) .....240
5.7.6Error correction code error (SNECCERRF/DBECCERRF) .....240
5.7.7Read secure error (RDSERRF) .....241
5.7.8CRC read error (CRCRDERRF) .....241
5.7.9Option byte change error (OPTERRF) .....241
5.7.10Key valid error (KVEF) .....242
5.7.11Key transfer error (KTEF) .....242
5.7.12Option byte loading error (OBLERRF) .....242
5.7.13Miscellaneous HardFault errors .....243
5.8FLASH interrupts .....243
5.9FLASH registers .....245
5.9.1FLASH access control register (FLASH_ACR) .....245
5.9.2FLASH control key register (FLASH_KEYR) .....246
5.9.3FLASH control register (FLASH_CR) .....246
5.9.4FLASH status register (FLASH_SR) .....249
5.9.5FLASH interrupt enable register (FLASH_IER) .....251
5.9.6FLASH interrupt status register (FLASH_ISR) .....252
5.9.7FLASH interrupt clear register (FLASH_ICR) .....254
5.9.8FLASH CRC control register (FLASH_CRCCR) .....255
5.9.9FLASH CRC start address register (FLASH_CRCSADDR) .....256
5.9.10FLASH CRC end address register (FLASH_CRCEADDR) .....257
5.9.11FLASH CRC data register (FLASH_CRCDATAR) . . . . .257
5.9.12FLASH ECC single error fail address (FLASH_ECCSFADDR) . . . . .258
5.9.13FLASH ECC double error fail address (FLASH_ECCDFADDR) . . . . .258
5.9.14FLASH options key register (FLASH_OPTKEYR) . . . . .259
5.9.15FLASH options control register (FLASH_OPTCR) . . . . .259
5.9.16FLASH options interrupt status register (FLASH_OPTISR) . . . . .260
5.9.17FLASH options interrupt clear register (FLASH_OPTICR) . . . . .261
5.9.18FLASH option byte key control register (FLASH_OBKCR) . . . . .262
5.9.19FLASH option bytes key data register x (FLASH_OBKDRx) . . . . .263
5.9.20FLASH non-volatile status register (FLASH_NVSR) . . . . .263
5.9.21FLASH security status register programming (FLASH_NVSRP) . . . . .264
5.9.22FLASH RoT status register (FLASH_ROTSR) . . . . .265
5.9.23FLASH RoT status register programming (FLASH_ROTSRP) . . . . .266
5.9.24FLASH OTP lock status register (FLASH_OTPLSR) . . . . .266
5.9.25FLASH OTP lock status register programming (FLASH_OTPLSRP) . . . . .267
5.9.26FLASH write protection status register (FLASH_WRPSR) . . . . .267
5.9.27FLASH write protection status register programming
(FLASH_WRPSRP) . . . . .
268
5.9.28FLASH hide protection status register (FLASH_HDPSR) . . . . .268
5.9.29FLASH hide protection status register programming
(FLASH_HDPSRP) . . . . .
269
5.9.30FLASH epoch status register (FLASH_EPOCHSR) . . . . .270
5.9.31FLASH RoT status register programming (FLASH_EPOCHSRP) . . . . .270
5.9.32FLASH option byte word 1 status register (FLASH_OBW1SR) . . . . .271
5.9.33FLASH option byte word 1 status register programming
(FLASH_OBW1SRP) . . . . .
272
5.9.34FLASH option byte word 2 status register (FLASH_OBW2SR) . . . . .273
5.9.35FLASH option byte word 2 status register programming
(FLASH_OBW2SRP) . . . . .
274
5.9.36FLASH register map . . . . .275
6Power control (PWR) . . . . .279
6.1Introduction . . . . .279
6.2PWR main features . . . . .279
6.3PWR block diagram . . . . .280
6.3.1PWR pins and internal signals . . . . .281
6.4Power supplies . . . . .283
6.4.1System supply startup . . . . .287
6.4.2Core domain .....290
6.4.3PWR external supply .....292
6.4.4Backup domain .....292
6.4.5VBAT battery charging .....294
6.4.6Analog supply .....295
6.4.7USB regulator .....296
6.5Power supply supervision .....297
6.5.1Power-on reset (POR)/power-down reset (PDR) .....297
6.5.2Brownout reset (BOR) .....298
6.5.3Programmable voltage detector (PVD) .....299
6.5.4Analog voltage detector (AVD) .....300
6.5.5Battery voltage thresholds .....301
6.5.6Temperature thresholds .....302
6.5.7VCORE maximum voltage level detector .....303
6.6Power management .....304
6.6.1Operating modes .....304
6.6.2Voltage scaling .....305
6.6.3Power management examples .....306
6.7Low-power modes .....309
6.7.1Slowing down system clocks .....310
6.7.2Controlling peripheral clocks .....310
6.7.3Entering low-power modes .....310
6.7.4Exiting from low-power modes .....310
6.7.5Sleep mode .....312
6.7.6Stop mode .....312
6.7.7Standby mode .....315
6.7.8Monitoring low-power modes .....317
6.8PWR registers .....318
6.8.1PWR control register 1 (PWR_CR1) .....318
6.8.2PWR control status register 1 (PWR_SR1) .....320
6.8.3PWR control status register 1 (PWR_CSR1) .....321
6.8.4PWR control register 2 (PWR_CSR2) .....323
6.8.5PWR CPU control register 3 (PWR_CSR3) .....326
6.8.6PWR control status register 4 (PWR_CSR4) .....327
6.8.7PWR wake-up clear register (PWR_WKUPCR) .....328
6.8.8PWR wake-up flag register (PWR_WKUPFR) .....329
6.8.9PWR wake-up enable and polarity register (PWR_WKUPEPR) .....330
6.8.10PWR USB Type-C and Power Delivery register (PWR_UCPDR) . . . . .331
6.8.11PWR apply pull configuration register (PWR_APCR) . . . . .332
6.8.12PWR port N pull-up control register (PWR_PUCRN) . . . . .334
6.8.13PWR port N pull-down control register (PWR_PDCRN) . . . . .335
6.8.14PWR port O pull-up control register (PWR_PUCRO) . . . . .336
6.8.15PWR port O pull-down control register (PWR_PDCRO) . . . . .337
6.8.16PWR port P pull-down control register (PWR_PDCRP) . . . . .338
6.8.17PWR register map . . . . .339
7Reset and clock control (RCC) . . . . .341
7.1RCC main features . . . . .341
7.2RCC block diagram . . . . .342
7.3RCC pins and internal signals . . . . .343
7.4RCC reset block functional description . . . . .345
7.4.1Reset from PWR block . . . . .345
7.4.2The system and application resets (sys_rst and nreset) . . . . .347
7.4.3The NRST reset . . . . .347
7.4.4Low-power mode security reset (lpwr_rst) . . . . .347
7.4.5Backup domain reset . . . . .348
7.4.6Coresight debug reset . . . . .348
7.4.7Option bytes loading . . . . .349
7.4.8Peripheral resets . . . . .349
7.4.9Reset coverage summary . . . . .349
7.4.10Reset source identification . . . . .351
7.4.11Power-on and wake-up sequences . . . . .351
7.5RCC clock block functional description . . . . .353
7.5.1Clock naming convention . . . . .355
7.5.2Oscillators description . . . . .355
7.5.3Clock security system (CSS) . . . . .365
7.5.4Clock output generation (MCO1/MCO2) . . . . .368
7.5.5PLL description . . . . .370
7.5.6System clock (sys_ck) . . . . .376
7.5.7Clock protection . . . . .379
7.5.8Clock generation in Stop and Standby modes . . . . .380
7.5.9Peripheral clock distribution . . . . .382
7.5.10General clock concept overview . . . . .411
7.5.11Peripheral allocation . . . . .412
7.5.12Peripheral clock gating control . . . . .413
7.5.13CPU and bus matrix clock gating control . . . . .416
7.5.14Low-power emulation modes . . . . .417
7.6RCC interrupts . . . . .418
7.7RCC Programming examples . . . . .419
7.7.1PLL programming procedure . . . . .419
7.7.2Frequency configuration examples . . . . .421
7.8RCC registers . . . . .424
7.8.1RCC source control register (RCC_CR) . . . . .424
7.8.2RCC clock protection register (RCC_CKPROTR) . . . . .428
7.8.3RCC HSI calibration register (RCC_HSICFGR) . . . . .429
7.8.4RCC clock recovery RC register (RCC_CRRCR) . . . . .430
7.8.5RCC CSI calibration register (RCC_CSICFGR) . . . . .430
7.8.6RCC clock configuration register (RCC_CFGR) . . . . .431
7.8.7RCC CPU domain clock configuration register (RCC_CDCFG) . . . . .434
7.8.8RCC AHB clock configuration register (RCC_BMCFGR) . . . . .435
7.8.9RCC APB clocks configuration register (RCC_APBCFGR) . . . . .436
7.8.10RCC PLLs clock source selection register (RCC_PLLCKSELR) . . . . .438
7.8.11RCC PLLs configuration register (RCC_PLLCFGR) . . . . .440
7.8.12RCC PLL1 dividers configuration register 1 (RCC_PLL1DIVR1) . . . . .443
7.8.13RCC PLL1 dividers configuration register 2 (RCC_PLL1DIVR2) . . . . .445
7.8.14RCC PLL1 fractional divider register (RCC_PLL1FRACR) . . . . .445
7.8.15RCC PLL1 Spread Spectrum Clock Generator register
(RCC_PLL1SSCGR) . . . . .
447
7.8.16RCC PLL2 dividers configuration register 1 (RCC_PLL2DIVR1) . . . . .448
7.8.17RCC PLL2 dividers configuration register 2 (RCC_PLL2DIVR2) . . . . .450
7.8.18RCC PLL2 fractional divider register (RCC_PLL2FRACR) . . . . .451
7.8.19RCC PLL2 Spread Spectrum Clock Generator register
(RCC_PLL2SSCGR) . . . . .
452
7.8.20RCC PLL3 dividers configuration register 1 (RCC_PLL3DIVR1) . . . . .453
7.8.21RCC PLL3 dividers configuration register 2 (RCC_PLL3DIVR2) . . . . .455
7.8.22RCC PLL3 fractional divider register (RCC_PLL3FRACR) . . . . .455
7.8.23RCC PLL3 Spread Spectrum Clock Generator register
(RCC_PLL3SSCGR) . . . . .
457
7.8.24RCC AHB peripheral kernel clock selection register (RCC_CCIPR1) . . . . .458
7.8.25RCC APB1 peripherals kernel clock selection register
(RCC_CCIPR2) . . . . .
461
7.8.26RCC APB2 peripherals kernel clock selection register (RCC_CCIPR3) .....463
7.8.27RCC APB4,5 peripherals kernel clock selection register (RCC_CCIPR4) .....465
7.8.28RCC clock source interrupt enable register (RCC_CIER) .....467
7.8.29RCC clock source interrupt flag register (RCC_CIFR) .....468
7.8.30RCC clock source interrupt clear register (RCC_CICR) .....470
7.8.31RCC Backup domain control register (RCC_BDCR) .....472
7.8.32RCC clock control and status register (RCC_CSR) .....474
7.8.33RCC AHB1 peripheral reset register (RCC_AHB1RSTR) .....475
7.8.34RCC AHB2 peripheral reset register (RCC_AHB2RSTR) .....476
7.8.35RCC AHB3 peripheral reset register (RCC_AHB3RSTR) .....477
7.8.36RCC AHB4 peripheral reset register (RCC_AHB4RSTR) .....478
7.8.37RCC AHB5 peripheral reset register (RCC_AHB5RSTR) .....480
7.8.38RCC APB1 peripheral reset register 1 (RCC_APB1RSTR1) .....482
7.8.39RCC APB1 peripheral reset register 2 (RCC_APB1RSTR2) .....485
7.8.40RCC APB2 peripheral reset register (RCC_APB2RSTR) .....486
7.8.41RCC APB4 peripheral reset register (RCC_APB4RSTR) .....488
7.8.42RCC APB5 peripheral reset register (RCC_APB5RSTR) .....490
7.8.43RCC AXI clocks gating disable register (RCC_CKGDISR) .....491
7.8.44RCC Reset status register (RCC_RSR) .....495
7.8.45RCC AHB1 clock enable register (RCC_AHB1ENR) .....497
7.8.46RCC AHB2 clock enable register (RCC_AHB2ENR) .....499
7.8.47RCC AHB3 clock enable register (RCC_AHB3ENR) .....500
7.8.48RCC AHB4 clock enable register (RCC_AHB4ENR) .....501
7.8.49RCC AHB5 clock enable register (RCC_AHB5ENR) .....503
7.8.50RCC APB1 clock enable register 1 (RCC_APB1ENR1) .....505
7.8.51RCC APB1 clock enable register 2 (RCC_APB1ENR2) .....508
7.8.52RCC APB2 clock enable register (RCC_APB2ENR) .....509
7.8.53RCC APB4 clock enable register (RCC_APB4ENR) .....510
7.8.54RCC APB5 clock enable register (RCC_APB5ENR) .....513
7.8.55RCC AHB5 low-power clock enable register (RCC_AHB5LPENR) .....514
7.8.56RCC AHB1 low-power clock enable register (RCC_AHB1LPENR) .....516
7.8.57RCC AHB2 low-power clock enable register (RCC_AHB2LPENR) .....518
7.8.58RCC AHB3 low-power clock enable register (RCC_AHB3LPENR) .....519
7.8.59RCC AHB4 low-power clock enable register (RCC_AHB4LPENR) .....520
7.8.60RCC APB1 low-power clock enable register 1 (RCC_APB1LPENR1) .....522
7.8.61RCC APB1 low-power clock enable register 2 (RCC_APB1LPENR2) .....525
7.8.62RCC APB2 low-power clock enable register (RCC_APB2LPENR) . . .526
7.8.63RCC APB4 low-power clock enable register (RCC_APB4LPENR) . . .528
7.8.64RCC APB5 low-power clock enable register (RCC_APB5LPENR) . . .530
7.9RCC register map . . . . .531
8System configuration, boot and security (SBS) . . . . .540
8.1SBS introduction . . . . .540
8.2SBS main features . . . . .540
8.3SBS functional description . . . . .541
8.3.1SBS block diagram . . . . .541
8.3.2SBS internal signals . . . . .541
8.3.3SBS reset and clocks . . . . .541
8.3.4SBS hide protection management . . . . .542
8.3.5SBS boot control . . . . .542
8.3.6SBS debug management . . . . .543
8.3.7SBS voltage booster for I/O analog switches . . . . .544
8.3.8SBS I/O compensation cell management . . . . .544
8.3.9SBS registers access control . . . . .545
8.3.10SBS error management . . . . .546
8.4SBS interrupts . . . . .546
8.5SBS registers . . . . .546
8.5.1SBS boot status register (SBS_BOOTSR) . . . . .546
8.5.2SBS hide protection control register (SBS_HDPLCR) . . . . .547
8.5.3SBS hide protection status register (SBS_HDPLSR) . . . . .547
8.5.4SBS debug control register (SBS_DBGCR) . . . . .548
8.5.5SBS debug lock register (SBS_DBGLOCKR) . . . . .548
8.5.6SBS RSS command register (SBS_RSSCMDR) . . . . .549
8.5.7SBS product mode and configuration register (SBS_PMCR) . . . . .549
8.5.8SBS FPU interrupt mask register (SBS_FPUIMR) . . . . .550
8.5.9SBS memory erase status register (SBS_MESR) . . . . .551
8.5.10SBS I/O compensation cell control and status register (SBS_CCCSR) . . . . .551
8.5.11SBS compensation cell for I/Os value register (SBS_CCVALR) . . . . .554
8.5.12SBS compensation cell for I/Os software value register (SBS_CCSWVALR) . . . . .555
8.5.13SBS break lockup register (SBS_BKLOCKR) . . . . .556
8.5.14SBS external interrupt configuration register x (SBS_EXTICRx) . . . . .558
8.5.15SBS register map . . . . .559
9Clock recovery system (CRS) .....561
9.1CRS introduction .....561
9.2CRS main features .....561
9.3CRS implementation .....561
9.4CRS functional description .....562
9.4.1CRS block diagram .....562
9.4.2CRS internal signals .....562
9.4.3Synchronization input .....563
9.4.4Frequency error measurement .....563
9.4.5Frequency error evaluation and automatic trimming .....564
9.4.6CRS initialization and configuration .....565
9.5CRS in low-power modes .....566
9.6CRS interrupts .....566
9.7CRS registers .....566
9.7.1CRS control register (CRS_CR) .....566
9.7.2CRS configuration register (CRS_CFGR) .....568
9.7.3CRS interrupt and status register (CRS_ISR) .....569
9.7.4CRS interrupt flag clear register (CRS_ICR) .....571
9.7.5CRS register map .....571
10General-purpose I/Os (GPIO) .....573
10.1Introduction .....573
10.2GPIO main features .....573
10.3GPIO functional description .....573
10.3.1General-purpose I/O (GPIO) .....575
10.3.2I/O pin alternate function multiplexer and mapping .....576
10.3.3I/O port control registers .....576
10.3.4I/O port data registers .....577
10.3.5I/O data bitwise handling .....577
10.3.6GPIO locking mechanism .....577
10.3.7I/O alternate function input/output .....577
10.3.8External interrupt/wake-up lines .....578
10.3.9Input configuration .....578
10.3.10Output configuration .....579
10.3.11Alternate function configuration .....579
10.3.12Analog configuration .....580
10.3.13Using the HSE or LSE oscillator pins as GPIOs580
10.3.14Using the GPIO pins in the RTC supply domain581
10.3.15Privileged and unprivileged modes581
10.3.16High-speed low-voltage mode (HSLV)581
10.3.17I/O compensation cell582
10.4GPIO registers582
10.4.1GPIO port mode register (GPIOx_MODER) (x=A to H, M to P)582
10.4.2GPIO port output type register (GPIOx_OTYPER)
(x = A to G, M to P)
583
10.4.3GPIO port output speed register (GPIOx_OSPEEDR)
(x = A to G, M to P)
583
10.4.4GPIO port pull-up/pull-down register (GPIOx_PUPDR)
(x = A to G, M to P)
584
10.4.5GPIO port input data register (GPIOx_IDR) (x = A to G, M to P)584
10.4.6GPIO port output data register (GPIOx_ODR) (x = A to G, M to P)585
10.4.7GPIO port bit set/reset register (GPIOx_BSRR) (x = A to G, M to P)585
10.4.8GPIO port configuration lock register (GPIOx_LCKR)
(x = A to G, M to P)
586
10.4.9GPIO alternate function low register (GPIOx_AFRL)
(x = A to G, M to P)
587
10.4.10GPIO alternate function high register (GPIOx_AFRH)
(x = A to G, M to P)
588
10.4.11GPIO port bit reset register (GPIOx_BRR) (x = A to G, M to P)589
10.4.12GPIO register map590
11Peripheral interconnect592
11.1Introduction592
11.2Connection summary592
11.3Interconnection details594
11.3.1Master to slave interconnection for timers594
11.3.2Triggers to ADCs595
11.3.3ADC analog watchdogs as triggers to timers596
11.3.4Triggers on ADF1596
11.3.5Internal input and clock sources to timers596
11.3.6Triggers to low-power timers597
11.3.7RTC wake-up as inputs to timers598
11.3.8USB OTG SOF as trigger to timers598
11.3.9System errors as break signals to timers598
11.3.10Triggers to GPDMA/HPDMA599
11.3.11Internal analog signals to analog peripherals599
11.3.12ADC data filtering by the ADF1600
11.3.13Internal tamper sources600
11.3.14Output from tamper to RTC601
11.3.15Encryption keys to AES/SAES601
12General purpose direct memory access controller (GPDMA)602
12.1GPDMA introduction602
12.2GPDMA main features602
12.3GPDMA implementation603
12.3.1GPDMA channels603
12.3.2GPDMA in low-power modes604
12.3.3GPDMA requests604
12.3.4GPDMA block requests607
12.3.5GPDMA channels with peripheral early termination607
12.3.6GPDMA triggers608
12.4GPDMA functional description610
12.4.1GPDMA block diagram610
12.4.2GPDMA channel state and direct programming without any linked-list610
12.4.3GPDMA channel suspend and resume611
12.4.4GPDMA channel abort and restart612
12.4.5GPDMA linked-list data structure613
12.4.6Linked-list item transfer execution616
12.4.7GPDMA channel state and linked-list programming in run-to-completion mode616
12.4.8GPDMA channel state and linked-list programming in link step mode620
12.4.9GPDMA channel state and linked-list programming627
12.4.10GPDMA FIFO-based transfers629
12.4.11GPDMA transfer request and arbitration636
12.4.12GPDMA triggered transfer640
12.4.13GPDMA circular buffering with linked-list programming641
12.4.14GPDMA transfer in peripheral flow-control mode643
12.4.15GPDMA privileged/unprivileged channel644
12.4.16GPDMA error management644
12.5GPDMA in debug mode .....646
12.6GPDMA in low-power modes .....646
12.7GPDMA interrupts .....647
12.8GPDMA registers .....648
12.8.1GPDMA privileged configuration register (GPDMA_PRIVCFGR) ....648
12.8.2GPDMA configuration lock register (GPDMA_RCFGLOCKR) .....649
12.8.3GPDMA masked interrupt status register (GPDMA_MISR) .....649
12.8.4GPDMA channel x linked-list base address register
(GPDMA_CxLBAR) .....
650
12.8.5GPDMA channel x flag clear register (GPDMA_CxFCR) .....651
12.8.6GPDMA channel x status register (GPDMA_CxSR) .....652
12.8.7GPDMA channel x control register (GPDMA_CxCR) .....653
12.8.8GPDMA channel x transfer register 1 (GPDMA_CxTR1) .....655
12.8.9GPDMA channel x transfer register 2 (GPDMA_CxTR2) .....658
12.8.10GPDMA channel x block register 1 (GPDMA_CxBR1) .....662
12.8.11GPDMA channel x alternate block register 1 (GPDMA_CxBR1) ....663
12.8.12GPDMA channel x source address register (GPDMA_CxSAR) ....666
12.8.13GPDMA channel x destination address register (GPDMA_CxDAR) ..667
12.8.14GPDMA channel x transfer register 3 (GPDMA_CxTR3) .....668
12.8.15GPDMA channel x block register 2 (GPDMA_CxBR2) .....669
12.8.16GPDMA channel x linked-list address register (GPDMA_CxLLR) ....670
12.8.17GPDMA channel x alternate linked-list address register
(GPDMA_CxLLR) .....
672
12.8.18GPDMA register map .....673
13High-performance direct memory access controller (HPDMA) ....675
13.1HPDMA introduction .....675
13.2HPDMA main features .....675
13.3HPDMA implementation .....676
13.3.1HPDMA channels .....676
13.3.2HPDMA in low-power modes .....677
13.3.3HPDMA requests .....677
13.3.4HPDMA block requests .....678
13.3.5HPDMA channels with peripheral early termination .....678
13.3.6HPDMA triggers .....678
13.4HPDMA functional description .....681
13.4.1HPDMA block diagram .....681
13.4.2HPDMA channel state and direct programming without any linked-list681
13.4.3HPDMA channel suspend and resume682
13.4.4HPDMA channel abort and restart683
13.4.5HPDMA linked-list data structure684
13.4.6Linked-list item transfer execution687
13.4.7HPDMA channel state and linked-list programming in run-to-completion mode687
13.4.8HPDMA channel state and linked-list programming in link step mode691
13.4.9HPDMA channel state and linked-list programming698
13.4.10HPDMA FIFO-based transfers700
13.4.11HPDMA transfer request and arbitration716
13.4.12HPDMA triggered transfer720
13.4.13HPDMA circular buffering with linked-list programming721
13.4.14HPDMA transfer in peripheral flow-control mode723
13.4.15HPDMA privileged/unprivileged channel724
13.4.16HPDMA error management724
13.5HPDMA in debug mode726
13.6HPDMA in low-power modes726
13.7HPDMA interrupts727
13.8HPDMA registers728
13.8.1HPDMA privileged configuration register (HPDMA_PRIVCFGR)728
13.8.2HPDMA configuration lock register (HPDMA_RCFGLOCKR)729
13.8.3HPDMA masked interrupt status register (HPDMA_MISR)729
13.8.4HPDMA channel x linked-list base address register (HPDMA_CxLBAR)730
13.8.5HPDMA channel x flag clear register (HPDMA_CxFCR)731
13.8.6HPDMA channel x status register (HPDMA_CxSR)732
13.8.7HPDMA channel x control register (HPDMA_CxCR)733
13.8.8HPDMA channel x transfer register 1 (HPDMA_CxTR1)736
13.8.9HPDMA channel x transfer register 2 (HPDMA_CxTR2)739
13.8.10HPDMA channel x block register 1 (HPDMA_CxBR1)743
13.8.11HPDMA channel x alternate block register 1 (HPDMA_CxBR1)744
13.8.12HPDMA channel x source address register (HPDMA_CxSAR)747
13.8.13HPDMA channel x destination address register (HPDMA_CxDAR)749
13.8.14HPDMA channel x transfer register 3 (HPDMA_CxTR3)750
13.8.15HPDMA channel x block register 2 (HPDMA_CxBR2)751
13.8.16HPDMA channel x linked-list address register (HPDMA_CxLLR) . . . . .752
13.8.17HPDMA channel x alternate linked-list address register
(HPDMA_CxLLR) . . . . .
754
13.8.18HPDMA register map . . . . .755
14Chrom-GRC (GFXMMU) . . . . .757
14.1GFXMMU introduction . . . . .757
14.2GFXMMU main features . . . . .757
14.3GFXMMU functional and architectural description . . . . .757
14.3.1GFXMMU block diagram . . . . .757
14.3.2GFXMMU internal signals . . . . .758
14.3.3Virtual memory . . . . .758
14.3.4Packing and unpacking . . . . .760
14.3.5MMU architecture . . . . .761
14.4GTZC TZIC GFXMMU interrupts . . . . .764
14.5GFXMMU registers . . . . .765
14.5.1GFXMMU configuration register (GFXMMU_CR) . . . . .765
14.5.2GFXMMU status register (GFXMMU_SR) . . . . .767
14.5.3GFXMMU flag clear register (GFXMMU_FCR) . . . . .767
14.5.4GFXMMU default value register (GFXMMU_DVR) . . . . .768
14.5.5GFXMMU default alpha register (GFXMMU_DAR) . . . . .768
14.5.6GFXMMU buffer x configuration register (GFXMMU_BxCR) . . . . .769
14.5.7GFXMMU LUT entry x low (GFXMMU_LUTxL) . . . . .769
14.5.8GFXMMU LUT entry x high (GFXMMU_LUTxH) . . . . .770
14.5.9GFXMMU register map . . . . .770
15Chrom-ART Accelerator controller (DMA2D) . . . . .772
15.1DMA2D introduction . . . . .772
15.2DMA2D main features . . . . .772
15.3DMA2D functional description . . . . .773
15.3.1General description . . . . .773
15.3.2DMA2D internal signals . . . . .774
15.3.3DMA2D control . . . . .775
15.3.4DMA2D foreground and background FIFOs . . . . .775
15.3.5DMA2D foreground and background PFC . . . . .775
15.3.6DMA2D foreground and background CLUT interface . . . . .777
15.3.7DMA2D blender . . . . .779
15.3.8DMA2D output PFC .....779
15.3.9DMA2D output FIFO .....779
15.3.10DMA2D output FIFO byte reordering .....780
15.3.11DMA2D AXI master port timer .....782
15.3.12DMA2D transactions .....782
15.3.13DMA2D configuration .....782
15.3.14YCbCr support .....786
15.3.15DMA2D transfer control (start, suspend, abort, and completion) ....786
15.3.16Watermark .....787
15.3.17Error management .....787
15.3.18AXI dead time .....787
15.4DMA2D interrupts .....787
15.5DMA2D registers .....788
15.5.1DMA2D control register (DMA2D_CR) .....788
15.5.2DMA2D interrupt status register (DMA2D_ISR) .....790
15.5.3DMA2D interrupt flag clear register (DMA2D_IFCR) .....790
15.5.4DMA2D foreground memory address register (DMA2D_FGMAR) ...791
15.5.5DMA2D foreground offset register (DMA2D_FGOR) .....791
15.5.6DMA2D background memory address register (DMA2D_BGMAR) ..792
15.5.7DMA2D background offset register (DMA2D_BGOR) .....792
15.5.8DMA2D foreground PFC control register (DMA2D_FGPFCCR) ....793
15.5.9DMA2D foreground color register (DMA2D_FGCOLR) .....795
15.5.10DMA2D background PFC control register (DMA2D_BGPFCCR) ....795
15.5.11DMA2D background color register (DMA2D_BGCOLR) .....797
15.5.12DMA2D foreground CLUT memory address register
(DMA2D_FGCMAR) .....
797
15.5.13DMA2D background CLUT memory address register
(DMA2D_BGCMAR) .....
798
15.5.14DMA2D output PFC control register (DMA2D_OPFCCR) .....798
15.5.15DMA2D output color register (DMA2D_OCOLR) .....799
15.5.16DMA2D output color register [alternate] (DMA2D_OCOLR) .....800
15.5.17DMA2D output color register [alternate] (DMA2D_OCOLR) .....800
15.5.18DMA2D output color register [alternate] (DMA2D_OCOLR) .....801
15.5.19DMA2D output memory address register (DMA2D_OMAR) .....801
15.5.20DMA2D output offset register (DMA2D_OOR) .....802
15.5.21DMA2D number of line register (DMA2D_NLR) .....802
15.5.22DMA2D line watermark register (DMA2D_LWR) .....803
15.5.23DMA2D AXI master timer configuration register (DMA2D_AMTCR) . .803
15.5.24DMA2D foreground CLUT (DMA2D_FGCLUTx) . . . . .804
15.5.25DMA2D background CLUT (DMA2D_BGCLUTx) . . . . .804
15.5.26DMA2D register map . . . . .805
16Neo-Chrom graphic processor (GPU2D) . . . . .807
16.1GPU2D introduction . . . . .807
16.2GPU2D main features . . . . .807
16.3GPU2D general description . . . . .808
16.3.1GPU2D block diagram . . . . .808
16.3.2GPU2D pins and internal signals . . . . .808
17Texture cache (ICACHE) . . . . .810
17.1ICACHE introduction . . . . .810
17.2ICACHE main features . . . . .810
17.3ICACHE implementation . . . . .811
17.4ICACHE functional description . . . . .811
17.4.1ICACHE block diagram . . . . .812
17.4.2ICACHE reset and clocks . . . . .812
17.4.3ICACHE TAG memory . . . . .813
17.4.4Direct-mapped ICACHE (1-way cache) . . . . .814
17.4.5ICACHE enable . . . . .815
17.4.6Cacheable and noncacheable traffic . . . . .815
17.4.7Cacheable accesses . . . . .816
17.4.8ICACHE maintenance . . . . .816
17.4.9ICACHE performance monitoring . . . . .817
17.4.10ICACHE boot . . . . .817
17.5ICACHE low-power modes . . . . .817
17.6ICACHE error management and interrupts . . . . .818
17.7ICACHE registers . . . . .818
17.7.1ICACHE control register (ICACHE_CR) . . . . .818
17.7.2ICACHE status register (ICACHE_SR) . . . . .819
17.7.3ICACHE interrupt enable register (ICACHE_IER) . . . . .820
17.7.4ICACHE flag clear register (ICACHE_FCR) . . . . .820
17.7.5ICACHE hit monitor register (ICACHE_HMONR) . . . . .821
17.7.6ICACHE miss monitor register (ICACHE_MMONR) . . . . .821
17.7.7ICACHE register map .....821
18Graphic timer (GFXTIM) .....823
18.1GFXTIM introduction .....823
18.2GFXTIM main features .....823
18.3GFXTIM functional description .....823
18.3.1Block diagram .....823
18.3.2GFXTIM pins and internal signals .....824
18.3.3Clock generator .....825
18.3.4Example of clock generator configuration .....827
18.3.5Absolute timers .....831
18.3.6Relative timers .....832
18.3.7Tearing-effect detection .....833
18.3.8Event generator .....833
18.3.9Watchdog timer .....834
18.4GFXTIM interrupts .....835
18.5GFXTIM registers .....836
18.5.1GFXTIM configuration register (GFXTIM_CR) .....836
18.5.2GFXTIM clock generator configuration register (GFXTIM_CGCR) .....837
18.5.3GFXTIM timers configuration register (GFXTIM_TCR) .....839
18.5.4GFXTIM timers disable register (GFXTIM_TDR) .....840
18.5.5GFXTIM events control register (GFXTIM_EVCR) .....841
18.5.6GFXTIM events selection register (GFXTIM_EVSR) .....841
18.5.7GFXTIM watchdog timer configuration register
(GFXTIM_WDGTCR) .....
843
18.5.8GFXTIM interrupt status register (GFXTIM_ISR) .....845
18.5.9GFXTIM interrupt clear register (GFXTIM_ICR) .....846
18.5.10GFXTIM interrupt enable register (GFXTIM_IER) .....848
18.5.11GFXTIM timers status register (GFXTIM_TSR) .....850
18.5.12GFXTIM line-clock counter reload register (GFXTIM_LCCRR) .....851
18.5.13GFXTIM frame-clock counter reload register (GFXTIM_FCCRR) .....851
18.5.14GFXTIM absolute time register (GFXTIM_ATR) .....851
18.5.15GFXTIM absolute frame counter register (GFXTIM_AFCR) .....852
18.5.16GFXTIM absolute line counter register (GFXTIM_ALCR) .....852
18.5.17GFXTIM absolute frame counter compare 1 register
(GFXTIM_AFCC1R) .....
853
18.5.18GFXTIM absolute line counter compare 1 register (GFXTIM_ALCC1R) .....853
18.5.19GFXTIM absolute line counter compare 2 register (GFXTIM_ALCC2R) .....853
18.5.20GFXTIM relative frame counter 1 register (GFXTIM_RFC1R) .....854
18.5.21GFXTIM relative frame counter 1 reload register (GFXTIM_RFC1RR) .....854
18.5.22GFXTIM relative frame counter 2 register (GFXTIM_RFC2R) .....855
18.5.23GFXTIM relative frame counter 2 reload register (GFXTIM_RFC2RR) .....855
18.5.24GFXTIM watchdog counter register (GFXTIM_WDGCR) .....855
18.5.25GFXTIM watchdog reload register (GFXTIM_WDGRR) .....856
18.5.26GFXTIM watchdog pre-alarm register (GFXTIM_WDGPAR) .....856
18.5.27GFXTIM register map .....856
19Nested vectored interrupt controller (NVIC) .....859
19.1NVIC features .....859
19.1.1SysTick calibration value register .....859
19.1.2Interrupt and exception vectors .....860
20Extended interrupt and event controller (EXTI) .....867
20.1EXTI main features .....867
20.2EXTI block diagram .....867
20.2.1EXTI connections between peripherals and CPU .....868
20.3EXTI functional description .....869
20.3.1EXTI configurable event input - CPU wake-up .....870
20.3.2EXTI direct event input - CPU wake up .....871
20.4EXTI event input mapping .....872
20.5EXTI functional behavior .....874
20.5.1EXTI CPU interrupt procedure .....875
20.5.2EXTI CPU event procedure .....875
20.5.3EXTI CPU wake-up procedure .....875
20.5.4EXTI software interrupt/event trigger procedure .....875
20.6EXTI registers .....876
20.6.1EXTI rising trigger selection register (EXTI_RTSR1) .....876
20.6.2EXTI falling trigger selection register (EXTI_FTSR1) .....876
20.6.3EXTI software interrupt event register (EXTI_SWIER1) .....877
20.6.4EXTI rising trigger selection register (EXTI_RTSR2) .....877
20.6.5EXTI falling trigger selection register (EXTI_FTSR2) .....878
20.6.6EXTI software interrupt event register (EXTI_SWIER2) .....879
20.6.7EXTI interrupt mask register (EXTI_IMR1) .....880
20.6.8EXTI event mask register (EXTI_EMR1) .....881
20.6.9EXTI pending register (EXTI_PR1) .....881
20.6.10EXTI interrupt mask register (EXTI_IMR2) .....882
20.6.11EXTI event mask register (EXTI_EMR2) .....882
20.6.12EXTI pending register (EXTI_PR2) .....883
20.6.13EXTI interrupt mask register (EXTI_IMR3) .....884
20.6.14EXTI event mask register (EXTI_EMR3) .....884
20.6.15EXTI register map .....885
21Cyclic redundancy check calculation unit (CRC) .....887
21.1CRC introduction .....887
21.2CRC main features .....887
21.3CRC functional description .....888
21.3.1CRC block diagram .....888
21.3.2CRC internal signals .....888
21.3.3CRC operation .....888
21.4CRC registers .....890
21.4.1CRC data register (CRC_DR) .....890
21.4.2CRC independent data register (CRC_IDR) .....890
21.4.3CRC control register (CRC_CR) .....891
21.4.4CRC initial value (CRC_INIT) .....892
21.4.5CRC polynomial (CRC_POL) .....892
21.4.6CRC register map .....893
22CORDIC coprocessor (CORDIC) .....894
22.1CORDIC introduction .....894
22.2CORDIC main features .....894
22.3CORDIC functional description .....894
22.3.1General description .....894
22.3.2CORDIC functions .....894
22.3.3Fixed point representation .....901
22.3.4Scaling factor .....901
22.3.5Precision .....902
22.3.6Zero-overhead mode .....905
22.3.7Polling mode .....906
22.3.8Interrupt mode .....907
22.3.9DMA mode .....907
22.4CORDIC registers .....908
22.4.1CORDIC control/status register (CORDIC_CSR) .....908
22.4.2CORDIC argument register (CORDIC_WDATA) .....910
22.4.3CORDIC result register (CORDIC_RDATA) .....911
22.4.4CORDIC register map .....911
23Flexible memory controller (FMC) .....912
23.1FMC main features .....912
23.2FMC block diagram .....913
23.3FMC internal signals .....915
23.4AHB interface .....915
23.5AXI interface .....915
23.5.1Supported memories and transactions .....916
23.6External device address mapping .....917
23.6.1NOR/PSRAM address mapping .....918
23.6.2NAND flash memory address mapping .....918
23.6.3SDRAM address mapping .....919
23.7NOR flash/PSRAM controller .....923
23.7.1External memory interface signals .....924
23.7.2Supported memories and transactions .....926
23.7.3General timing rules .....927
23.7.4NOR flash/PSRAM controller asynchronous transactions .....928
23.7.5Synchronous transactions .....947
23.7.6NOR/PSRAM controller registers .....953
23.8NAND flash controller .....962
23.8.1External memory interface signals .....962
23.8.2NAND flash supported memories and transactions .....963
23.8.3Timing diagrams for NAND flash memories .....964
23.8.4NAND flash operations .....965
23.8.5NAND flash prewait feature .....966
23.8.6Computation of the error correction code (ECC)
in NAND flash memory .....
967
23.8.7NAND flash controller registers .....968
23.9SDRAM controller .....974
23.9.1SDRAM controller main features .....974
23.9.2SDRAM External memory interface signals .....974
23.9.3SDRAM controller functional description .....975
23.9.4Low-power modes .....982
23.9.5SDRAM controller registers .....984
23.9.6FMC register map .....991
24Extended-SPI interface (XSPI) .....994
24.1XSPI introduction .....994
24.2XSPI main features .....994
24.3XSPI implementation .....995
24.4XSPI functional description .....996
24.4.1XSPI block diagram .....996
24.4.2XSPI pins and internal signals .....1000
24.4.3Clock constraints .....1001
24.4.4XSPI interface to memory modes .....1001
24.4.5XSPI regular-command protocol .....1001
24.4.6XSPI regular-command protocol signal interface .....1005
24.4.7HyperBus protocol .....1010
24.4.8Specific features .....1015
24.4.9XSPI operating modes introduction .....1017
24.4.10XSPI indirect mode .....1017
24.4.11XSPI automatic status-polling mode .....1018
24.4.12XSPI memory-mapped mode .....1019
24.4.13XSPI configuration introduction .....1020
24.4.14XSPI system configuration .....1020
24.4.15XSPI device configuration .....1021
24.4.16XSPI regular-command mode configuration .....1024
24.4.17XSPI HyperBus protocol configuration .....1026
24.4.18XSPI error management .....1027
24.4.19XSPI high-speed interface and calibration .....1027
24.4.20XSPI BUSY and ABORT .....1028
24.4.21XSPI reconfiguration or deactivation .....1029
24.4.22NCS behavior .....1029
24.4.23Software control of two external memories .....1030
24.5Address alignment and data number1031
24.6XSPI interrupts1033
24.7XSPI registers1033
24.7.1XSPI control register (XSPI_CR)1033
24.7.2XSPI device configuration register 1 (XSPI_DCR1)1036
24.7.3XSPI device configuration register 2 (XSPI_DCR2)1038
24.7.4XSPI device configuration register 3 (XSPI_DCR3)1039
24.7.5XSPI device configuration register 4 (XSPI_DCR4)1039
24.7.6XSPI status register (XSPI_SR)1040
24.7.7XSPI flag clear register (XSPI_FCR)1041
24.7.8XSPI data length register (XSPI_DLR)1041
24.7.9XSPI address register (XSPI_AR)1042
24.7.10XSPI data register (XSPI_DR)1043
24.7.11XSPI polling status mask register (XSPI_PSMKR)1043
24.7.12XSPI polling status match register (XSPI_PSMAR)1044
24.7.13XSPI polling interval register (XSPI_PIR)1044
24.7.14XSPI communication configuration register (XSPI_CCR)1044
24.7.15XSPI timing configuration register (XSPI_TCR)1046
24.7.16XSPI instruction register (XSPI_IR)1047
24.7.17XSPI alternate bytes register (XSPI_ABR)1047
24.7.18XSPI low-power timeout register (XSPI_LPTR)1048
24.7.19XSPI wrap communication configuration register (XSPI_WPCCR)1048
24.7.20XSPI wrap timing configuration register (XSPI_WPTCR)1050
24.7.21XSPI wrap instruction register (XSPI_WPIR)1051
24.7.22XSPI wrap alternate byte register (XSPI_WPABR)1051
24.7.23XSPI write communication configuration register (XSPI_WCCR)1051
24.7.24XSPI write timing configuration register (XSPI_WTCR)1053
24.7.25XSPI write instruction register (XSPI_WIR)1054
24.7.26XSPI write alternate byte register (XSPI_WABR)1054
24.7.27XSPI HyperBus latency configuration register (XSPI_HLCR)1055
24.7.28XSPI full-cycle calibration configuration (XSPI_CALFCR)1055
24.7.29XSPI DLL master calibration configuration (XSPI_CALMR)1056
24.7.30XSPI DLL slave output calibration configuration (XSPI_CALSOR)1057
24.7.31XSPI DLL slave input calibration configuration (XSPI_CALSIR)1058
24.7.32XSPI register map1058

Chapters