本帖最后由 finingphon 于 2011-9-28 12:17 编辑
我单步调试至以下命令时,
ADC->ADCR.ADEN = 1; //Enable ADC module
就自动跳至
Reset_Handler PROC
EXPORT Reset_Handler [WEAK]
IMPORT SystemInit
IMPORT __main
LDR R0, =0x50000100
; Unlock Register
LDR R1, =0x59
STR R1, [R0]
LDR R1, =0x16
STR R1, [R0]
LDR R1, =0x88
STR R1, [R0]
; Init POR
LDR R2, =0x50000024
LDR R1, =0x00005AA5
STR R1, [R2]
; Lock register
MOVS R1, #0
STR R1, [R0]
LDR R0, =SystemInit
BLX R0
LDR R0, =__main
BX R0 //程序运行到这里没有进行下去了
ENDP
然后程序就不能正常运行了。有谁知道原因! |