Skip to content

Instantly share code, notes, and snippets.

@g3grau
g3grau / Makefile
Created October 6, 2023 19:51
Fixing SPI Flash access in step22 (https://github.com/fm4dd/gatemate-riscv/issues/2)
### ----------------------------------------------------------- ###
### Local Makefile for building the RISC-V native application. ###
### Requires riscv-toolchain, linker script and firmware_words ###
### hex conversion program. Creates the 'firmware.hex' output ###
### for FPGA upload together with the bitstream. ###
### ###
### This program needs optimizer flag -O2 to fit into 6K BRAM. ###
### ----------------------------------------------------------- ###
TOOLCHAINDIR = /usr/cadtools/riscv-gnu-toolchain