新闻中心

EEPW首页>嵌入式系统>设计应用> 在MDK调试STM32出现“could not stop cortex-m device”解决办法

在MDK调试STM32出现“could not stop cortex-m device”解决办法

作者: 时间:2016-11-25 来源:网络 收藏
错误如http://www.amobbs.com/forum.php?mod=viewthread&tid=4075329
错误图片如下:


我的解决办法:
发现RESET一直在1V附近,将RESET处的下拉电容换掉后第一个错误没有,但是跳出下面的错误:No Cortex-M Device found in JTAG chain。
解决办法:发现JTAG线没插上,插上就好了。
http://no001.blog.51cto.com/1142339/857117
网上的解决办法:
1 我遇到这个问题的原因是Boot1没接地,所以可以考虑下是否是硬件的原因
2 如果MCU出于reset状态,也会出现这种情况。我的火牛板子,应为串口上有个复位的跳线被我端接后,一直不正常,拔掉就OK了!
3 我试过以前正常的板和程序,现在均有问题,也看过了编译选项,有选的,不过换成MDK4.10就正常了,原因不了解
4 上面写的清楚啊,reset接地了。或者是编译选项里你没选器件?或者是下载选项里没选器件?
5 原子告诉我吧BOOT0设置为1,下载程序,再恢复BOOT0为0,之后就能用了。
6 体现象是,可以下载,但是一运行就没办法中断,系统的提示跟楼主的一样。一开始以为是硬件或者ULink调试器设置的问题,查了很久,最后发现确实是主频过高。因为ST的例子代码,默认是8M晶振,锁相环9倍,结果我外部是25M晶振,就变成了25×9=225M!不知道什么原因,不过把频率改了,暂时没出现问题。
7 In my own experience I have usually seen this error when either the ULINK2 is disconnecte d and reconnected while in the middle of a debug session or if you have some external hardware, outside of the control of the debugger, that is acting on your processor.
If the ULINK2 was disconnected mid-debug, then usually cycling power to your device will fix the problem.
If you have something like a watchdog timer that is trying to reset the processor while you are in the middle of debugging, then you will have to disable the watchdog before you can start a debug session



关键词:MDK调试STM3

评论


技术专区

关闭