Raymond Yang
05/08/2023, 8:43 AMmake flash
for caravel_board/stanford/blink
. I realized I needed a .c file to configure the GPIOs since they were all configured to be outputs in the blink.c
file, and currently the blink firmware is the one on my dev board.
What I did to install the toolchain:
git clone <https://github.com/riscv/riscv-gnu-toolchain>
cd riscv-gnu-toolchain
sudo apt-get install autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build
mkdir build && cd build
../configure --prefix=/home/rhyang/chip/riscv-tools-install --with-arch=rv32imc --enable-multilib
make
Upon successful installation, I cd'ed into ../stanford/blink
and edited the TOOLCHAIN_PATH
to /home/rhyang/chip/riscv-tools-install
.
Am I going in the right path? Thanks.