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:

The STM32MP23/25xx implementation of the Cortex-M33 supports:

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

Block diagram of the Cortex-M33 sub-system showing the integration of the core, peripherals, and caches.

The diagram illustrates the Cortex-M33 sub-system architecture. The central component is the Cortex-M33 Core, which is connected to several peripherals and control units:

MSv66530V1

Block diagram of the Cortex-M33 sub-system showing the integration of the core, peripherals, and caches.

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 18: Instruction cache (ICACHE) and Section 19: Data cache (DCACHE) for more details.

The debug logic for the Cortex-M33 and its integration within the device are detailed in Section 97: 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 17. Cortex-M33 reset sources

RCC registerBitNameDescription
--PORDevice power-on reset (POR)
RCC_DBGCFGR12DBGSTReset the Cortex-M33 debug logic
RCC_C2RSTCSETR0C2RSTReset all Cortex-M33 resources but the debug logic
--SYSRESETREQRequest 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 18. It is then combined with the results from the SAU security attribution and the higher security state is selected.

Table 18. IDAU partitioning

Address rangeSecurity attribution
0x00000000 - 0x07FFFFFFNon-secure
0x08000000 - 0x0BFFFFFFNon-secure
0x0C000000 - 0x0FFFFFFFSecure/Non-secure callable
0x10000000 - 0x17FFFFFFNon-secure
0x18000000 - 0x1FFFFFFFNon-secure
0x20000000 - 0x2FFFFFFFNon-secure
0x30000000 - 0x3FFFFFFFSecure/Non-secure callable
0x40000000 - 0x4FFFFFFFNon-secure
0x50000000 - 0x5FFFFFFFSecure/Non-secure callable
0x60000000 - 0xFFFFFFFFNon-secure

4.9 Nested vectored interrupt controllers (NVIC)

4.9.1 NVIC features

The NVIC includes the following features:

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 31: 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 19. Memory partitioning(1)

TargetFast C_BUSSlow C_BUSS_BUS_BYPASSS_BUS_DCACHE
SYSRAMPPP-
SRAM1P-P-
SRAM2P-P-
RETRAMP-P-
VDERAMPPP-
LPSRAM1--P-
LPSRAM2--P-
LPSRAM3--P-
FMC-(2)-P
OCTOSPI-(2)-P
DDR-(2)-P
SOC peripherals--P-
  1. 1. This matrix shows possible memory access (P) from the Cortex-M33 core, without consideration about security filtering or memory availability.
  2. 2. This implies using remap capability of the ICACHE master2 port.