找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開始

搜索
查看: 21520|回復(fù): 0
打印 上一主題 下一主題
收起左側(cè)

STM32使用STLINK無(wú)法下載的解決方案

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:110653 發(fā)表于 2016-3-29 03:10 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式

                                                


使用STLINK無(wú)法下載程序,提示如上圖所示。


解決方案:如下圖所示配置




其它需要配置的地方,和JLINK一樣。

使用STLINK時(shí),需要注意一下上圖中的圓圈部分。

這個(gè)地方有四個(gè)選項(xiàng),分別是Auto detect、HW RESET、SYSRESETREQ、VECTRESET。默認(rèn)是Auto detcet,用STLINK需要改成HW RESET。

這四個(gè)選項(xiàng)的定義:

  • Reset — HW RESET performs a hardware reset by asserting the hardware reset (HW RESET) signal.
  • Reset — SYSRESETREQ performs a software reset by setting the SYSRESETREQ bit. The Cortex-M core and on-chip peripherals are reset.
  • Reset — VECTRESET performs a software reset by setting the VECTRESET bit. Only the Cortex-M core is reset. The on-chip peripherals are not affected. For some Cortex-M devices, VECTRESET is the only way to reset the core. VECTRESET is not supported on Cortex-M0 and Cortex-M1 cores.
  • Reset — Autodetect selects one of the above reset methods based on the target device. The SYSRESETREQ method is used if an unknown device is detected.


HW RESET意思就是硬件復(fù)位,SYSRESETREQ就是只給M內(nèi)核和片上外設(shè)復(fù)位,VECTRSET就是只給M核復(fù)位。Auto detect就是自動(dòng)選擇上面的三個(gè)中的一個(gè)復(fù)位。(這段話無(wú)法理解,不要緊,以后會(huì)理解的)


分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表