2. Memory and bus architecture

2.1 System architecture

The STM32C5 architecture relies on an Arm Cortex-M33 core, optimized for execution thanks to an instruction cache (ICACHE) that has a direct access to the embedded flash memory (FLASH).

This architecture also features a 32-bit multilayer AHB bus matrix with the interconnections details in Table 1 and Table 2.

Table 1. Implementation of masters on STM32C5 series

MasterCommentSTM32C53x/542STM32C55x/562STM32C59x/5A3
Cortex-M33 Fast C-busConnecting Cortex-M33 (with FPU) to the internal SRAMs and flash memory through ICACHEXXX
Cortex-M33 Slow C-busConnecting Cortex-M33 (with FPU) to the external memories through ICACHE--X
Cortex-M33 S-busConnecting the Cortex-M33 (with FPU) to internal SRAMs without latency2 masters
LPDMA11 master
LPDMA21 master
Ethernet MAC--X(1)

1. Not available on STM32C591xx devices.

Table 2. Implementation of slaves on STM32C5 series

SlaveCommentSTM32C53x/542STM32C55x/562STM32C59x/5A3
Flash memory-XXX
SRAM1-XXX
SRAM2-XXX
AHB1Peripherals including AHB and APB bridge, and APB peripherals (connected to APB1 and APB2)XXX
AHB2PeripheralsXXX
XSPI1---X

Table 2. Implementation of slaves on STM32C5 series (continued)

SlaveCommentSTM32C53x/542STM32C55x/562STM32C59x/5A3
AHB3Including AHB to APB bridge, and APB peripherals (connected to APB3)XXX
AHB4Peripherals--X

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 Figure 1.

Figure 1. System architecture

System architecture diagram showing Cortex-M33 with FPU, ICACHE, LPDMA1, LPDMA2, ETHERNET MAC, Flash memory, SRAM1, SRAM2, AHB1-4 peripherals, and a 32-bit bus matrix.

The diagram illustrates the system architecture of the STM32C5 series. At the top, the Cortex-M33 with FPU is connected via a C-bus to the ICACHE (8-Kbyte) and via an S-bus to the 32-bit bus matrix. The ICACHE is connected to the bus matrix via a Slow-bus and a Fast-bus. The bus matrix is a grid of 32-bit buses with multiplexers at the intersections. Masters connected to the matrix include LPDMA1, LPDMA2, and ETHERNET MAC (shaded blue, indicating STM32C59x/C5A3x only). Slaves connected to the matrix include Flash memory, SRAM1, SRAM2, AHB1 peripherals, AHB2 peripherals, XSPI1, AHB3 peripherals, and AHB4 peripherals (shaded blue for STM32C59x/C5A3x only). A 128-bit cache refill signal is shown. A legend defines symbols: open circle for Bus multiplexer, filled circle for Fast bus multiplexer, a line with a square for Master Interface, and a line with a rectangle for Slave Interface. The diagram is labeled MSv76095V2.

System architecture diagram showing Cortex-M33 with FPU, ICACHE, LPDMA1, LPDMA2, ETHERNET MAC, Flash memory, SRAM1, SRAM2, AHB1-4 peripherals, and a 32-bit bus matrix.

2.1.1 Fast C-bus

This bus connects the C-bus of the Cortex-M33 core to the FLASH and to the bus matrix through the ICACHE. This bus is used for instruction fetch and data access to the internal memories mapped in code region. This bus targets the FLASH and the internal SRAMs (SRAM1/2).

SRAM1 and SRAM2 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 through the instruction cache. This bus is used for instruction fetch and data access to the external memories mapped in code region. This bus targets the external memories (XSPI).

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), the AHB1 peripherals (including APB1/2), AHB2, and AHB3 peripherals.

SRAM1 and SRAM2 are accessible on this bus with a continuous mapping.

2.1.4 LPDMA1 and LPDMA2 buses

These buses connect the two AHB master interfaces of LPDMA1/2 to the bus matrix. These buses target the FLASH, the internal SRAMs (SRAM1/2), the AHB1 peripherals (including APB1/2), AHB2, AHB3, and AHB4 peripherals.

