J-Link>connect
Please specify device / core. <Default>: R9A02G021
Type '?' for selection dialog
Device>
Please specify target interface:
  J) JTAG (Default)
  S) SWD
  T) cJTAG
TIF>T
Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
JTAGConf>
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "R9A02G021" selected.


Connecting to target via cJTAG
ConfigTargetSettings() start
ConfigTargetSettings() end - Took 29us
TotalIRLen = 5, IRPrint = 0x05
JTAG chain detection found 1 devices:
 #0 Id: 0x00000001, IRLen: 05, Unknown device
Assuming RISC-V TAP with DTM setup
Debug architecture:
  RISC-V debug: 0.13
  AddrBits: 14
  DataBits: 32
  IdleClks: 4
Memory access:
  Via system bus: No
  Via ProgBuf: No (0 ProgBuf entries)
  Via abstract command (AAM): May be tried as last resort
DataBuf: 0 entries
  autoexec[0] implemented: No
Failed to temporarily halt core during identification
Attaching to core failed. Trying again with connect under reset (ndmreset-bit)
Memory access:
Detected: RV32 core
Temp. halting CPU for for feature detection...
CPU could not be halted
Connect failed. Resetting via Reset pin and trying again.
ConfigTargetSettings() start
ConfigTargetSettings() end - Took 18us
TotalIRLen = 5, IRPrint = 0x05
JTAG chain detection found 1 devices:
 #0 Id: 0x00000001, IRLen: 05, Unknown device

****** Error: Timeout while waiting for core to halt after reset and halt request
Specific core setup failed.
Error occurred: Could not connect to the target device.
For troubleshooting steps visit: https://wiki.segger.com/J-Link_Troubleshooting
J-Link>