3. System and memory overview

3.1 System architecture

The STM32F302xB/C/D/E, STM32F358xC and STM32F398xE main system consists of:

The STM32F303x6/8 and STM32F328x8 main system consists of:

The interconnection uses a multilayer AHB bus architecture as shown in figures 1 to 3.

Figure 1. STM32F303xB/C and STM32F358xC system architecture

System architecture diagram for STM32F303xB/C and STM32F358xC. It shows a central BusMatrix-S with 7 master ports (M0-M6) and 7 slave ports (S0-S6). Masters include Arm Cortex-M4 (I, D, S buses), GPDMA1 (DMA), GPDMA2 (DMA), and FLASH 256 K 64 bits (via FLTIF with ICODE/DCODE). Slaves include SRAM up to 40 KB, Up to 8 KB CCM RAM, AHB dedicated to GPIO ports, ADC1 & ADC2, ADC3 & ADC4, and RCC, TSC, CRC and AHB to APB1 and APB2. Reference: MS19455V3.

Figure 1 illustrates the system architecture for STM32F303xB/C and STM32F358xC. At the center is the BusMatrix-S , which connects various system components. The Arm Cortex-M4 is connected via its I-bus, D-bus, and S-bus. Two DMA controllers, GPDMA1 and GPDMA2 , are connected via their DMA interfaces. The FLASH 256 K 64 bits is connected through an FLTIF block, which provides ICODE and DCODE signals. On the slave side, the matrix connects to SRAM up to 40 KB , Up to 8 KB CCM RAM , AHB dedicated to GPIO ports , ADC1 & ADC2 , ADC3 & ADC4 , and RCC, TSC, CRC and AHB to APB1 and APB2 . The matrix has 7 master ports (M0-M6) and 7 slave ports (S0-S6). Reference: MS19455V3.

System architecture diagram for STM32F303xB/C and STM32F358xC. It shows a central BusMatrix-S with 7 master ports (M0-M6) and 7 slave ports (S0-S6). Masters include Arm Cortex-M4 (I, D, S buses), GPDMA1 (DMA), GPDMA2 (DMA), and FLASH 256 K 64 bits (via FLTIF with ICODE/DCODE). Slaves include SRAM up to 40 KB, Up to 8 KB CCM RAM, AHB dedicated to GPIO ports, ADC1 & ADC2, ADC3 & ADC4, and RCC, TSC, CRC and AHB to APB1 and APB2. Reference: MS19455V3.

Figure 2. STM32F303x6/8 and STM32F328x8 system architecture

System architecture diagram for STM32F303x6/8 and STM32F328x8. It shows a central BusMatrix-S with 7 master ports (M0-M6) and 7 slave ports (S0-S6). Masters include Arm Cortex-M4 (I, D, S buses), GPDMA1 (DMA), and FLASH 256 K 64 bits (via FLTIF with ICODE/DCODE). Slaves include SRAM up to 12 KB, Up to 4 KB CCM RAM, AHB dedicated to GPIO ports, ADC1 & ADC2, and RCC, TSC, CRC and AHB to APB1 and APB2. Reference: MS33191V1.

Figure 2 illustrates the system architecture for STM32F303x6/8 and STM32F328x8. It features a central BusMatrix-S connecting system components. The Arm Cortex-M4 is connected via its I-bus, D-bus, and S-bus. GPDMA1 is connected via its DMA interface. The FLASH 256 K 64 bits is connected through an FLTIF block, providing ICODE and DCODE signals. On the slave side, the matrix connects to SRAM up to 12 KB , Up to 4 KB CCM RAM , AHB dedicated to GPIO ports , ADC1 & ADC2 , and RCC, TSC, CRC and AHB to APB1 and APB2 . The matrix has 7 master ports (M0-M6) and 7 slave ports (S0-S6). Reference: MS33191V1.

System architecture diagram for STM32F303x6/8 and STM32F328x8. It shows a central BusMatrix-S with 7 master ports (M0-M6) and 7 slave ports (S0-S6). Masters include Arm Cortex-M4 (I, D, S buses), GPDMA1 (DMA), and FLASH 256 K 64 bits (via FLTIF with ICODE/DCODE). Slaves include SRAM up to 12 KB, Up to 4 KB CCM RAM, AHB dedicated to GPIO ports, ADC1 & ADC2, and RCC, TSC, CRC and AHB to APB1 and APB2. Reference: MS33191V1.

