我正在尝试使用openocd来调试我的stm32 bluepill (stm32f103c8t6)。我将它与ST-Link V2连接,通过ST-Link实用程序(连接、闪烁等)可以很好地工作。当我试图通过openocd使用它时,我得到了以下错误:
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
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32f1x.cfg]
reset_config none separate我尝试了这个thread中建议的答案,但没有成功。
错误消息到底是什么意思,我在这里遗漏了什么?
发布于 2020-12-27 23:00:39
我犯了和你完全一样的错误。我做了一个完整的芯片擦除使用st链接实用程序,它现在完美地为我工作。我使用了这个:
openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg修改它以供您在windows上使用,并让我知道它是否工作!
https://stackoverflow.com/questions/60231526
复制相似问题