<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應用 > 在MDK調(diào)試STM32出現(xiàn)“could not stop cortex-m device”解決辦法

          在MDK調(diào)試STM32出現(xiàn)“could not stop cortex-m device”解決辦法

          作者: 時間:2016-11-25 來源:網(wǎng)絡(luò) 收藏
          錯誤如http://www.amobbs.com/forum.php?mod=viewthread&tid=4075329
          錯誤圖片如下:


          我的解決辦法:
          發(fā)現(xiàn)RESET一直在1V附近,將RESET處的下拉電容換掉后第一個錯誤沒有,但是跳出下面的錯誤:No Cortex-M Device found in JTAG chain。
          解決辦法:發(fā)現(xiàn)JTAG線沒插上,插上就好了。
          http://no001.blog.51cto.com/1142339/857117
          網(wǎng)上的解決辦法:
          1我遇到這個問題的原因是Boot1沒接地,所以可以考慮下是否是硬件的原因
          2如果MCU出于reset狀態(tài),也會出現(xiàn)這種情況。我的火牛板子,應為串口上有個復位的跳線被我端接后,一直不正常,拔掉就OK了!
          3我試過以前正常的板和程序,現(xiàn)在均有問題,也看過了編譯選項,有選的,不過換成MDK4.10就正常了,原因不了解
          4 上面寫的清楚啊,reset接地了?;蛘呤蔷幾g選項里你沒選器件?或者是下載選項里沒選器件?
          5原子告訴我吧BOOT0設(shè)置為1,下載程序,再恢復BOOT0為0,之后就能用了。
          6 體現(xiàn)象是,可以下載,但是一運行就沒辦法中斷,系統(tǒng)的提示跟樓主的一樣。一開始以為是硬件或者ULink調(diào)試器設(shè)置的問題,查了很久,最后發(fā)現(xiàn)確實是主頻過高。因為ST的例子代碼,默認是8M晶振,鎖相環(huán)9倍,結(jié)果我外部是25M晶振,就變成了25×9=225M!不知道什么原因,不過把頻率改了,暫時沒出現(xiàn)問題。
          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



          關(guān)鍵詞: MDK調(diào)試STM3

          評論


          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();