PyRvDbg
Python-based RISC-V debugger for bare-metal devices.
Tested on VexRiscv, may work on other chips.
Dependencies
- Python 3.9+
- PySide6
- https://github.com/SpinalHDL/openocd_riscv
- riscv64-unknown-elf-objdump, for disassembling RISC-V code.
Prebuilt binaries for windows are available at bin
directory.
Get Started
- Clone the repository, install the dependencies by running
pip3 install -r requirements.txt
. - Run
main.py
to start the debugger. - You can choose to start a new OpenOCD session, or connect to an existing one.
- If you want to start a new session, create
init.tcl
file to configure for your target(you may find examples inexamples
directory).