CCS调试时,有时候会报以下错误
Error connecting to the target:
(Error -154 @ 0x0)
One of the FTDI driver functions used to
write data returned bad status or an error.
(Emulation package 7.0.188.0)
出现上述错误时。板子断电,仿真器断开USB,关闭CCS,重新打开CCS和连接仿真器,一般就能解决。
也有可能是其他原因,比如仿真器与板子连接不良,板子电源不正确等等原因。