在MDK调试STM32出现“could not stop cortex-m device”解决办法
错误图片如下:
我的解决办法:
发现RESET一直在1V附近,将RESET处的下拉电容换掉后第一个错误没有,但是跳出下面的错误:No Cortex-M Device found in JTAG chain。
解决办法:发现JTAG线没插上,插上就好了。
http://no001.blog.51cto.com/1142339/857117
网上的解决办法:
1
2
3
4 上面写的清楚啊,reset接地了。或者是编译选项里你没选器件?或者是下载选项里没选器件?
5
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 disconnected 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 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)