You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMSIS/Documentation/Doxygen/Core/src/core_startup_c.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,21 @@ Specifically, following functionalities are provided in the startup file:
9
9
- Exception vectors of the Cortex-M Processor with weak functions that implement default routines.
10
10
- Interrupt vectors that are device specific with weak functions that implement default routines.
11
11
12
-
To adapt the file to a specific device only the interrupt vector table needs to be extended with the device-specific interrupt handlers. The naming convention for the interrupt handler names is `<interrupt_name>_IRQHandler`. This table needs to be consistent with \ref IRQn_Type that defines all the IRQ numbers for each interrupt.
12
+
To adapt the file to a specific device only the interrupt vector table needs to be extended with the device-specific
13
+
interrupt handlers. The following table shows the mapping of the interrupt names vs. handler names:
14
+
15
+
| Interrupt name | Handler name |
16
+
| --------------------- | ------------------- |
17
+
| NonMaskableInt_IRQn | NMI_Handler |
18
+
| HardFault_IRQn | HardFault_Handler |
19
+
| MemoryManagement_IRQn | MemManage_Handler |
20
+
| BusFault_IRQn | BusFault_Handler |
21
+
| UsageFault_IRQn | UsageFault_Handler |
22
+
| SecureFault_IRQn | SecureFault_Handler |
23
+
| SVCall_IRQn | SVC_Handler |
24
+
| DebugMonitor_IRQn | DebugMon_Handler |
25
+
| PendSV_IRQn | PendSV_Handler |
26
+
| SysTick_IRQn | SysTick_Handler |
13
27
14
28
Additional application-specific adaptations may be required in the startup code and therefore so the startup file shall be located in the application project. \ref cmsis_files_dfps explains how this can be achieved when device support is provided in [CMSIS pack format](https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/index.html).
0 commit comments