Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 1.63 KB

README.md

File metadata and controls

29 lines (25 loc) · 1.63 KB

RISC-V Bare-Metal Hello World In C

As simple as I could make it bare metal C application writing Hello World! to the serial port of the QEMU virt machine, including debug setup for GDB and VSCode.

This repo is accompanied by two youtube videos:

Prerequisites

This example and accompanying video were done on OSX. The tools were installed via homebrew. If the toolchain is installed on other OSes, then in theory it should also work, but I have not tested it.

References:

Running:

make debug for GDB client or run Debug RISC-V from VSCode debug menu