From 71a77d64a1244390860010caa31733e40fdba442 Mon Sep 17 00:00:00 2001 From: inmarket Date: Tue, 7 Oct 2014 21:50:25 +1000 Subject: [PATCH] Bug in ChibiOS compiling with Hardware FPU causing Exceptions on epilogue on clock tick. For now just turn off hardware FPU --- tools/gmake_scripts/cpu_stm32m4.mk | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/gmake_scripts/cpu_stm32m4.mk b/tools/gmake_scripts/cpu_stm32m4.mk index 9e105a36..5acfe8ad 100644 --- a/tools/gmake_scripts/cpu_stm32m4.mk +++ b/tools/gmake_scripts/cpu_stm32m4.mk @@ -14,6 +14,11 @@ # NONE # -SRCFLAGS += -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -falign-functions=16 -LDFLAGS += -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -LIBS += m +#SRCFLAGS += -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -falign-functions=16 +#LDFLAGS += -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -falign-functions=16 +#DEFS += CORTEX_USE_FPU=TRUE +#LIBS += m +SRCFLAGS += -mcpu=cortex-m4 -falign-functions=16 +LDFLAGS += -mcpu=cortex-m4 +DEFS += CORTEX_USE_FPU=FALSE +