Figure 3. STM32F303xDxE and STM32F398xE system architecture

Figure 3. STM32F303xDxE and STM32F398xE system architecture diagram. The diagram shows the internal architecture of the microcontroller. At the top is the Arm Cortex-M4 core connected to a BusMatrix-S. The core has four buses: I-bus (S0), D-bus (S1), S-bus (S2), and DMA (S3, S4). The BusMatrix-S is a grid with 8 columns (M0-M7) and 5 rows (S0-S4). The I-bus connects to the core and the BusMatrix. The D-bus connects to the core and the BusMatrix. The S-bus connects to the core and the BusMatrix. The DMA connects to the core and the BusMatrix. The BusMatrix connects to various peripherals: FLASH 512 K 64 bits (via FLTIF), 64KB SRAM, 16 KB CCM RAM, FMC, AHB dedicated to GPIO ports, ADC1 & ADC2, ADC3 & ADC4, and RCC, TSC, CRC and AHB to APB1 and APB2. The diagram is labeled MSV35552V1.
Figure 3. STM32F303xDxE and STM32F398xE system architecture diagram. The diagram shows the internal architecture of the microcontroller. At the top is the Arm Cortex-M4 core connected to a BusMatrix-S. The core has four buses: I-bus (S0), D-bus (S1), S-bus (S2), and DMA (S3, S4). The BusMatrix-S is a grid with 8 columns (M0-M7) and 5 rows (S0-S4). The I-bus connects to the core and the BusMatrix. The D-bus connects to the core and the BusMatrix. The S-bus connects to the core and the BusMatrix. The DMA connects to the core and the BusMatrix. The BusMatrix connects to various peripherals: FLASH 512 K 64 bits (via FLTIF), 64KB SRAM, 16 KB CCM RAM, FMC, AHB dedicated to GPIO ports, ADC1 & ADC2, ADC3 & ADC4, and RCC, TSC, CRC and AHB to APB1 and APB2. The diagram is labeled MSV35552V1.

3.1.1 S0: I-bus

This bus connects the instruction bus of the Cortex ® -M4 core to the BusMatrix. This bus is used by the core to fetch instructions. The targets of this bus are the internal Flash memory, the SRAM and the CCM SRAM.

3.1.2 S1: D-bus

This bus connects the DCode bus (literal load and debug access) of the Cortex ® -M4 core to the BusMatrix. The targets of this bus are the internal Flash memory, the SRAM and the CCM SRAM.

3.1.3 S2: S-bus

This bus connects the system bus of the Cortex ® -M4 core to the BusMatrix. This bus is used to access data located in the peripheral or SRAM area. The targets of this bus are the SRAM, the AHB to APB1/APB2 bridges, the AHB IO port and the ADC.

3.1.4 S3, S4: DMA-bus

This bus connects the AHB master interface of the DMA to the BusMatrix, which manages the access of different Masters to flash, SRAM, and peripherals.

3.1.5 BusMatrix

The BusMatrix manages the access arbitration between Masters. The arbitration uses a Round Robin algorithm. The BusMatrix is composed of five masters (CPU AHB, System bus, DCode bus, ICode bus, DMA1/2 bus) and seven slaves (FLITF, SRAM, AHB2GPIO and AHB2APB1/2 bridges, and ADC).

AHB/APB bridges

The two AHB/APB bridges provide full synchronous connections between the AHB and the two APB buses. APB1 is limited to 36 MHz. APB2 operates at full speed (72 MHz).

Refer to Section 3.2: Memory organization on page 53 for the address mapping of the peripherals connected to this bridge.

After each device reset, all peripheral clocks are disabled (except for the SRAM and FLITF). Before using a peripheral the user has to enable its clock in the RCC_AHBENR, RCC_APB2ENR or RCC_APB1ENR register.

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

3.2 Memory organization

3.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.

The addressable memory space is divided into eight main blocks, of 512 Mbytes each.

3.2.2 Memory map and register boundary addresses

All the memory map areas that are not allocated to on-chip memories and peripherals are considered “Reserved”. For the detailed mapping of available memory and register areas, refer to the following table.

