2. Memory and bus architecture

2.1 System architecture

The architecture relies on an Arm Cortex®-M33 core optimized for execution thanks to an instruction cache having a direct access to the embedded flash memory.

This architecture also features a 32-bit multilayer AHB bus matrix that interconnects

The bus matrix provides the access from a master to a slave, enabling concurrent access, and efficient operation even when several high-speed peripherals work simultaneously. This architecture is shown in the following figure.

Figure 1. System architecture

Figure 1. System architecture diagram showing the Cortex-M33 core, caches, bus matrix, and various peripherals connected via AHB and APB buses.

The diagram illustrates the system architecture of the RM0517 microcontroller. At the top, the Cortex-M33 core (with TrustZone mainline and FPU) is connected to the system via a C-bus and an S-bus. The C-bus connects to an ICACHE (16-Kbyte) and a Fast bus. The S-bus connects to a DCACHE (8-Kbyte) and a Slow bus. Both caches feed into a large bus matrix. The matrix has multiple rows and columns, with connections to various peripherals and memory blocks. On the left, peripherals include GPDMA1, GPDMA2, ETHERNET MAC, SDMMC1, SDMMC2, OTG_HS, DMA2D, and LTDC. On the right, the matrix connects to a 128-bit AHB bus, which then branches to several memory and peripheral blocks: FLASH (4MB), MPCBB1-SRAM1 (256KB), MPCBB2-SRAM2 (128KB), MPCBB3-SRAM3 (384KB), MPCBB4-SRAM4 (384KB), MPCBB5-SRAM5 (384KB), AHB1/AHB2 peripherals, MPCWM4-BKPSRAM, MPCWM1/OTFDEC1/OCTOSPI1, MPCWM5/OTFDEC2/OCTOSPI2, MPCWM2/FMC, and AHB3/AHB4 peripherals. A legend defines symbols for bus multiplexers, master and slave interfaces, and memory protection controllers (MPCBB and MPCWM). The diagram is labeled MSv74520V2.

Figure 1. System architecture diagram showing the Cortex-M33 core, caches, bus matrix, and various peripherals connected via AHB and APB buses.

2.1.1 Fast C-bus

This bus connects the C-bus of the Cortex®-M33 core to the internal flash memory and to the bus matrix through the instruction cache. This bus is used for instruction fetch and data access to the internal memories mapped in the code region. This bus targets the internal flash memory and the internal SRAMs (SRAM1/2/3/4/5).

SRAM1/2/3/4/5 are accessible on this bus with a continuous mapping.

2.1.2 Slow C-bus

This bus connects the C-bus of the Cortex®-M33 core to the bus matrix via the instruction cache. This bus is used for instruction fetch and data access to the external memories mapped in the code region. This bus targets the external memories (FMC and OCTOSPIs).

2.1.3 S-bus

This bus connects the system bus of the Cortex®-M33 core to the bus matrix. This bus is used by the core to access data located in a peripheral or SRAM area. This bus targets the internal SRAMs (SRAM1/2/3/4/5 and BKPSRAM), the AHB1 peripherals including the APB1, APB2, AHB2, AHB3, and AHB4 peripherals.

SRAM1/2/3/4/5 are accessible on this bus with a continuous mapping.

Note: The bus matrix has a zero latency when accessing SRAM1/2/3/4/5.

2.1.4 DCACHE S-bus

This bus connects the system bus of the Cortex®-M33 core to the bus matrix through the data cache. This bus is used for instruction fetch and data access to the external memories mapped in the data region. This bus targets the external memories (FMC and OCTOSPIs).

Note: Fetching instructions through this bus is less efficient than fetching instructions through the slow C-bus.

2.1.5 GPDMA1 and GPDMA2 buses

These buses connect the four AHB master interfaces of the GPDMA1 and GPDMA2 to the bus matrix. These buses target the internal flash memory, the internal SRAMs (SRAM1/2/3/4/5 and BKPSRAM), the AHB1 peripherals including the APB1 and APB2 peripherals, the AHB2 peripherals, the AHB3 peripherals, the AHB4 peripherals, and the external memories through FMC or OCTOSPIs.

2.1.6 SDMMC1 and SDMMC2 controllers DMA buses

These buses connect the SDMMC1 and SDMMC2 DMA master interfaces to the bus matrix. They are used only by the SDMMC1 and SDMMC2 DMA to load/store data from/to the memory. These buses target the data memories: internal flash memory, internal SRAMs (SRAM1/2/3/4/5), and external memories through FMC or OCTOSPIs.

