RISC-V MCU中文社区

【求助】 n101移植非官方FPGA开发板,二线JTAG调试openocd连不上JTAG

发表于 开源蜂鸟E203 2022-03-03 13:20:23
21
12901
1
用户评论 (21)
  • 2022-03-03 15:12:45 16#

    胡灿

    4线连接有问题吗?

    四线没有问题


  • 胡灿

    2022-03-03 15:12:09 胡灿 17#

    使用的就是V2,Debugger Kit V2

    4线连接有问题吗?

  • 2022-03-03 15:02:17 18#

    胡灿

    蜂鸟调试器用的是哪一代的呢,V2版本才支持两线调试

    使用的就是V2,Debugger Kit V2

  • 胡灿

    2022-03-03 15:01:07 胡灿 19#

    修改之后还是报错,日志如下:

    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..

    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

    Info : hbird_debugger: This TAP's version is too old, trying use async sequence to handshake..

    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

    Error: Unsupported DTM version: 15

    怎么解决呢?

    蜂鸟调试器用的是哪一代的呢,V2版本才支持两线调试

  • 2022-03-03 14:59:07 20#

    胡灿

    两线调试需要将openocd的配置文件修改一下

    ftdi_oscan1_mode off 改成 ftdi_oscan1_mode on

    修改之后还是报错,日志如下:

    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..

    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

    Info : hbird_debugger: This TAP's version is too old, trying use async sequence to handshake..

    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

    Error: Unsupported DTM version: 15

    怎么解决呢?

  • 胡灿

    2022-03-03 14:53:24 胡灿 21#

    两线调试需要将openocd的配置文件修改一下

    ftdi_oscan1_mode off 改成 ftdi_oscan1_mode on

未通过实名认证

懒的都不写签名

积分
问答
粉丝
关注
  • RV-STAR 开发板
  • RISC-V处理器设计系列课程
  • 培养RISC-V大学土壤 共建RISC-V教育生态
RV-STAR 开发板