- Edited
Here I go with another question
How to upload firmware via JTAG to BL702 with some command line tool?
Bouffalo Lab Dev Cube is working pretty nice, but it's GUI-based and not so "developer-friendly".
Was the bflb_mcu_tool supposed to work with openocd?
It seems like it was a backend for Bouffalo Lab Dev Cube
(actually both are written in Python, both support same interfaces and even has same latest version 1.6.8)
but even so I couldn't set it up to succesfully load the firmware.
Under Windows, I tried:
Run openOCD:
C:\Users\jatsekku\Desktop\dev\utils\openocd>openocd.exe -f openocd-usb-sipeed.cfg
Open On-Chip Debugger 0.11.0 (2021-05-19) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
SiPEED USB-JTAG/TTL Ready for Remote Connections
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : clock speed 8000 kHz
Info : JTAG tap: riscv.cpu tap/device found: 0x20000e05 (mfg: 0x702 (<unknown>), part: 0x0000, ver: 0x2)
Info : datacount=1 progbufsize=2
Info : Disabling abstract command reads from CSRs.
Info : Examined RISC-V core; found 1 harts
Info : hart 0: XLEN=32, misa=0x40801125
Info : starting gdb server for riscv.cpu.0 on 3333
Info : Listening on port 3333 for gdb connections
and from Eclipse I invoked "download" action with configuration like this:
make INTERFACE=openocd
In result, openOCD reported:
https://pastebin.com/8m8T2YSz