openocd用stlink调试stm32,报上面错误是什么原因?有遇到过...

[复制链接]
2887|1
 楼主| keer_zu 发表于 2021-8-4 14:49 | 显示全部楼层 |阅读模式
本帖最后由 keer_zu 于 2021-8-4 14:51 编辑
Error: init mode failed (unable to connect to the target)
in procedure 'init'
in procedure 'ocd_bouncer'

openocd用stlink调试stm32,报上面错误是什么原因?有遇到过吗?

有人建议boot0,boot1拉高可以烧写,烧写后boot0,boot1恢复之前状态,就可以恢复正常了。试了试,不行。
请大家给些建议。谢谢
完整的输出:
  1. PS D:\openocd\bin-x64> .\openocd.exe -f ..\scripts\interface\stlink-v2.cfg -f ..\scripts\target\stm32f4x_stlink.cfg
  2. Open On-Chip Debugger 0.10.0
  3. Licensed under GNU GPL v2
  4. For bug reports, read
  5.         http://openocd.org/doc/doxygen/bugs.html
  6. WARNING: target/stm32f4x_stlink.cfg is deprecated, please switch to target/stm32f4x.cfg
  7. Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
  8. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
  9. adapter speed: 2000 kHz
  10. adapter_nsrst_delay: 100
  11. none separate
  12. Info : Unable to match requested speed 2000 kHz, using 1800 kHz
  13. Info : Unable to match requested speed 2000 kHz, using 1800 kHz
  14. Info : clock speed 1800 kHz
  15. Info : STLINK v2 JTAG v35 API v2 SWIM v7 VID 0x0483 PID 0x3748
  16. Info : using stlink api v2
  17. Info : Target voltage: 3.210020
  18. Error: init mode failed (unable to connect to the target)
  19. in procedure 'init'
  20. in procedure 'ocd_bouncer'


 楼主| keer_zu 发表于 2021-8-5 07:40 | 显示全部楼层
昨天找到原因:不知谁恶作剧,把板子上jtag一根线挑断了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1488

主题

12949

帖子

55

粉丝
快速回复 在线客服 返回列表 返回顶部