armfly 发表于 2022-3-28 09:31:26

VisualGDB DAP init failed,无法调试


之前好好的,突然不能调试了。新建一个RP2040项目,也不行。


C:\Users\armfl\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.arm.openocd\bin\openocd_rp2040.exe -c "gdb_port 62999" -c "telnet_port 62997" -f interface/cmsis-dap.cfg -c "adapter speed 3000" -c "transport select swd" -f target/rp2040.cfg -c init -c "reset init" -c "echo VisualGDB_OpenOCD_Ready"
Open On-Chip Debugger 0.10.0 (2021-11-16)
Licensed under GNU GPL v2

For bug reports, read
      http://openocd.org/doc/doxygen/bugs.html
adapter speed: 3000 kHz


swd
Info : Hardware thread awareness created
Info : Hardware thread awareness created
Info : RP2040 Flash Bank Command
Info : CMSIS-DAP: SWDSupported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0
Info : CMSIS-DAP: Interface ready
Info : clock speed 3000 kHz
Info : SWD DPIDR 0x0bc12477
Info : SWD DLPIDR 0x00000001
Info : DAP init failed





armfly 发表于 2022-3-28 10:07:32

问题已解决。原因是用 embeded studio下载过程序。
按住pico板上的按钮插上USB线,重新刷一个正常的固件,就恢复正常了。

看来segger搞的启动文件之类和官方的不同。
页: [1]
查看完整版本: VisualGDB DAP init failed,无法调试