2.1.5 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.6 AHB/APB bridges

The three AHB/APB bridges provide full synchronous connections between AHB and 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 internal SRAMs and FLASH). Before using a peripheral, its clock must be enabled in 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.2 Memory organization

2.2.1 Introduction

Program memory, data memory, registers and I/O ports are organized within the same linear 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 for STM32C53x/542

Memory map diagram for STM32C53x/542 showing address ranges and memory regions.

The diagram illustrates the memory map for the STM32C53x/542 microcontroller. It is organized into three main vertical sections: a high-address section (0xE000 0000 to 0xFFFF FFFF), a middle section (0x0000 0000 to 0x5000 0000), and a low-address section (0x0000 0000 to 0x1FFF FFFF). A large grey arrow points from the middle section down to the low-address section.

High-Address Section (0xE000 0000 to 0xFFFF FFFF):

Low-Address Section (0x0000 0000 to 0x5000 0000):

Very Low-Address Section (0x0000 0000 to 0x1FFF FFFF):

MSv76096V3

Memory map diagram for STM32C53x/542 showing address ranges and memory regions.

Figure 3. Memory map for STM32C55x/562

Memory map for STM32C55x/562 showing memory regions from 0x0000 0000 to 0xFFFF FFFF. The map is divided into three main sections: Cortex M33, Peripherals, and Code. The Peripherals section is further divided into SRAM2, SRAM1, and Code. The Code section is further divided into System memory, SRAM2, SRAM1, and various peripheral registers.

The memory map for STM32C55x/562 is shown below, organized by address range from 0x0000 0000 to 0xFFFF FFFF.

Address RangeRegionSub-region / Details
0xFFFF FFFF to 0xE000 0000Cortex M33
0xE000 0000 to 0x6000 0000Reserved
0x6000 0000 to 0x4000 0000Peripherals
0x4000 0000 to 0x2002 0000Reserved
0x2002 0000 to 0x2001 0000SRAM2 (64 KB)
0x2001 0000 to 0x2000 0000SRAM1 (64 KB)
0x2000 0000 to 0x0000 0000Code
0x5000 0000 to 0x4402 5000Reserved
0x4402 5000 to 0x4402 0800AHB3
0x4402 0800 to 0x4400 8000Reserved
0x4400 8000 to 0x4400 0400APB3
0x4400 0400 to 0x420C 0C00Reserved
0x420C 0C00 to 0x4202 0000AHB2
0x4202 0000 to 0x4003 0800Reserved
0x4003 0800 to 0x4002 0000AHB1
0x4002 0000 to 0x4001 6C00Reserved
0x4001 6C00 to 0x4001 2C00APB2
0x4001 2C00 to 0x4000 B000Reserved
0x4000 B000 to 0x4000 0000APB1
0x1FFF FFFF to 0x0BF8 FFFFReserved
0x0BF8 FFFF to 0x0BF8 0000System memory
0x0BF8 0000 to 0x0A02 0000Reserved
0x0A02 0000 to 0x0A01 0000SRAM2
0x0A01 0000 to 0x0A00 0000SRAM1
0x0A00 0000 to 0x0900 C000Reserved
0x0900 C000 to 0x0900 0000EDATA_EN = 0b1 (48 KB)
0x0900 0000 to 0x08FF FDFFReserved
0x08FF FDFF to 0x08FF F800RO (1.5 KB)
0x08FF F800 to 0x08FF F1FFReserved
0x08FF F1FF to 0x08FF E000OTP (4.5 KB)
0x08FF E000 to 0x0841 0000Reserved
0x0841 0000 to 0x0840 0000EDATA_EN = 0b0 (64 KB)
0x0840 0000 to 0x0808 0000Reserved
0x0808 0000 to 0x0800 0000FLASH (512KB)
0x0800 0000 to 0x0000 0000Reserved

MSv74188V3

