From 8d2590d1a747434f5d47ace80cf12e12504756d2 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Sat, 29 Apr 2017 21:53:20 +0000 Subject: [PATCH] linker mods to reduce file of sm1000 binary - thanks Steve git-svn-id: https://svn.code.sf.net/p/freetel/code@3110 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/stm32/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/codec2-dev/stm32/Makefile b/codec2-dev/stm32/Makefile index 63f2428d..1b96959f 100644 --- a/codec2-dev/stm32/Makefile +++ b/codec2-dev/stm32/Makefile @@ -23,7 +23,7 @@ CFLAGS += -mlittle-endian -mthumb -mthumb-interwork -nostartfiles -mcpu=cortex-m ifeq ($(FLOAT_TYPE), hard) CFLAGS += -fsingle-precision-constant -Wdouble-promotion -#CFLAGS += -fsingle-precision-constant +CFLAGS += -fdata-sections -ffunction-sections -Xlinker --gc-sections CFLAGS += -mfpu=fpv4-sp-d16 -mfloat-abi=hard -D__FPU_PRESENT=1 -D__FPU_USED=1 else CFLAGS += -msoft-float @@ -35,7 +35,7 @@ endif PERIPHLIBURL = http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/firmware PERIPHLIBZIP = stm32f4_dsp_stdperiph_lib.zip -PERIPHLIBVER = V1.7.1 +PERIPHLIBVER = V1.8.0 PERIPHLIBNAME = STM32F4xx_DSP_StdPeriph_Lib PERIPHLIBDIR = $(PERIPHLIBNAME) CMSIS = $(PERIPHLIBDIR)/Libraries/CMSIS @@ -490,10 +490,6 @@ libstm32f4.a: $(CMSIS_OBJS) $(STM32F4LIB_OBJS) %.pgm: %.bin $(SUDO) dfu-util -d 0483:df11 -c 1 -i 0 -a 0 -s 0x08000000 -D $< -# Rule for programming the SM1000 -%.pgm: %.bin - $(SUDO) dfu-util -d 0483:df11 -c 1 -i 0 -a 0 -s 0x08000000 -D $< - #################################################### CODEC2_PROFILE_SRCS=\ -- 2.25.1