4线连接有问题吗?
四线没有问题
使用的就是V2,Debugger Kit V2
蜂鸟调试器用的是哪一代的呢,V2版本才支持两线调试
修改之后还是报错,日志如下:
Open On-Chip Debugger 0.11.0+dev-01889-geee887d60 (2022-01-13-23:33)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter speed' not 'adapter_khz'
DEPRECATED! use 'adapter driver' not 'interface'
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Info : Using libusb driver
Info : clock speed 1000 kHz
Info : hbird_debugger: This TAP's version is too old, trying use async sequence to handshake..
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: riscv.cpu: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Unsupported DTM version: 15
Warn : target riscv.cpu examination failed
Info : starting gdb server for riscv.cpu on 3333
Info : Listening on port 3333 for gdb connections
Error: Target not examined yet
怎么解决呢?
两线调试需要将openocd的配置文件修改一下
ftdi_oscan1_mode off 改成 ftdi_oscan1_mode on