The following table gives the boundary addresses of the peripherals available in the devices.

Table 2. STM32F303xB/C and STM32F358xC peripheral register boundary addresses (1)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
AHB30x5000 0400 - 0x5000 07FF1 KADC3 - ADC4Section 15.7 on page 416
0x5000 0000 - 0x5000 03FF1 KADC1 - ADC2
-0x4800 1800 - 0x4FFF FFFF~132 MReserved-
AHB20x4800 1400 - 0x4800 17FF1 KGPIOFSection 11.4.12 on page 246
0x4800 1000 - 0x4800 13FF1 KGPIOE
0x4800 0C00 - 0x4800 0FFF1 KGPIO D
0x4800 0800 - 0x4800 0BFF1 KGPIOC
0x4800 0400 - 0x4800 07FF1 KGPIOB
0x4800 0000 - 0x4800 03FF1 KGPIOA
-0x4002 4400 - 0x47FF FFFF~128 MReserved
AHB10x4002 4000 - 0x4002 43FF1 KTSCSection 19.6.11 on page 510
0x4002 3400 - 0x4002 3FFF3 KReserved-
0x4002 3000 - 0x4002 33FF1 KCRCSection 6.4.6 on page 96
0x4002 2400 - 0x4002 2FFF3 KReserved-
0x4002 2000 - 0x4002 23FF1 KFlash interfaceSection 4.6 on page 85
0x4002 1400 - 0x4002 1FFF3 KReserved-
0x4002 1000 - 0x4002 13FF1 KRCCSection 9.4.14 on page 168
0x4002 0800 - 0x4002 0FFF2 KReserved-
0x4002 0400 - 0x4002 07FF1 KDMA2Section 13.6.7 on page 288
0x4002 0000 - 0x4002 03FF1 KDMA1
-0x4001 8000 - 0x4001 FFFF32 KReserved-

Table 2. STM32F303xB/C and STM32F358xC peripheral register boundary addresses (1) (continued)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
APB20x4001 4C00 - 0x4001 7FFF13 KReserved-
0x4001 4800 - 0x4001 4BFF1 KTIM17Section 23.6.18 on page 768
0x4001 4400 - 0x4001 47FF1 KTIM16
0x4001 4000 - 0x4001 43FF1 KTIM15Section 23.5.19 on page 748
0x4001 3C00 - 0x4001 3FFF1 KReserved-
0x4001 3800 - 0x4001 3BFF1 KUSART1Section 29.8.12 on page 959
0x4001 3400 - 0x4001 37FF1 KTIM8Section 20.4.27 on page 605
0x4001 3000 - 0x4001 33FF1 KSPI1Section 30.9.10 on page 1018
0x4001 2C00 - 0x4001 2FFF1 KTIM1Section 20.4.27 on page 605
0x4001 0800 - 0x4001 2BFF9 KReserved-
0x4001 0400 - 0x4001 07FF1 KEXTISection 14.3.13 on page 308
0x4001 0000 - 0x4001 03FF1 KSYSCFG + COMP + OPAMPSection 12.1.10 on page 262 ,
Section 17.5.8 on page 470 ,
Section 18.4.5 on page 492
-0x4000 7800 - 0x4000 FFFF34 KReserved-

