1        EXTERN  __iar_program_start
2        PUBLIC  __vector_table
3
4        SECTION .text:CODE:REORDER(1)
5
6        ;; Keep vector table even if it's not referenced
7        REQUIRE __vector_table
8
9        THUMB
10
11        ;; Forward declaration of sections.
12        SECTION CSTACK:DATA:NOROOT(3)
13        SECTION .intvec:CODE:NOROOT(2)
14
15        DATA
16
17__vector_table
18        DCD     sfe(CSTACK)
19        DCD     __Reset_Vector
20        DCD     NMI_Handler
21        DCD     HardFault_Handler
22        DCD     MemManage_Handler
23        DCD     BusFault_Handler
24        DCD     UsageFault_Handler
25        DCD     0
26        DCD     0
27        DCD     0
28        DCD     0
29        DCD     SVC_Handler
30        DCD     DebugMon_Handler
31        DCD     0
32        DCD     PendSV_Handler
33        DCD     SysTick_Handler
34
35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
36;;
37;; Default interrupt handlers.
38;;
39
40        PUBWEAK NMI_Handler
41        PUBWEAK HardFault_Handler
42        PUBWEAK MemManage_Handler
43        PUBWEAK BusFault_Handler
44        PUBWEAK UsageFault_Handler
45        PUBWEAK SVC_Handler
46        PUBWEAK DebugMon_Handler
47        PUBWEAK PendSV_Handler
48        PUBWEAK SysTick_Handler
49
50        SECTION .text:CODE:REORDER:NOROOT(1)
51        THUMB
52__Reset_Vector:
53        ; CPSID   i                                       ; Disable interrupts
54        B        __iar_program_start
55
56
57NMI_Handler
58HardFault_Handler
59MemManage_Handler
60BusFault_Handler
61UsageFault_Handler
62SVC_Handler
63DebugMon_Handler
64PendSV_Handler
65SysTick_Handler
66Default_Handler
67__default_handler
68        CALL_GRAPH_ROOT __default_handler, "interrupt"
69        NOCALL __default_handler
70        B __default_handler
71
72        END
73