- 31
- 0
- 约3.38千字
- 约 8页
- 2020-12-01 发布于浙江
- 举报
上电复位reset 0x3fffc0,内容是initboot (bootrom 程序)
参见init_boot.asm文件
入口:
_InitBoot:
; Initalize the stack pointer.
__stack: .usect .stack,0
MOV SP, #__stack ; Initalize the stack pointer
; Initalize the device for running in C28x mode.
C28OBJ ; Select C28x object mode
C28ADDR ; Select C27x/C28x addressing
C28MAP ; Set blocks M0/M1 for C28x mode
CLRC PAGE0 ; Always use stack addressing mode
MOVW DP,#0 ; Initialize DP to point to the low 64 K
CLRC OVM
; Set PM shift of 0
SPM 0
; Decide which boot mode to use
LCR _SelectBootMode
; Cleanup and exit. At this point the EntryAddr
; is located in the ACC reg
原创力文档

文档评论(0)