2021-05-13 21:56:14 +08:00
|
|
|
.cpu cortex-m7
|
2021-05-18 00:36:57 +08:00
|
|
|
.fpu softvfp
|
|
|
|
.syntax unified
|
2021-05-11 16:12:06 +08:00
|
|
|
.thumb
|
|
|
|
|
2021-05-18 00:36:57 +08:00
|
|
|
.section .vectortab,"a",%progbits
|
|
|
|
// Cortex-M7 interrupt handlers
|
2021-05-12 03:44:14 +08:00
|
|
|
.word _estack // 0 Stack top address
|
|
|
|
.word _reset // 1 Reset
|
|
|
|
.word pass // 2 NMI
|
|
|
|
.word halt // 3 Hard Fault
|
|
|
|
.word halt // 4 MM Fault
|
|
|
|
.word halt // 5 Bus Fault
|
|
|
|
.word halt // 6 Usage Fault
|
2021-05-18 00:36:57 +08:00
|
|
|
.word 0 // 7 RESERVED
|
|
|
|
.word 0 // 8 RESERVED
|
|
|
|
.word 0 // 9 RESERVED
|
|
|
|
.word 0 // 10 RESERVED
|
|
|
|
.word SVC_Handler // 11 SV call
|
2021-05-12 03:44:14 +08:00
|
|
|
.word halt // 12 Debug reserved
|
2021-05-18 00:36:57 +08:00
|
|
|
.word 0 // 13 RESERVED
|
|
|
|
.word PendSV_Handler // 14 PendSV
|
|
|
|
.word SysTick_Handler // 15 SysTick
|
|
|
|
// 98 STM32 handlers
|
2021-05-12 03:44:14 +08:00
|
|
|
.word halt,halt,halt,halt,halt,halt,halt,halt,halt,halt
|
|
|
|
.word halt,halt,halt,halt,halt,halt,halt,halt,halt,halt
|
|
|
|
.word halt,halt,halt,halt,halt,halt,halt,halt,halt,halt
|
|
|
|
.word halt,halt,halt,halt,halt,halt,halt,halt,halt,halt
|
|
|
|
.word halt,halt,halt,halt,halt,halt,halt,halt,halt,halt
|
2021-05-18 00:36:57 +08:00
|
|
|
.word halt,halt,halt,halt,halt,halt,halt,halt,halt,halt
|
|
|
|
.word halt,ETH_IRQHandler,halt,halt,halt,halt,halt,halt,halt,halt
|
|
|
|
.word halt,halt,halt,halt,halt,halt,halt,halt,halt,halt
|
|
|
|
.word halt,halt,halt,halt,halt,halt,halt,halt,halt,halt
|
|
|
|
.word halt,halt,halt,halt,halt,halt,halt,halt
|
2021-05-11 16:12:06 +08:00
|
|
|
|
2021-05-18 00:36:57 +08:00
|
|
|
.section .text
|
2021-05-11 16:12:06 +08:00
|
|
|
.global _reset
|
|
|
|
_reset:
|
2021-05-18 00:36:57 +08:00
|
|
|
ldr sp, =_estack
|
|
|
|
bl main
|
|
|
|
b .
|
|
|
|
|
|
|
|
halt: b .
|
|
|
|
pass: bx lr
|