Memory map for STM32C55x/562 showing memory regions from 0x0000 0000 to 0xFFFF FFFF. The map is divided into three main sections: Cortex M33, Peripherals, and Code. The Peripherals section is further divided into SRAM2, SRAM1, and Code. The Code section is further divided into System memory, SRAM2, SRAM1, and various peripheral registers.

Figure 4. Memory map for STM32C59x/5A3

Memory map diagram for STM32C59x/5A3 showing memory regions from 0x0000 0000 to 0xFFFFFFFF. The map is divided into three main vertical sections: Code (0x0000 0000 to 0x2000 0000), SRAM (0x2000 0000 to 0x2004 0000), and Peripherals/Reserved (0x2004 0000 to 0xFFFFFFFF). A large arrow points from the Code section to a detailed breakdown of memory regions on the right.
0xFFFFFFFFCortex M330x5000 0000Reserved
0xE000 0000Reserved0x4700 1800AHB4
0x4600 F000Reserved
0xA000 0000External memory0x4402 5000AHB3
0x9000 0000Reserved0x4402 0800Reserved
0x6000 00000x4400 8000APB3
0x4000 0000Peripherals0x4400 0400Reserved
Reserved0x420C 8000AHB2
0x2004 00000x4202 0000Reserved
0x2002 0000SRAM2 (128 KB)0x4003 0800AHB1
0x2000 0000SRAM1 (128 KB)0x4002 0000Reserved
Code0x4001 6C00APB2
0x4001 2C00Reserved
0x4000 B400APB1
0x4000 0000
0x1FFF FFFFReserved
0x0BF8 FFFFSystem memory
0x0BF8 0000Reserved
0x0A04 0000SRAM2
0x0A02 0000SRAM1
0x0A00 0000Reserved
0x0900 C000EDATA_EN = 0b1 (48 KB)
0x0900 0000Reserved
0x08FF FFFFRO (1.5 KB)
0x08FF F800Reserved
0x08FF F1FFOTP (4.5 KB)
0x08FF E000Reserved
0x0841 0000EDATA_EN = 0b0 (64 KB)
0x0840 0000Reserved
0x0810 0000FLASH (1MB)
0x0800 0000External memories
0x0000 00000x0000 0000

MSv76097V3

Memory map diagram for STM32C59x/5A3 showing memory regions from 0x0000 0000 to 0xFFFFFFFF. The map is divided into three main vertical sections: Code (0x0000 0000 to 0x2000 0000), SRAM (0x2000 0000 to 0x2004 0000), and Peripherals/Reserved (0x2004 0000 to 0xFFFFFFFF). A large arrow points from the Code section to a detailed breakdown of memory regions on the right.

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 3. Memory map and peripheral register boundary addresses

BusBoundary addressPeripheralPeripheral register mapSTM32C53x/542STM32C55x/562STM32C59x/5A3
AHB40x4700 1800 - 0x47FF FFFFReserved----
0x4700 1400 - 0x4700 17FFXSPI1XSPI register map--X
0x4600 F400 - 0x4700 13FFReserved----
0x4600 F000 - 0x4600 F3FFDLYBXS1DLYB register map--X
0x4600 0000 - 0x4600 EFFFReserved----
AHB30x4402 5000 - 0x44FF FFFFReserved----
0x4402 4000 - 0x4402 4FFFDEBUGDEBUG register mapXXX
0x4402 2400 - 0x4402 3FFFReserved----
0x4402 2000 - 0x4402 23FFEXTIEXTI register mapXXX
0x4402 1000 - 0x4402 1FFFReserved----
0x4402 0C00 - 0x4402 0FFFRCCRCC register mapXXX
0x4402 0800 - 0x4402 0BFFPWRPWR register mapXXX
0x4402 0000 - 0x4402 07FFReserved----
0x4400 8000 - 0x4400 FFFFReserved----
APB30x4400 7C00 - 0x4400 7FFFTAMPTAMP register mapXXX
0x4400 7800 - 0x4400 7BFFRTCRTC register mapXXX
0x4400 4800 - 0x4400 77FFReserved----
0x4400 4400 - 0x4400 47FFLPTIM1LPTIM1 register mapXXX
0x4400 2800 - 0x4400 43FFReserved----
0x4400 2400 - 0x4400 27FFLPUART1LPUART register mapXXX
0x4400 0800 - 0x4400 23FFReserved----
0x4400 0400 - 0x4400 07FFSBSSBS register mapXXX
0x4400 0000 - 0x4400 03FFReserved----

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

