找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 20378|回复: 0
打印 上一主题 下一主题
收起左侧

STM32使用STLINK无法下载的解决方案

[复制链接]
跳转到指定楼层
楼主
ID:110653 发表于 2016-3-29 03:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

                                                


使用STLINK无法下载程序,提示如上图所示。


解决方案:如下图所示配置




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

使用STLINK时,需要注意一下上图中的圆圈部分。

这个地方有四个选项,分别是Auto detect、HW RESET、SYSRESETREQ、VECTRESET。默认是Auto detcet,用STLINK需要改成HW RESET。

这四个选项的定义:

  • 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意思就是硬件复位,SYSRESETREQ就是只给M内核和片上外设复位,VECTRSET就是只给M核复位。Auto detect就是自动选择上面的三个中的一个复位。(这段话无法理解,不要紧,以后会理解的)


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表