EXTERNAL_SRAM_BASE EQU (0x02200000)
EXTERNAL_IMAGE_SIZE EQU (0x0007E000)
EXFLASH_IMAGE_BASE EQU (0x01000000)
IMPORT boardInit
ResetHandler
ldr r4, =0xFFE00000
ldr r0, =0x0000FFFF
ldr r4, [r4]
bic r4, r4, r0
ldr r0, =INTERNAL_SRAM_BASE
ldr sp, =INTERNAL_SRAM_SIZE
mov r8, #0
mov r10,r4
cmp r4, #0
addeq sp, sp, r0
addeq r8, r8, r0
bl boardInit
add r9, pc,#-(8+.-VectorTable)
ldmia r9!,{r0-r7}
stmia r8!,{r0-r7}
ldmia r9!,{r0-r7}
stmia r8!,{r0-r7}
复制其中开始的一部分,
boardInit该函数是在一个。C文件中定义的。刚开始FLASH地址为0,在ADS中设置RO为SRAM |