Forum Discussion

GirideshSekar's avatar
GirideshSekar
Icon for New Contributor rankNew Contributor
12 months ago

Unable to run make file on ALtera SOC EDS

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 *

6 Replies

  • Jeet14's avatar
    Jeet14
    Icon for Frequent Contributor rankFrequent Contributor

    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.



    • GirideshSekar's avatar
      GirideshSekar
      Icon for New Contributor rankNew Contributor

      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

  • Jeet14's avatar
    Jeet14
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,


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


    Regards

    Tiwari


  • Jeet14's avatar
    Jeet14
    Icon for Frequent Contributor rankFrequent Contributor

    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


  • 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.

    • BXia's avatar
      BXia
      Icon for Occasional Contributor rankOccasional Contributor

      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.