Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,257 Views

DE10-Standard My_First_HPS Error

Hi, I have just started the DE10-Standard kit and run-thru the tutorials included in the package. I was stucked in the My_First_HPS section and got the error below: 

 

"make: *** no rule to make target '/intelfpga/16.1/embedded/ip/altera/hps/altera_hps/hwlib/include/', needed by '-ic'. stop." 

https://alteraforum.com/forum/attachment.php?attachmentid=13930&stc=1  

 

Below is my 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-gnueabihf- 

cflags=-g-wall -d$(alt_device_family) 

-i$(hwlibs_root)/include/$(alt_devive_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[I] $(CC)$(CFLAGS)-c$<-o$@[/I]lt;-o$@ 

.phony:clean 

clean: 

rm-f $(target)*.a*.o*~ 

 

Below is my folder structure

 

C:\intelFPGA\16.1\embedded 

C:\intelFPGA\16.1\embedded\Embedded_Command_Shell.bat 

C:\intelFPGA\16.1\embedded\Embedded_Command_Shell.sh 

 

C:\intelFPGA\16.1\embedded 

C:\intelFPGA\16.1\embedded\drivers 

C:\intelFPGA\16.1\embedded\ds-5 

C:\intelFPGA\16.1\embedded\ds-5_installer 

C:\intelFPGA\16.1\embedded\embeddedsw 

C:\intelFPGA\16.1\embedded\examples 

C:\intelFPGA\16.1\embedded\host_tools 

C:\intelFPGA\16.1\embedded\ip 

 

C:\intelFPGA\16.1\embedded\my_first_hps 

C:\intelFPGA\16.1\embedded\my_first_hps\main.c 

C:\intelFPGA\16.1\embedded\my_first_hps\makefile 

 

Rgds, 

Joven
0 Kudos
5 Replies
Altera_Forum
Honored Contributor I
115 Views

This is my makefile for a "hello world" example coming with the de10 nano board. 

 

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

 

Not sure what is the problem with yours but I would add: 

.PHONY: build 

 

and execute make build
Altera_Forum
Honored Contributor I
115 Views

Hi nhasbun,Thanks a lot, it works. Now my next issue is it did not show the "inet addr". i tried few suggestions (eth0 down/up, restart) from other forum but it didn't work.

Altera_Forum
Honored Contributor I
115 Views

Not sure what do you mean by that. 

 

Are you starting linux and try to connect to a LAN ? 

If it is a program try to paste your C code.
Altera_Forum
Honored Contributor I
115 Views

Yes,im starting up linux via putty terminal. I login successfully using root and type "udhcpc" then "ifconfig". the result don't show the "inet addr" in eth0.

Altera_Forum
Honored Contributor I
115 Views

hi, i managed to make the LAN work by manually configuring the ipaddress of eth0. although it keeps resetted everytime i restart the kit but it's ok for the moment. tnx!

Reply