enabled .map generation in Makefile. Included twiddle generation at the startup of the blackfin (into main.c inside main() func)

This commit is contained in:
2025-10-09 15:47:34 +03:00
parent 2796ed3149
commit 00f225c393
26 changed files with 10800 additions and 6472 deletions

View File

@ -45,6 +45,8 @@ DLIBS =
# Start of user section
#
# Define project name here
PROJECT = l502-BFfirmware0
@ -56,7 +58,8 @@ RESULT_FILES = $(BINDIR)/$(PROJECT).elf $(BINDIR)/$(PROJECT).ldr
# List all user C define here, like -D_DEBUG=1
UDEFS = NDEBUG CLOCK_INIT_CB
UDEFS = NDEBUG CLOCK_INIT_CB
UDEFS += FFT_FP_EXTERNAL_TWIDDLES
ifeq ($(CONFIG), debug)
UDEFS += __DEBUG
@ -117,8 +120,10 @@ ASFLAGS = $(MCFLAGS) -g -mthumb -gdwarf-2 -Wa,-amhls=$(<:.s=.lst) $(ADEFS)
#-gdwarf-2
ANOMALY_FLAGS = -mspecld-anomaly -mcsync-anomaly
CPFLAGS = $(MCFLAGS) $(OPT) $(ANOMALY_FLAGS) -std=gnu99 -g -Wall -Wstrict-prototypes -Wa,-ahlms=$(addprefix $(LSTDIR)/, $(notdir $(@:.o=.lst))) $(DEFS)
#LDFLAGS = $(MCFLAGS) -T$(LDSCRIPT) -nostartfiles -N -Wl,-Map=$(BINDIR)/$(PROJECT).map,--cref,--gc-sections $(LIBDIR) -lm
LDFLAGS = $(MCFLAGS) -T$(LDSCRIPT) -nostartfiles -N -Map=$(BINDIR)/$(PROJECT).map,--cref, -lm
LDFLAGS = $(MCFLAGS) -T$(LDSCRIPT) -nostartfiles -N -Wl,-Map=$(BINDIR)/$(PROJECT).map,--cref,--gc-sections $(LIBDIR) -lm
#LDFLAGS = $(MCFLAGS) -T$(LDSCRIPT) -nostartfiles -N -Wl,-Map=$(BINDIR)/$(PROJECT).map, -Wl,--cref, -lm
#LDFLAGS += -Wl -Map=$(BINDIR)/$(PROJECT).map, --print-memory-usage
#
# Generate dependency information