2. Memory and bus architecture
2.1 System architecture
The STM32H503xx 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:
- • up to 7 masters:
- – Fast C-bus, connecting Cortex-M33 with FPU core C-bus to the internal SRAMs through the instruction cache
- – Cortex-M33 with FPU core S-bus (two masters connected to two internal SRAMs without latency)
- – GPDMA1 (general purpose DMA featuring two master ports)
- – GPDMA2 (general purpose DMA featuring two master ports)
- • up to 6 slaves:
- – internal flash memory (128 Kbytes)
- – internal SRAM1 (16 Kbytes)
- – internal SRAM2 (16 Kbytes)
- – AHB1 peripherals and backup RAM (2-Kbyte BKPSRAM) including AHB to APB bridges and APB peripherals (connected to APB1 and APB2)
- – AHB2 peripherals
- – AHB3 peripherals, including AHB to APB bridge and APB peripherals (connected to APB3)
The bus matrix provides 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 figure below.
Figure 1. System architecture

The diagram illustrates the system architecture of the RM0492 microcontroller. At the top left, the Cortex-M33 with FPU is connected to an 8-Kbyte ICACHE via a C-bus. The ICACHE connects to a 32-bit Bus Matrix via a Fast-bus. The Cortex-M33 also connects to the Bus Matrix via an S-bus. Two General Purpose DMA controllers, GPDMA1 and GPDMA2, each with two ports (Port 0 and Port 1), connect to the Bus Matrix. APB1 and APB2 peripherals are connected to GPDMA1 Port 1. AHB1, AHB2, and AHB3 peripherals connect directly to the Bus Matrix. The Bus Matrix is connected to several memory blocks: FLASH (128 KB), SRAM1 (16 KB), SRAM2 (16 KB), and BKPSRAM (2 KB). Protection controllers MPCBB1 and MPCBB2 are placed between the matrix and SRAM1/2, while MPCWMM is between the matrix and BKPSRAM. A 128-bit cache refill signal is shown. A legend defines symbols for bus multiplexers (open circle for C-bus, filled circle for Fast-bus) and master/slave interfaces.
MSv68871V3
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 via the instruction cache. This bus is used for instruction fetch and data access to the internal memories mapped in code region. This bus targets the internal Flash memory and the internal SRAMs (SRAM1 and SRAM2).
SRAM1 and SRAM2 are accessible on this bus with a continuous mapping.
2.1.2 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, SRAM2, and BKPSRAM), the AHB1 peripherals (including the APB1, APB2), AHB2, and AHB3 peripherals.
SRAM1 and SRAM2 are accessible on this bus with a continuous mapping.
Note: The bus matrix has a zero latency when accessing SRAM1 and SRAM2.
2.1.3 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, SRAM2, and BKPSRAM), the AHB1 peripherals (including the APB1, APB2), AHB2, and AHB3 peripherals.
2.1.4 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.5 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.2.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 interface). Before using a peripheral, its clock must be enabled in the RCC_AHBxENR and RCC_APBxENR registers.
Note: When a 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.2 Memory organization
2.2.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.2.2 Memory map and register boundary addresses
Figure 2. Memory map

