我用KEIL UV3 +JLINK调试程序,外设监视窗口不能反映寄存器真实内容,请问什么原因?如何解决?
我用KEIL UV3 +JLINK调试程序,外设监视窗口不能反映寄存器真实内容,请问什么原因?如何解决?
请注意这个现象:当程序运行到第79行(参见我的附图),ADUC7060.LOG的最后内容:
JLINKARM_ReadMem (0xFFFFF420, 0x004D Bytes, ...) -- ReadRemote(77 bytes @ 0xFFFFF420) -- Abort occured --
本应读取地址0xFFFF0D20(GP0DAT)的,现在成了读取0xFFFFF420!当把鼠标移到GP0DAT上,观察J-LINK的LOG窗口,结果也是这样,地址不对.
ADUC7060.LOG
J-Link ARM DLL Log File
DLL Compiled: Jun 30 2009 19:10:31
Logging started @ 2013-11-26 14:32
T07B8 162:621 JLINKARM_Step() -- Read from flash cache (4 bytes @ 0x000803D0) -- Simulated returns 0x00 (0002ms, 4449ms total)
T07B8 162:623 JLINKARM_ReadReg(R15 (PC)) returns 0x000803D4 (0000ms, 4451ms total)
T07B8 162:623 JLINKARM_Step() -- Read from flash cache (4 bytes @ 0x000803D4) -- Not simulated >0x9E8 JTAG> >0x48 JTAG> >0x738 JTAG> returns 0x00 (0012ms, 4451ms total)
T07B8 162:635 JLINKARM_ReadReg(R15 (PC)) returns 0x000803D8 (0000ms, 4463ms total)
T07B8 162:635 JLINKARM_Step() -- Read from flash cache (4 bytes @ 0x000803D8) -- Not simulated >0x608 JTAG> >0x48 JTAG> >0x738 JTAG> returns 0x00 (0009ms, 4463ms total)
T07B8 162:644 JLINKARM_ReadReg(R15 (PC)) returns 0x000803DC (0000ms, 4472ms total)
T07B8 162:644 JLINKARM_ReadReg(R0) returns 0x00000011 (0000ms, 4472ms total)
T07B8 162:644 JLINKARM_ReadReg(R1) returns 0xFFFF0D04 (0000ms, 4472ms total)
T07B8 162:644 JLINKARM_ReadReg(R2) returns 0x000400D0 (0000ms, 4472ms total)
T07B8 162:644 JLINKARM_ReadReg(R3) returns 0x000400D0 (0001ms, 4472ms total)
T07B8 162:645 JLINKARM_ReadReg(R4) returns 0x00000000 (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R5) returns 0x00000000 (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R6) returns 0x00000000 (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R7) returns 0x00000000 (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R15 (PC)) returns 0x000803DC (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(CPSR) returns 0x60000010 (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R8_USR) returns 0x00000000 (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R9_USR) returns 0x00000000 (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R10_USR) returns 0x0008262C (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R11_USR) returns 0x00000000 (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R12_USR) returns 0x00080380 (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R13_USR) returns 0x000404D0 (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R14_USR) returns 0x000801B0 (0000ms, 4473ms total)
T07B8 162:645 JLINKARM_ReadReg(R8_FIQ) - Reading all registers >0x8C8 JTAG> returns 0x00000000 (0005ms, 4473ms total)
T07B8 162:650 JLINKARM_ReadReg(R9_FIQ) returns 0x00000000 (0000ms, 4478ms total)
T07B8 162:650 JLINKARM_ReadReg(R10_FIQ) returns 0x00000000 (0001ms, 4478ms total)
T07B8 162:651 JLINKARM_ReadReg(R11_FIQ) returns 0x00000000 (0000ms, 4479ms total)
T07B8 162:651 JLINKARM_ReadReg(R12_FIQ) returns 0x00000000 (0000ms, 4479ms total)
T07B8 162:652 JLINKARM_ReadReg(R13_FIQ) returns 0x00040650 (0000ms, 4480ms total)
T07B8 162:652 JLINKARM_ReadReg(R14_FIQ) returns 0x00000000 (0000ms, 4480ms total)
T07B8 162:652 JLINKARM_ReadReg(SPSR_FIQ) returns 0x00000010 (0000ms, 4480ms total)
T07B8 162:652 JLINKARM_ReadReg(R13_IRQ) returns 0x000405D0 (0000ms, 4480ms total)
T07B8 162:652 JLINKARM_ReadReg(R14_IRQ) returns 0x00000000 (0000ms, 4480ms total)
T07B8 162:652 JLINKARM_ReadReg(SPSR_IRQ) returns 0x00000010 (0000ms, 4480ms total)
T07B8 162:652 JLINKARM_ReadReg(R13_SVC) returns 0x00040550 (0000ms, 4480ms total)
T07B8 162:652 JLINKARM_ReadReg(R14_SVC) returns 0x00000000 (0000ms, 4480ms total)
T07B8 162:652 JLINKARM_ReadReg(SPSR_SVC) returns 0x00000010 (0000ms, 4480ms total)
T07B8 162:652 JLINKARM_ReadReg(R13_ABT) returns 0x000406D0 (0001ms, 4480ms total)
T07B8 162:653 JLINKARM_ReadReg(R14_ABT) returns 0x00000000 (0000ms, 4481ms total)
T07B8 162:653 JLINKARM_ReadReg(SPSR_ABT) returns 0x00000010 (0000ms, 4481ms total)
T07B8 162:653 JLINKARM_ReadReg(R13_UND) returns 0x00040750 (0000ms, 4481ms total)
T07B8 162:653 JLINKARM_ReadReg(R14_UND) returns 0x00000000 (0000ms, 4481ms total)
T07B8 162:653 JLINKARM_ReadReg(SPSR_UND) returns 0x00000010 (0000ms, 4481ms total)
T0CD0 162:684 JLINKARM_ReadMem (0xFFFFF420, 0x004D Bytes, ...) -- ReadRemote(77 bytes @ 0xFFFFF420) -- Abort occured -- Data: AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA ... returns 0x01 (0005ms, 4481ms total)