上图是对GPIO拉低处理,下载完之后,仿真器再进行连接就连接不上了,通过CAN可以看到有报文发出,说明芯片在运行
我使用XDS110仿真器,配置如下图所示
然后我就进行排查为什么连接不上,因为这个0道220GPIO全部拉低的功能是新添加的,所以我进行了仿真,当运行道205GPIO时就出现了如下的错误:
Trouble Halting Target CPU:(Error -1156 @ 0x0)Device may be operating in lowpower mode. Do you want to bring it out of this mode? Choose 'Yes' to force the device to wake up and retry the operation. Choose 'No' to retry the operation without waking the device.
好像是进入了低功耗模式,我也不太清楚,这个问题先放着,设置为问题1.
然后呢,我把操作到220改为了204,就不会出现上述的问题了,下载后仿真器也可以连接上了
或者仍然保持操作到220GPIO,把仿真器配置的4pin改为2pin也可以解决
但是关于我这种解决方式单纯通过尝试,没有一个合理的解释,请求大老帮忙解决一下,为什么会出现我这种情况,合理的解决方法是什么?
对了,忘记说了仿真器连接不上报错如下所示
Error connecting to the target:
(Error -2131 @ 0x0)
Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK).
(Emulation package 12.7.0.00130)
您好,
请问使用的是F28P65x LaunchPad?
如果是,由于板上安装的单向隔离器,这款LaunchPad不能使用2针cJTAG。
(有关更多信息,请参见此帖子TMS320F28P650DK: Does F28P650DK9 support 2-pin cJTAG? - C2000 microcontrollers forum - C2000︎ microcontrollers - TI E2E support forums。)
如果可以使用4针配置,请尝试使用常规JTAG。