2.1.7 OTG_HS bus

This bus connects the OTG_HS master interface to the bus matrix. This bus is used only by the OTG_HS to load/store data from/to the memory. This bus targets the data memories: internal flash memory, internal SRAMs (SRAM1/2/3/4/5), and external memories through FMC or OCTOSPIs.

2.1.8 LTDC bus

This bus connects the LTDC master interface to the bus matrix. This bus is used only to load data from the memory. This bus targets the data memories: internal flash memory, internal SRAMs (SRAM1/2/3/4/5), and external memories through FMC or OCTOSPIs.

2.1.9 Bus matrix

The bus matrix manages the access arbitration between masters. The arbitration uses a round-robin algorithm. This bus matrix features a fast bus multiplexer used to connect each master to a given slave without latency (see Figure 1). For the same master, other slaves undergo a latency of at least one cycle at each new access.

2.1.10 AHB/APB bridges

The three AHB/APB bridges provide full synchronous connections between the AHB and the APB buses, allowing flexible selection of the peripheral frequency.

Refer to Section 2.3.2: Memory map and register boundary addresses for the address mapping of the peripherals connected to these bridges.

After each device reset, all peripheral clocks are disabled (except for the internal SRAMs and flash memory interfaces). Before using a peripheral, its clock must be enabled in the RCC_AHBxENR and RCC_APBxENR registers.

Note: When an 8- or 16-bit access is performed on an APB register, the access is transformed into a 32-bit access: the bridge duplicates the 8- or 16-bit data to feed the 32-bit vector.

2.1.11 Ethernet MAC

The Ethernet MAC uses a 32-bit bus, connected to the AHB bus matrix. Through the system bus matrix, it can access the internal flash memory, the internal memories, and the external memories through the OCTOSPIs and the FMC.

2.2 TrustZone® security architecture

The security architecture is based on Arm TrustZone® with the Armv8-M mainline extension. The TrustZone® security is activated by the TZEN option bit in the FLASH_OPTR register.

When the TrustZone® is enabled, the SAU (security-attribution unit) and IDAU (implementation-defined-attribution unit) define the access permissions based on secure and nonsecure states.

Based on IDAU security attribution, the flash memory, system SRAMs, and peripheral memory spaces are aliased twice for secure and nonsecure states. However, the external memory space is not aliased.

2.2.1 Default TrustZone® security state

When the TrustZone® security is activated by the TZEN option bit in the FLASH_OPTR, the default system security state is detailed below:

2.2.2 TrustZone® peripheral classification

When the TrustZone® security is active, a peripheral can be either securable or TrustZone-aware type as follows:

Refer to the GTZC TrustZone system architecture for more details.

Tables below list the securable and TrustZone-aware peripherals within the system.

Table 1. Securable peripherals by TZSC

BusPeripheral
AHB4FMC
OCTOSPI1
OCTOSPI2
OCTOSPIM
SDMMC1
SDMMC2

Table 1. Securable peripherals by TZSC (continued)

BusPeripheral
AHB2ADC1
ADC2
ADC3
ADF1
AES
DAC1
DAC2
DCMI
HASH
OTG_FS
PKA
RNG
SAES
AHB1CORDIC
CRC
DCACHE registers
DMA2D
ETHERNET
FMAC
ICACHE registers
JPEG
RAMCFG
MDF1
OTG_HS
RAMCFG

Table 1. Securable peripherals by TZSC (continued)

BusPeripheral
APB3I2C3
I2C4
I3C2
LPTIM1
LPTIM3
LPTIM4
LPTIM5
LPTIM6
LPUART1
SPI5
VREFBUF
APB2GFXTIM
LTDC
SAI1
SAI2
SPI1
SPI4
SPI6
TIM1
TIM8
TIM15
TIM16
TIM17
USART1

Table 1. Securable peripherals by TZSC (continued)

BusPeripheral
APB1CEC
COMP
CRS
DAC1
DAC2
DTS
FDCAN1
FDCAN2
FDCAN3
I2C1
I2C2
I3C1
IWDG
LPTIM2
OPAMP
SPI2S2
SPI2S3
TM2
TM3
TM4
TM5
TM6
TM7
TM12

Table 1. Securable peripherals by TZSC (continued)

