我正在尝试使用openocd调试我的stm32 bluepill(stm32f103c8t6)。我将其连接到ST-Link V2,该ST-Link V2可通过ST-Link Utility正常工作(连接,闪烁等)。当我尝试通过openocd使用它时,出现以下错误:
variables:
buildConfiguration: 'Release'
dotnetSdkVersion: '3.1.101'
steps:
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core SDK $(dotnetSdkVersion)'
inputs:
version: '$(dotnetSdkVersion)'
使用Clion提供的配置运行它可获得相同的结果。
bluepill.cfg
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'
我尝试了此thread中建议的答案,但没有成功。
错误消息的确切含义是什么?我在这里想念什么?
答案 0 :(得分:1)
我和你的错误完全一样。我使用 st link 实用程序进行了完整的芯片擦除,现在对我来说效果很好。我用过这个:
openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg
修改它以供您在 Windows 上使用,如果它有效,请告诉我!