Forum Discussion
Hi
I see that the compiler that are using is not the cross compiler that was describ in the tutorial.
That could be the reason the application could not be run on the linux device.
Could you try using the describe cross compiler "arm-linux-gnueabihf".
Regards
Jingyang, Teh
Hi,
I did my best to follow the steps outlined in ug_soc_eds-683187-666301.pdf, section 2.3. Windows to install the SoC EDS tools and the cross compiler. In section 2.3.5 Installing Linaro Bare Metal Toolchain, I followed the instruction, and performed ./install_linaro.sh. In the Linaro folder, I have the following files and directories:
/c/intelfpga/20.1/embedded/host_tools/linaro
$ ls
gcc gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-eabi.tar.xz install_linaro.sh newlib newlib-cygwin
However, after following these instructions to install the SoC tools, I could not successfully run the 'make' file as described in My_First_HPS.pdf, when using the arm-linux-gnueabihf-gcc cross compiler. I would get the following error:
$ make
arm-linux-gnueabihf-gcc -g -Wall main.o -o my_first_hps
process_begin: CreateProcess(NULL, arm-linux-gnueabihf-gcc -g -Wall main.o -o my_first_hps, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [my_first_hps] Error 2
On the other hand, after modifying the make file to call out the arm-eabi-gcc cross compiler, then I could complete the compilation and generate the my_first_hps executable. See below:
$ make
arm-eabi-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
Have I installed the SoC EDS tools incorrectly? Please advise on how I can get the tools installed correctly to use the intended arm-linux-gnueabihf-gcc cross compiler.
Thank you!