Table 2. STM32F303xB/C and STM32F358xC peripheral register boundary addresses (1) (continued)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
APB10x4000 7400 - 0x4000 77FF1 KDAC1Section 16.10.15 on page 444
0x4000 7000 - 0x4000 73FF1 KPWRSection 7.4.3 on page 111
0x4000 6C00 - 0x4000 6FFF1 KReserved-
0x4000 6800 - 0x4000 6BFF1 KReserved-
0x4000 6400 - 0x4000 67FF1 KbxCANSection 31.9.5 on page 1058
0x4000 6000 - 0x4000 63FF1 KUSB SRAM 512 bytesSection 32.6.3 on page 1093
0x4000 5C00 - 0x4000 5FFF1 KUSB device FS
0x4000 5800 - 0x4000 5BFF1 KI2C2Section 28.9.12 on page 893
0x4000 5400 - 0x4000 57FF1 KI2C1
0x4000 5000 - 0x4000 53FF1 KUART5Section 29.8.12 on page 959
0x4000 4C00 - 0x4000 4FFF1 KUART4
0x4000 4800 - 0x4000 4BFF1 KUSART3
0x4000 4400 - 0x4000 47FF1 KUSART2
0x4000 4000 - 0x4000 43FF1 KI2S3extSection 30.9.10 on page 1018
0x4000 3C00 - 0x4000 3FFF1 KSPI3/I2S3
0x4000 3800 - 0x4000 3BFF1 KSPI2/I2S2
0x4000 3400 - 0x4000 37FF1 KI2S2ext
0x4000 3000 - 0x4000 33FF1 KIWDGSection 25.4.6 on page 779
0x4000 2C00 - 0x4000 2FFF1 KWWDGSection 26.5.4 on page 785
0x4000 2800 - 0x4000 2BFF1 KRTCSection 27.6.20 on page 827
-0x4000 1800 - 0x4000 27FF4 KReserved-
APB10x4000 1400 - 0x4000 17FF1 KTIM7Section 22.4.9 on page 690
0x4000 1000 - 0x4000 13FF1 KTIM6
0x4000 0C00 - 0x4000 0FFF1 KReserved-
0x4000 0800 - 0x4000 0BFF1 KTIM4Section 21.4.22 on page 676
0x4000 0400 - 0x4000 07FF1 KTIM3
0x4000 0000 - 0x4000 03FF1 KTIM2
-0x2000 A000 - 3FFF FFFF~512 MReserved-
-0x2000 0000 - 0x2000 9FFF40 KSRAM-
-0x1FFF F800 - 0x1FFF FFFF2 KOption bytes-
-0x1FFF D800 - 0x1FFF F7FF8 KSystem memory-
-0x1000 2000 - 0x1FFF D7FF~256 MReserved-
-0x1000 0000 - 0x1000 1FFF8 KCCM SRAM-

Table 2. STM32F303xB/C and STM32F358xC peripheral register boundary addresses (1) (continued)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
-0x0804 0000 - 0x0FFF FFFF~128 MReserved-
-0x0800 0000 - 0x0803 FFFF256 KMain Flash memory-
-0x0004 0000 - 0x07FF FFFF~128 MReserved-
-0x0000 000 - 0x0003 FFFF256 KMain Flash memory, system memory or SRAM depending on BOOT configuration-

1. The gray color is used for reserved Flash memory addresses.

Table 3. STM32F303xD/E and STM32F398xE peripheral register boundary addresses (1)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
AHB40xA000 0400 - 0xA000 0FFF4 KFMC control registersSection 10.6.9: FMC register map
0x8000 0400 - 0x9FFF FFFF512 MFMC banks 3 and 4
0x6000 0000 - 0x7FFF FFFF512 MFMC banks 1 and 2
-0x5000 0800 - 0x5FFF FFFF384MReserved-
AHB30x5000 0400 - 0x5000 07FF1 KADC3 - ADC4Section 15.7 on page 416
0x5000 0000 - 0x5000 03FF1 KADC1 - ADC2
-0x4800 2000 - 0x4FFF FFFF~132 MReserved-
AHB20x4800 1C00 - 0x4800 1FFF1 KGPIOHSection 11.4.12 on page 246
0x4800 1800 - 0x4800 1BFF1 KGPIOG
0x4800 1400 - 0x4800 17FF1 KGPIOF
0x4800 1000 - 0x4800 13FF1 KGPIOE
0x4800 0C00 - 0x4800 0FFF1 KGPIO D
0x4800 0800 - 0x4800 0BFF1 KGPIOC
0x4800 0400 - 0x4800 07FF1 KGPIOB
0x4800 0000 - 0x4800 03FF1 KGPIOA
-0x4002 4400 - 0x47FF FFFF~128 MReserved

