summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-03-26 00:00:47 +1100
committerDamien George <damien.p.george@gmail.com>2018-03-26 00:00:47 +1100
commitb63cc1e9efb3618141b8f2cdd19ffd6823b73bb7 (patch)
tree014cf3b67c66ed60660bfa5edb389831ba126047
parent23f07b77e55664602354d49fdc6a16032768f293 (diff)
stm32/Makefile: Re-enable strict aliasing optimisation for ST HAL files.
The HAL requires strict aliasing optimisation to be turned on to function correctly (at least for the SD card driver on F4 MCUs). This optimisation was recently disabled with the addition of H7 support due to the H7 HAL having errors with the strict aliasing optimisation enabled. But this is now fixed in the latest stm32lib and so the optimisation can now be re-enabled. Thanks to @chuckbook for finding that there was a problem with the SD card on F4 MCUs with the strict aliasing optimisation disabled.
-rw-r--r--ports/stm32/Makefile1
1 files changed, 0 insertions, 1 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile
index ba4c90dab..3f381bde0 100644
--- a/ports/stm32/Makefile
+++ b/ports/stm32/Makefile
@@ -253,7 +253,6 @@ SRC_O = \
$(STARTUP_FILE) \
gchelper.o \
-$(BUILD)/$(HAL_DIR)/Src/%.o: CFLAGS += -fno-strict-aliasing
SRC_HAL = $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES)xx_,\
hal.c \
hal_adc.c \