Forum Discussion
Also I got several issues dealing with example makefile:
1. CP: option -n can't be used so I delete it
2. NEWLIB_ROOT is wrong , in my root system(X86_64 windows with MSYS 1.0) the root was:..\intel-socfpga-hwlib\tools\newlib\usr\arm-eabi
instead of ..\intel-socfpga-hwlib\tools\newlib\usr\local\arm-eabi
I dont know weather it's my failure to compeletely download it or it is because of the version/tool change.
3. The make file always point at ARM Compiler 5 (which did not exist in ARM DS), you may need to update the Makefile with armcc 6
And point three is my another new question (God bless us all) : how can I let the Makefile point to ARMCC 6?
The followed is the Makefile order:
/*--------------------------------------------------START FROM HERE-----------------------------------------------------------------*/
CROSS_COMPILE := arm-eabi-
CC := armcc
AS := armasm
LD := armlink
NM := $(CROSS_COMPILE)nm
OD := $(CROSS_COMPILE)objdump
OC := $(CROSS_COMPILE)objcopy
LINKER_SCRIPT := $(HWLIBS_SRC_ROOT)/src/linkerscripts/cvav-$(MEMORY).scat
MULTILIBFLAGS := --diag_error=warning --diag_suppress=9931 --cpu=Cortex-A9 --no_unaligned_access
CFLAGS := -g -O0 --c99 --strict $(MULTILIBFLAGS) $(INCLUDE_DIRS) -D$(ALT_DEVICE_FAMILY) -DALT_FPGA_ENABLE_DMA_SUPPORT=1 -D_USE_STDLIB -DALT_BRIDGE_PROVISION_F2S_SUPPORT -D$(ALT_DEVICE) $(UART_DEFINES) $(ADD_CFLAGS_ARMCC)
ASMFLAGS := -g $(MULTILIBFLAGS)
LDFLAGS := --strict $(MULTILIBFLAGS) --entry=alt_interrupt_vector --scatter=$(LINKER_SCRIPT)
ifeq ($(SEMIHOSTED), 1)
LDFLAGS += --keep=__auto_semihosting
endif
ODFLAGS := -d
OCFLAGS := --bin --output=
/*-------------------------------------------------------END------------------------------------------------------------------------------------*/
The following is the error when trying to compile the first file:
process_begin: CreateProcess(NULL, armcc -g -O0 --c99 --strict --diag_error=warning --diag_suppress=9931 --cpu=Cortex-A9 --no_unaligned_access -Ilib -Ihwlib/include -Ihwlib/include/soc_cv_av -Ihwlib/include/soc_cv_av/socal -ID:\board\cyclone_V_soc\intel-socfpga-hwlib\tools\newlib\usr\arm-eabi/include -Dsoc_cv_av -DALT_FPGA_ENABLE_DMA_SUPPORT=1 -D_USE_STDLIB -DALT_BRIDGE_PROVISION_F2S_SUPPORT -DCYCLONEV -DPRINTF_HOST -c hwlib/src/hwmgr/alt_address_space.c -o objs_ARMCC_CYCLONEV/alt_address_space.o, ...) failed.
Reguards.