Table 3. STM32F303xD/E and STM32F398xE peripheral register boundary addresses (1) (continued)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
AHB10x4002 4000 - 0x4002 43FF1 KTSCSection 19.6.11 on page 510
0x4002 3400 - 0x4002 3FFF3 KReserved-
0x4002 3000 - 0x4002 33FF1 KCRCSection 6.4.6 on page 96
0x4002 2400 - 0x4002 2FFF3 KReserved-
0x4002 2000 - 0x4002 23FF1 KFlash interfaceSection 4.6 on page 85
0x4002 1400 - 0x4002 1FFF3 KReserved-
0x4002 1000 - 0x4002 13FF1 KRCCSection 9.4.14 on page 168
0x4002 0800 - 0x4002 0FFF2 KReserved-
0x4002 0400 - 0x4002 07FF1 KDMA2Section 13.6.6 on page 288
0x4002 0000 - 0x4002 03FF1 KDMA1
-0x4001 8000 - 0x4001 FFFF32 KReserved-
APB20x4001 4C00 - 0x4001 4FFF1 KReserved-
0x4001 5400 - 0x4001 7FFF11 KReserved-
0x4001 5000 - 0x4001 53FF1 KTIM20Section 23.6.18 on page 768
0x4001 4800 - 0x4001 4BFF1 KTIM17
0x4001 4400 - 0x4001 47FF1 KTIM16
0x4001 4000 - 0x4001 43FF1 KTIM15Section 23.5.19 on page 748
0x4001 3C00 - 0x4001 3FFF1 KSPI4Section 30.9.10 on page 1018
0x4001 3800 - 0x4001 3BFF1 KUSART1Section 29.8.12 on page 959
0x4001 3400 - 0x4001 37FF1 KTIM8Section 20.4.27 on page 605
0x4001 3000 - 0x4001 33FF1 KSPI1Section 30.9.10 on page 1018
0x4001 2C00 - 0x4001 2FFF1 KTIM1Section 20.4.27 on page 605
0x4001 0800 - 0x4001 2BFF9 KReserved-
0x4001 0400 - 0x4001 07FF1 KEXTISection 14.3.13 on page 308
0x4001 0000 - 0x4001 03FF1 KSYSCFG + COMP + OPAMPSection 12.1.10 on page 262 ,
Section 17.5.8 on page 470 ,
Section 18.4.5 on page 492
-0x4000 7C00 - 0x4000 FFFF33 KReserved-

Table 3. STM32F303xD/E and STM32F398xE peripheral register boundary addresses (1) (continued)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
APB10x4000 7800 - 0x4000 7BFF1 KI2C3Section 28.9.12 on page 893
0x4000 7400 - 0x4000 77FF1 KDAC1Section 16.10.15 on page 444
0x4000 7000 - 0x4000 73FF1 KPWRSection 7.4.3 on page 111
0x4000 6C00 - 0x4000 6FFF1 KReserved-
0x4000 6800 - 0x4000 6BFF1 KReserved-
0x4000 6400 - 0x4000 67FF1 KbxCANSection 31.9.5 on page 1058
0x4000 6000 - 0x4000 63FF1 KUSB/CAN SRAMSection 32.6.3 on page 1093
0x4000 5C00 - 0x4000 5FFF1 KUSB device FS
0x4000 5800 - 0x4000 5BFF1 KI2C2Section 28.9.1 on page 880
0x4000 5400 - 0x4000 57FF1 KI2C1
0x4000 5000 - 0x4000 53FF1 KUART5Section 29.8.12 on page 959
0x4000 4C00 - 0x4000 4FFF1 KUART4
0x4000 4800 - 0x4000 4BFF1 KUSART3
0x4000 4400 - 0x4000 47FF1 KUSART2
0x4000 4000 - 0x4000 43FF1 KI2S3ext
0x4000 3C00 - 0x4000 3FFF1 KSPI3/I2S3Section 30.9.10 on page 1018
0x4000 3800 - 0x4000 3BFF1 KSPI2/I2S2
0x4000 3400 - 0x4000 37FF1 KI2S2ext
0x4000 3000 - 0x4000 33FF1 KIWDGSection 25.4.6 on page 779
0x4000 2C00 - 0x4000 2FFF1 KWWDGSection 26.5.4 on page 785
0x4000 2800 - 0x4000 2BFF1 KRTCSection 27.6.20 on page 827
-0x4000 1800 - 0x4000 27FF4 KReserved-
APB10x4000 1400 - 0x4000 17FF1 KTIM7Section 22.4.9 on page 690
0x4000 1000 - 0x4000 13FF1 KTIM6
0x4000 0C00 - 0x4000 0FFF1 KReserved-
0x4000 0800 - 0x4000 0BFF1 KTIM4Section 21.4.22 on page 676
0x4000 0400 - 0x4000 07FF1 KTIM3
0x4000 0000 - 0x4000 03FF1 KTIM2
-0x2000 A000 - 3FFF FFFF~512 MReserved-
-0x2000 0000 - 0x2000 FFFF64 KSRAM-
-0x1FFF F800 - 0x1FFF FFFF2 KOption bytes-
-0x1FFF D800 - 0x1FFF F7FF8 KSystem memory-
-0x1000 2000 - 0x1FFF D7FF~256 MReserved-

