Using OpenOCD to access the Risc-V DMI


#1

Hi.

I’m working with a HiFive Unleashed, using a Segger J-Link and VisualGDB to develop bare-metal code.

The device boots into hart0 and it seems harts1-4 are halted.

I’ve now set up OpenOCD to try to access the DMI and I can download and run and step through my code fine.

I was hoping to initially use dmi_read, but when I try: monitor riscv.cpu dmi_read I get the response: “invalid subcommand dmi_read”

I’d appreciate any help in understanding where I’ve gone wrong or what I’d have to do to get OpenOCD working as I’d expect it to.

Thanks
Andy Whyte