From b488e1b2e093e34fed3fe88d678b087a7a1622d0 Mon Sep 17 00:00:00 2001 From: Oskar Weigl Date: Sat, 14 Oct 2017 22:15:40 -0700 Subject: [PATCH] put printf float flags in LDFLAGS --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ec813218..84b36f26 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ TARGET = ODriveFirmware # debug build? DEBUG = 1 # optimization -OPT = -O0 -ffast-math -u _printf_float -u _scanf_float +OPT = -Og -ffast-math ####################################### # pathes @@ -139,7 +139,7 @@ LDSCRIPT = STM32F405RGTx_FLASH.ld # libraries LIBS = -lc -lm -lnosys -larm_cortexM4lf_math LIBDIR = -LDrivers/CMSIS/Lib -LDFLAGS = -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -specs=nosys.specs -specs=nano.specs $(OPT) -T$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections +LDFLAGS = -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -specs=nosys.specs -specs=nano.specs -u _printf_float -u _scanf_float $(OPT) -T$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections # default action: build all all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin