|
发表于 2012-5-4 08:55:00
|
显示全部楼层
楼主
我试了一个最简单的例子
只加了main 和 CMSIS CORE CMSIS BOOT
芯片为stm32f103ze
reset mode 0
gdb script 为空
我用最新的coIDE编译链接都没有问题- volatile unsigned int i,j;
- int main(void)
- {
- i=0;
- while(1)
- {
- j=i+1;
- if(j==10)
- j=0;
- }
- }
复制代码 用JLINK gdbserverCL
debug
首先弹出 选择芯片错误
为什么我的debug上来就跑到无效的地址空间去了
SEGGER J-Link V4.34 DLL Log
DLL Compiled: Aug 26 2011 18:24:32
Logging started @ 2012-05-04 08:48
T08A8 000:815 JLINK_Halt()
T0FC8 003:746 JLINK_ReadReg(R0) returns 0x00000000
T0FC8 003:746 JLINK_ReadReg(R1) returns 0x08000000
T0FC8 003:746 JLINK_ReadReg(R2) returns 0x00000004
T0FC8 003:746 JLINK_ReadReg(R3) returns 0x00000000
T0FC8 003:746 JLINK_ReadReg(R4) returns 0x20000000
T0FC8 003:746 JLINK_ReadReg(R5) returns 0x0000FB9C
T0FC8 003:746 JLINK_ReadReg(R6) returns 0x00000030
T0FC8 003:746 JLINK_ReadReg(R7) returns 0x20000147
T0FC8 003:746 JLINK_ReadReg(R8) returns 0x00000000
T0FC8 003:746 JLINK_ReadReg(R9) returns 0x00000000
T0FC8 003:746 JLINK_ReadReg(R10) returns 0x00000000
T0FC8 003:746 JLINK_ReadReg(R11) returns 0x00000000
T0FC8 003:746 JLINK_ReadReg(R12) returns 0x00000000
T0FC8 003:746 JLINK_ReadReg(CONTROL) returns 0x00000000
T0FC8 003:746 JLINK_ReadReg(MSP) returns 0xFFFFFFFC
T0FC8 003:746 JLINK_ReadReg(R14) returns 0xFFFFFFFF
T0FC8 003:746 JLINK_ReadReg(R15) returns 0xFFFFFFFE
T0FC8 003:746 JLINK_ReadReg(XPSR) returns 0x01000000
T0FC8 003:746 JLINK_ReadCodeMem(0x00000000, 0x0004 Bytes, ...) - Data: FF FF FF FF
T0FC8 004:463 JLINK_ReadCodeMem(0x00000000, 0x0004 Bytes, ...) - Data: FF FF FF FF
T0FC8 006:452 JLINK_WriteReg(R0, 0x00000000) returns 0x00
T0FC8 006:453 JLINK_WriteReg(R1, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R2, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R3, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R4, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R5, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R6, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R7, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R8, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R9, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R10, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R11, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R12, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_ReadReg(CONTROL) returns 0x00000000
T0FC8 006:454 JLINK_WriteReg(MSP, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R14, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(R15, 0x00000000) returns 0x00
T0FC8 006:454 JLINK_WriteReg(XPSR, 0x01000000) returns 0x00
T0FC8 125:883 JLINK_Reset() -- Type: 0
T0FC8 125:945 JLINK_Halt()
T0FC8 125:946 JLINK_ReadReg(R15) returns 0xFFFFFFFE
T0990 125:947 JLINK_WriteMem(0x08000000, 0x0458 Bytes, ...) - Data: 04 04 00 20 99 03 00 08 ...
T0FC8 125:948 JLINK_ReadReg(R0) returns 0x00000000
T0FC8 125:949 JLINK_ReadReg(R1) returns 0x08000000
T0FC8 125:949 JLINK_ReadReg(R2) returns 0x00000004
T0FC8 125:949 JLINK_ReadReg(R3) returns 0x00000000
T0FC8 125:949 JLINK_ReadReg(R4) returns 0x20000000
T0FC8 125:949 JLINK_ReadReg(R5) returns 0x0000FB9C
T0FC8 125:949 JLINK_ReadReg(R6) returns 0x00000030
T0FC8 125:949 JLINK_ReadReg(R7) returns 0x20000147
T0FC8 125:949 JLINK_ReadReg(R8) returns 0x00000000
T0FC8 125:949 JLINK_ReadReg(R9) returns 0x00000000
T0FC8 125:949 JLINK_ReadReg(R10) returns 0x00000000
T0FC8 125:949 JLINK_ReadReg(R11) returns 0x00000000
T0FC8 125:949 JLINK_ReadReg(R12) returns 0x00000000
T0FC8 125:949 JLINK_ReadReg(CONTROL) returns 0x00000000
T0FC8 125:949 JLINK_ReadReg(MSP) returns 0xFFFFFFFC
T0FC8 125:949 JLINK_ReadReg(R14) returns 0xFFFFFFFF
T0FC8 125:949 JLINK_ReadReg(R15) returns 0xFFFFFFFE
T0FC8 125:949 JLINK_ReadReg(XPSR) returns 0x01000000
T0FC8 125:949 JLINK_WriteReg(R0, 0x00000000) returns 0x00
T0FC8 125:949 JLINK_WriteReg(R1, 0x08000000) returns 0x00
T0FC8 125:949 JLINK_WriteReg(R2, 0x00000004) returns 0x00
T0FC8 125:949 JLINK_WriteReg(R3, 0x00000000) returns 0x00
T0FC8 125:949 JLINK_WriteReg(R4, 0x20000000) returns 0x00
T0FC8 125:949 JLINK_WriteReg(R5, 0x0000FB9C) returns 0x00
T0FC8 125:949 JLINK_WriteReg(R6, 0x00000030) returns 0x00
T0FC8 125:949 JLINK_WriteReg(R7, 0x20000147) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R8, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R9, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R10, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R11, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R12, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_ReadReg(CONTROL) returns 0x00000000
T0FC8 125:950 JLINK_WriteReg(MSP, 0xFFFFFFFC) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R14, 0xFFFFFFFF) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R15, 0x08000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(XPSR, 0x01000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R0, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R1, 0x08000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R2, 0x00000004) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R3, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R4, 0x20000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R5, 0x0000FB9C) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R6, 0x00000030) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R7, 0x20000147) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R8, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R9, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R10, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R11, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R12, 0x00000000) returns 0x00
T0FC8 125:950 JLINK_ReadReg(CONTROL) returns 0x00000000
T0FC8 125:950 JLINK_WriteReg(MSP, 0xFFFFFFFC) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R14, 0xFFFFFFFF) returns 0x00
T0FC8 125:950 JLINK_WriteReg(R15, 0x08000000) returns 0x00
T0FC8 125:950 JLINK_WriteReg(XPSR, 0x01000001) returns 0x00
T0FC8 125:950 JLINK_ReadCodeMem(0x08000000, 0x0004 Bytes, ...) - Data: FF FF FF FF
T0FC8 125:954 JLINK_ReadCodeMem(0x08000000, 0x0004 Bytes, ...) - Data: FF FF FF FF
T0FC8 125:954 JLINK_ReadCodeMem(0x08000000, 0x0004 Bytes, ...) - Data: FF FF FF FF
T0FC8 125:954 JLINK_Reset() -- Type: 0
T0FC8 126:013 JLINK_ReadReg(R0) returns 0x00000000
T0FC8 126:013 JLINK_ReadReg(R1) returns 0x08000000
T0FC8 126:013 JLINK_ReadReg(R2) returns 0x00000004
T0FC8 126:013 JLINK_ReadReg(R3) returns 0x00000000
T0FC8 126:013 JLINK_ReadReg(R4) returns 0x20000000
T0FC8 126:013 JLINK_ReadReg(R5) returns 0x0000FB9C
T0FC8 126:013 JLINK_ReadReg(R6) returns 0x00000030
T0FC8 126:013 JLINK_ReadReg(R7) returns 0x20000147
T0FC8 126:013 JLINK_ReadReg(R8) returns 0x00000000
T0FC8 126:013 JLINK_ReadReg(R9) returns 0x00000000
T0FC8 126:013 JLINK_ReadReg(R10) returns 0x00000000
T0FC8 126:013 JLINK_ReadReg(R11) returns 0x00000000
T0FC8 126:013 JLINK_ReadReg(R12) returns 0x00000000
T0FC8 126:013 JLINK_ReadReg(CONTROL) returns 0x00000000
T0FC8 126:013 JLINK_ReadReg(MSP) returns 0xFFFFFFFC
T0FC8 126:013 JLINK_ReadReg(R14) returns 0xFFFFFFFF
T0FC8 126:013 JLINK_ReadReg(R15) returns 0xFFFFFFFE
T0FC8 126:013 JLINK_ReadReg(XPSR) returns 0x01000000
T0FC8 126:014 JLINK_ReadMem (0x08000000, 0x0004 Bytes, ...) - Data: FF FF FF FF
T0FC8 126:015 JLINK_ReadMem (0x08000000, 0x0004 Bytes, ...) - Data: FF FF FF FF
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|