15. Nested vectored interrupt controller (NVIC)

15.1 NVIC main features

The NVIC and the processor core interface are closely coupled, enabling low-latency interrupt processing and efficient processing of late-arriving interrupts.

The NVIC manages all interrupts including the core exceptions.

15.2 SysTick calibration value register

The Cortex-M33 embeds one SysTick timer. The SysTick timer calibration value (STCALIB) is 0x3E8. It gives a reference time base of 1 ms based on a SysTick clock frequency of 1 MHz. To match the 1 ms time base for an application running at a given frequency, the SysTick reload value must be programmed as follows in the SYST_RVR register:

The HCLK refers to the AHB frequency value in MHz.

Example: The SysTick clock source is a CPU clock HCLK of 100 MHz, to match a time base of 1 ms:

\[\text{SysTick reload value} = (100 \times STCALIB) - 1 = 0x1869F\]

15.3 Interrupt and exception vectors

The gray rows in the table below describe the vectors without specific position.

For the actual availability of some peripherals, check the datasheet or Table 3: Memory map and peripheral register boundary addresses. If not present, consider them as reserved.

Table 100. STM32C5 vector table

IRQ numberPriority(1)AcronymDescriptionAddress offset
-15-4ResetReset0x0000 0004
-14-2NMINon maskable interrupt. The RCC clock security system (CSS) is linked to the NMI vector.0x0000 0008
-13-1HardFaultHard fault. All classes of fault0x0000 000C
-12SettableMemManageMemory management0x0000 0010

Table 100. STM32C5 vector table (continued)

IRQ numberPriority(1)AcronymDescriptionAddress offset
-11SettableBusFaultPre-fetch fault, memory access fault0x0000 0014
-10SettableUsageFaultUndefined instruction or illegal state0x0000 0018
---Reserved0x0000 001C
---Reserved0x0000 0020
---Reserved0x0000 0024
---Reserved0x0000 0028
-5SettableSVCSystem service call via SWI instruction0x0000 002C
-4SettableDebug MonitorMonitor0x0000 0030
---Reserved0x0000 0034
-2SettablePendSVPendable request for system service0x0000 0038
-1SettableSysTickSystem tick timer0x0000 003C
0SettableWWDGWindow watchdog interrupt0x0000 0040
1SettablePVDPower voltage monitor0x0000 0044
2SettableRTCRTC global interrupts0x0000 0048
3SettableTAMPTamper global interrupts0x0000 004C
4SettableRAMCFGRAM configuration global interrupt0x0000 0050
5SettableFLASHFlash global interrupt0x0000 0054
6SettableRCCRCC global interrupt0x0000 0058
7SettableEXTI0EXTI Line0 interrupt0x0000 005C
8SettableEXTI1EXTI Line1 interrupt0x0000 0060
9SettableEXTI2EXTI Line2 interrupt0x0000 0064
10SettableEXTI3EXTI Line3 interrupt0x0000 0068
11SettableEXTI4EXTI Line4 interrupt0x0000 006C
12SettableEXTI5EXTI Line5 interrupt0x0000 0070
13SettableEXTI6EXTI Line6 interrupt0x0000 0074
14SettableEXTI7EXTI Line7 interrupt0x0000 0078
15SettableEXTI8EXTI Line8 interrupt0x0000 007C
16SettableEXTI9EXTI Line9 interrupt0x0000 0080
17SettableEXTI10EXTI Line10 interrupt0x0000 0084
18SettableEXTI11EXTI Line11 interrupt0x0000 0088
19SettableEXTI12EXTI Line12 interrupt0x0000 008C
20SettableEXTI13EXTI Line13 interrupt0x0000 0090
21SettableEXTI14EXTI Line14 interrupt0x0000 0094
22SettableEXTI15EXTI Line15 interrupt0x0000 0098

Table 100. STM32C5 vector table (continued)

IRQ numberPriority(1)AcronymDescriptionAddress offset
23SettableLPDMA1_CH0LPDMA1 channel0 global interrupt0x0000 009C
24SettableLPDMA1_CH1LPDMA1 channel1 global interrupt0x0000 00A0
25SettableLPDMA1_CH2LPDMA1 channel2 global interrupt0x0000 00A4
26SettableLPDMA1_CH3LPDMA1 channel3 global interrupt0x0000 00A8
27SettableLPDMA1_CH4LPDMA1 channel4 global interrupt0x0000 00AC
28SettableLPDMA1_CH5LPDMA1 channel5 global interrupt0x0000 00B0
29SettableLPDMA1_CH6LPDMA1 channel6 global interrupt0x0000 00B4
30SettableLPDMA1_CH7LPDMA1 channel7 global interrupt0x0000 00B8
31SettableIWDGIndependent watchdog interrupt0x0000 00BC
32SettableADC1ADC1 global interrupt0x0000 00C0
33SettableADC2ADC2 global interrupt0x0000 00C4
34SettableFDCAN1_IT0FDCAN1 Interrupt 00x0000 00C8
35SettableFDCAN1_IT1FDCAN1 Interrupt 10x0000 00CC
36SettableTIM1_BRK
TIM1_TERR
TIM1_IERR
TIM1 Break/TIM1 transition error/TIM1 Index error0x0000 00D0
37SettableTIM1_UPTIM1 update0x0000 00D4
38SettableTIM1_TRG_COM
TIM1_DIR
TIM1_IDX
TIM1 trigger and commutation/TIM1 direction change interrupt/TIM1 Index0x0000 00D8
39SettableTIM1_CCTIM1 capture compare interrupt0x0000 00DC
40SettableTIM2TIM2 global interrupt0x0000 00E0
41SettableTIM5TIM5 global interrupt0x0000 00E4
42SettableTIM6TIM6 global interrupt0x0000 00E8
43SettableTIM7TIM7 global interrupt0x0000 00EC
44SettableI2C1_EVI2C1 event interrupt0x0000 00F0
45SettableI2C1_ERI2C1 error interrupt0x0000 00F4
46SettableI3C1_EVI3C1 event interrupt0x0000 00F8
47SettableI3C1_ERI3C1 error interrupt0x0000 00FC
48SettableSPI1SPI1 global interrupt0x0000 0100
49SettableSPI2SPI2 global interrupt0x0000 0104
50SettableSPI3SPI3 global interrupt0x0000 0108
51SettableUSART1USART1 global interrupt0x0000 010C
52SettableUSART2USART2 global interrupt0x0000 0110
53SettableUSART3USART3 global interrupt0x0000 0114

