斑竹你好!请教一个问题!
我用BDM把程序下载到MC9S12DG128里面了
然后在调试界面里面点运行,出现的问题是:程序运行不正常
在命令栏里面出现这样的提示:
STARTED RUNNING DiExecGetStatus reported -> GDI_WAIT_RUNNING DiExecGetStatus reported cause -> ACKN SYNC RUNNING
过一段时间后,会接着出现下面的提示(感觉好像是复位了),然后程序开始正常运行!不知道大家能不能看懂什么问题??谢谢
DiExecGetStatus reported -> GDI_WAIT_MISCELLANEOUS DiExecGetStatus reported cause -> ACKN SYNC SECURED Reading Register CCR (id:5): DiRegisterRead()==> DI_OK CCR (id:5) -> 0x00 Reading Register D (id:2): DiRegisterRead()==> DI_OK D (id:2) -> 0x00 Reading Register X (id:3): DiRegisterRead()==> DI_OK X (id:3) -> 0x00 Reading Register Y (id:4): DiRegisterRead()==> DI_OK Y (id:4) -> 0x00 Reading Register SP (id:1): DiRegisterRead()==> DI_OK SP (id:1) -> 0x00 Reading Register PC (id:0): DiRegisterRead()==> DI_OK PC (id:0) -> 0x00 Reading From Memory Address: 0x030, count: 1 DiMemoryRead()==> DI_OK 00 Reading Register CCR (id:5): DiRegisterRead()==> DI_OK CCR (id:5) -> 0x00 Reading Register D (id:2): DiRegisterRead()==> DI_OK D (id:2) -> 0x00 Reading Register X (id:3): DiRegisterRead()==> DI_OK X (id:3) -> 0x00 Reading Register Y (id:4): DiRegisterRead()==> DI_OK Y (id:4) -> 0x00 Reading Register SP (id:1): DiRegisterRead()==> DI_OK SP (id:1) -> 0x00 Reading Register PC (id:0): DiRegisterRead()==> DI_OK PC (id:0) -> 0x00 Reading From Memory Address: 0x030, count: 1 DiMemoryRead()==> DI_OK 00 ACKN SYNC SECURED Reading Register CCR (id:5): DiRegisterRead()==> DI_OK CCR (id:5) -> 0x00 Reading Register D (id:2): DiRegisterRead()==> DI_OK D (id:2) -> 0x00 Reading Register X (id:3): DiRegisterRead()==> DI_OK X (id:3) -> 0x00 Reading Register Y (id:4): DiRegisterRead()==> DI_OK Y (id:4) -> 0x00 Reading Register SP (id:1): DiRegisterRead()==> DI_OK SP (id:1) -> 0x00 Reading Register PC (id:0): DiRegisterRead()==> DI_OK PC (id:0) -> 0x00 Reading From Memory Address: 0x030, count: 1 DiMemoryRead()==> DI_OK 00 Reading From Memory Address: 0x00, count: 48 DiMemoryRead()==> DI_OK FE 99 01 FF 00 00 00 00 93 1C 10 80 90 00 01 00 39 00 09 0D 00 0F 00 10 00 00 01 15 13 80 00 F2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Reading From Memory Address: 0x031, count: 335 DiMemoryRead()==> DI_OK 00 BF 00 02 02 00 5C 00 80 F1 00 00 00 80 00 02 00 00 00 3C FB 80 00 00 00 00 00 02 00 00 00 FF ……
GDI DLL called: DI_CB_MTWKS_EXTENSION_Callback(MTWKS_CB_HC12AUTOCONFIG)
IO registers loaded for MC9S12DG128B from C:\Program Files\Metrowerks\CW for HCS12X V4.1\prog\REG\MCU03DC.REG
Micro Name: MC9S12DG128B
FP: Bus speed detection skipped. Now using predefined frequency of 8000000 Hz
GDI DLL called: DI_CB_MTWKS_EXTENSION_Callback(MTWKS_CB_CONNECTIONOK)
GDI DLL called: DI_CB_MTWKS_EXTENSION_Callback(MTWKS_CB_UPDATEVIEW) DiExecGetStatus reported -> GDI_WAIT_RUNNING DiExecGetStatus reported cause -> ACKN SYNC RUNNING RUNNING RUNNING Initializing STARTUP command file: CMDFILE STARTUP ON "startup.cmd" Initializing RESET command file: CMDFILE RESET ON "reset.cmd" Initializing PRELOAD command file: CMDFILE PRELOAD ON "preload.cmd" Initializing POSTLOAD command file: CMDFILE POSTLOAD ON "postload.cmd" Initializing VPPON command file: CMDFILE VPPON ON "vppon.cmd" Initializing VPPOFF command file: CMDFILE VPPOFF ON "vppoff.cmd" DiDirectAddMenuItem()==> DI_OK Initializing UNSECURE command file: CMDFILE UNSECURE ON "unsecure.cmd" Writing To Memory Address: 0x028, count: 2 00 00 DiMemoryWrite()==> DI_OK Writing To Memory Address: 0x028, count: 2 00 00 DiMemoryWrite()==> DI_OK Writing To Memory Address: 0x028, count: 2 00 00 DiMemoryWrite()==> DI_OK Reading Register CCR (id:5): DiRegisterRead()==> DI_OK CCR (id:5) -> 0x00 Reading Register D (id:2): DiRegisterRead()==> DI_OK D (id:2) -> 0x00 Reading Register X (id:3): DiRegisterRead()==> DI_OK X (id:3) -> 0x00 Reading Register Y (id:4): DiRegisterRead()==> DI_OK Y (id:4) -> 0x00 Reading Register SP (id:1): DiRegisterRead()==> DI_OK SP (id:1) -> 0x00 Reading Register PC (id:0): DiRegisterRead()==> DI_OK PC (id:0) -> 0x00 Reading From Memory Address: 0x030, count: 1 DiMemoryRead()==> DI_OK 00 Reading From Memory Address: 0x00, count: 48 DiMemoryRead()==> DI_OK FE F1 01 FF 00 00 00 00 93 1C 10 80 90 00 01 00 39 00 09 0D 00 0F 00 10 00 00 01 15 13 80 00 F2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Reading From Memory Address: 0x031, count: 335 DiMemoryRead()==> DI_OK 00 BF 00 02 02 00 5C 00 80 F1 00 00 00 80 00 02 00 00 00 2C FE 80 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 11 00 00 00 00 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ……
DiDirectAddMenuItem()==> DI_OK Startup Command File execution: startup.cmd File does not exist: startup.cmd Startup command file does not exist. Reading From Memory Address: 0x00, count: 384 DiMemoryRead()==> DI_OK FE F1 01 FF 00 00 00 00 93 1C 10 80 90 00 01 00 39 00 09 0D 00 0F 00 10 00 00 01 15 FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 …… Reading Register CCR (id:5): DiRegisterRead()==> DI_OK CCR (id:5) -> 0x00 Reading Register D (id:2): DiRegisterRead()==> DI_OK D (id:2) -> 0x00 Reading Register X (id:3): DiRegisterRead()==> DI_OK X (id:3) -> 0x00 Reading Register Y (id:4): DiRegisterRead()==> DI_OK Y (id:4) -> 0x00 Reading Register SP (id:1): DiRegisterRead()==> DI_OK SP (id:1) -> 0x00 Reading Register PC (id:0): DiRegisterRead()==> DI_OK PC (id:0) -> 0x00 Reading From Memory Address: 0x030, count: 1 DiMemoryRead()==> DI_OK 00 Target Ready Reading Register CCR (id:5): DiRegisterRead()==> DI_OK CCR (id:5) -> 0x00 Reading Register D (id:2): DiRegisterRead()==> DI_OK D (id:2) -> 0x00 Reading Register X (id:3): DiRegisterRead()==> DI_OK X (id:3) -> 0x00 Reading Register Y (id:4): DiRegisterRead()==> DI_OK Y (id:4) -> 0x00 Reading Register SP (id:1): DiRegisterRead()==> DI_OK SP (id:1) -> 0x00 Reading Register PC (id:0): DiRegisterRead()==> DI_OK PC (id:0) -> 0x00 Reading From Memory Address: 0x030, count: 1 DiMemoryRead()==> DI_OK 00 Reading From Memory Address: 0x00, count: 48 DiMemoryRead()==> DI_OK FE FF 01 FF 00 00 00 00 93 1C 10 80 90 00 01 00 39 00 09 0D 00 0F 00 10 00 00 01 15 13 80 00 F2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Reading From Memory Address: 0x031, count: 335 DiMemoryRead()==> DI_OK 00 BF 00 02 02 00 5C 00 80 F1 00 00 00 80 00 02 00…… |