BusBoundary addressPeripheralPeripheral register mapSTM32C53x/542STM32C55x/562STM32C59x/5A3
AHB20x420C 8000 - 0x43FF FFFFReserved----
0x420C 7C00 - 0x420C 7FFFCCBCCB register map--X
0x420C 4000 - 0x420C 7BFFReserved----
0x420C 2000 - 0x420C 3FFFPKAPKA register map--X
0x420C 1000 - 0x420C 1FFFReserved----
0x420C 0C00 - 0x420C 0FFFSAESSAES register map--X
0x420C 0800 - 0x420C 0BFFRNGRNG register mapXXX
0x420C 0400 - 0x420C 07FFHASHHASH register mapXXX
0x420C 0000 - 0x420C 03FFAESAES register mapXXX
0x4202 DC00 - 0x420B FFFFReserved----
0x4202 DB00 - 0x4202 DBFFADCC3ADC register map--X
0x4202 D900 - 0x4202 DAFFReserved----
0x4202 D800 - 0x4202 D8FFADC3ADC register map--X
0x4202 8800 - 0x420B D7FFReserved----
0x4202 8400 - 0x4202 87FFDAC1DAC register mapXXX
0x4202 8300 - 0x4202 83FFADCC12ADC register mapXXX
0x4202 8200 - 0x4202 82FFReserved----
0x4202 8100 - 0x4202 81FFADC2ADC register map-XX
0x4202 8000 - 0x4202 80FFADC1ADC register mapXXX
0x4202 2000 - 0x4202 7FFFReserved----
0x4202 1C00 - 0x4202 1FFFGPIOHGPIO register mapXXX
0x4202 1800 - 0x4202 1BFFGPIOGGPIO register map--X
0x4202 1400 - 0x4202 17FFGPIOFGPIO register map--X
0x4202 1000 - 0x4202 13FFGPIOEGPIO register mapXXX
0x4202 0C00 - 0x4202 0FFFGPIOEGPIO register mapXXX
0x4202 0800 - 0x4202 0BFFGPIOCGPIO register mapXXX
0x4202 0400 - 0x4202 07FFGPIOBGPIO register mapXXX
0x4202 0000 - 0x4202 03FFGPIOAGPIO register mapXXX

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

BusBoundary addressPeripheralPeripheral register mapSTM32C53x/542STM32C55x/562STM32C59x/5A3
AHB10x4003 0800 - 0x41FF FFFFReserved----
0x4003 0400 - 0x4003 07FFICACHEICACHE register mapXXX
0x4002 9400 - 0x4003 03FFReserved----
0x4002 8000 - 0x4002 93FFETHERNET MACETHERNET register map--X
0x4002 7000 - 0x4002 7FFFReserved----
0x4002 6000 - 0x4002 6FFFRAMCFGRAMCFG register mapXXX
0x4002 3C00 - 0x4002 5FFFReserved----
0x4002 3800 - 0x4002 3BFFCORDICCORDIC register mapXXX
0x4002 3400 - 0x4002 37FFReserved----
0x4002 3000 - 0x4002 33FFCRCCRC register mapXXX
0x4002 2400 - 0x4002 2FFFReserved----
0x4002 2000 - 0x4002 23FFFLASHFLASH register mapXXX
0x4002 1000 - 0x4002 1FFFLPDMA2LPDMA register mapXXX
0x4002 0000 - 0x4002 0FFFLPDMA1XXX
APB20x4001 6C00 - 0x4001 FFFFReserved----
0x4001 6400 - 0x4001 6BFFUSB RAMUSB register mapXXX
0x4001 6000 - 0x4001 63FFUSBXXX
0x4001 4C00 - 0x4001 5FFFReserved----
0x4001 4800 - 0x4001 4BFFTIM17TIM17 register map-XX
0x4001 4400 - 0x4001 47FFTIM16TIM16 register map-XX
0x4001 4000 - 0x4001 43FFTIM15TIM15 register mapXXX
0x4001 3C00 - 0x4001 3FFFReserved----
0x4001 3800 - 0x4001 3BFFUSART1USART register mapXXX
0x4001 3400 - 0x4001 37FFTIM8TIM8 register mapXXX
0x4001 3000 - 0x4001 33FFSPI1 / I2S1SPI register mapXXX
0x4001 2C00 - 0x4001 2FFFTIM1TIM1 register mapXXX
0x4001 0000 - 0x4001 2BFFReserved----

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

