cfg文件内注释掉了flash相关的三行代码
adapter_khz 1000interface ftdiftdi_vid_pid 0x0403 0x6010ftdi_oscan1_mode offtransport select jtagftdi_layout_init 0x0008 0x001bftdi_layout_signal nSRST -oe 0x0020 -data 0x0020ftdi_layout_signal TCK -data 0x0001ftdi_layout_signal TDI -data 0x0002ftdi_layout_signal TDO -input 0x0004ftdi_layout_signal TMS -data 0x0008ftdi_layout_signal JTAG_SEL -data 0x0100 -oe 0x0100set _CHIPNAME riscvjtag newtap $_CHIPNAME cpu -irlen 5set _TARGETNAME $_CHIPNAME.cputarget create $_TARGETNAME riscv -chain-position $_TARGETNAME$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1# set _FLASHNAME $_CHIPNAME.flash# flash bank $_FLASHNAME fespi 0x20000000 0 0 0 $_TARGETNAME# Set the ILM space also as flash, to make sure it can be add breakpoint with hardware trigger#flash bank onboard_ilm fespi 0x80000000 0 0 0 $_TARGETNAME# Expose Nuclei self-defined CSRS range 770-800,835-850,1984-2032,2064-2070# See https://github.com/riscv/riscv-gnu-toolchain/issues/319#issuecomment-358397306# Then user can view the csr register value in gdb using: info reg csr775 for CSR MTVT(0x307)riscv expose_csrs 770-800,835-850,1984-2032,2064-2070init#resetif {[ info exists pulse_srst]} { ftdi_set_signal nSRST 0 ftdi_set_signal nSRST z}halt# We must turn on this because otherwise the IDE version debug cannot download the program into flash# flash protect 0 0 last offOpenOCD输出
Open On-Chip Debugger 0.11.0+dev-01897-gc8fc2a168 (2022-04-01-04:46)Licensed under GNU GPL v2For bug reports, read http://openocd.org/doc/doxygen/bugs.htmlDEPRECATED! use 'adapter speed' not 'adapter_khz'DEPRECATED! use 'adapter driver' not 'interface'Info : Using libusb driverInfo : clock speed 1000 kHzError: JTAG scan chain interrogation failed: all onesError: Check JTAG interface, timings, target power, etc.Error: Trying to use configured scan chain anyway...Error: riscv.cpu: IR capture error; saw 0x1f not 0x01Warn : Bypassing JTAG setup events due to errorsError: Unsupported DTM version: 15Warn : target riscv.cpu examination failedInfo : starting gdb server for riscv.cpu on 3333Info : Listening on port 3333 for gdb connectionsError: Target not examined yetError: Unsupported DTM version: 15驱动安装情况