Table 3. STM32F303xD/E and STM32F398xE peripheral register boundary addresses (1) (continued)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
-0x1000 0000 - 0x1000 3FFF16 KCCM SRAM-
-0x0808 0000 - 0x0FFF FFFF~128 MReserved-
-0x0800 0000 - 0x0807 FFFF512 KMain Flash memory-
-0x0008 0000 - 0x07FF FFFF~128 MReserved-
-0x0000 000 - 0x0007 FFFF512 KMain Flash memory, system memory or SRAM depending on BOOT configuration-

1. The gray color is used for reserved Flash memory addresses.

Table 4. STM32F303x6/8 and STM32F328x8 peripheral register boundary addresses (1)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
AHB30x5000 0400 - 0x5000 07FF1 KReserved-
0x5000 0000 - 0x5000 03FF1 KADC1 - ADC2Section 15.7 on page 416
-0x4800 1800 - 0x4FFF FFFF~132 MReserved-
AHB20x4800 1400 - 0x4800 17FF1 KGPIOFSection 11.4.12 on page 246
0x4800 1000 - 0x4800 13FF1 KReserved
0x4800 0C00 - 0x4800 0FFF1 KGPIOE
0x4800 0800 - 0x4800 0BFF1 KGPIOC
0x4800 0400 - 0x4800 07FF1 KGPIOB
0x4800 0000 - 0x4800 03FF1 KGPIOA
-0x4002 4400 - 0x47FF FFFF~128 MReserved
AHB10x4002 4000 - 0x4002 43FF1 KTSCSection 19.6.11 on page 510
0x4002 3400 - 0x4002 3FFF3 KReserved-
0x4002 3000 - 0x4002 33FF1 KCRCSection 6.4.6 on page 96
0x4002 2400 - 0x4002 2FFF3 KReserved-
0x4002 2000 - 0x4002 23FF1 KFlash interfaceSection 4.6 on page 85
0x4002 1400 - 0x4002 1FFF3 KReserved-
0x4002 1000 - 0x4002 13FF1 KRCCSection 9.4.14 on page 168
0x4002 0400 - 0x4002 0FFF3 KReserved-
0x4002 0000 - 0x4002 03FF1 KDMA1Section 13.6.7 on page 288
-0x4001 8000 - 0x4001 FFFF32 KReserved-

Table 4. STM32F303x6/8 and STM32F328x8 peripheral register boundary addresses (1) (continued)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
APB20x4001 4C00 - 0x4001 7FFF13 KReserved-
0x4001 4800 - 0x4001 4BFF1 KTIM17Section 23.6.18 on page 768
0x4001 4400 - 0x4001 47FF1 KTIM16
0x4001 4000 - 0x4001 43FF1 KTIM15Section 23.5.19 on page 748
0x4001 3C00 - 0x4001 3FFF1 KReserved-
0x4001 3800 - 0x4001 3BFF1 KUSART1Section 29.8.12 on page 959
0x4001 3400 - 0x4001 37FF1 KReserved-
0x4001 3000 - 0x4001 33FF1 KSPI1Section 30.9.10 on page 1018
0x4001 2C00 - 0x4001 2FFF1 KTIM1Section 20.4.27 on page 605
0x4001 0800 - 0x4001 2BFF9 KReserved-
0x4001 0400 - 0x4001 07FF1 KEXTISection 14.3.13 on page 308
-0x4001 0000 - 0x4001 03FF1 KSYSCFG + COMP + OPAMPSection 12.1.10 on page 262 ,
Section 17.5.8 on page 470 ,
Section 18.4.5 on page 492
-0x4000 9C00 - 0x4000 FFFF25 KReserved-

