xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2021-12-07-17:33)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
Info : DEPRECATED target event trace-config; use TPIU events {pre,post}-{enable,disable}
Warn : Using CMSIS-DAPv2 interface 1 with wrong class 10 subclass 0 or protocol 0
Info : Using CMSIS-DAPv2 interface with VID:PID=0xc251:0xf001, serial=ATK-05022018
Warn : could not claim interface: Operation not supported or unimplemented on this platform
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error reading data: Entity not found
Error: error writing data: Entity not found
Error: CMSIS-DAP command CMD_INFO failed.

这是出现的问题这是咋回事 OpenOCD的错误吗


    芯片是STM32F103zet6正点原子的精英开发板,下载器也是正点原子的DAP仿真器
    长这样,

    TheRationalLife

    暂时不清楚原因,也许跟这句警告有关系:Warn : could not claim interface: Operation not supported or unimplemented on this platform

    看你用的是:xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2021-12-07-17:33),这个 xpack 维护的 OpenOCD 我用过,效果并不是很好。

    建议你用 GNU MCU Eclipse 的 OpenOCD,eide 默认下载的是 GNU MCU Eclipse OpenOCD, 32-bitOpen On-Chip Debugger 0.10.0+dev-00593-g23ad80df4 (2019-04-22-16:40) 版本的


    步骤:

    • 清除插件设置中的 openocd 路径设置

    • 点击 烧录 按钮,会触发 openocd.exe 的检查,在弹出的对话框中选择 立即安装 即可

    • 安装完毕后,记得重启 vscode

      admin 他这自动安装会安装在哪里,能给我发一个这个版本的压缩包吗 🤣

        5 months later
        4 months later

        说一个不用降级的结局方法吧(旧版没我那个芯片的配置文件), 以免有人同样的原因需要新版

        1. 打开C:\Users\{用户名}\.eide\tools\openocd\scripts\interface文件夹
        2. 找到cmsis-dap.cfg, 复制一份, 改名为cmsis-dap-v1.cfg
        3. 编辑cmsis-dap-v1.cfg, 在最后添加一行cmsis_dap_backend hid
        4. 使用新改的cmsis-dap-v1.cfg进行调试(或者手动执行的时候在-c 命令的最前面加cmsis_dap_backend hid也行)

        忘了在哪看到的了, 好像原因是有个型号的v2 DAP在做的时候没写对usb设备类型, 然后openocd官方就去做了个"CMSIS DAP"的关键字匹配, 然后所有v1版本的DAP且串口名字里面包含关键字的, 就会被错误识别成v2, 然后连接识别, 不知道openocd官方为啥不修

        没试过最新的0.12-rc1有没有修复这个问题, 有人有渠道的也可以和openocd官方建议下做成白名单, 或者把串口做成黑名单, 或者加个回退路径

        a month later
        2 years later
        Write a Reply...