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:
parent
23f07b77e5
commit
b63cc1e9ef
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user