Forum Discussion
Hello YoshiakiS!
1) I am using the Intel Cyclone V DE10-Standard Board for the University Program
2) I am using Quartus Prime Lite Edition 21.1 and the SoC EDS Version 20.1
3) My Host OS is Windows 11
4) I am booting on the FPGA from a SD-Card
5) I am not able to come this far anyway so I have not tried it
6) The FPGA would run on LXDE and everything works fine
7) I tried the discontinued DS-5 Version and also installed the ARM DS 2021.1 Version
When for example going step by step by the provided PDFs for the FPGA (or provided online) like this one
https://rocketboards.org/foswiki/pub/Projects/DE1SOCMyFirstHPS/My_First_HPS.pdf?t=1471001068
then the error happens in Chapter 2.4 where they would compile their makefile. If I compile it with just "gcc main.c" it works fine and also works on the FPGA. But for using the HPS libraries (for my own project as well as the provided example projects) I would want to do it the intended way with the makefiles, which is not working due to the error like said before (make(e = 2): ...)
The whole error message (in german) is:
arm-linux-gnueabihf-gcc -g -Wall -D soc_cv_av -I C:/intelFPGA_lite/21.1/embedded/ip/altera/hps/altera_hps/hwlib/include/soc_cv_av -I C:/intelFPGA_lite/21.1/embedded/ip/altera/hps/altera_hps/hwlib/include/ -c main.c -o main.o
process_begin: CreateProcess(NULL, arm-linux-gnueabihf-gcc -g -Wall -D soc_cv_av -I C:/intelFPGA_lite/21.1/embedded/ip/altera/hps/altera_hps/hwlib/include/soc_cv_av -I C:/intelFPGA_lite/21.1/embedded/ip/altera/hps/altera_hps/hwlib/include/ -c main.c -o main.o, ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
make: *** [main.o] Error 2
Hi MF28,
Thank you for providing the information with us.
I have duplicated the issue at our site as below.
yoshiaki@yoshiaki-mobl1 /cygdrive/c/workspace/hps/my_first_hps
$ make
arm-linux-gnueabihfgcc -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
process_begin: CreateProcess(NULL, arm-linux-gnueabihfgcc -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, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [main.o] Error 2
So, I'm investigating the issue.
Best regards,
Yoshiaki Saito
- MF284 years ago
New Contributor
Hi Yoshiaki!
Thank you very much in advance, I hope a solution can be found.
Looking forward to hearing from you again.
BRMF28
- Yoshiaki_Altera4 years ago
Occasional Contributor
Hello MF28,
I’d like to confirm your target application just in case.
Do you want to compile a Linux Application on Windows?
If so, please see the steps below.
1) Download gcc-arm-10.3-2021.07-mingw-w64-i686-arm-none-linux-gnueabihf.tar.xz
2) Extract the tool to your specific folder.
3) Add the bin path to Path variable in “Edit the system environment variables”.
In my case, I installed the tools into C:\tools so actual path is:
C:\tools\gcc-arm-10.3-2021.07-mingw-w64-i686-arm-none-linux-gnueabihf\bin
Fig 1
Fig2
Fig 3
4) Update CROSS_COMPILE in Makefile as below.
CROSS_COMPILE = arm-none-linux-gnueabihf-
Here is actual log.
yoshiaki@yoshiaki-mobl1 /cygdrive/c/workspace/hps/my_first_hps $ 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-none-linux-gnueabihf-gcc -g -Wall main.o -o my_first_hpsLastly, the hwlibs is for bare metal application, not Linux. See a link below for more details.
Hardware Library (HWLibs)
https://rocketboards.org/foswiki/Documentation/HWLib
Best regards,
Yoshiaki Saito
- Yoshiaki_Altera4 years ago
Occasional Contributor
Hello MF28,
I will close this thread if no further questions from you.
Best regards,
Yoshiaki Saito