32. Nested vectored interrupt controllers (NVIC)
32.1 NVIC features
The NVIC for Cortex-M33 (CPU2) includes the following features:
- • 320 maskable interrupt channels (not including the 16 Cortex-M33 with FPU interrupt lines)
- • 16 programmable priority levels (4 bits of interrupt priority are used)
- • 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.
The NVIC registers are banked across secure and non-secure states.
All the interrupts including Cortex-M33 core exceptions are managed by the NVIC.
For more information on exceptions and NVIC programming, refer to STM32 Cortex-M33 MCUs programming manual (PM0264).
The NVIC for Cortex M0+ (CPU3) includes the following features:
- • 32 maskable interrupt channels
- • 4 programmable priority levels (2 bits of interrupt priority are used)
- • Low-latency exception and interrupt handling
- • Power management control
- • Implementation of system control registers
All the interrupts including Cortex-M0+ core exceptions are managed by the NVIC.
For more information on exceptions and NVIC programming, refer to STM32 Cortex-M0+ programming manual (PM0223).
32.2 SysTick calibration value register
The Cortex-M33 with TrustZone mainline security extension embeds two SysTick timers, that are available when TrustZone is activated:
- • SysTick secure instance
- • SysTick non-secure instance
When TrustZone is disabled, only one SysTick timer is available.
As SysTick for Cortex-M33 does not run on a fixed frequency, there is no SysTick calibration value available.
The SysTick reload counter must be set according to the required time base, and the ck_cpu2 frequency value must be set in the RCC.
The Cortex-M0+ embeds one SysTick timer, that runs from a reference clock (LSI or LSE) as set by the RCC.
32.3 Interrupt and exception vectors
See Cortex-M33 and Cortex-M0+ interrupt tables in Section 31: Interrupt list.