FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5924 Discussions

I am trying to follow the DE10 Standard My_First_HPS guide to do the "Hello World!" example shown. I am having a error when I am trying to compile the Makefile. Firstly, I have write "make -f Makefile.mk" and I get "make: *** [my_first_hps] Error 193".

ADarj
Beginner
666 Views

I am using DE10-NANO Cyclone V

0 Kudos
4 Replies
Fawaz_Al-Jubori
Employee
590 Views

Hello,

Can you share with me the full compilation log?

the error message you sent is generic.

 

Thank you

0 Kudos
ADarj
Beginner
590 Views

This is the kind of error I get. Is there any errors in my Makefile? I have found two Makefiles for the same project. I do not know which one is the right one.

0 Kudos
ADarj
Beginner
590 Views
posted a file.
0 Kudos
Fawaz_Al-Jubori
Employee
590 Views

Can you please try the code below for your makefile:

 

#

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-gnueabihfCFLAGS = -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 *~

 

 

 

I found some spaces in your code, please try the above one and let me know if it helped.

 

Thank you

0 Kudos
Reply