Hi <@U016EM8L91B> <@U016HSAA3RQ>, I am trying to i...
# chipignite2206q_stanford_bringup
r
Hi @Tim Edwards @jeffdi, I am trying to install the riscv tool chain to my Ubuntu 22.04.1 LTS machine but currently having some errors running
make 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:
Copy code
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.