Table 4. STM32F303x6/8 and STM32F328x8 peripheral register boundary addresses (1) (continued)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
APB10x4000 9800 - 0x4000 9BFF1 KDAC2Section 16.10.15 on page 444
0x4000 7800 - 0x4000 97FF8 KReserved-
0x4000 7400 - 0x4000 77FF1 KDAC1Section 16.10.15 on page 444
0x4000 7000 - 0x4000 73FF1 KPWRSection 7.4.3 on page 111
0x4000 6C00 - 0x4000 6FFF1 KReserved-
0x4000 6800 - 0x4000 6BFF1 KReserved-
0x4000 6400 - 0x4000 67FF1 KbxCANSection 31.9.5 on page 1058
0x4000 5800 - 0x4000 63FF3 KReserved-
0x4000 5400 - 0x4000 57FF1 KI2C1Section 28.9.12 on page 893
0x4000 4C00 - 0x4000 53FF2 KReserved-
0x4000 4800 - 0x4000 4BFF1 KUSART3Section 29.8.12 on page 959
0x4000 4400 - 0x4000 47FF1 KUSART2
0x4000 3400 - 0x4000 43FF4 KReserved-
0x4000 3000 - 0x4000 33FF1 KIWDGSection 25.4.6 on page 779
0x4000 2C00 - 0x4000 2FFF1 KWWDGSection 26.5.4 on page 785
0x4000 2800 - 0x4000 2BFF1 KRTCSection 27.6.20 on page 827
0x4000 1800 - 0x4000 27FF4 KReserved-
0x4000 1400 - 0x4000 17FF1 KTIM7Section 22.4.9 on page 690
0x4000 1000 - 0x4000 13FF1 KTIM6
0x4000 0800 - 0x4000 0FFF2 KReserved-
0x4000 0400 - 0x4000 07FF1 KTIM3Section 21.4.22 on page 676
0x4000 0000 - 0x4000 03FF1 KTIM2-
-0x2000 3000 - 0x2000 3FFF~512 MReserved-
-0x2000 0000 - 0x2000 2FFF12 KSRAM-
-0x1FFF F800 - 0x1FFF FFFF2 KOption bytes-
-0x1FFF D800 - 0x1FFF F7FF8 KSystem memory-
-0x1000 1000 - 0x1FFF D7FF~256 MReserved-
-0x1000 0000 - 0x1000 0FFF4 KCCM SRAM-
-0x0804 0000 - 0x0FFF FFFF~128 MReserved-
-0x0800 0000 - 0x0800 FFFF64 KMain Flash memory-

Table 4. STM32F303x6/8 and STM32F328x8 peripheral register boundary addresses (1) (continued)

BusBoundary addressSize (bytes)PeripheralPeripheral register map
-0x0001 0000 - 0x07FF FFFF~128 MReserved-
-0x0000 000 - 0x0000 FFFF64 KMain Flash memory, system memory or SRAM depending on BOOT configuration-

1. The gray color is used for reserved Flash memory addresses.

3.3 Embedded SRAM

STM32F303xB/C and STM32F358xC devices feature up to 48 Kbytes of static SRAM. It can be accessed as bytes, halfwords (16 bits) or full words (32 bits):

STM32F303xD/E and STM32F398xE devices feature up to 80 Kbytes of static SRAM. It can be accessed as bytes, halfwords (16 bits) or full words (32 bits):

STM32F303x6/8 and STM32F328x8 devices feature the same memory but only up to 16 Kbytes of static SRAM: up to 12 Kbytes of SRAM and 4 Kbytes of CCM SRAM.

3.3.1 Parity check

On the STM32F303xB/C and STM32F358xC devices, for the 40-Kbyte SRAM, a parity check is implemented only on the first 16 Kbytes.

The SRAM parity check is disabled by default. It is enabled by the user, when needed, using an option bit.

On the STM32F303x6/8 and STM32F328x8 devices, the parity check is implemented on all of the SRAM and CCM SRAM.

On the STM32F303xD/E and STM32F398xE devices, the parity check is implemented on the first 32 Kbytes of SRAM and on the whole CCM SRAM

