Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

missing 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I have the same problem

    --- Quote End ---

    Hello,

    I have the same problem and can not find a solution although I have followed everything closely in this discussion.

    I am using a DE0-Nano-SoC board and I wanted to bring the demo-Software in the Folder

    SoC/Beispiele/HPS_CONTROL_FPGA_LED/software up and running.

    Error:

    In file included from main.c:7:0:

    D:/intelFPGA_pro/18.0/embedded/ip/altera/hps/altera_hps/hwlib/include/hwlib.h:56:2: error:# error You must define soc_cv_av or soc_a10 before compiling with HwLibs

    # error You must define soc_cv_av or soc_a10 before compiling with HwLibs

    ^

    main.c:8:25: fatal error: socal/socal.h: No such file or directory

    # include "socal/socal.h"

    Has anyone found a solution?

    Many Thanks in advance, Reinhard
  • RRuiz5's avatar
    RRuiz5
    Icon for New Contributor rankNew Contributor

    Working Makefile for 18.1 version

    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/ -I $(HWLIBS_ROOT)/include/soc_a10/ 
     
     
     
     
    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 *~
  • RRuiz5's avatar
    RRuiz5
    Icon for New Contributor rankNew Contributor
    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/ -I $(HWLIBS_ROOT)/include/soc_a10/ 
     
     
     
     
    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 *~

    This Makefile is working for me

    • HThie5's avatar
      HThie5
      Icon for New Contributor rankNew Contributor

      @RRuiz5​ it the soc_a10 similar to the soc_cv_av (aka Cyclone V as on the de0 nano board) ?