From 85d0ef974cfcc18606c5c95c3bf4c76cc18cc22e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 30 Oct 2021 01:10:50 -0400 Subject: [PATCH] stm32: Remove gcc -mfpu=fpv4-sp-d16 floating point option The floating point unit must be enabled in order to use it and Klipper does not currently implement that. Newer versions of gcc may spill registers to the floating point unit causing failures. Signed-off-by: Kevin O'Connor --- src/stm32/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/src/stm32/Makefile b/src/stm32/Makefile index afc3809f..778f2327 100644 --- a/src/stm32/Makefile +++ b/src/stm32/Makefile @@ -17,7 +17,6 @@ CFLAGS-$(CONFIG_MACH_STM32F0) += -mcpu=cortex-m0 -Ilib/stm32f0/include CFLAGS-$(CONFIG_MACH_STM32F1) += -mcpu=cortex-m3 -Ilib/stm32f1/include CFLAGS-$(CONFIG_MACH_STM32F2) += -mcpu=cortex-m3 -Ilib/stm32f2/include CFLAGS-$(CONFIG_MACH_STM32F4) += -mcpu=cortex-m4 -Ilib/stm32f4/include -CFLAGS-$(CONFIG_MACH_STM32F4) += -mfpu=fpv4-sp-d16 -mfloat-abi=hard CFLAGS-$(CONFIG_MACH_STM32H7) += -mcpu=cortex-m7 -Ilib/stm32h7/include CFLAGS += $(CFLAGS-y) -D$(MCU_UPPER) -mthumb -Ilib/cmsis-core -Ilib/fast-hash