BusPeripheral
APB1 (cont'd)TM13
TM14
UART4
UART5
UART7
UART8
UART9
UART12
UCPD
USART2
USART3
USART6
USART10
USART11
WWDG

Table 2. TrustZone-aware peripherals

BusPeripheral
AHB3EXTI
PWR
RCC
AHB4OTFDEC1
OTFDEC2
AHB2GPIOA
GPIOB
GPIOC
GPIOD
GPIOE
GPIOF
GPIOG
GPIOH
GPIOI
GPIOJ
GPIOK

Table 2. TrustZone-aware peripherals (continued)

BusPeripheral
AHB1DCACHE
ICACHE
FLASH
GPDMA1
GPDMA2
GTZC
APB3PLAY
RTC
SBS
TAMP

2.3 Memory organization

2.3.1 Introduction

Program memory, data memory, registers and I/O ports are organized within the same linear 4-Gbyte address space.

The bytes are coded in memory in Little Endian format. The lowest numbered byte in a word is considered the word's least significant byte and the highest numbered byte the most significant.

2.3.2 Memory map and register boundary addresses

Figure 2. Memory map based on IDAU mapping

Figure 2: Memory map based on IDAU mapping showing memory regions, boundaries, and security attributes (Nonsecure, Secure - nonsecure callable, and Reserved)

Legend:

Main Memory Map:

Address RangeRegion Name / TypeSecurity Attribute
0xFFFF FFFF - 0xE000 0000Cortex M33Nonsecure
0xE000 0000 - 0xC000 0000FMC SDRAMNonsecure
0xC000 0000 - 0xA000 0000OCTOSPI1 bankNonsecure
0xA000 0000 - 0x9000 0000FMC Bank 3Nonsecure
0x9000 0000 - 0x8000 0000OCTOSPI2 bankNonsecure
0x8000 0000 - 0x7000 0000FMC Bank 1Nonsecure
0x7000 0000 - 0x6000 0000PeripheralsSecure - nonsecure callable
0x6000 0000 - 0x5000 0000PeripheralsNonsecure
0x4000 0000 - 0x3018 0000 / 0x3000 0000SRAM 1/2/3/4/5Secure - nonsecure callable
0x3000 0000 - 0x2018 0000 / 0x2000 0000SRAM 1/2/3/4/5Nonsecure
0x2000 0000 - 0x1000 0000CodeNonsecure
0x1000 0000 - 0x0C00 0000CodeSecure - nonsecure callable
0x0C00 0000 - 0x0000 0000CodeNonsecure

Peripherals Sub-map Detail (0x4000 0000 to 0x6000 0000):

Code / Memory Sub-map Detail (0x0000 0000 to 0x2000 0000):

MSv74527V2

Figure 2: Memory map based on IDAU mapping showing memory regions, boundaries, and security attributes (Nonsecure, Secure - nonsecure callable, and Reserved)

All the memory map areas not allocated to on-chip memories and peripherals are reserved.
The following table gives the boundary addresses of the available peripherals.

Table 3. Memory map and peripheral register addresses

BusSecure boundary addressNonsecure boundary addressPeripheralRegister map
AHB40x5700 3800 - 0x57FF FFFF0x4700 3800 - 0x47FF FFFFReserved-
0x5700 3400 - 0x5700 37FF0x4700 3400 - 0x4700 37FFOCTOSPIMSection 27.6.2: OCTOSPIM register map
0x5700 2800 - 0x5700 33FF0x4700 2800 - 0x4700 33FFReserved-
0x5700 2400 - 0x5700 27FF0x4700 2400 - 0x4700 27FFOCTOSPI2Section 26.7.28: OCTOSPI register map
0x5700 1800 - 0x57FF 23FF0x4700 1800 - 0x47FF 23FFReserved-
0x5700 1400 - 0x5700 17FF0x4700 1400 - 0x4700 17FFOCTOSPI1Section 26.7.28: OCTOSPI register map
0x5700 0800 - 0x5700 13FF0x4700 0800 - 0x4700 13FFReserved-
0x5700 0400 - 0x5700 07FF0x4700 0400 - 0x4700 07FFFMCSection 25.8.6: FMC register map
0x5600 F800 - 0x5700 03FF0x4600 F800 - 0x4700 03FFReserved-
0x5600 F400 - 0x5600 F7FF0x4600 F400 - 0x4600 F7FFDLYBOS2Section 29.5.3: DLYB register map
0x5600 F000 - 0x5600 F3FF0x4600 F000 - 0x4600 F3FFDLYBOS1
0x5600 9000 - 0x5600 EFFF0x4600 9000 - 0x4600 EFFFReserved-
0x5600 8C00 - 0x5600 8FFF0x4600 8C00 - 0x4600 8FFFSDMMC2Section 28.10.21: SDMMC register map
0x5600 8800 - 0x5600 8BFF0x4600 8800 - 0x4600 8BFFDLYBSD2Section 29.5.3: DLYB register map
0x5600 8400 - 0x5600 87FF0x4600 8400 - 0x4600 87FFDLYBSD1
0x5600 8000 - 0x5600 83FF0x4600 8000 - 0x4600 83FFSDMMC1Section 28.10.21: SDMMC register map
0x5600 5800 - 0x5600 7FFF0x4600 5800 - 0x4600 7FFFReserved-
0x5600 5400 - 0x5600 57FF0x4600 5400 - 0x6400 57FFOTFDEC2Section 48.6.15: OTFDEC register map
0x5600 5000 - 0x5600 53FF0x4600 5000 - 0x4600 53FFOTFDEC1
0x5600 0000 - 0x5600 4FFF0x4600 0000 - 0x4600 4FFFReserved-

Table 3. Memory map and peripheral register addresses (continued)

BusSecure boundary addressNonsecure boundary addressPeripheralRegister map
AHB30x5402 4400 - 0x54FF FFFF0x4402 4400 - 0x44FF FFFFReserved-
0x5402 4000 - 0x5402 43FF0x4402 4000 - 0x4402 43FFDEBUGSection 71.12.5: DBGMCU register map
0x5402 2400 - 0x5402 3FFF0x4402 2400 - 0x4402 3FFFReserved-
0x5402 2000 - 0x5402 23FF0x4402 2000 - 0x4402 23FFEXTISection 20.6.33: EXTI register map
0x5402 1000 - 0x5402 1FFF0x4402 1000 - 0x4402 1FFFReserved-
0x5402 0C00 - 0x5402 0FFF0x4402 0C00 - 0x4402 0FFFRCCSection 11.8.49: RCC register map
0x5402 0800 - 0x5402 0BFF0x4402 0800 - 0x4402 0BFFPWRSection 10.11.19: PWR register map
0x5400 8400 - 0x5402 07FF0x4402 0000 - 0x4402 07FFReserved-

Table 3. Memory map and peripheral register addresses (continued)

BusSecure boundary addressNonsecure boundary addressPeripheralRegister map
APB30x5400 8400 - 0x5400 FFFF0x4400 8400 - 0x4400 FFFFReserved-
0x5400 8000 - 0x5400 83FF0x4400 8000 - 0x4400 83FFPLAYSection 24.7: PLAY register map
0x5400 7C00 - 0x5400 7FFF0x4400 7C00 - 0x4400 7FFFTAMPSection 58.6.20: TAMP register map
0x5400 7800 - 0x5400 7BFF0x4400 7800 - 0x4400 7BFFRTCSection 57.6.27: RTC register map
0x5400 7400 - 0x5400 77FF0x4400 7400 - 0x4400 77FFVREFBUFSection 33.5.3: VREFBUF register map
0x5400 5800 - 0x5400 73FF0x4400 5800 - 0x4400 73FFReserved-
0x5400 5400 - 0x5400 57FF0x4400 5400 - 0x4400 57FFLPTIM6Section 54.7.19: LPTIM register map
0x5400 5000 - 0x5400 53FF0x4400 5000 - 0x4400 53FFLPTIM5
0x5400 4C00 - 0x5400 4FFF0x4400 4C00 - 0x4400 4FFFLPTIM4
0x5400 4800 - 0x5400 4BFF0x4400 4800 - 0x4400 4BFFLPTIM3
0x5400 4400 - 0x5400 47FF0x4400 4400 - 0x4400 47FFLPTIM1
0x5400 3400 - 0x5400 43FF0x4400 3400 - 0x4400 43FFReserved-
0x5400 3000 - 0x5400 33FF0x4400 3000 - 0x4400 33FFI3C2Section 60.15.30: I3C register map
0x5400 2C00 - 0x5400 2FFF0x4400 2C00 - 0x4400 2FFFI2C4Section 59.9.12: I2C register map
0x5400 2800 - 0x5400 2BFF0x4400 2800 - 0x4400 2BFFI2C3
0x5400 2400 - 0x5400 27FF0x4400 2400 - 0x4400 27FFLPUART1Section 62.7.14: LPUART register map
0x5400 2000 - 0x5400 23FF0x4400 2000 - 0x4400 23FFSPI5Section 63.11.15: SPI/I2S register map
0x5400 0800 - 0x5400 1FFF0x4400 0800 - 0x4400 1FFFReserved-
0x5400 0400 - 0x5400 07FF0x4400 0400 - 0x4400 07FFSBSSection 14.5.20: SBS register map
0x5400 0000 - 0x5400 03FF0x4400 0000 - 0x4400 03FFReserved-

Table 3. Memory map and peripheral register addresses (continued)

BusSecure boundary addressNonsecure boundary addressPeripheralRegister map
AHB20x520C 8000 - 0x53FF FFFF0x420C 8000 - 0x43FF FFFFReserved-
0x520C 7C00 - 0x520C 7FFF0x420C 7C00 - 0x420C 7FFFCCBSection 42.7.4: CCB register map
0x520C 4000 - 0x53FF 7BFF0x420C 4000 - 0x43FF 7BFFReserved-
0x520C 2000 - 0x520C 3FFF0x420C 2000 - 0x420C 3FFFPKA +RAMSection 47.7.5: PKA register map
0x520C 1000 - 0x520C 1FFF0x420C 1000 - 0x420C 1FFFReserved-
0x520C 0C00 - 0x520C 0FFF0x420C 0C00 - 0x420C 0FFFSAESSection 44.8.21: AES register map
0x520C 0800 - 0x520C 0BFF0x420C 0800 - 0x420C 0BFFRNGSection 43.7.9: RNG register map
0x520C 0400 - 0x520C 07FF0x420C 0400 - 0x420C 07FFHASHSection 46.6.8: HASH register map
0x520C 0000 - 0x520C 03FF0x420C 0000 - 0x420C 03FFAESSection 44.8.21: AES register map
0x5208 0000 - 0x520B FFFF0x4208 0000 - 0x420B FFFFOTG_FSSection 66.15.63: OTG_FS register map
0x5204 0000 - 0x5207 FFFF0x4204 0000 - 0x4207 FFFFOTG_HSSection 67.14.63: OTG_HS register map
0x5202 DC00 - 0x5203 FFFF0x4202 DC00 - 0x4203 FFFFReserved-
0x5202 D800 - 0x5202 DBFF0x4202 D800 - 0x4202 DBFFADC3Section 30.8: ADC register map
0x5202 C800 - 0x5202 D7FF0x4202 C800 - 0x4202 D7FFADF1Section 37.8.16: ADF register map

Table 3. Memory map and peripheral register addresses (continued)

BusSecure boundary addressNonsecure boundary addressPeripheralRegister map
AHB2(cont'd)0x5202 C400 - 0x5202 C7FF0x4202 C400 - 0x4202 C7FFPSSISection 39.5.8: PSSI register map
0x5202 C000 - 0x5202 C3FF0x4202 C000 - 0x4202 C3FFDCMISection 38.5.12: DCMI register map
0x5202 8800 - 0x5202 BFFF0x4202 8800 - 0x4202 BFFFReserved-
0x5202 8400 - 0x5202 87FF0x4202 8400 - 0x4202 87FFDAC1 /DAC2Section 32.7.21: DAC register map
0x5202 8000 - 0x5202 83FF0x4202 8000 - 0x4202 83FFADC1 / ADC2Section 30.8: ADC register map
0x5202 2C00 - 0x5202 7FFF0x4202 2C00 - 0x4202 7FFFReserved-
0x5202 2800 - 0x5202 2BFF0x4202 2800 - 0x4202 2BFFGPIOKSection 13.4.14: GPIO register map
0x5202 2400 - 0x5202 27FF0x4202 2400 - 0x4202 27FFGPIOJ
0x5202 2000 - 0x5202 23FF0x4202 2000 - 0x4202 23FFGPIOI
0x5202 1C00 - 0x5202 1FFF0x4202 1C00 - 0x4202 1FFFGPIOH
0x5202 1800 - 0x5202 1BFF0x4202 1800 - 0x4202 1BFFGPIOG
0x5202 1400 - 0x5202 17FF0x4202 1400 - 0x4202 17FFGPIOF
0x5202 1000 - 0x5202 13FF0x4202 1000 - 0x4202 13FFGPIOE
0x5202 0C00 - 0x5202 0FFF0x4202 0C00 - 0x4202 0FFFGPIOD
0x5202 0800 - 0x5202 0BFF0x4202 0800 - 0x4202 0BFFGPIOC
0x5202 0400 - 0x5202 07FF0x4202 0400 - 0x4202 07FFGPIOB
0x5202 0000 - 0x5202 03FF0x4202 0000 - 0x4202 03FFGPIOA

Table 3. Memory map and peripheral register addresses (continued)

BusSecure boundary addressNonsecure boundary addressPeripheralRegister map
AHB10x5003 7400 - 0x51FF FFFF0x4003 7400 - 0x41FF FFFFReserved-
0x5003 6400 - 0x5003 73FF0x4003 6400 - 0x4003 73FFMPCWM4_BKPRAMSection 5.6.12: GTZC1 TZSC register map
0x5003 4100 - 0x5003 63FF0x4003 4100 - 0x4003 63FFReserved-
0x5003 2400 - 0x5003 40FF0x4003 2400 - 0x4003 40FFGTZC1Section 5.6.12: GTZC1 TZSC register map
0x5003 1800 - 0x5003 23FF0x4003 1800 - 0x4003 23FFReserved-
0x5003 1400 - 0x5003 17FF0x4003 1400 - 0x4003 17FFDCACHESection 9.7.11: DCACHE register map
0x5003 0800 - 0x5003 13FF0x4003 0800 - 0x4003 13FFReserved-
0x5003 0400 - 0x5003 07FF0x4003 0400 - 0x4003 07FFICACHESection 8.7.8: ICACHE register map
0x5002 C000 - 0x5003 03FF0x4002 C000 - 0x4003 03FFReserved-
0x5002 B000 - 0x5002 BFFF0x4002 B000 - 0x4002 BFFFJPEGSection 41.5.19: JPEG codec register map
0x5002 A000 - 0x5002 AFFF0x4002 A000 - 0x4002 AFFFDMA2DSection 17.5.47: DMA2D register map
0x5002 9400 - 0x5002 9FFF0x4002 9400 - 0x4002 9FFFReserved-
0x5002 8000 - 0x5002 93FF0x4002 8000 - 0x4002 93FFETHERNET MACSection 69.11.4: Ethernet MAC and MMC registers
0x5002 7000 - 0x5002 7FFF0x4002 7000 - 0x4002 7FFFReserved-
0x5002 6000 - 0x5002 6FFF0x4002 6000 - 0x4002 6FFFRAMCFGSection 6.6.13: RAMCFG register map
0x5002 5000 - 0x5002 5FFF0x4002 5000 - 0x4002 5FFFMDF1Section 36.8.21: MDF register map
0x5002 4000 - 0x5002 4FFF0x4002 4000 - 0x4002 4FFFReserved-
0x5002 3C00 - 0x5002 3FFF0x4002 3C00 - 0x4002 3FFFFMACSection 23.4.9: FMAC register map
0x5002 3800 - 0x5002 3BFF0x4002 3800 - 0x4002 3BFFCORDICSection 22.4.4: CORDIC register map
0x5002 3400 - 0x5002 37FF0x4002 3400 - 0x4002 37FFReserved-
0x5002 3000 - 0x5002 33FF0x4002 3000 - 0x4002 33FFCRCSection 21.4.6: CRC register map
0x5002 2400 - 0x5002 2FFF0x4002 2400 - 0x4002 2FFFReserved-
0x5002 2000 - 0x5002 23FF0x4002 2000 - 0x4002 23FFFLASHSection 7.12: FLASH register map and reset values
0x5002 1000 - 0x5002 1FFF0x4002 1000 - 0x4002 1FFFGPDMA2Section 16.8.20: GPDMA register map
0x5002 0000 - 0x5002 0FFF0x4002 0000 - 0x4002 0FFFGPDMA1

Table 3. Memory map and peripheral register addresses (continued)

BusSecure boundary addressNonsecure boundary addressPeripheralRegister map
APB20x5001 7800 - 0x5001 FFFF0x4001 7800 - 0x4001 FFFFReserved-
0x5001 7400 - 0x5001 77FF0x4001 7400 - 0x4001 77FFGFXTIMSection 18.5.27: GFXTIM register map
0x5001 7000 - 0x5001 73FF0x4001 7000 - 0x4001 73FFReserved-
0x5001 6C00 - 0x5001 6FFF0x4001 6C00 - 0x4001 6FFFLTDCSection 40.7.26: LTDC register map
0x5001 5C00 - 0x5001 6BFF0x4001 6400 - 0x4001 6BFFReserved-
0x5001 5800 - 0x5001 5BFF0x4001 5800 - 0x4001 5BFFSAI2Section 64.6.20: SAI register map
0x5001 5400 - 0x5001 57FF0x4001 5400 - 0x4001 57FFSAI1
0x5001 5000 - 0x5001 53FF0x4001 5000 - 0x4001 53FFSPI6Section 63.11.15: SPI/I2S register map
0x5001 4C00 - 0x5001 4FFF0x4001 4C00 - 0x4001 4FFFSPI4
0x5001 4800 - 0x5001 4BFF0x4001 4800 - 0x4001 4BFFTIM17Section 53.8.22: TIM16/TIM17 register map
0x5001 4400 - 0x5001 47FF0x4001 4400 - 0x4001 47FFTIM16
0x5001 4000 - 0x5001 43FF0x4001 4000 - 0x4001 43FFTIM15Section 53.7.23: TIM15 register map
0x5001 3C00 - 0x5001 3FFF0x4001 3C00 - 0x4001 3FFFReserved-
0x5001 3800 - 0x5001 3BFF0x4001 3800 - 0x4001 3BFFUSART1Section 61.8.16: USART register map
0x5001 3400 - 0x5001 37FF0x4001 3400 - 0x4001 37FFTIM8Section 49.6.31: TIMx register map
0x5001 3000 - 0x5001 33FF0x4001 3000 - 0x4001 33FFSPI2S1Section 63.11.15: SPI/I2S register map
0x5001 2C00 - 0x5001 2FFF0x4001 2C00 - 0x4001 2FFFTIM1Section 49.6.31: TIMx register map
0x5001 0000 - 0x5001 2BFF0x4001 0000 - 0x4001 2BFFReserved-

Table 3. Memory map and peripheral register addresses (continued)

BusSecure boundary addressNonsecure boundary addressPeripheralRegister map
APB10x5000 E000 - 0x5000 FFFF0x4000 E000 - 0x4000 FFFFReserved-
0x5000 DC00 - 0x5000 DFFF0x4000 DC00 - 0x4000 DFFFUCPD1Section 68.8.15: UCPD register map
0x5000 B800 - 0x5000 DBFF0x4000 B800 - 0x4000 DBFFReserved-
0x5000 AC00 - 0x5000 B7FF0x4000 AC00 - 0x4000 B7FFFDCAN SRAMSection 65.4.38: FDCAN register map
0x5000 A800 - 0x5000 ABFF0x4000 A800 - 0x4000 ABFFFDCAN2
0x5000 A400 - 0x5000 A7FF0x4000 A400 - 0x4000 A7FFFDCAN1
0x5000 A000 - 0x5000 A3FF0x4000 A000 - 0x4000 A3FFFDCAN3
0x5000 9800 - 0x5000 9FFF0x4000 9800 - 0x4000 9FFFReserved-
0x5000 9400 - 0x5000 97FF0x4000 9400 - 0x4000 97FFLPTIM2Section 54.7.19: LPTIM register map
0x5000 9000 - 0x5000 93FF0x4000 9000 - 0x4000 93FFReserved-
0x5000 8C00 - 0x5000 8FFF0x4000 8C00 - 0x4000 8FFFDTSSection 31.6.10: DTS register map
0x5000 8800 - 0x5000 8BFF0x4000 8800 - 0x4000 8BFFReserved-
0x5000 8400 - 0x5000 87FF0x4000 8400 - 0x4000 87FFUART12Section 61.8.16: USART register map
0x5000 8000 - 0x5000 83FF0x4000 8000 - 0x4000 83FFUART9
0x5000 7C00 - 0x5000 7FFF0x4000 7C00 - 0x4000 7FFFUART8
0x5000 7800 - 0x5000 7BFF0x4000 7800 - 0x4000 7BFFUART7
0x5000 7400 - 0x5000 77FF0x4000 7400 - 0x4000 77FFReserved-
0x5000 7000 - 0x5000 73FF0x4000 7000 - 0x4000 73FFCECSection 70.7.7: HDMI-CEC register map
0x5000 6C00 - 0x5000 6FFF0x4000 6C00 - 0x4000 6FFFUSART11Section 61.8.16: USART register map
0x5000 6800 - 0x5000 6BFF0x4000 6800 - 0x4000 6BFFUSART10
0x5000 6400 - 0x5000 67FF0x4000 6400 - 0x4000 67FFUSART6
0x5000 6000 - 0x5000 63FF0x4000 6000 - 0x4000 63FFCRSSection 12.7.5: CRS register map
0x5000 5C00 - 0x5000 5FFF0x4000 5C00 - 0x4000 5FFFI3C1Section 60.15.30: I3C register map

Table 3. Memory map and peripheral register addresses (continued)

BusSecure boundary addressNonsecure boundary addressPeripheralRegister map
APB1 (cont'd)0x5000 5800 - 0x5000 5BFF0x4000 5800 - 0x4000 5BFFI2C2Section 59.9.12: I2C register map
0x5000 5400 - 0x5000 57FF0x4000 5400 - 0x4000 57FFI2C1
0x5000 5000 - 0x5000 53FF0x4000 5000 - 0x4000 53FFUART5Section 61.8.16: USART register map
0x5000 4C00 - 0x5000 4FFF0x4000 4C00 - 0x4000 4FFFUART4
0x5000 4800 - 0x5000 4BFF0x4000 4800 - 0x4000 4BFFUSART3
0x5000 4400 - 0x5000 47FF0x4000 4400 - 0x4000 47FFUSART2
0x5000 4000 - 0x5000 43FF0x4000 4000 - 0x4000 43FFCOMP1 / COMP2Section 35.7.5: COMP register map
0x5000 3C00 - 0x5000 3FFF0x4000 3C00 - 0x4000 3FFFSPI2S3Section 63.11.15: SPI/I2S register map
0x5000 3800 - 0x5000 3BFF0x4000 3800 - 0x4000 3BFFSPI2S2
0x5000 3400 - 0x5000 37FF0x4000 3400 - 0x4000 37FFOPAMPSection 34.6.4: OPAMP register map
0x5000 3000 - 0x5000 33FF0x4000 3000 - 0x4000 33FFIWDGSection 55.7.7: IWDG register map
0x5000 2C00 - 0x5000 2FFF0x4000 2C00 - 0x4000 2FFFWWDGSection 56.6.4: WWDG register map
0x5000 2400 - 0x5000 2BFF0x4000 2400 - 0x4000 2BFFReserved-
0x5000 2000 - 0x5000 23FF0x4000 2000 - 0x4000 23FFTIM14Section 52.8.13: TIM13/TIM14 register map
0x5000 1C00 - 0x5000 1FFF0x4000 1C00 - 0x4000 1FFFTIM13
0x5000 1800 - 0x5000 1BFF0x4000 1800 - 0x4000 1BFFTIM12Section 52.7.16: TIM12 register map
0x5000 1400 - 0x5000 17FF0x4000 1400 - 0x4000 17FFTIM7Section 51.4.9: TIMx register map
0x5000 1000 - 0x5000 13FF0x4000 1000 - 0x4000 13FFTIM6
0x5000 0C00 - 0x5000 0FFF0x4000 0C00 - 0x4000 0FFFTIM5Section 50.5.31: TIMx register map
0x5000 0800 - 0x5000 0BFF0x4000 0800 - 0x4000 0BFFTIM4
0x5000 0400 - 0x5000 07FF0x4000 0400 - 0x4000 07FFTIM3
0x5000 0000 - 0x5000 03FF0x4000 0000 - 0x4000 03FFTIM2

2.3.3 Embedded SRAMs

The devices feature:

The SRAMs can be accessed as bytes, half-words (16 bits), or full words (32 bits).

The memories can be addressed both by CPU and DMAs. The CPU can access the SRAM1/2/3/4/5 through the system bus or through the C-bus, depending on the selected address. The CPU can access the BKPSRAM only through the system bus.

When the TrustZone security is enabled, all SRAMs are secure after reset. The SRAMs can be programmed as nonsecure with a block granularity. For more details, refer to Section 5: Global TrustZone® controller (GTZC).

SRAM features are detailed in Section 6.3.1: Internal SRAM features.

2.3.4 Flash memory overview

The flash memory is composed of two distinct physical areas:

The flash interface implements instruction and data access based on the AHB protocol. It also implements the logic necessary to carry out the program/erase operations controlled through the FLASH registers plus security access control features. Refer to Section 7: Embedded flash memory (FLASH) for more details.

2.3.5 Boot modes

At startup, the core jumps to the boot address configured through the BOOT0 pin, the BOOT_ADDR option bytes, the TZEN option bit, the debug request, and the product state.

If BOOT_ADDR is not yet configured, dedicated libraries (programmed during ST production), can be used for secure boot. They are located in system flash memory:

If a debugger is attached to the product, the entry point is a debug authentication policy, used to unlock the device when attached to the debugger. A digital signature must be provided to perform a regression to the product state, where debug is allowed.

Embedded bootloader

The embedded bootloader is located in the system memory, programmed by ST during production. Refer to the application note STM32 microcontroller system memory boot mode (AN2606).