Skip to content

A bare metal hello world in C for Risc-V using QEMU to test

License

Notifications You must be signed in to change notification settings

chuckb/riscv-helloworld-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A bare metal hello world in C for Risc-V using QEMU to test

Resources

License

Stars

Watchers

Forks

Packages

No packages published