Speed Longan Nano - Olimex ARM-USB-TINY-H JTAG adapter

Hello everyone,

I got the Olimex ARM-USB-TINY-H adapter and would like to try it out with the Longan Nano in Nuclei Studio IDE (Eclipse) to play a blink program.

I get the following error:

Nuclei OpenOCD, 64-bit Open On-Chip Debugger 0.10.0+dev-00036-gbfc178ffb (2021-02-01-06:41)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : Using libusb driver
Info : clock speed 1000 kHz
Error: Can’t run cJTAG reset escape sequences: TCK signal is not defined
Error: Can’t run cJTAG reset escape sequences: TCK signal is not defined
Error: Can’t run cJTAG reset escape sequences: TCK signal is not defined
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
Error: Can’t run cJTAG reset escape sequences: TCK signal is not defined
Warn : Bypassing JTAG setup events due to errors
Error: Unsupported DTM version: 15
Info : Listening on port 3333 for gdb connections
Error: Target not examined yet

Error: Unsupported DTM version: 15

My cfg configuration is:

Olimex ARM-USB-TINY-H JTAG Adapter

adapter_khz 1000
interface ftdi
ftdi_device_desc “Olimex OpenOCD JTAG ARM-USB-TINY-H”
ftdi_vid_pid 0x15ba 0x002a
transport select jtag

ftdi_layout_init 0x0808 0x0a1b
ftdi_layout_signal nSRST -oe 0x0200
ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100
ftdi_layout_signal LED -data 0x0800

Sipeed Longan Nano

set _CHIPNAME riscv
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x1e200a6d

set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME riscv -chain-position $_TARGETNAME
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 10000 -work-area-backup 1

set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME gd32vf103 0x08000000 0 0 0 $_TARGETNAME

riscv expose_csrs 3040-3071

init

halt

What needs to be changed?

Would it go with the Olimex?

Many greetings