首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当ST-Link实用程序工作时,为什么OpenOCD会失败?

当ST-Link实用程序工作时,为什么OpenOCD会失败?
EN

Stack Overflow用户
提问于 2020-02-15 02:11:06
回答 1查看 614关注 0票数 2

我正在尝试使用openocd来调试我的stm32 bluepill (stm32f103c8t6)。我将它与ST-Link V2连接,通过ST-Link实用程序(连接、闪烁等)可以很好地工作。当我试图通过openocd使用它时,我得到了以下错误:

代码语言:javascript
复制
F:\Tools\openocd\openocd.exe -f "F:\bluepill.cfg"
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
none separate
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Error: open failed
in procedure 'init'
in procedure 'ocd_bouncer'

使用Clion提供的配置运行它会产生相同的结果。

bluepill.cfg

代码语言:javascript
复制
source [find interface/stlink-v2-1.cfg]

transport select hla_swd

source [find target/stm32f1x.cfg]

reset_config none separate

我尝试了这个thread中建议的答案,但没有成功。

错误消息到底是什么意思,我在这里遗漏了什么?

EN

回答 1

Stack Overflow用户

发布于 2020-12-27 23:00:39

我犯了和你完全一样的错误。我做了一个完整的芯片擦除使用st链接实用程序,它现在完美地为我工作。我使用了这个:

代码语言:javascript
复制
openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg

修改它以供您在windows上使用,并让我知道它是否工作!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60231526

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档