Forum Discussion
tehjingy_Altera
Regular Contributor
1 year agoHi
Could you please try downloading the linaro toolchain with the command below:
tar xf gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz
rm gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz
export PATH=`pwd`/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf/bin:$PATH
Once finish please try the make command again this time with
make
arm-none-linux-gnueabihf-gcc -g -Wall -Dsoc_cv_av -IC:/intelFPGA/20.1/embedded/ip/altera/hps/altera_hps/hwlib/include/soc_cv_av -IC:/intelFPGA/20.1/embedded/ip/altera/hps/altera_hps/hwlib/include/ -c main.c -o main.o
arm-eabi-gcc -g -Wall main.o -o my_first_hps
instead of the the arm-eabi-gcc or arm-linux-gnueabihf-gcc
Regards
Jingyang, Teh