I have a breakout board with one of these parts on it, and am trying to get into the part via jtag via openocd.
interface ftdi
ftdi_vid_pid 0x0403 0x6014
ftdi_layout_init 0x0008 0x00fb
#D0 TCK
#D1 TDI
#D2 TDO
#D3 TMS
adapter_khz 10000
telnet_port 4444
gdb_port 0
tcl_port 0
set _CHIPNAME riscv
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME riscv -chain-position $_TARGETNAME
$_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1
#flash bank my_first_flash fespi 0x20000000 0 0 0 $_TARGETNAME
#flash protect 0 64 last off
using an adafruit FT232H breakout. making progress as others have but I dont see an answer to the problem.
Open On-Chip Debugger 0.10.0+dev-00382-g5d9f486 (2018-06-19-19:02)
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
adapter speed: 10000 kHz
Info : auto-selecting first available session transport “jtag”. To override use ‘transport select ’.
1
Info : Listening on port 39839 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : ftdi: if you experience problems at higher adapter clocks, try the command “ftdi_tdo_sample_edge falling”
Info : clock speed 10000 kHz
Info : JTAG tap: riscv.cpu tap/device found: 0x10e31913 (mfg: 0x489 (SiFive, Inc.), part: 0x0e31, ver: 0x1)
Error: OpenOCD only supports Debug Module version 1, not 0 (dminfo=0x0)
Info : Listening on port 42117 for gdb connections
and of course then
telnet localhost 4444
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Open On-Chip Debugger
halt
Target not examined yet
How do I/we get past this error:
Error: OpenOCD only supports Debug Module version 1, not 0 (dminfo=0x0)
Is it an openocd thing is it a chip configuration thing do I need to strap the pins differently? What am I missing?