MODULE ?cstartup
;; Forward declaration of sections.
SECTION CSTACK:DATA:NOROOT(3)
SECTION .intvec:CODE:NOROOT(2)
EXTERN __iar_program_start
EXTERN SystemInit
PUBLIC __vector_table
SECTION .intvec:CODE:NOROOT(8)
DATA
__vector_table
DCD sfe(CSTACK) ; Top of Stack
DCD Reset_Handler ; Reset
DCD NMI_Handler ; NMI
DCD HardFault_Handler ; Hard Fault
DCD MemManage_Handler ; MemManage Fault
DCD BusFault_Handler ; Bus Fault
DCD UsageFault_Handler ; Usage Fault
DCD 0 ; Reserved
DCD 0 ; Reserved
DCD 0 ; Reserved
DCD 0 ; Reserved
DCD SVC_Handler ; SVCall
DCD DebugMon_Handler ; Debug Monitor
DCD 0 ; Reserved
DCD PendSV_Handler ; PendSV
DCD SysTick_Handler ; SysTick
; Numbered IRQ handler vectors
; Note: renaming to device dependent ISR function names are done in
; ddl.h (section "IRQ name definition for all type MCUs")
DCD IRQ000_Handler
DCD IRQ001_Handler
DCD IRQ002_Handler
DCD IRQ003_Handler
DCD IRQ004_Handler
DCD IRQ005_Handler
DCD IRQ006_Handler
DCD IRQ007_Handler
DCD IRQ008_Handler
DCD IRQ009_Handler
DCD IRQ010_Handler
DCD IRQ011_Handler
DCD IRQ012_Handler
DCD IRQ013_Handler
DCD IRQ014_Handler
DCD IRQ015_Handler
DCD IRQ016_Handler
DCD IRQ017_Handler
DCD IRQ018_Handler
DCD IRQ019_Handler
DCD IRQ020_Handler
DCD IRQ021_Handler
DCD IRQ022_Handler
DCD IRQ023_Handler
DCD IRQ024_Handler
DCD IRQ025_Handler
DCD IRQ026_Handler
DCD IRQ027_Handler
DCD IRQ028_Handler
DCD IRQ029_Handler
DCD IRQ030_Handler
DCD IRQ031_Handler
DCD IRQ032_Handler
DCD IRQ033_Handler
DCD IRQ034_Handler
DCD IRQ035_Handler
DCD IRQ036_Handler
DCD IRQ037_Handler
DCD IRQ038_Handler
DCD IRQ039_Handler
DCD IRQ040_Handler
DCD IRQ041_Handler
DCD IRQ042_Handler
DCD IRQ043_Handler
DCD IRQ044_Handler
DCD IRQ045_Handler
DCD IRQ046_Handler
DCD IRQ047_Handler
DCD IRQ048_Handler
DCD IRQ049_Handler
DCD IRQ050_Handler
DCD IRQ051_Handler
DCD IRQ052_Handler
DCD IRQ053_Handler
DCD IRQ054_Handler
DCD IRQ055_Handler
DCD IRQ056_Handler
DCD IRQ057_Handler
DCD IRQ058_Handler
DCD IRQ059_Handler
DCD IRQ060_Handler
DCD IRQ061_Handler
DCD IRQ062_Handler
DCD IRQ063_Handler
DCD IRQ064_Handler
DCD IRQ065_Handler
DCD IRQ066_Handler
DCD IRQ067_Handler
DCD IRQ068_Handler
DCD IRQ069_Handler
DCD IRQ070_Handler
DCD IRQ071_Handler
DCD IRQ072_Handler
DCD IRQ073_Handler
DCD IRQ074_Handler
DCD IRQ075_Handler
DCD IRQ076_Handler
DCD IRQ077_Handler
DCD IRQ078_Handler
DCD IRQ079_Handler
DCD IRQ080_Handler
DCD IRQ081_Handler
DCD IRQ082_Handler
DCD IRQ083_Handler
DCD IRQ084_Handler
DCD IRQ085_Handler
DCD IRQ086_Handler
DCD IRQ087_Handler
DCD IRQ088_Handler
DCD IRQ089_Handler
DCD IRQ090_Handler
DCD IRQ091_Handler
DCD IRQ092_Handler
DCD IRQ093_Handler
DCD IRQ094_Handler
DCD IRQ095_Handler
DCD IRQ096_Handler
DCD IRQ097_Handler
DCD IRQ098_Handler
DCD IRQ099_Handler
DCD IRQ100_Handler
DCD IRQ101_Handler
DCD IRQ102_Handler
DCD IRQ103_Handler
DCD IRQ104_Handler
DCD IRQ105_Handler
DCD IRQ106_Handler
DCD IRQ107_Handler
DCD IRQ108_Handler
DCD IRQ109_Handler
DCD IRQ110_Handler
DCD IRQ111_Handler
DCD IRQ112_Handler
DCD IRQ113_Handler
DCD IRQ114_Handler
DCD IRQ115_Handler
DCD IRQ116_Handler
DCD IRQ117_Handler
DCD IRQ118_Handler
DCD IRQ119_Handler
DCD IRQ120_Handler
DCD IRQ121_Handler
DCD IRQ122_Handler
DCD IRQ123_Handler
DCD IRQ124_Handler
DCD IRQ125_Handler
DCD IRQ126_Handler
DCD IRQ127_Handler
DCD IRQ128_Handler
DCD IRQ129_Handler
DCD IRQ130_Handler
DCD IRQ131_Handler
DCD IRQ132_Handler
DCD IRQ133_Handler
DCD IRQ134_Handler
DCD IRQ135_Handler
DCD IRQ136_Handler
DCD IRQ137_Handler
DCD IRQ138_Handler
DCD IRQ139_Handler
DCD IRQ140_Handler
DCD IRQ141_Handler
DCD IRQ142_Handler
DCD IRQ143_Handler
THUMB
; Dummy Exception Handlers (infinite loops which can be modified)
PUBWEAK Reset_Handler
SECTION .text:CODE:NOROOT:REORDER(4)
Reset_Handler
;SetSRAM3Wait
;SRAM等待控制保护寄存器地址40050804将0x77写入SRAM_WTPR中
LDR R0, =0x40050804
MOV R1, #0x77
STR R1, [R0]
;SRAM校验控制保护寄存器地址4005080C将0x77写入SRAM_CKPR中
LDR R0, =0x4005080C
MOV R1, #0x77
STR R1, [R0]
;SRAM等待控制寄存器地址40050800将0x1100写入SRAM_WTCR中
;设定SRAM3的读写周期都为2周期
LDR R0, =0x40050800
MOV R1, #0x1100
STR R1, [R0]
;关闭SRAM_WTPR当中的使能位
LDR R0, =0x40050804
MOV R1, #0x76
STR R1, [R0]
;关闭SRAM_CKPR当中的使能位
LDR R0, =0x4005080C
MOV R1, #0x76
STR R1, [R0]
;先执行系统初始化设定时钟
LDR R0, =SystemInit
BLX R0
;在执行IAR中的
LDR R0, =__iar_program_start
BX R0
PUBWEAK NMI_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
NMI_Handler
B NMI_Handler
PUBWEAK HardFault_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
HardFault_Handler
B HardFault_Handler
PUBWEAK MemManage_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
MemManage_Handler
B MemManage_Handler
PUBWEAK BusFault_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
BusFault_Handler
B BusFault_Handler
PUBWEAK UsageFault_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
UsageFault_Handler
B UsageFault_Handler
PUBWEAK SVC_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
SVC_Handler
B SVC_Handler
PUBWEAK DebugMon_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
DebugMon_Handler
B DebugMon_Handler
PUBWEAK PendSV_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
PendSV_Handler
B PendSV_Handler
PUBWEAK SysTick_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
SysTick_Handler
B SysTick_Handler
PUBWEAK IRQ000_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ000_Handler
B IRQ000_Handler
PUBWEAK IRQ001_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ001_Handler
B IRQ001_Handler
PUBWEAK IRQ002_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ002_Handler
B IRQ002_Handler
PUBWEAK IRQ003_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ003_Handler
B IRQ003_Handler
PUBWEAK IRQ004_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ004_Handler
B IRQ004_Handler
PUBWEAK IRQ005_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ005_Handler
B IRQ005_Handler
PUBWEAK IRQ006_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ006_Handler
B IRQ006_Handler
PUBWEAK IRQ007_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ007_Handler
B IRQ007_Handler
PUBWEAK IRQ008_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ008_Handler
B IRQ008_Handler
PUBWEAK IRQ009_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ009_Handler
B IRQ009_Handler
PUBWEAK IRQ010_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ010_Handler
B IRQ010_Handler
PUBWEAK IRQ011_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ011_Handler
B IRQ011_Handler
PUBWEAK IRQ012_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ012_Handler
B IRQ012_Handler
PUBWEAK IRQ013_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ013_Handler
B IRQ013_Handler
PUBWEAK IRQ014_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ014_Handler
B IRQ014_Handler
PUBWEAK IRQ015_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ015_Handler
B IRQ015_Handler
PUBWEAK IRQ016_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ016_Handler
B IRQ016_Handler
PUBWEAK IRQ017_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ017_Handler
B IRQ017_Handler
PUBWEAK IRQ018_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ018_Handler
B IRQ018_Handler
PUBWEAK IRQ019_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ019_Handler
B IRQ019_Handler
PUBWEAK IRQ020_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ020_Handler
B IRQ020_Handler
PUBWEAK IRQ021_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ021_Handler
B IRQ021_Handler
PUBWEAK IRQ022_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ022_Handler
B IRQ022_Handler
PUBWEAK IRQ023_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ023_Handler
B IRQ023_Handler
PUBWEAK IRQ024_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ024_Handler
B IRQ024_Handler
PUBWEAK IRQ025_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ025_Handler
B IRQ025_Handler
PUBWEAK IRQ026_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ026_Handler
B IRQ026_Handler
PUBWEAK IRQ027_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ027_Handler
B IRQ027_Handler
PUBWEAK IRQ028_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ028_Handler
B IRQ028_Handler
PUBWEAK IRQ029_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ029_Handler
B IRQ029_Handler
PUBWEAK IRQ030_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ030_Handler
B IRQ030_Handler
PUBWEAK IRQ031_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ031_Handler
B IRQ031_Handler
PUBWEAK IRQ032_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ032_Handler
B IRQ032_Handler
PUBWEAK IRQ033_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ033_Handler
B IRQ033_Handler
PUBWEAK IRQ034_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ034_Handler
B IRQ034_Handler
PUBWEAK IRQ035_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ035_Handler
B IRQ035_Handler
PUBWEAK IRQ036_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ036_Handler
B IRQ036_Handler
PUBWEAK IRQ037_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ037_Handler
B IRQ037_Handler
PUBWEAK IRQ038_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ038_Handler
B IRQ038_Handler
PUBWEAK IRQ039_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ039_Handler
B IRQ039_Handler
PUBWEAK IRQ040_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ040_Handler
B IRQ040_Handler
PUBWEAK IRQ041_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ041_Handler
B IRQ041_Handler
PUBWEAK IRQ042_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ042_Handler
B IRQ042_Handler
PUBWEAK IRQ043_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ043_Handler
B IRQ043_Handler
PUBWEAK IRQ044_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ044_Handler
B IRQ044_Handler
PUBWEAK IRQ045_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ045_Handler
B IRQ045_Handler
PUBWEAK IRQ046_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ046_Handler
B IRQ046_Handler
PUBWEAK IRQ047_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ047_Handler
B IRQ047_Handler
PUBWEAK IRQ048_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ048_Handler
B IRQ048_Handler
PUBWEAK IRQ049_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ049_Handler
B IRQ049_Handler
PUBWEAK IRQ050_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ050_Handler
B IRQ050_Handler
PUBWEAK IRQ051_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ051_Handler
B IRQ051_Handler
PUBWEAK IRQ052_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ052_Handler
B IRQ052_Handler
PUBWEAK IRQ053_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ053_Handler
B IRQ053_Handler
PUBWEAK IRQ054_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ054_Handler
B IRQ054_Handler
PUBWEAK IRQ055_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ055_Handler
B IRQ055_Handler
PUBWEAK IRQ056_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ056_Handler
B IRQ056_Handler
PUBWEAK IRQ057_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ057_Handler
B IRQ057_Handler
PUBWEAK IRQ058_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ058_Handler
B IRQ058_Handler
PUBWEAK IRQ059_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ059_Handler
B IRQ059_Handler
PUBWEAK IRQ060_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ060_Handler
B IRQ060_Handler
PUBWEAK IRQ061_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ061_Handler
B IRQ061_Handler
PUBWEAK IRQ062_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ062_Handler
B IRQ062_Handler
PUBWEAK IRQ063_Handler
SECTION .text:CODE:NOROOT:REORDER(1)
IRQ063_Handler
B IRQ063_Handler
|