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

My_First_HPS Error

Altera_Forum
Honored Contributor II
1,773 Views

Hi, I have just started the DE10-Standard kit and run through the tutorial included in the package but I was stucked in My_First_HPS topic. I have this 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=13928&stc=1  

 

Please see below for the makefile script: 

 

# 

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

 

Please see my folder structure below: 

 

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\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, 

jsv
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
831 Views

 

--- Quote Start ---  

 

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

-i$(hwlibs_root)/include/$(alt_devive_family) 

-i$(hwlibs_root)/include/ldflags= -g-wall 

 

--- Quote End ---  

 

I think this should be on a single line, and LDFLAGS on its own line: 

CFLAGS=-g-Wall -D$(ALT_DEVICE_FAMILY) -I$(HWLIBS_ROOT)/include/$(ALT_DEVIVE_FAMILY) -I$(HWLIBS_ROOT)/include/ LDFLAGS= -g-Wall
0 Kudos
Altera_Forum
Honored Contributor II
831 Views

Thanks Daixiwen, you are right. I also misspelled the ALT_DEVICE_FAMILY.

0 Kudos
Reply