4. Arm Cortex-M33 (CM33SS)
4.1 Overview
The Cortex-M33 processor is based on the Armv8-M architecture.
The processor supports the following interfaces:
- • Code AHB (C-AHB) interface
- • System AHB (S-AHB) interface
- • External PPB (EPPB) APB interface
- • Debug AHB (D-AHB) interface
The STM32MP21xx implementation of the Cortex-M33 supports:
- • the Armv8-M security extension
- • the floating-point extension
- • the Armv8-M DSP extension
- • a nested vectored interrupt controller (NVIC) closely integrated with the processor with 320 interrupts and 16 levels of priority
- • a memory system with memory protection unit (MPU) with up to 16 non-secure regions and 16 secure regions
- • a security attribution unit (SAU) with up to eight regions
- • an implementation defined attribution unit (IDAU)
- • debug components including breakpoints (BPU), data watchpoints (DWT), instrumentation and processor trace (ITM/ETM), and cross trigger interface (CTI)
16-Kbyte instruction and 16-Kbyte data caches (ICACHE/DCACHE) are added respectively on C-AHB and S-AHB interfaces as shown in Figure 6.
Figure 6. Cortex-M33 sub-system

The diagram illustrates the Cortex-M33 sub-system architecture. At the center is the Cortex-M33 Core. To its left are the IDAU, FPU, and NVIC blocks, all connected to the core. To the right are the CTI, ETM, DWT, ITM, and ROM table blocks, also connected to the core. Below the core is the MPU, which is connected to both the core and the AHB bus matrix. The AHB bus matrix contains three buses: C-BUS, S-BUS, and PPB. Below the bus matrix are the 16-Kbyte ICACHE and 16-Kbyte DCACHE. The ICACHE is connected to the C-BUS via FAST and SLOW paths. The DCACHE is connected to the S-BUS via the S-BUS-DCACHE path. The PPB is connected to the S-BUS-BYPASS path. All these components are enclosed within the Cortex-M33 integration layer. A reference code MSv66530V1 is located in the bottom right corner of the diagram area.
For information on the Arm Cortex-M33 core, refer to the Cortex-M33 r1p0 Technical Reference Manual available at http://infocenter.arm.com.
See Section 17: Instruction cache (ICACHE) and Section 18: Data cache (DCACHE) for more details.
The debug logic for the Cortex-M33 and its integration within the device are detailed in Section 80: Debug support (DBG).
4.2 Cortex-M33 reset
There are different reset signals that apply to the Cortex-M33 subsystem.
The RCC allows some of them to be under control of the software. The following table indicates these different reset sources.
Table 15. Cortex-M33 reset sources
| RCC register | Bit | Name | Description |
|---|---|---|---|
| - | - | POR | Device power-on reset (POR) |
| RCC_DBGCFGR | 12 | DBG_RST | Reset the Cortex-M33 debug logic |
| RCC_C2RSTCSETR | 0 | C2RST | Reset all Cortex-M33 resources but the debug logic |
| - | - | SYSRESETREQ | Request for functional reset generated by AIRCR core register |
4.3 Cortex-M33 clocking
A single clock for the Cortex-M33 system is provided from the device clock generator (ck_cpu2). This clock can be adjusted and gated automatically with respect to the low-power mode of the core.
The RCC feeds the Cortex-M33 system timer (SysTick) external clock with the core clock divided by eight. The SysTick can work either with this clock or directly with the Cortex-M33 clock configurable in the SysTick control and status register. The calibration value is unknown, and the software must compute it from the RCC registers setting up the Cortex-M33 clock.
4.4 Cortex-M33 boot mode
The Cortex-M33 can boot with the Armv8-M security extension ON or OFF depending on its input configuration signal CFGSECEXT is high or low.
This signal is driven from the M33_TZEN_CR register detailed in Section 3.5.4: Cortex-M33 boot configuration registers. Restriction applies when accessing this register to comply with security rules.
With the Armv8-M security extension ON, the Cortex-M33 uses two vector tables: one for the secure exceptions, and one for the non-secure exceptions. These vector tables are controlled from the Cortex-M33_INITSVTOR_CR and Cortex-M33_INITNSVTOR_CR registers detailed in Section 3.5.4: Cortex-M33 boot configuration registers.
4.5 Cortex-M33 configuration register
A system configuration register SYSCFG_M33SSCR detailed in Section 3.5: CA35SS SYSCFG registers is used to prevent changes to occur on SAU/MPU/Vector, and to mask FPU interrupts.
4.6 Memory protection unit (MPU)
The MPU defines the memory attributes for different memory regions. It provides up to 16 non-secure regions and 16 secure regions with the Armv8-M security extension on.
In particular, the cacheable memory regions are defined and programmed by the user in the MPU that is responsible for the generation of the AHB attribute signals for any transaction addressing a given region.
4.7 Floating point unit (FPU)
The Cortex-M33 supports a single-precision FPU that fully supports single-precision add, subtract, multiply, divide, multiply and accumulate, and square root operations. The FPU also provides conversions between fixed-point and floating-point data formats, and floating-point constant instructions.
The FPU can generate six different interrupts that are combined into a single interrupt connected to the NVIC. The SYSCFG_M33SSCR register allows the different FPU interrupts to be masked individually.
4.8 Attribution units
4.8.1 Security attribution unit (SAU)
The SAU is a programmable unit that determines the security of an address. The SAU is enabled when the Armv8-M security extension is on. It provides up to eight different regions, and a default background region.
At reset, before any SAU region is programmed and apart from specific region in the PPB space, all memories are set to secure state.
Secure (S)
Secure addresses are used for memory and peripherals that are only accessible by secure software or secure masters.
Non-secure callable (NSC)
NSC is a special type of secure location. This type of memory is the only type which an Armv8-M processor is used to hold an SG instruction that enables software to transition from non-secure to secure state.
Non-secure (NS)
The non-secure addresses are used for memory and peripherals accessible by all software running on the device. The non-secure transactions are only permitted to access non-secure addresses.
4.8.2 Implementation defined attribution unit (IDAU)
The IDAU provides a first memory partition as non-secure or non-secure callable attributes. Its memory-map partition is not configurable, and is fixed by hardware implementation as
shown in Table 16. It is then combined with the results from the SAU security attribution and the higher security state is selected.
Table 16. IDAU partitioning
| Address range | Security attribution |
|---|---|
| 0x00000000 - 0x07FFFFFF | Non-secure |
| 0x08000000 - 0x0BFFFFFF | Non-secure |
| 0x0C000000 - 0x0FFFFFFF | Secure/Non-secure callable |
| 0x10000000 - 0x17FFFFFF | Non-secure |
| 0x18000000 - 0x1FFFFFFF | Non-secure |
| 0x20000000 - 0x2FFFFFFF | Non-secure |
| 0x30000000 - 0x3FFFFFFF | Secure/Non-secure callable |
| 0x40000000 - 0x4FFFFFFF | Non-secure |
| 0x50000000 - 0x5FFFFFFF | Secure/Non-secure callable |
| 0x60000000 - 0xFFFFFFFF | Non-secure |
4.9 Nested vectored interrupt controllers (NVIC)
4.9.1 NVIC features
The NVIC includes the following features:
- • 320 maskable interrupt channels
- • 16 programmable priority levels (4 bits of interrupt priority)
- • Low-latency exception and interrupt handling
- • Power management control
- • Implementation of system control registers
The NVIC and the Cortex-M33 core are closely coupled, which enables low-latency interrupt processing and efficient processing of late arriving interrupts.
All the interrupts including the Cortex-M33 core exceptions are managed by the NVIC. For more information on exceptions and NVIC programming, refer to Cortex-M33 technical documentation.
4.9.2 Interrupt and exception vectors
Refer to Section 26: Interrupt list.
4.10 Cortex-M33 memory interfaces
Fast C-BUS
This bus connects the C-AHB interface of the Cortex-M33 core to the device interconnect via the ICACHE master1 port. This bus is used for instruction fetch and data access to the memories mapped in code region.
Slow C-BUS
This bus connects the C-AHB interface of the Cortex-M33 core to the device interconnect via the ICACHE master2 port. This bus is used for instruction fetch and data access to memories mapped in code region.
S-BUS
This bus connects the S_AHB interface of the Cortex-M33 core to the device interconnect. This bus is used for instruction fetch and data access to the memories mapped in system region, and to access peripherals. The DCACHE located on this interface is bypassed for internal memories.
The following table shows the memory connectivity with respect to the different interfaces.
Table 17. Memory partitioning(1)
| Target | Fast C_BUS | Slow C_BUS | S_BUS_BYPASS | S_BUS_DCACHE |
|---|---|---|---|---|
| SYSRAM | P | P | P | - |
| SRAM1 | P | - | P | - |
| RETRAM | P | - | P | - |
| FMC | - | (2) | - | P |
| OCTOSPI | - | (2) | - | P |
| DDR | - | (2) | - | P |
| SOC peripherals | - | - | P | - |
- 1. This matrix shows possible memory access (P) from the Cortex-M33 core, without consideration about security filtering or memory availability.
- 2. This implies using remap capability of the ICACHE master2 port.