The data bus width of the SRAM supporting the parity check is 36 bits because 4 bits are available for parity check (1 bit per byte) in order to increase memory robustness, as required for instance by Class B or SIL norms.

The parity bits are computed on data and address and stored when writing into the SRAM. Then, they are automatically checked when reading. If one bit fails, an NMI is generated if the SRAM parity check is enabled. The same error can also be linked to the Break input of

TIMER 20, 1, 8, 15, 16 and 17, by setting the SRAM_PARITY_LOCK control bit in the SYSCFG configuration register 2 (SYSCFG_CFGR2) . In case of parity error, the SRAM Parity Error flag (SRAM_PEF) is set in the SYSCFG configuration register 2 (SYSCFG_CFGR2) . For more details, please refer to the SYSCFG configuration register 2 (SYSCFG_CFGR2) .

The BYP_ADD_PAR bit in SYSCFG_CFGR2 register can be used to prevent an unwanted parity error to occur when the user programs a code in the RAM at address 0x2XXXXXXX (address in the address range 0x20000000-0x20002000) and then executes the code from RAM at boot (RAM is remapped at address 0x00).

3.3.2 CCM SRAM write protection

The CCM SRAM is write protected with a page granularity of 1 Kbyte.

Table 5. CCM SRAM organization

Page numberStart addressEnd address
Page 00x1000 00000x1000 03FF
Page 10x1000 04000x1000 07FF
Page 20x1000 08000x1000 0BFF
Page 30x1000 0C000x1000 0FFF
Page 4 (1)0x1000 10000x1000 13FF
Page 5 (1)0x1000 14000x1000 17FF
Page 6 (1)0x1000 18000x1000 1BFF
Page 7 (1)0x1000 1C000x1000 1FFF
Page 8 (2)0x1000 20000x1000 23FF
Page 9 (2)0x1000 24000x1000 27FF
Page 10 (2)0x1000 28000x1000 2BFF
Page 11 (2)0x1000 2C000x1000 2FFF
Page 12 (2)0x1000 30000x1000 33FF
Page 13 (2)0x1000 34000x1000 37FF
Page 14 (2)0x1000 38000x1000 3BFF
Page 15 (2)0x1000 3C000x1000 3FFF

1. Only on STM32F303xB/C/D/E and STM32F358xC devices.

2. Only on STM32F303xD/E and STM32F398xE devices.

The write protection can be enabled in the CCM SRAM protection register (SYSCFG_RCR) in the SYSCFG block. This is a register with write '1' once mechanism, which means by writing '1' on a bit it will setup the write protection for that page of SRAM and it can be removed/cleared by a system reset only. For more details please refer to the SYSCFG section.

3.4 Flash memory overview

The Flash memory is composed of two distinct physical areas:

Flash memory instructions and data access are performed through the AHB bus. The prefetch block is used for instruction fetches through the ICode bus. Arbitration is performed in the Flash memory interface, and priority is given to data access on the DCode bus. It also implements the logic necessary to carry out the Flash memory operations (Program/Erase) controlled through the Flash registers.

3.5 Boot configuration

In the STM32F3xx, three different boot modes can be selected through the BOOT0 pin and nBOOT1 bit in the User option byte, as shown in the following table:

Table 6. Boot modes

Boot mode selectionBoot modeAliasings
nBOOT1BOOT0--
x0Main Flash memoryMain flash memory is selected as boot area
11System memorySystem memory is selected as boot area
01Embedded SRAMEmbedded SRAM (on the DCode bus) is selected as boot area

The values on both BOOT0 pin and nBOOT1 bit are latched on the 4th rising edge of SYSCLK after a reset.

It is up to the user to set the nBOOT1 and BOOT0 to select the required boot mode. The BOOT0 pin and nBOOT1 bit are also resampled when exiting from Standby mode.

Consequently they must be kept in the required Boot mode configuration in Standby mode. After this startup delay has elapsed, the CPU fetches the top-of-stack value from address 0x0000 0000, then starts code execution from the boot memory at 0x0000 0004. Depending on the selected boot mode, main Flash memory, system memory or SRAM is accessible as follows:

3.5.1 Embedded boot loader

The embedded boot loader is located in the System memory, programmed by ST during production. It is used to reprogram the Flash memory through:

Note: For more details see the corresponding datasheets.