I walk through debugging a bare-metal hello world C program for the Risc-V architecture running under QEMU. I discuss using the GDB client and give bonus coverage for setting up VSCode to use the interactive debugger.
Resources
My prior Risc-V bare metal hello world C video that I referred to in this video is here: • Risc-V Bare Metal C He...
The FreeRTOS Project mentioned with VSCode tips: github.com/Fre...
Blog of QEMU and SBI boot process: popovicu.com/p...
My github repo with source code: github.com/chu...
Footnote
One note that I did not mention in the video...this video was shot on my Mac running Ventura. GDB was installed from homebrew. GDB will not run as is without code signing. A blog post describing how to do that is here: dev.to/jasonel.... I did not use the debugger that supposedly is bundled with the risc-v toolchain, as it is apparently not included (or was not at the time I did this) in the homebrew bottle.
Негізгі бет RiscV Debugging With QEMU, GDB, and VSCode
Пікірлер: 9