Application note

Use STM32F3/STM32G4 CCM SRAM with IAR Embedded Workbench®, Keil® MDK-ARM, STMicroelectronics STM32CubeIDE, and other GNU-based toolchains

Rev 6 - April 2025

Introduction

This document gives a presentation of the core-coupled memory (CCM) SRAM available on STM32F3/STM32G4 microcontrollers and describes what is required to execute part of the application code from this memory region using different toolchains.

The first section provides an overview of the CCM SRAM, while the next sections describe the steps required to execute part of the application code from CCM SRAM using the following toolchains:

  • IAR Systems® IAR Embedded Workbench®
  • Keil® MDK-ARM
  • STMicroelectronics STM32CubeIDE and other GNU-based toolchains

The procedures described throughout the document are applicable to other SRAM regions such as the CCM data RAM of some STM32F4 devices, or external SRAM.

Table 1 lists the STM32 microcontrollers used as examples for CCM SRAM.

Table 1. Applicable products
ReferenceProducts
STM32F3/STM32G4STM32F3STM32F303 line, STM32F334 line

STM32F328C8

STM32F358CC, STM32F358RC, STM32F358VC

STM32F398VE

STM32G4STM32G4 Series

Overview of STM32F3/STM32G4 CCM SRAM

This document applies to STM32F3/STM32G4 microcontrollers based on the Arm® Cortex®‑M core.

Note: Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.