BusBoundary addressPeripheralPeripheral register mapSTM32C53x/542STM32C55x/562STM32C59x/5A3
APB10x4000 B400 - 0x4000 FFFFReserved----
0x4000 AC00 - 0x4000 B3FFFDCAN SRAM(1)FDCAN register mapXXX
0x4000 A800 - 0x4000 ABFFFDCAN2FDCAN register mapX-X
0x4000 A400 - 0x4000 A7FFFDCAN1FDCAN register mapXXX
0x4000 7C00 - 0x4000 A3FFReserved----
0x4000 7800 - 0x4000 7BFFUART7USART register map--X
0x4000 6800 - 0x4000 77FFReserved----
0x4000 6400 - 0x4000 67FFUSART6USART register map--X
0x4000 6000 - 0x4000 63FFCRSCRS register mapXXX
0x4000 5C00 - 0x4000 5FFFI3C1I3C register mapXXX
0x4000 5800 - 0x4000 5BFFI2C2I2C register map-XX
0x4000 5400 - 0x4000 57FFI2C1XXX
0x4000 5000 - 0x4000 53FFUART5USART register mapXXX
0x4000 4C00 - 0x4000 4FFFUART4XXX
0x4000 4800 - 0x4000 4BFFUSART3-XX
0x4000 4400 - 0x4000 47FFUSART2XXX
0x4000 4000 - 0x4000 43FFCOMP12(2)COMP register mapXXX
0x4000 3C00 - 0x4000 3FFFSPI3 / I2S3SPI register map-XX
0x4000 3800 - 0x4000 3BFFSPI2 / I2S2XXX
0x4000 3400 - 0x4000 37FFOPAMP1OPAMP register mapX--
0x4000 3000 - 0x4000 33FFIWDGIWDG hardware configuration register (IWDG_HWCFGR)XXX
0x4000 2C00 - 0x4000 2FFFWWDGWWDG register mapXXX
0x4000 1C00 - 0x4000 2BFFReserved----
0x4000 1800 - 0x4000 1BFFTIM12TIM12 register mapXXX
0x4000 1400 - 0x4000 17FFTIM7TIM6/TIM7 register mapXXX
0x4000 1000 - 0x4000 13FFTIM6XXX
0x4000 0C00 - 0x4000 0FFFTIM5TIM5 register map-XX
0x4000 0800 - 0x4000 0BFFTIM4TIM4 register map--X
0x4000 0400 - 0x4000 07FFTIM3TIM3 register map--X
0x4000 0000 - 0x4000 03FFTIM2TIM2 register mapXXX

1. For STM32C55x/562 devices, FDCAN RAM boundary end address is 0x4000 AFFF.

  1. 2. The COMP2 peripheral is only available in STM32C53x/542.

2.2.3 Embedded SRAM

Table 4. SRAM sizes

SRAMSTM32C53x/542STM32C55x/562STM32C59x/5A3
SRAM132 Kbytes64 Kbytes128 Kbytes
SRAM232 Kbytes with ECC64 Kbytes with ECC128 Kbytes with ECC

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. 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 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 6: Embedded flash memory (FLASH) for more details.