RM0522-STM32C5
This document is addressed to application developers. It provides complete information on how to use the STM32C5 microcontrollers memory and peripherals.
For ordering information, mechanical, and electrical device characteristics, refer to the corresponding datasheets.
For information on the Arm® Cortex®-M33 core, refer to the corresponding Arm® Technical Reference Manual available on http://infocenter.arm.com.
The STM32C5 microcontrollers include ST state-of-the-art patented technology.
Related documents
- • STM32C53xxx datasheet (DS15125)
- • STM32C542xx datasheet (DS15135)
- • STM32C55xxx datasheet (DS14928)
- • STM32C562xx datasheet (DS14927)
- • STM32C59xxx datasheet (DS15136)
- • STM32C5A3xx datasheet (DS15137)
- • STM32C53x/C542 erratasheet (ES0676)
- • STM32C55x/C562 erratasheet (ES0661)
- • STM32C59x/C5A3 erratasheet (ES0677)
- • STM32 microcontroller system memory boot mode (AN2606)
- • STM32 Cortex®-M33 MCUs programming manual (PM0264)
Contents
| 1 | Documentation conventions | 85 |
| 1.1 | General information | 85 |
| 1.2 | List of abbreviations for registers | 85 |
| 1.3 | Register reset value | 86 |
| 1.4 | Glossary | 86 |
| 2 | Memory and bus architecture | 87 |
| 2.1 | System architecture | 87 |
| 2.1.1 | Fast C-bus | 88 |
| 2.1.2 | Slow C-bus | 89 |
| 2.1.3 | S-bus | 89 |
| 2.1.4 | LPDMA1 and LPDMA2 buses | 89 |
| 2.1.5 | Bus matrix | 89 |
| 2.1.6 | AHB/APB bridges | 89 |
| 2.2 | Memory organization | 90 |
| 2.2.1 | Introduction | 90 |
| 2.2.2 | Memory map and register boundary addresses | 91 |
| 2.2.3 | Embedded SRAM | 98 |
| 2.2.4 | Flash memory overview | 98 |
| 3 | System security | 99 |
| 3.1 | Key security features | 99 |
| 3.2 | Resource isolation | 100 |
| 3.2.1 | Temporal isolation using secure hide protection (HDP) | 100 |
| 3.2.2 | Resource isolation using Cortex privileged mode | 100 |
| 3.3 | Secure execution | 101 |
| 3.3.1 | Memory protection unit (MPU) | 101 |
| 3.3.2 | Embedded flash memory write protection | 101 |
| 3.3.3 | Tamper detection and response | 101 |
| 3.4 | Secure storage | 103 |
| 3.4.1 | Hardware secret key management | 104 |
| 3.5 | Unique ID | 105 |
| 3.6 | Crypto engines | 105 |
| 3.6.1 | Cryptographic engines features ..... | 105 |
| 3.6.2 | Secure AES co-processor (SAES) ..... | 106 |
| 3.7 | Product life cycle ..... | 107 |
| 3.7.1 | Life cycle management with readout protection (RDP) ..... | 108 |
| 3.8 | Summary of protection mechanism ..... | 110 |
| 4 | Boot modes ..... | 112 |
| 4.1 | STM32C5 boot modes ..... | 112 |
| 5 | RAMs configuration controller (RAMCFG) ..... | 114 |
| 5.1 | RAMCFG introduction ..... | 114 |
| 5.2 | RAMCFG main features ..... | 114 |
| 5.3 | RAMCFG functional description ..... | 114 |
| 5.3.1 | Internal SRAMs features ..... | 114 |
| 5.3.2 | Error code correction (SRAM2) ..... | 115 |
| 5.3.3 | Write protection (SRAM2) ..... | 116 |
| 5.3.4 | Software erase ..... | 116 |
| 5.4 | RAMCFG low-power modes ..... | 117 |
| 5.5 | RAMCFG interrupts ..... | 117 |
| 5.6 | RAMCFG registers ..... | 118 |
| 5.6.1 | RAMCFG memory x control register (RAMCFG_MxCR) ..... | 118 |
| 5.6.2 | RAMCFG memory x interrupt status register (RAMCFG_MxISR) .... | 119 |
| 5.6.3 | RAMCFG memory x erase key register (RAMCFG_MxERKEYR) .... | 119 |
| 5.6.4 | RAMCFG memory 2 interrupt enable register (RAMCFG_M2IER) .... | 120 |
| 5.6.5 | RAMCFG memory 2 ECC single error address register (RAMCFG_M2SEAR) ..... | 120 |
| 5.6.6 | RAMCFG memory 2 ECC double error address register (RAMCFG_M2DEAR) ..... | 121 |
| 5.6.7 | RAMCFG memory 2 interrupt clear register (RAMCFG_M2ICR) .... | 121 |
| 5.6.8 | RAMCFG memory 2 write protection register 1 (RAMCFG_M2WPR1) ..... | 122 |
| 5.6.9 | RAMCFG memory 2 write protection register 2 (RAMCFG_M2WPR2) ..... | 122 |
| 5.6.10 | RAMCFG memory 2 ECC key register (RAMCFG_M2ECCKEYR) ..... | 122 |
| 5.6.11 | RAMCFG memory 2 write protection register 3 (RAMCFG_M2WPR3) ..... | 123 |
| 5.6.12 | RAMCFG memory 2 write protection register 4 (RAMCFG_M2WPR4) ..... | 123 |
| 5.6.13 | RAMCFG register map ..... | 124 |
| 6 | Embedded flash memory (FLASH) ..... | 126 |
| 6.1 | FLASH introduction ..... | 126 |
| 6.2 | FLASH main features ..... | 126 |
| 6.3 | FLASH functional description ..... | 127 |
| 6.3.1 | FLASH block diagram ..... | 127 |
| 6.3.2 | FLASH signals ..... | 127 |
| 6.3.3 | Flash memory architecture and usage ..... | 129 |
| 6.3.4 | FLASH read operations ..... | 131 |
| 6.3.5 | FLASH program operations ..... | 133 |
| 6.3.6 | FLASH erase operations ..... | 136 |
| 6.3.7 | FLASH parallel operations ..... | 138 |
| 6.3.8 | Flash memory error protections ..... | 138 |
| 6.3.9 | OTP and RO memory access ..... | 138 |
| 6.3.10 | FLASH data area ..... | 141 |
| 6.3.11 | FLASH bank swapping ..... | 142 |
| 6.3.12 | FLASH reset and clocks ..... | 147 |
| 6.4 | FLASH option bytes ..... | 149 |
| 6.4.1 | About option bytes ..... | 149 |
| 6.4.2 | Option-byte loading ..... | 149 |
| 6.4.3 | Option-byte modification ..... | 150 |
| 6.4.4 | Option-byte overview ..... | 151 |
| 6.4.5 | Description of user and system option bytes ..... | 152 |
| 6.4.6 | Description of data protection option bytes ..... | 153 |
| 6.4.7 | Description of data FLASH option bytes ..... | 153 |
| 6.4.8 | Description of boot-address option byte ..... | 154 |
| 6.4.9 | Specific rules for modifying option bytes ..... | 154 |
| 6.5 | FLASH security and protections ..... | 155 |
| 6.5.1 | Hide protection (HDP) ..... | 155 |
| 6.5.2 | Flash memory register privileged and unprivileged modes ..... | 157 |
| 6.5.3 | Flash memory banks attributes in case of bank swap ..... | 157 |
| 6.5.4 | Flash memory configuration protection ..... | 158 |
| 6.5.5 | Write protection ..... | 159 |
| 6.5.6 | FLASH data area protections ..... | 159 |
| 6.5.7 | RDP protection and life cycle management . . . . . | 159 |
| 6.5.8 | RDP level transitions . . . . . | 160 |
| 6.5.9 | OEM key management . . . . . | 161 |
| 6.5.10 | BS key management . . . . . | 162 |
| 6.5.11 | One-time-programmable and read-only memory protections . . . . . | 163 |
| 6.6 | System memory . . . . . | 163 |
| 6.6.1 | System memory introduction . . . . . | 163 |
| 6.6.2 | Bootloader user functions . . . . . | 163 |
| 6.7 | FLASH low-power modes . . . . . | 165 |
| 6.8 | FLASH error management . . . . . | 166 |
| 6.8.1 | Write protection error (WRPERR) . . . . . | 166 |
| 6.8.2 | Programming sequence error (PGSERR) . . . . . | 167 |
| 6.8.3 | Strobe error (STRBERR) . . . . . | 168 |
| 6.8.4 | Inconsistency error (INCERR) . . . . . | 168 |
| 6.8.5 | Error correction code error (ECCC/ECCD) . . . . . | 169 |
| 6.8.6 | Option-byte change error (OPTCHANGEERR) . . . . . | 171 |
| 6.8.7 | Miscellaneous HardFault errors . . . . . | 172 |
| 6.9 | FLASH interrupts . . . . . | 172 |
| 6.10 | FLASH registers . . . . . | 173 |
| 6.10.1 | FLASH access control register (FLASH_ACR) . . . . . | 174 |
| 6.10.2 | FLASH key register (FLASH_KEYR) . . . . . | 175 |
| 6.10.3 | FLASH option key register (FLASH_OPTKEYR) . . . . . | 175 |
| 6.10.4 | FLASH operation status register (FLASH_OPSR) . . . . . | 176 |
| 6.10.5 | FLASH option control register (FLASH_OPTCR) . . . . . | 177 |
| 6.10.6 | FLASH status register (FLASH_SR) . . . . . | 178 |
| 6.10.7 | FLASH control register (FLASH_CR) . . . . . | 180 |
| 6.10.8 | FLASH clear control register (FLASH_CCR) . . . . . | 183 |
| 6.10.9 | FLASH privilege configuration register (FLASH_PRIVCFGR) . . . . . | 183 |
| 6.10.10 | FLASH HDP extension register (FLASH_HDPEXTR) . . . . . | 184 |
| 6.10.11 | FLASH option status register (FLASH_OPTSR_CUR) . . . . . | 185 |
| 6.10.12 | FLASH option status register (FLASH_OPTSR_PRG) . . . . . | 186 |
| 6.10.13 | FLASH option status register 2 (FLASH_OPTSR2_CUR) . . . . . | 188 |
| 6.10.14 | FLASH option status register 2 (FLASH_OPTSR2_PRG) . . . . . | 189 |
| 6.10.15 | FLASH unique boot entry register (FLASH_BOOTR_CUR) . . . . . | 190 |
| 6.10.16 | FLASH unique boot entry address (FLASH_BOOTR_PRG) . . . . . | 190 |
| 6.10.17 | FLASH OTP block lock (FLASH_OTPBLR_CUR) . . . . . | 191 |
| 6.10.18 | FLASH OTP block lock (FLASH_OTPBLR_PRG) . . . . . | 192 |
| 6.10.19 | FLASH bootloader interface selection (FLASH_BL_COM_CFG_CUR) . . . . . | 192 |
| 6.10.20 | FLASH bootloader interface selection (FLASH_BL_COM_CFG_PRG) . . . . . | 193 |
| 6.10.21 | FLASH OEM key register 1 (FLASH_OEMKEYR1_PRG) . . . . . | 193 |
| 6.10.22 | FLASH OEM key register 2 (FLASH_OEMKEYR2_PRG) . . . . . | 194 |
| 6.10.23 | FLASH OEM key register 3 (FLASH_OEMKEYR3_PRG) . . . . . | 194 |
| 6.10.24 | FLASH OEM key register 4 (FLASH_OEMKEYR4_PRG) . . . . . | 194 |
| 6.10.25 | FLASH boundary scan key register (FLASH_BSKEYR_PRG) . . . . . | 195 |
| 6.10.26 | FLASH write page protection for bank1 (FLASH_WRP1R_CUR) . . . . | 195 |
| 6.10.27 | FLASH write-page protection for bank1 (FLASH_WRP1R_PRG) . . . . | 196 |
| 6.10.28 | FLASH HDP bank1 register (FLASH_HDP1R_CUR) . . . . . | 196 |
| 6.10.29 | FLASH HDP bank1 register (FLASH_HDP1R_PRG) . . . . . | 197 |
| 6.10.30 | FLASH ECC correction register (FLASH_ECCCORR) . . . . . | 197 |
| 6.10.31 | FLASH ECC detection register (FLASH_ECCDETR) . . . . . | 198 |
| 6.10.32 | FLASH ECC data (FLASH_ECCDR) . . . . . | 199 |
| 6.10.33 | FLASH write page protection for bank2 (FLASH_WRP2R_CUR) . . . . | 200 |
| 6.10.34 | FLASH write page protection for bank2 (FLASH_WRP2R_PRG) . . . . | 200 |
| 6.10.35 | FLASH HDP bank2 register (FLASH_HDP2R_CUR) . . . . . | 201 |
| 6.10.36 | FLASH HDP bank2 register (FLASH_HDP2R_PRG) . . . . . | 201 |
| 6.10.37 | FLASH register map . . . . . | 202 |
| 7 | Instruction cache (ICACHE) . . . . . | 207 |
| 7.1 | ICACHE introduction . . . . . | 207 |
| 7.2 | ICACHE main features . . . . . | 207 |
| 7.3 | ICACHE implementation . . . . . | 208 |
| 7.4 | ICACHE functional description . . . . . | 208 |
| 7.4.1 | ICACHE block diagram . . . . . | 209 |
| 7.4.2 | ICACHE reset and clocks . . . . . | 209 |
| 7.4.3 | ICACHE TAG memory . . . . . | 210 |
| 7.4.4 | Direct-mapped ICACHE (1-way cache) . . . . . | 211 |
| 7.4.5 | ICACHE enable . . . . . | 212 |
| 7.4.6 | Cacheable and noncacheable traffic . . . . . | 212 |
| 7.4.7 | Address remapping . . . . . | 213 |
| 7.4.8 | Cacheable accesses . . . . . | 215 |
| 7.4.9 | Dual-master cache . . . . . | 216 |
| 7.4.10 | ICACHE maintenance ..... | 216 |
| 7.4.11 | ICACHE performance monitoring ..... | 217 |
| 7.4.12 | ICACHE boot ..... | 217 |
| 7.5 | ICACHE low-power modes ..... | 217 |
| 7.6 | ICACHE error management and interrupts ..... | 218 |
| 7.7 | ICACHE registers ..... | 218 |
| 7.7.1 | ICACHE control register (ICACHE_CR) ..... | 218 |
| 7.7.2 | ICACHE status register (ICACHE_SR) ..... | 219 |
| 7.7.3 | ICACHE interrupt enable register (ICACHE_IER) ..... | 220 |
| 7.7.4 | ICACHE flag clear register (ICACHE_FCR) ..... | 220 |
| 7.7.5 | ICACHE hit monitor register (ICACHE_HMONR) ..... | 221 |
| 7.7.6 | ICACHE miss monitor register (ICACHE_MMONR) ..... | 221 |
| 7.7.7 | ICACHE region x configuration register (ICACHE_CRRx) ..... | 221 |
| 7.7.8 | ICACHE register map ..... | 222 |
| 8 | Power control (PWR) ..... | 224 |
| 8.1 | PWR introduction ..... | 224 |
| 8.2 | PWR main features ..... | 224 |
| 8.3 | PWR pins and internal signals ..... | 224 |
| 8.4 | PWR power supplies and supply domains ..... | 225 |
| 8.4.1 | External power supplies ..... | 225 |
| 8.4.2 | Internal regulator ..... | 226 |
| 8.4.3 | Independent analog peripherals supply ..... | 226 |
| 8.4.4 | RTC domain ..... | 226 |
| 8.5 | PWR system supply voltage regulation ..... | 227 |
| 8.5.1 | Embedded voltage regulator operating modes ..... | 227 |
| 8.6 | PWR power supply and temperature supervision ..... | 227 |
| 8.6.1 | Power-on reset (POR)/power-down reset (PDR) ..... | 227 |
| 8.6.2 | Programmable voltage detector (PVD) ..... | 228 |
| 8.7 | Power modes ..... | 229 |
| 8.7.1 | Slowing down system clocks ..... | 233 |
| 8.7.2 | Peripheral clock gating ..... | 233 |
| 8.7.3 | Low-power modes ..... | 233 |
| 8.7.4 | Sleep mode ..... | 234 |
| 8.7.5 | Stop 0 mode ..... | 235 |
| 8.7.6 | Stop 1 mode ..... | 237 |
| 8.7.7 | Standby mode ..... | 239 |
| 8.7.8 | Power mode output pins ..... | 242 |
| 8.8 | PWR privileged protection ..... | 242 |
| 8.9 | PWR interrupts ..... | 243 |
| 8.10 | PWR registers ..... | 243 |
| 8.10.1 | PWR power mode control register (PWR_PMCR) ..... | 243 |
| 8.10.2 | PWR status register (PWR_PMSR) ..... | 244 |
| 8.10.3 | PWR RTC domain control register (PWR_RTCCR) ..... | 245 |
| 8.10.4 | PWR voltage monitor control register (PWR_VMCR) ..... | 245 |
| 8.10.5 | PWR voltage monitor status register (PWR_VMSR) ..... | 246 |
| 8.10.6 | PWR wake-up status clear register (PWR_WUSCR) ..... | 246 |
| 8.10.7 | PWR wake-up status register (PWR_WUSR) ..... | 247 |
| 8.10.8 | PWR wake-up configuration register (PWR_WUCR) ..... | 247 |
| 8.10.9 | PWR I/O retention register (PWR_IORETR) ..... | 248 |
| 8.10.10 | PWR privilege configuration register (PWR_PRIVCFGR) ..... | 249 |
| 8.10.11 | PWR register map ..... | 249 |
| 9 | Reset and clock control (RCC) ..... | 251 |
| 9.1 | RCC introduction ..... | 251 |
| 9.2 | RCC pins and internal signals ..... | 251 |
| 9.3 | RCC reset functional description ..... | 251 |
| 9.3.1 | Power reset ..... | 251 |
| 9.3.2 | System reset ..... | 252 |
| 9.3.3 | RTC domain reset ..... | 253 |
| 9.3.4 | Reset source identification ..... | 253 |
| 9.4 | RCC clocks functional description ..... | 254 |
| 9.4.1 | HSE clock ..... | 256 |
| 9.4.2 | HSI oscillator and HSIS clock ..... | 257 |
| 9.4.3 | PSI oscillator and PSIS clock ..... | 258 |
| 9.4.4 | HSIDIV3 and PSIDIV3 clock ..... | 260 |
| 9.4.5 | HSIK and PSIK clock ..... | 260 |
| 9.4.6 | LSE clock ..... | 261 |
| 9.4.7 | LSI clock ..... | 262 |
| 9.4.8 | System clock (SYSCLK) selection ..... | 262 |
| 9.4.9 | Handling clock generators in Stop and Standby modes ..... | 262 |
| 9.4.10 | Clock security system (CSS) ..... | 263 |
| 9.4.11 | Clock output generation (MCO1/MCO2/LSCO) . . . . . | 264 |
| 9.4.12 | Kernel clock selection . . . . . | 265 |
| 9.4.13 | RTC and TAMP clock . . . . . | 271 |
| 9.4.14 | Timer clock . . . . . | 271 |
| 9.4.15 | Peripherals clock gating . . . . . | 271 |
| 9.5 | RCC privilege functional description . . . . . | 272 |
| 9.6 | RCC low-power modes . . . . . | 272 |
| 9.7 | RCC interrupts . . . . . | 273 |
| 9.8 | RCC registers . . . . . | 274 |
| 9.8.1 | RCC clock control register (RCC_CR1) . . . . . | 274 |
| 9.8.2 | RCC clock control register (RCC_CR2) . . . . . | 277 |
| 9.8.3 | RCC clock configuration register1 (RCC_CFGR1) . . . . . | 279 |
| 9.8.4 | RCC CPU domain clock configuration register 2 (RCC_CFGR2) . . . . . | 281 |
| 9.8.5 | RCC clock source interrupt enable register (RCC_CIER) . . . . . | 283 |
| 9.8.6 | RCC clock source interrupt flag register (RCC_CIFR) . . . . . | 285 |
| 9.8.7 | RCC clock source interrupt clear register (RCC_CICR) . . . . . | 286 |
| 9.8.8 | RCC AHB1 reset register (RCC_AHB1RSTR) . . . . . | 288 |
| 9.8.9 | RCC AHB2 peripheral reset register (RCC_AHB2RSTR) . . . . . | 289 |
| 9.8.10 | RCC AHB4 peripheral reset register (RCC_AHB4RSTR) . . . . . | 291 |
| 9.8.11 | RCC APB1 peripheral low reset register (RCC_APB1LRSTR) . . . . . | 291 |
| 9.8.12 | RCC APB1 peripheral high reset register (RCC_APB1HRSTR) . . . . . | 293 |
| 9.8.13 | RCC APB2 peripheral reset register (RCC_APB2RSTR) . . . . . | 294 |
| 9.8.14 | RCC APB3 peripheral reset register (RCC_APB3RSTR) . . . . . | 295 |
| 9.8.15 | RCC AHB1 peripheral clock register (RCC_AHB1ENR) . . . . . | 296 |
| 9.8.16 | RCC AHB2 peripheral clock register (RCC_AHB2ENR) . . . . . | 297 |
| 9.8.17 | RCC AHB4 peripheral clock register (RCC_AHB4ENR) . . . . . | 299 |
| 9.8.18 | RCC APB1 peripheral clock register (RCC_APB1LENR) . . . . . | 300 |
| 9.8.19 | RCC APB1 peripheral clock register (RCC_APB1HENR) . . . . . | 302 |
| 9.8.20 | RCC APB2 peripheral clock register (RCC_APB2ENR) . . . . . | 303 |
| 9.8.21 | RCC APB3 peripheral clock register (RCC_APB3ENR) . . . . . | 304 |
| 9.8.22 | RCC AHB1 sleep clock register (RCC_AHB1LPENR) . . . . . | 305 |
| 9.8.23 | RCC AHB2 sleep clock register (RCC_AHB2LPENR) . . . . . | 306 |
| 9.8.24 | RCC AHB4 peripheral sleep clock register (RCC_AHB4LPENR) . . . . . | 308 |
| 9.8.25 | RCC APB1 sleep clock register (RCC_APB1LLPENR) . . . . . | 309 |
| 9.8.26 | RCC APB1 sleep clock register (RCC_APB1HLPENR) . . . . . | 311 |
| 9.8.27 | RCC APB2 sleep clock register (RCC_APB2LPENR) . . . . . | 312 |
| 9.8.28 | RCC APB3 sleep clock register (RCC_APB3LPENR) . . . . . | 313 |
| 9.8.29 | RCC kernel clock configuration register (RCC_CCIPR1) . . . . . | 314 |
| 9.8.30 | RCC kernel clock configuration register (RCC_CCIPR2) . . . . . | 315 |
| 9.8.31 | RCC kernel clock configuration register (RCC_CCIPR3) . . . . . | 317 |
| 9.8.32 | RCC RTC domain control register (RCC_RTCCR) . . . . . | 318 |
| 9.8.33 | RCC reset status register (RCC_RSR) . . . . . | 320 |
| 9.8.34 | RCC privilege configuration register (RCC_PRIVCFGR) . . . . . | 322 |
| 9.8.35 | RCC register map . . . . . | 322 |
| 10 | Clock recovery system (CRS) . . . . . | 327 |
| 10.1 | CRS introduction . . . . . | 327 |
| 10.2 | CRS main features . . . . . | 327 |
| 10.3 | CRS implementation . . . . . | 327 |
| 10.4 | CRS functional description . . . . . | 328 |
| 10.4.1 | CRS block diagram . . . . . | 328 |
| 10.4.2 | CRS internal signals . . . . . | 328 |
| 10.4.3 | Synchronization input . . . . . | 329 |
| 10.4.4 | Frequency error measurement . . . . . | 329 |
| 10.4.5 | Frequency error evaluation and automatic trimming . . . . . | 330 |
| 10.4.6 | CRS initialization and configuration . . . . . | 331 |
| 10.5 | CRS in low-power modes . . . . . | 332 |
| 10.6 | CRS interrupts . . . . . | 332 |
| 10.7 | CRS registers . . . . . | 332 |
| 10.7.1 | CRS control register (CRS_CR) . . . . . | 332 |
| 10.7.2 | CRS configuration register (CRS_CFGR) . . . . . | 334 |
| 10.7.3 | CRS interrupt and status register (CRS_ISR) . . . . . | 335 |
| 10.7.4 | CRS interrupt flag clear register (CRS_ICR) . . . . . | 337 |
| 10.7.5 | CRS register map . . . . . | 337 |
| 11 | General-purpose I/Os (GPIO) . . . . . | 339 |
| 11.1 | GPIO introduction . . . . . | 339 |
| 11.2 | GPIO main features . . . . . | 339 |
| 11.3 | GPIO functional description . . . . . | 339 |
| 11.3.1 | General-purpose I/O (GPIO) . . . . . | 341 |
| 11.3.2 | I/O pin alternate function multiplexer and mapping . . . . . | 342 |
| 11.3.3 | I/O port control registers . . . . . | 342 |
| 11.3.4 | I/O port data registers . . . . . | 343 |
| 11.3.5 | I/O data bitwise handling | 343 |
| 11.3.6 | GPIO locking mechanism | 343 |
| 11.3.7 | I/O alternate function input/output | 343 |
| 11.3.8 | External interrupt/wake-up lines | 344 |
| 11.3.9 | Input configuration | 344 |
| 11.3.10 | Output configuration | 345 |
| 11.3.11 | Alternate function configuration | 345 |
| 11.3.12 | Analog configuration | 346 |
| 11.3.13 | Using the HSE or LSE oscillator pins as GPIOs | 346 |
| 11.3.14 | Using the GPIO pins in the RTC supply domain | 347 |
| 11.3.15 | I/Os state retention during standby mode | 347 |
| 11.3.16 | Privileged and unprivileged modes | 347 |
| 11.3.17 | I/O compensation cell | 347 |
| 11.4 | GPIO registers | 347 |
| 11.4.1 | GPIO port mode register (GPIOx_MODER) (x = A to H) | 348 |
| 11.4.2 | GPIO port output type register (GPIOx_OTYPER) (x = A to H) | 348 |
| 11.4.3 | GPIO port output speed register (GPIOx_OSPEEDR) (x = A to H) | 349 |
| 11.4.4 | GPIO port pull-up/pull-down register (GPIOx_PUPDR) (x = A to H) | 349 |
| 11.4.5 | GPIO port input data register (GPIOx_IDR) (x = A to H) | 350 |
| 11.4.6 | GPIO port output data register (GPIOx_ODR) (x = A to H) | 350 |
| 11.4.7 | GPIO port bit set/reset register (GPIOx_BSRR) (x = A to H) | 351 |
| 11.4.8 | GPIO port configuration lock register (GPIOx_LCKR) (x = A to H) | 351 |
| 11.4.9 | GPIO alternate function low register (GPIOx_AFRL) (x = A to H) | 352 |
| 11.4.10 | GPIO alternate function high register (GPIOx_AFRH) (x = A to H) | 353 |
| 11.4.11 | GPIO port bit reset register (GPIOx_BRR) (x = A to H) | 354 |
| 11.4.12 | GPIO register map | 355 |
| 12 | System configuration, boot, and security (SBS) | 357 |
| 12.1 | SBS introduction | 357 |
| 12.2 | SBS main features | 357 |
| 12.3 | SBS functional description | 357 |
| 12.3.1 | SBS block diagram | 357 |
| 12.3.2 | SBS signals | 358 |
| 12.3.3 | SBS reset and clocks | 358 |
| 12.3.4 | SBS I/O compensation cell management | 358 |
| 12.3.5 | SBS boot control | 359 |
| 12.3.6 | SBS hardware secure storage control | 360 |
| 12.4 | SBS interrupts | 361 |
| 12.5 | SBS registers | 361 |
| 12.5.1 | SBS temporal isolation control register (SBS_HDPLCR) | 361 |
| 12.5.2 | SBS temporal isolation status register (SBS_HDPLSR) | 362 |
| 12.5.3 | SBS next HDPL control register (SBS_NEXTHDPLCR) | 362 |
| 12.5.4 | SBS product mode and configuration register (SBS_PMCR) | 363 |
| 12.5.5 | SBS FPU interrupt mask register (SBS_FPUIMR) | 364 |
| 12.5.6 | SBS memory erase status register (SBS_MESR) | 365 |
| 12.5.7 | SBS compensation cell for I/Os control and status register (SBS_CCCSR) | 365 |
| 12.5.8 | SBS compensation cell for I/Os value register (SBS_CCVALR) | 366 |
| 12.5.9 | SBS compensation cell for I/Os software code register (SBS_CCWCR) | 367 |
| 12.5.10 | SBS Class B register (SBS_CFGR2) | 367 |
| 12.5.11 | SBS CPU lock register (SBS_CLCKR) | 368 |
| 12.5.12 | SBS ECC NMI mask register (SBS_ECCNMIR) | 369 |
| 12.5.13 | SBS register map | 369 |
| 13 | Peripherals interconnect matrix | 371 |
| 13.1 | Interconnect matrix introduction | 371 |
| 13.2 | Connection summary | 371 |
| 13.3 | Interconnection details | 374 |
| 14 | Low-power direct memory access controller (LPDMA) | 382 |
| 14.1 | LPDMA introduction | 382 |
| 14.2 | LPDMA main features | 382 |
| 14.3 | LPDMA implementation | 383 |
| 14.3.1 | LPDMA instances | 383 |
| 14.3.2 | LPDMA channels | 383 |
| 14.3.3 | LPDMA in low-power modes | 384 |
| 14.3.4 | LPDMA requests | 384 |
| 14.3.5 | LPDMA block requests | 387 |
| 14.3.6 | LPDMA channels with peripheral early termination | 387 |
| 14.3.7 | LPDMA triggers | 388 |
| 14.4 | LPDMA functional description | 390 |
| 14.4.1 | LPDMA block diagram | 390 |
| 14.4.2 | LPDMA channel state and direct programming without any linked-list | 390 |
| 14.4.3 | LPDMA channel suspend and resume | 391 |
| 14.4.4 | LPDMA channel abort and restart | 392 |
| 14.4.5 | LPDMA linked-list data structure | 393 |
| 14.4.6 | Linked-list item transfer execution | 395 |
| 14.4.7 | LPDMA channel state and linked-list programming in run-to-completion mode | 395 |
| 14.4.8 | LPDMA channel state and linked-list programming in link step mode | 400 |
| 14.4.9 | LPDMA channel state and linked-list programming | 406 |
| 14.4.10 | LPDMA direct transfers | 408 |
| 14.4.11 | LPDMA transfer request and arbitration | 410 |
| 14.4.12 | LPDMA triggered transfer | 414 |
| 14.4.13 | LPDMA circular buffering with linked-list programming | 415 |
| 14.4.14 | LPDMA transfer in peripheral flow-control mode | 417 |
| 14.4.15 | LPDMA privileged/unprivileged channel | 418 |
| 14.4.16 | LPDMA error management | 418 |
| 14.5 | LPDMA in debug mode | 420 |
| 14.6 | LPDMA in low-power modes | 420 |
| 14.7 | LPDMA interrupts | 420 |
| 14.8 | LPDMA registers | 422 |
| 14.8.1 | LPDMA privileged configuration register (LPDMA_PRIVCFGR) | 422 |
| 14.8.2 | LPDMA configuration lock register (LPDMA_RCFGLOCKR) | 423 |
| 14.8.3 | LPDMA masked interrupt status register (LPDMA_MISR) | 423 |
| 14.8.4 | LPDMA channel x linked-list base address register (LPDMA_CxLBAR) | 424 |
| 14.8.5 | LPDMA channel x flag clear register (LPDMA_CxFCR) | 424 |
| 14.8.6 | LPDMA channel x status register (LPDMA_CxSR) | 425 |
| 14.8.7 | LPDMA channel x control register (LPDMA_CxCR) | 426 |
| 14.8.8 | LPDMA channel x transfer register 1 (LPDMA_CxTR1) | 429 |
| 14.8.9 | LPDMA channel x transfer register 2 (LPDMA_CxTR2) | 431 |
| 14.8.10 | LPDMA channel x block register 1 (LPDMA_CxBR1) | 433 |
| 14.8.11 | LPDMA channel x source address register (LPDMA_CxSAR) | 435 |
| 14.8.12 | LPDMA channel x destination address register (LPDMA_CxDAR) | 436 |
| 14.8.13 | LPDMA channel x linked-list address register (LPDMA_CxLLR) | 437 |
| 14.8.14 | LPDMA register map | 438 |
Chapters
- 15. Nested vectored interrupt controller (NVIC) 440
- 28. Secure AES coprocessor (SAES) ..... 839
- 1. Documentation conventions
- 2. Memory and bus architecture
- 3. System security
- 4. Boot modes
- 5. RAMs configuration controller (RAMCFG)
- 6. Embedded flash memory (FLASH)
- 7. Instruction cache (ICACHE)
- 8. Power control (PWR)
- 9. Reset and clock control (RCC)
- 10. Clock recovery system (CRS)
- 11. General-purpose I/Os (GPIO)
- 12. System configuration, boot, and security (SBS)
- 13. Peripherals interconnect matrix
- 14. Low-power direct memory access controller (LPDMA)
- 15. Nested vectored interrupt controller (NVIC)
- 16. Extended interrupts and event controller (EXTI)
- 17. Cyclic redundancy check calculation unit (CRC)
- 18. CORDIC coprocessor (CORDIC)
- 19. Extended-SPI interface (XSPI)
- 20. Delay block (DLYB)
- 21. Analog-to-digital converters (ADC)
- 22. Digital-to-analog converter (DAC)
- 23. Comparator (COMP)
- 24. Operational amplifier (OPAMP)
- 25. Coupling and chaining bridge (CCB)
- 26. True random number generator (RNG)
- 27. AES hardware accelerator (AES)
- 28. Secure AES coprocessor (SAES)
- 29. Hash processor (HASH)
- 30. Public key accelerator (PKA)
- 31. Advanced-control timers (TIM1/TIM8)
- 32. General-purpose timers(TIM2/TIM3/TIM4/TIM5)
- 33. Basic timers (TIM6/TIM7)
- 34. General-purpose timers (TIM12)
- 35. General purpose timers (TIM15/TIM16/TIM17)
- 36. Low-power timer (LPTIM)
- 37. Independent watchdog (IWDG)
- 38. System window watchdog (WWDG)
- 39. Real-time clock (RTC)
- 40. Tamper and backup registers (TAMP)
- 41. Inter-integrated circuit interface (I2C)
- 42. Improved inter-integrated circuit (I3C)
- 43. Universal synchronous/asynchronous receiver transmitter (USART/UART)
- 44. Low-power universal asynchronous receiver transmitter (LPUART)
- 45. Serial peripheral interface (SPI)
- 46. FD controller area network (FDCAN)
- 47. Universal serial bus full-speed host/device interface (USB)
- 48. Ethernet (ETH): media access control (MAC) with DMA controller
- 49. Debug support (DBG)
- 50. Device electronic signature
- 51. Important security notice
- 52. Revision history
- Index