📄 cstartup.s
字号:
;/*
;********************************************************************************************************
; EXCEPTION VECTORS & STARTUP CODE
;
; File : cstartup.s
; For : ARMv7M Cortex-M4
; Mode : Thumb2
; Toolchain : RealView Development Suite
; RealView Microcontroller Development Kit (MDK)
; ARM Developer Suite (ADS)
; Keil uVision
;********************************************************************************************************
;*/
;/*
;********************************************************************************************************
;* <<< Use Configuration Wizard in Context Menu >>>
;*
;* Note(s) : (1) The 礦ision4 Configuration Wizard enables menu driven configuration of assembler,
;* C/C++, or debugger initialization files. The Configuration Wizard uses control items
;* that are embedded into the comments of the configuration file.
;*
;********************************************************************************************************
;*/
;/*
;********************************************************************************************************
;* STACK DEFINITIONS
;*
;* Configuration Wizard Menu:
;* // <h> Stack Configuration
;* // <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
;* // </h>;
;*********************************************************************************************************
;*/
STACK_SIZE EQU 0x00000200
AREA STACK, NOINIT, READWRITE, ALIGN=3
Stack_Mem SPACE STACK_SIZE
__initial_sp
;/*
;********************************************************************************************************
;* STACK DEFINITIONS
; <h> Heap Configuration
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
;*********************************************************************************************************
;*/
HEAP_SIZE EQU 0x00000000
AREA HEAP, NOINIT, READWRITE, ALIGN=3
__heap_base
Heap_Mem SPACE HEAP_SIZE
__heap_limit
PRESERVE8
THUMB
; Vector Table Mapped to Address 0 at Reset
AREA RESET, DATA, READONLY
EXPORT __Vectors
IMPORT BSP_IntHandlerWWDG
IMPORT BSP_IntHandlerPVD
IMPORT BSP_IntHandlerTAMP_STAMP
IMPORT BSP_IntHandlerRTC_WKUP
IMPORT BSP_IntHandlerFLASH
IMPORT BSP_IntHandlerRCC
IMPORT BSP_IntHandlerEXTI0
IMPORT BSP_IntHandlerEXTI1
IMPORT BSP_IntHandlerEXTI2
IMPORT BSP_IntHandlerEXTI3
IMPORT BSP_IntHandlerEXTI4
IMPORT BSP_IntHandlerDMA1_CH0
IMPORT BSP_IntHandlerDMA1_CH1
IMPORT BSP_IntHandlerDMA1_CH2
IMPORT BSP_IntHandlerDMA1_CH3
IMPORT BSP_IntHandlerDMA1_CH4
IMPORT BSP_IntHandlerDMA1_CH5
IMPORT BSP_IntHandlerDMA1_CH6
IMPORT BSP_IntHandlerADC
IMPORT BSP_IntHandlerCAN1_TX
IMPORT BSP_IntHandlerCAN1_RX0
IMPORT BSP_IntHandlerCAN1_RX1
IMPORT BSP_IntHandlerCAN1_SCE
IMPORT BSP_IntHandlerEXTI9_5
IMPORT BSP_IntHandlerTIM1_BRK_TIM9
IMPORT BSP_IntHandlerTIM1_UP_TIM10
IMPORT BSP_IntHandlerTIM1_TRG_COM_TIM11
IMPORT BSP_IntHandlerTIM1_CC
IMPORT BSP_IntHandlerTIM2
IMPORT BSP_IntHandlerTIM3
IMPORT BSP_IntHandlerTIM4
IMPORT BSP_IntHandlerI2C1_EV
IMPORT BSP_IntHandlerI2C1_ER
IMPORT BSP_IntHandlerI2C2_EV
IMPORT BSP_IntHandlerI2C2_ER
IMPORT BSP_IntHandlerSPI1
IMPORT BSP_IntHandlerSPI2
IMPORT BSP_IntHandlerUSART1
IMPORT BSP_IntHandlerUSART2
IMPORT BSP_IntHandlerUSART3
IMPORT BSP_IntHandlerEXTI15_10
IMPORT BSP_IntHandlerRTCAlarm
IMPORT BSP_IntHandlerOTG_FS_WKUP
IMPORT BSP_IntHandlerTIM8_BRK_TIM12
IMPORT BSP_IntHandlerTIM8_UP_TIM13
IMPORT BSP_IntHandlerTIM8_TRG_COM_TIM14
IMPORT BSP_IntHandlerTIM8_CC
IMPORT BSP_IntHandlerDMA1_STREAM7
IMPORT BSP_IntHandlerFSMC
IMPORT BSP_IntHandlerSDIO
IMPORT BSP_IntHandlerTIM5
IMPORT BSP_IntHandlerSPI3
IMPORT BSP_IntHandlerUSART4
IMPORT BSP_IntHandlerUSART5
IMPORT BSP_IntHandlerTIM6_DAC
IMPORT BSP_IntHandlerTIM7
IMPORT BSP_IntHandlerDMA2_CH0
IMPORT BSP_IntHandlerDMA2_CH1
IMPORT BSP_IntHandlerDMA2_CH2
IMPORT BSP_IntHandlerDMA2_CH3
IMPORT BSP_IntHandlerDMA2_CH4
IMPORT BSP_IntHandlerETH
IMPORT BSP_IntHandlerETHWakeup
IMPORT BSP_IntHandlerCAN2_TX
IMPORT BSP_IntHandlerCAN2_RX0
IMPORT BSP_IntHandlerCAN2_RX1
IMPORT BSP_IntHandlerCAN2_SCE
IMPORT BSP_IntHandlerOTG_FS
IMPORT BSP_IntHandlerDMA2_CH5
IMPORT BSP_IntHandlerDMA2_CH6
IMPORT BSP_IntHandlerDMA2_CH7
IMPORT BSP_IntHandlerUSART6
IMPORT BSP_IntHandlerI2C3_EV
IMPORT BSP_IntHandlerI2C3_ER
IMPORT BSP_IntHandlerOTG_HS_EP1_OUT
IMPORT BSP_IntHandlerOTG_HS_EP1_IN
IMPORT BSP_IntHandlerOTG_HS_WKUP
IMPORT BSP_IntHandlerOTG_HS
IMPORT BSP_IntHandlerDCMI
IMPORT BSP_IntHandlerCRYP
IMPORT BSP_IntHandlerHASH_RNG
IMPORT BSP_IntHandlerFPU
IMPORT OS_CPU_PendSVHandler
IMPORT OS_CPU_SysTickHandler
__Vectors DCD __initial_sp ; Top of Stack
DCD Reset_Handler ; Reset Handler
DCD App_NMI_ISR ; NMI Handler
DCD App_Fault_ISR ; Hard Fault Handler
DCD App_MemFault_ISR ; MPU Fault Handler
DCD App_BusFault_ISR ; Bus Fault Handler
DCD App_UsageFault_ISR ; Usage Fault Handler
DCD App_Spurious_ISR ; Reserved
DCD App_Spurious_ISR ; Reserved
DCD App_Spurious_ISR ; Reserved
DCD App_Spurious_ISR ; Reserved
DCD App_Spurious_ISR ; SVCall Handler
DCD App_Spurious_ISR ; Debug Monitor Handler
DCD App_Spurious_ISR ; Reserved
DCD OS_CPU_PendSVHandler ; PendSV Handler
DCD OS_CPU_SysTickHandler ; SysTick Handler
; External Interrupts
DCD BSP_IntHandlerWWDG ; 16, INTISR[ 0] Window Watchdog.
DCD BSP_IntHandlerPVD ; 17, INTISR[ 1] PVD through EXTI Line Detection.
DCD BSP_IntHandlerTAMP_STAMP ; 18, INTISR[ 2] Tamper and TimeStamp Interrupt.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -