Forum Discussion
Altera_Forum
Honored Contributor
11 years agomissing socal folder
Hi!
I will be using DE1-SOC board for my bachelor's degree and Im learning on how to use it. I noticed that user's manuals are for version 13 of Quartus and current version is version 15. I have already encountered some differences that puzzled me but I managed to solve them with a bit of googling. Now Im at FPGA-HPS project and I get an error from command shell:$ makearm-linux-gnueabihf-gcc -static -g -Wall -IE:/Programs/altera/15.0/embedded/ip/
altera/hps/altera_hps/hwlib/include -c main.c -o main.o
main.c:6:25: fatal error: socal/socal.h: No such file or directory
# include "socal/socal.h"
^
compilation terminated.
make: *** Error 1 I noticed that there are now two folders there: soc_a10 and soc_cv_av, which both include the missing files. What do these two folders mean? Which one should I use? Do I fix the header to match the new folder configuration? Thank you for help!14 Replies
- Altera_Forum
Honored Contributor
TO_BE_DONE
- Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
The new 15.0 makefiles for hwlibs expect the ALT_DEVICE_FAMILY variable to be set to "soc_cv_av" or "soc_a10".
ALT_DEVICE_FAMILY ?= soc_cv_av CFLAGS := -g $(OFLAG) -Wall -Werror -std=c99 $(MULTILIBFLAGS) -I$(HWLIBS_ROOT)/include -I$(HWLIBS_ROOT)/include/$(ALT_DEVICE_FAMILY) -D$(ALT_DEVICE_FAMILY) ALL_HWLIBS_SRC = $(wildcard $(HWLIBS_ROOT)/src/hwmgr/*.c) $(wildcard $(HWLIBS_ROOT)/src/hwmgr/$(ALT_DEVICE_FAMILY)/*.c $(wildcard $(HWLIBS_ROOT)/src/utils/*.c)) On the CFLAGS, you need to add the soc_cv_av or soc_a10 directories to the includes with -I and define either -Dsoc_cv_av or -Dsoc_a10. The ALL_HWLIBS_SRC variable above finds all the .c files in all the directories. - Altera_Forum
Honored Contributor
Thank you very much for help! The instructions seem to be for version 13 and I was a little bit confused by some changes.
- Altera_Forum
Honored Contributor
I am trying to make the my_first_hps-fpga tutorial given in altera de0 nano soc cd. firstly i got above same error that was with social file. now get another error as below. i tried above lines
ALT_DEVICE_FAMILY ?= soc_cv_av CFLAGS := -g $(OFLAG) -Wall -Werror -std=c99 $(MULTILIBFLAGS) -I$(HWLIBS_ROOT)/include -I$(HWLIBS_ROOT)/include/$(ALT_DEVICE_FAMILY) -D$(ALT_DEVICE_FAMILY) ALL_HWLIBS_SRC = $(wildcard $(HWLIBS_ROOT)/src/hwmgr/*.c) $(wildcard $(HWLIBS_ROOT)/src/hwmgr/$(ALT_DEVICE_FAMILY)/*.c $(wildcard $(HWLIBS_ROOT)/src/utils/*.c)) in make file but now i get another error. $ make arm-linux-gnueabihf-gcc -g -Wall -Werror -std=c99 -I/include -I/include/soc_cv_av -Dsoc_cv_av -c main.c -o main.o main.c:5:19: fatal error: hwlib.h: No such file or directory # include "hwlib.h" ^ compilation terminated. make: *** [main.o] Error 1 - Altera_Forum
Honored Contributor
Did you manage to solve the problem G.Ornil ? I have the same problem.
- Altera_Forum
Honored Contributor
Changes to the make file are in red - define ALT_DEVICE_FAMILY, then in CFLAGS statement add -D definition. Still assumes include statements have /soc_cv_av added to them.
TARGET = hps_gpio# CROSS_COMPILE = arm-linux-gnueabihf- ALT_DEVICE_FAMILY ?= soc_cv_av CFLAGS = -g -Wall -I ${SOCEDS_DEST_ROOT}/ip/altera/hps/altera_hps/hwlib/include -D$(ALT_DEVICE_FAMILY) 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 *~ - Altera_Forum
Honored Contributor
I still have the same problem. :'(
- Altera_Forum
Honored Contributor
--- Quote Start --- I still have the same problem. :'( --- Quote End --- I gave up using linux, you can use nios 2 or HPS for soc fpga. still nios 2 is easier it has many tutorials than HPS - Altera_Forum
Honored Contributor
--- Quote Start --- I still have the same problem. :'( --- Quote End --- I have the same problem