The diagram illustrates the memory map of the microcontroller, organized into three main vertical sections: a primary view on the left, a peripheral and APB/AHB block view in the middle/upper right, and a code and system memory view on the lower right.
| Address Range | Memory Region |
|---|---|
| 0xE000 0000 - 0xFFFF FFFF | Cortex M33 |
| 0x6000 0000 - 0xE000 0000 | Reserved |
| 0x4000 0000 - 0x6000 0000 | Peripherals |
| 0x2000 8000 - 0x4000 0000 | Reserved |
| 0x2000 4000 - 0x2000 8000 | SRAM2 (16KB) |
| 0x2000 0000 - 0x2000 4000 | SRAM1 (16KB) |
| 0x0000 0000 - 0x2000 0000 | Code |
| Address Range | Peripheral Memory Region |
|---|---|
| 0x4402 4400 - 0x5000 0000 | Reserved |
| 0x4402 0800 - 0x4402 4400 | AHB3 |
| 0x4400 8000 - 0x4402 0800 | Reserved |
| 0x4400 0400 - 0x4400 8000 | APB3 |
| 0x420C 0C00 - 0x4400 0400 | Reserved |
| 0x4202 0000 - 0x420C 0C00 | AHB2 |
| 0x4003 6C00 - 0x4202 0000 | Reserved |
| 0x4002 0000 - 0x4003 6C00 | AHB1 |
| 0x4001 6C00 - 0x4002 0000 | Reserved |
| 0x4001 2C00 - 0x4001 6C00 | APB2 |
| 0x4000 B000 - 0x4001 2C00 | Reserved |
| 0x4000 0000 - 0x4000 B000 | APB1 |
| Address Range | Code Region Memory |
|---|---|
| 0x0BF8 FFFF - 0x1FFF FFFF | Reserved |
| 0x0BF8 0000 - 0x0BF8 FFFF | System memory |
| 0x0A00 8000 - 0x0BF8 0000 | Reserved |
| 0x0A00 4000 - 0x0A00 8000 | SRAM2 |
| 0x0A00 0000 - 0x0A00 4000 | SRAM1 |
| 0x08FF F7FF - 0x0A00 0000 | Reserved |
| 0x08FF F000 - 0x08FF F7FF | OTP (2KB) |
| 0x0802 0000 - 0x08FF F000 | Reserved |
| 0x0800 0000 - 0x0802 0000 | FLASH (128KB) |
| 0x0000 0000 - 0x0800 0000 | Reserved |
MSv68868V3
All the memory map areas that are not allocated to on-chip memories and peripherals are considered “Reserved”. The following table gives the boundary addresses of the peripherals available in the devices.
Table 1. Memory map and peripheral register boundary addresses
| Bus | Boundary address | Peripheral | Peripheral register map |
|---|---|---|---|
| AHB3 | 0x4402 4400 - 0x44FF FFFF | Reserved | - |
| 0x4402 4000 - 0x4402 43FF | DEBUG | DEBUG register map | |
| 0x4402 3000 - 0x4402 3FFF | Reserved | - | |
| 0x4402 2000 - 0x4402 23FF | EXTI | EXTI register map | |
| 0x4402 1000 - 0x4402 1FFF | Reserved | - | |
| 0x4402 0C00 - 0x4402 0FFF | RCC | RCC register map | |
| 0x4402 0800 - 0x4402 0BFF | PWR | PWR register map | |
| 0x4402 0000 - 0x4402 07FF | Reserved | - | |
| APB3 | 0x4400 8000 - 0x4400 FFFF | Reserved | - |
| 0x4400 7C00 - 0x4400 7FFF | TAMP | TAMP register map | |
| 0x4400 7800 - 0x4400 7BFF | RTC | RTC register map | |
| 0x4400 4800 - 0x4400 77FF | Reserved | - | |
| 0x4400 4400 - 0x4400 47FF | LPTIM1 | LPTIM1 register map | |
| 0x4400 3400 - 0x4400 43FF | Reserved | - | |
| 0x4400 3000 - 0x4400 33FF | I3C2 | I3C2 register map | |
| 0x4400 2800 - 0x4400 2FFF | Reserved | - | |
| 0x4400 2400 - 0x4400 27FF | LPUART1 | LPUART register map | |
| 0x4400 0800 - 0x4400 23FF | Reserved | - | |
| 0x4400 0400 - 0x4400 07FF | SBS | SBS register map | |
| 0x4400 0000 - 0x4400 03FF | Reserved | - |
| Bus | Boundary address | Peripheral | Peripheral register map |
|---|---|---|---|
| AHB2 | 0x420C 0C00 - 0x43FF FFFF | Reserved | - |
| 0x420C 0800 - 0x420C 0BFF | RNG | RNG register map | |
| 0x420C 0400 - 0x420C 07FF | HASH | HASH register map | |
| 0x4202 8800 - 0x420C 03FF | Reserved | - | |
| 0x4202 8400 - 0x4202 87FF | DAC1 | DAC register map | |
| 0x4202 8000 - 0x4202 83FF | ADC1 | ADC register map | |
| 0x4202 2000 - 0x4202 7FFF | Reserved | - | |
| 0x4202 1C00 - 0x4202 1FFF | GPIOH | GPIO register map | |
| 0x4202 1000 - 0x4202 1BFF | Reserved | - | |
| 0x4202 0C00 - 0x4202 0FFF | GPIOD | GPIO register map | |
| 0x4202 0800 - 0x4202 0BFF | GPIOC | ||
| 0x4202 0400 - 0x4202 07FF | GPIOB | ||
| 0x4202 0000 - 0x4202 03FF | GPIOA | ||
| 0x4003 6C00 - 0x41FF FFFF | Reserved | - | |
| AHB1 | 0x4003 6400 - 0x4003 6BFF | BKPSRAM | - |
| 0x4003 3400 - 0x4003 63FF | Reserved | - | |
| 0x4003 3000 - 0x4003 33FF | GTZC1_MPCBB2 | GTZC1 MPCBBz registers (z = 1 to 2) | |
| 0x4003 2C00 - 0x4003 2FFF | GTZC1_MPCBB1 | GTZC1 MPCBBz registers (z = 1 to 2) | |
| 0x4003 2800 - 0x4003 2BFF | Reserved | - | |
| 0x4003 2400 - 0x4003 27FF | GTZC1_TZSC | GTZC1 TZSC register map | |
| 0x4003 0800 - 0x4003 23FF | Reserved | - | |
| 0x4003 0400 - 0x4003 07FF | ICACHE | ICACHE register map | |
| 0x4002 7000 - 0x4003 03FF | Reserved | - | |
| 0x4002 6000 - 0x4002 6FFF | RAMCFG | RAMCFG register map | |
| 0x4002 3400 - 0x4002 5FFF | Reserved | - | |
| 0x4002 3000 - 0x4002 33FF | CRC | CRC register map | |
| 0x4002 2400 - 0x4002 2FFF | Reserved | - | |
| 0x4002 2000 - 0x4002 23FF | FLASH | FLASH register map | |
| 0x4002 1000 - 0x4002 1FFF | GPDMA2 | GPDMA register map | |
| 0x4002 0000 - 0x4002 0FFF | GPDMA1 |
| Bus | Boundary address | Peripheral | Peripheral register map |
|---|---|---|---|
| APB2 | 0x4001 6C00 - 0x4001 FFFF | Reserved | - |
| 0x4001 6400 - 0x4001 6BFF | USB RAM | USB register map | |
| 0x4001 6000 - 0x4001 63FF | USB | ||
| 0x4001 3C00 - 0x4001 5FFF | Reserved | - | |
| 0x4001 3800 - 0x4001 3BFF | USART1 | USART register map | |
| 0x4001 3400 - 0x4001 37FF | Reserved | - | |
| 0x4001 3000 - 0x4001 33FF | SPI1 / I2S1 | SPI register map | |
| 0x4001 2C00 - 0x4001 2FFF | TIM1 | TIMx register map | |
| 0x4001 0000 - 0x4001 2BFF | Reserved | - |
Table 1. Memory map and peripheral register boundary addresses (continued)
| Bus | Boundary address | Peripheral | Peripheral register map |
|---|---|---|---|
| APB1 | 0x4000 B000 - 0x4000 FFFF | Reserved | - |
| 0x4000 AC00 - 0x4000 AFFF | FDCAN SRAM | FDCAN register map | |
| 0x4000 A800 - 0x4000 ABFF | Reserved | - | |
| 0x4000 A400 - 0x4000 A7FF | FDCAN1 | FDCAN register map | |
| 0x4000 9800 - 0x4000 A3FF | Reserved | - | |
| 0x4000 9400 - 0x4000 97FF | LPTIM2 | LPTIM register map | |
| 0x4000 9000 - 0x4000 93FF | Reserved | - | |
| 0x4000 8C00 - 0x4000 8FFF | DTS | DTS register map | |
| 0x4000 6400 - 0x4000 8BFF | Reserved | - | |
| 0x4000 6000 - 0x4000 63FF | CRS | CRS register map | |
| 0x4000 5C00 - 0x4000 5FFF | I3C1 | I3C register map | |
| 0x4000 5800 - 0x4000 5BFF | I2C2 | I2C register map | |
| 0x4000 5400 - 0x4000 57FF | I2C1 | ||
| 0x4000 4C00 - 0x4000 53FF | Reserved | - | |
| 0x4000 4800 - 0x4000 4BFF | USART3 | USART register map | |
| 0x4000 4400 - 0x4000 47FF | USART2 | ||
| 0x4000 4000 - 0x4000 43FF | COMP | COMP register map | |
| 0x4000 3C00 - 0x4000 3FFF | SPI3 / I2S3 | SPI register map | |
| 0x4000 3800 - 0x4000 3BFF | SPI2 / I2S2 | ||
| 0x4000 3400 - 0x4000 37FF | OPAMP | OPAMP register map | |
| 0x4000 3000 - 0x4000 33FF | IWDG | IWDG hardware configuration register (IWDG_HWCFGR) | |
| 0x4000 2C00 - 0x4000 2FFF | WWDG | WWDG register map | |
| 0x4000 1800 - 0x4000 2BFF | Reserved | - | |
| 0x4000 1400 - 0x4000 17FF | TIM7 | TIM6/TIM7 register map | |
| 0x4000 1000 - 0x4000 13FF | TIM6 | ||
| 0x4000 0800 - 0x4000 0FFF | Reserved | - | |
| 0x4000 0400 - 0x4000 07FF | TIM3 | TIM2/TIM3 register | |
| 0x4000 0000 - 0x4000 03FF | TIM2 |
2.2.3 Embedded SRAM
The devices feature up to 32-Kbyte SRAMs:
- • 16-Kbyte SRAM1
- • 16-Kbyte SRAM2
- • 2-Kbyte BKPSRAM
These SRAMs can be accessed as bytes, half-words (16 bits), or full words (32 bits). These memories can be addressed both by CPU and DMAs.
The CPU can access the SRAM1 and SRAM2 through the system bus or through the C-bus depending on the selected address. The CPU can access the BKPSRAM through the system bus only.
SRAM features are detailed in Section 5.3.1: Internal SRAMs features.
2.2.4 Flash memory overview
The flash memory is composed of two distinct physical areas:
- • The main flash memory block that contains the application program and user data.
- • The information block that is composed of the following parts:
- – option bytes for hardware and memory protection user configuration
- – system memory that contains ST proprietary code
- – OTP (one-time programmable) area
The flash memory interface implements instruction access and data access based on the AHB protocol. It also implements the logic necessary to carry out the flash memory operations (program/erase) controlled through the flash memory registers plus security access control features. Refer to Section 7: Embedded flash memory (FLASH) for more details.