Work in progress..
This series of posts is an introduction to the RISC-V machine mode ISA. It describes the basics used for a bare metal firmware.
The code examples are designed to be platform independent. They can be compiled with vendor indepdent toolchains (such as the xpack tools), toolchain bundled with linux distros or compiled for yourself.
Cmake is used to build the examples. There are some scripts to flash a SiFive HiFive RevB board, run openocd and gdb. These can be modified to support any target.