初始化 ST-Link 设备时出错 - 无法连接到设备 [英] Error in initializing ST-Link Device - Failed to connect to device

查看:39
本文介绍了初始化 ST-Link 设备时出错 - 无法连接到设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用 ST-Link 调试器对我的 STM32F3 探索板进行编程.我使用的 IDE 是 Atollic TrueStudio 5.5.2.现在我面临一个非常奇怪的问题,就是我不断收到消息

I am currently using the ST-Link debugger to program my STM32F3 Discovery Board. The IDE that I am using is Atollic TrueStudio 5.5.2. Now I am facing a very weird problem which is I keep on getting the message

初始化 ST-Link 设备时出错.原因:(-1) 无法连接到设备.请检查目标的电源和布线.

Error in initializing ST-Link Device. Reason : (-1) Failed to connect to device . Please check power and cabling to target.

每当我想将程序下载到我的 STM32 中时.我尝试了一些从互联网上找到的解决方案,但问题仍然存在.有没有人遇到过这个问题?任何建议都会有所帮助.

whenever I want to download the program into my STM32. I have tried some solutions that I found from internet but the problem still exists. Has anyone faced this problems before? Any suggestions will help.

这是我找到的解决方案,但对我不起作用.http://www.kerrywong.com/2012/08/02/the-dreaded-cannot-connect-to-st-link-error-message/

Here is the solution I found, but I doesn't work for me. http://www.kerrywong.com/2012/08/02/the-dreaded-cannot-connect-to-st-link-error-message/

推荐答案

不是整个 PC 方面的专家,但我在 Windows 10 中使用 aliexpress 的外部 ST-LINK V2 发现 PC 机器可能会选择错误的驱动程序设备默认情况下,您所做的修复就是简单地更改设备的相应驱动程序.

Not an expert in the whole PC stuff but I found out in windows 10 using external ST-LINK V2 from aliexpress that the PC machine might select the wrong driver per device by default and what you do to fix that is to simply change the corresponding driver for the device.

这是你的做法:

Hit Windows key 
Type "device manager"
Locate connected ST link device Right click-> "Update driver"
browse my PC -> Let me pick from a list available
and there you want to select STLink Dongle Version:("Your most recent")

这几乎解决了我所有的问题.

And that pretty much fixed all my problems.

这篇关于初始化 ST-Link 设备时出错 - 无法连接到设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