近日小弟在开发28335的板子,新板子回来之后用CCS进行调试,可以代码总是下不进去。分别用了CCS4.0和CCS4.2两个软件进行调试。
软件给出的结果都不一样,CCS4.0给出的提示是这样的:
It appears that the target is being held in reset. This may be
due to Wait-In-Reset (WIR) configuration set by the EMU0=0
and EMU1=1 pin settings. If this is the case, DISCONNECT
all CONNECTED devices including icepick and then select
RETRY to clear the WIR configuration.
If this is a multi-core system, the master CPU may not be
releasing the DSP/MCU from reset. Please check your
configuration in CC_setup and/or your GEL file to ensure that
nothing is blocking the DSP/MCU from being released from reset
然后我检查了EMU0和EMU1的电平都是高电平,没有问题。
用CCS4.2调试的结果是这样的:
C28xx: Flash Programmer: Warning: The configured device (TMS320F28335), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
C28xx: Failed Software Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.429.0)
C28xx: Trouble Reading PC Register: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.429.0)
C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.429.0)
C28xx: GEL: Error while executing OnReset(1): Target failed to read the register ST1.
C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.429.0)
C28xx: Failed Software Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.429.0)
C28xx: Trouble Reading PC Register: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.429.0)
C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.429.0)
C28xx: GEL: Error while executing OnReset(1): Target failed to read the register ST1.
C28xx: Trouble Writing Memory Block at 0x8000 on Page 0 of Length 0x1f: (Error -1137 @ 0x8002) Device is held in reset. Take the device out of reset, and retry the operation. (Release 5.0.429.0)
Cannot write to target
C28xx: Error: (Error -1135 @ 0x3FF9CE) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Release 5.0.429.0)
DSP的XRS管脚电平也是高电平,没有复位,所以这个应该没问题。
所以现在我也不知道问题出在哪里了,求各位高人指点,给点思路,感激不尽啊啊啊!!!
先谢谢各位看帖的前辈了。
