Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
502 Discussions

Unable to run make file on ALtera SOC EDS

GirideshSekar
Beginner
437 Views
 

Im not able to complite the makefile and main.c file to make a executable file, I'm trying to execute the project on DE1soc hps linux, Im trying compile my_first_hps project. 

$ ls
main.c Makefile

girid@LAPTOP-T0N0O46H ~/OneDrive/Documents/3875/my_first_hps
$ make
arm-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
process_begin: CreateProcess(NULL, arm-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, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [main.o] Error 2

girid@LAPTOP-T0N0O46H ~/OneDrive/Documents/3875/my_first_hps
$ echo $SOCEDS_DEST_ROOT
C:/intelFPGA/20.1/embedded

girid@LAPTOP-T0N0O46H ~/OneDrive/Documents/3875/my_first_hps
$ make
arm-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
process_begin: CreateProcess(NULL, arm-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, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [main.o] Error 2

girid@LAPTOP-T0N0O46H ~/OneDrive/Documents/3875/my_first_hps
$

 

Make file: 

#
TARGET = my_first_hps
ALT_DEVICE_FAMILY ?= soc_cv_av
SOCEDS_ROOT ?= $(SOCEDS_DEST_ROOT)
HWLIBS_ROOT = $(SOCEDS_ROOT)/ip/altera/hps/altera_hps/hwlib
CROSS_COMPILE = arm-linux-gnueabihf-
CFLAGS = -g -Wall   -D$(ALT_DEVICE_FAMILY) -I$(HWLIBS_ROOT)/include/$(ALT_DEVICE_FAMILY)   -I$(HWLIBS_ROOT)/include/
LDFLAGS =  -g -Wall 
CC = $(CROSS_COMPILE)gcc
ARCH= arm
 
build: $(TARGET)
 
$(TARGET): main.o 
$(CC) $(LDFLAGS)   $^ -o $@ 
 
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
 
.PHONY: clean
clean:
rm -f $(TARGET) *.a *.o *
0 Kudos
6 Replies
GirideshSekar
Beginner
367 Views

Hello, this is a bit urgent, can someone help me with this, this might be crucial going forward into the project I'm currently working on. Thanks and I appreciate any help provided. 

0 Kudos
BXia
New Contributor I
322 Views

Based on my experience, you'd better to reinstall the soc eds software, you need to install the ds-5 software together after installing the soc eds. And the version of soc eds should be same to Quartus.

0 Kudos
Jeet14
Employee
240 Views

Hi,


Please follow the steps given for SoCEDS and ARM DS installation.

https://www.rocketboards.org/foswiki/Documentation/SoCEDS


Once installation is done then you can start an Embedded Command Shell by going to

For 20.1 Pro: Start menu > Intel FPGA 20.1 Pro Edition > SoC EDS Command Shell.

For 20.1 Std: Start menu > Intel FPGA 20.1 > SoC EDS Command Shell.


Create the helloworld example from the given example templates. This will compile and generate the .axf or .elf file of helloworld application.


Regards

Tiwari


0 Kudos
Jeet14
Employee
213 Views

Hi,


Let me know if you have any further question on this.


Regards

Tiwari


0 Kudos
Jeet14
Employee
180 Views

As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.



0 Kudos
GirideshSekar
Beginner
133 Views

Greeting, thankyou for your reply. i installed the arm -gnueabihf from the internet to make it work. This folder was not part of installation and linux based executions required this .  thanks 

GirideshSekar_0-1737476561431.png

 

0 Kudos
Reply