Follow the tutorial here to set up RISC-V development environment.
After cloning the repo, we need to initialize the submodules by executing the following commands.
git submodule init
git submodule update
make build USE_HTIF=1
make bin
Terminal 1
openocd.exe -f ./examplechip.cfg
Terminal 2
riscv64-unknown-elf-gdb.exe --eval-command="target extended-remote localhost:3333"