This code is discussed in YouTube: https://www.youtube.com/@LearnRISCV
Table of Contents:
- Directory Structure
- Supported Boards
- Hifive1-RevB
- Instructions to build
Make sure you have installed the GNU toolchain and OpenOCD from https://www.sifive.com/software. Export the paths so that its visible to the bash script in build directory. Set execution permission to build.sh with chmod +x command.
Issue the command ./build.sh <board> <app> <rom | ram> to build for a particular board and app and for flash or ram.
This repo has multiple braches.
For hifive1-revb board on release branch,
./build.sh hifive1-revb led-blink builds the app led-blink for hifive1-revb and
./build.sh cleanse to clean.
.equiv ALL_UPPERCASE_ for constants (memory mapped address, Bitmasks, Constants)
These constants go in module.inc file in inc directory.
