Could not stop Cortex-M device!Please check the JTAG cable.

Could not stop Cortex-M device!Please check the JTAG cable.

学习STM32时在新建工程下载程序的时候出现“Could not stop Cortex-M device!Please check the JTAG cable.”问题

Could not stop Cortex-M device!Please check the JTAG cable._第1张图片首先弹出
Could not stop Cortex-M device!Please check the JTAG cable._第2张图片然后弹出这个。
网上查找原因,尝试了n多种提到的解决办法都失败了!
于是怀疑是不是文件哪里被更改了,就开始用能下载的工程项目里面的文件来替换本工程项目里面的(自己已经编写了好多程序的就不要这样试了),最后发现将能够正常下载到STM32里面的工程项目里面的xxx.uvoptx文件去替换下载失败的工程项目里的改文件
Could not stop Cortex-M device!Please check the JTAG cable._第3张图片特别说明,本人的两个项目文件名都是Template,若你的不是同名我觉得你复制过去了,应该还要改一下文件名称。
然后重新打开下载失败的工程:重新设置一下,重新编译,然后就可以下载成功了。
具体原因本人也没整明白,还望看到的大神解惑。

设置步骤如下:
Could not stop Cortex-M device!Please check the JTAG cable._第4张图片
Could not stop Cortex-M device!Please check the JTAG cable._第5张图片
Could not stop Cortex-M device!Please check the JTAG cable._第6张图片
Could not stop Cortex-M device!Please check the JTAG cable._第7张图片
点OK返回。Could not stop Cortex-M device!Please check the JTAG cable._第8张图片

你可能感兴趣的:(Could not stop Cortex-M device!Please check the JTAG cable.)