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.
This commit is contained in:
Damien George 2018-03-26 00:00:47 +11:00
parent 23f07b77e5
commit b63cc1e9ef

View File

@ -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 \