Forum Discussion
Altera_Forum
Honored Contributor
8 years agoOk, so I solved that error by copying the alt_interrupt.c file to folder and improving a little my makefile.
But now I got this error:C:\Users\nhasbun\AppData\Local\Temp\ccJaPb6S.s: Assembler messages:
C:\Users\nhasbun\AppData\Local\Temp\ccJaPb6S.s:91: Error: Thumb encoding does no
t support an immediate here -- `msr CPSR_c,#(0x12|0x80|0x40)'
make: *** Error 1 This is my makefile: --- Quote Start --- # TARGET = main # ALT_DEVICE_FAMILY ?= soc_cv_av HWLIBS_ROOT = $(SOCEDS_DEST_ROOT)/ip/altera/hps/altera_hps/hwlib # SRCS=$(wildcard *.c) $(wildcard */*.c) OBJECTS=$(SRCS:.c=.o) CFLAGS = -g -Wall -Werror -I$(HWLIBS_ROOT)/include -I$(HWLIBS_ROOT)/include/$(ALT_DEVICE_FAMILY) -D$(ALT_DEVICE_FAMILY) LDFLAGS = -g -Wall -Werror -pthread -lpthread -lm CROSS_COMPILE = arm-linux-gnueabihf- CC = $(CROSS_COMPILE)gcc LD = $(CROSS_COMPILE)gcc ARCH = arm .PHONY: build build: $(TARGET) $(TARGET): $(OBJECTS) $(LD) $(LDFLAGS) $^ -o $@ %.o : %.c $(HEADERS) $(CC) $(CFLAGS) -c $< -o $@ .PHONY: clean clean: rm -f $(TARGET) *.a *.o *~ rm -f $(UART_CORE_LIB_ROOT)/*.o --- Quote End ---