Table 100. STM32C5 vector table (continued)

IRQ numberPriority(1)AcronymDescriptionAddress offset
54SettableUART4UART4 global interrupt0x0000 0118
55SettableUART5UART5 global interrupt0x0000 011C
56SettableLPUART1LPUART1 global interrupt0x0000 0120
57SettableLPTIM1LPTIM1 global interrupt OR LPTIM1through EXTI line0x0000 0124
58SettableTIM12TIM12 global interrupt0x0000 0128
59SettableTIM15TIM15 global interrupt0x0000 012C
60SettableTIM16TIM16 global interrupt0x0000 0130
61SettableTIM17TIM17 global interrupt0x0000 0134
62SettableUSB_FSUSB FS global interrupt0x0000 0138
63SettableCRSClock recovery system global interrupt0x0000 013C
64SettableRNGRNG global interrupt0x0000 0140
65SettableFPUFloating point interrupt0x0000 0144
66SettableICACHEInstruction cache global interrupt0x0000 0148
67SettableCORDICCORDIC interrupt0x0000 014C
68SettableAESAES global interrupt0x0000 0150
69SettableHASHHASH interrupt0x0000 0154
70SettableI2C2_EVI2C2 event interrupt0x0000 0158
71SettableI2C2_ERI2C2 error interrupt0x0000 015C
72SettableTIM8_BRK
TIM8_TERR
TIM8_IERR
TIM8 break interrupt/TIM8 transition error/
TIM8 index error
0x0000 0160
73SettableTIM8_UPTIM8 update interrupt0x0000 0164
74SettableTIM8_TRG_COM
TIM8_DIR
TIM8_IDX
TIM8 trigger and commutation interrupt/
TIM8 direction change interrupt/TIM8 Index
0x0000 0168
75SettableTIM8_CCTIM8 capture compare interrupt0x0000 016C
76SettableCOMP1COMP1 global interrupt OR COMP1 through EXTI line0x0000 0170
77SettableDAC1DAC1 global interrupt0x0000 0174
78SettableLPDMA2_CH0LPDMA2 channel0 global interrupt0x0000 0178
79SettableLPDMA2_CH1LPDMA2 channel1 global interrupt0x0000 017C
80SettableLPDMA2_CH2LPDMA2 channel2 global interrupt0x0000 0180
81SettableLPDMA2_CH3LPDMA2 channe3 global interrupt0x0000 0184
82SettableLPDMA2_CH4LPDMA2 channel4 global interrupt0x0000 0188
83SettableLPDMA2_CH5LPDMA2 channel5 global interrupt0x0000 018C
84SettableLPDMA2_CH6LPDMA2 channel6 global interrupt0x0000 0190

Table 100. STM32C5 vector table (continued)

IRQ numberPriority(1)AcronymDescriptionAddress offset
85SettableLPDMA2_CH7LPDMA2 channel7 global interrupt0x0000 0194
86SettableFDCAN2_IT0FDCAN2 Interrupt 00x0000 0198
87SettableFDCAN2_IT1FDCAN2 Interrupt 10x0000 019C
88SettableCOMP2COMP2 global interrupt OR COMP2 through EXTI line0x0000 01A0
89SettableTIM3TIM3 global interrupt0x0000 01A4
90SettableTIM4TIM4 global interrupt0x0000 01A8
91SettableXSPI1XSPI1 global interrupt0x0000 01AC
92SettableSAESSAES global interrupt0x0000 01B0
93SettablePKAPKA global interrupt0x0000 01B4
94SettableETH1ETH interrupt0x0000 01B8
95SettableETH1_WKUPEthernet wakeup interrupt through EXTI line0x0000 01BC
96SettableUSART6USART6 global interrupt0x0000 01C0
97SettableUART7UART7 global interrupt0x0000 01C4
98SettableADC3ADC3 global interrupt0x0000 01C8
  1. 1. If multiple pending interrupts have the same programmed priority level, the pending interrupt with the lowest IRQ number takes precedence. For example, if both interrupt[n] and interrupt[n+1] are pending and have the same priority, then interrupt[n] is processed before interrupt[n+1]. For further information, refer to the Arm Cortex-M33 technical documentation.