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

my first fpga makefile error

IAlar
Beginner
554 Views

Hello, 

I'm just trying to run my_first_hps makefile, from the Cyclone V SoC datasheet, but when I try make in the SoC EDS shell I get the following error:

 

process_begin: CreateProcess(NULL, arm-linux-gnueabihf-gcc -g -Wall -I $path_to_include -c main.c -o main.o, ...) failed.

make (e=2): The system cannot find the file specified.

make: *** [main.o] Error 2

 

I'm sure that the path is correct, I'm not sure what it going on. This is the makefile:

 

#

TARGET = my_first_hps

 

#

CROSS_COMPILE = arm-linux-gnueabihf-

CFLAGS = -static -g -Wall -I ${SOCEDS_DEST_ROOT}/ip/altera/hps/altera_hps/hwlib/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 *~ 

 

 

Please help me resolve this issue

0 Kudos
2 Replies
EBERLAZARE_I_Intel
392 Views

Hi,

 

Just making sure, can you provide the Quartus and SOC EDS version that you are using? And are you using windows/linux?

 

Based on my experience, the error is seen because of the SoC EDS could not find the specific file, in my case I was using Windows 10 and I had to open the SoC EDS with "Run as Admin", that solved my issue.

 

Regards.

EBERLAZARE_I_Intel
392 Views

Hi,

 

Do you have any followup from your side?

 

Regards.

Reply