From 73f825e4b3240459b2eed4122f8d552bce2314fd Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 30 Jun 2018 14:02:25 -0400 Subject: [PATCH] cmake toolchain enable double fpu for cortex-m7 --- cmake/toolchains/Toolchain-arm-none-eabi.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/toolchains/Toolchain-arm-none-eabi.cmake b/cmake/toolchains/Toolchain-arm-none-eabi.cmake index 6e01bc9fb8..9c85a28ecf 100644 --- a/cmake/toolchains/Toolchain-arm-none-eabi.cmake +++ b/cmake/toolchains/Toolchain-arm-none-eabi.cmake @@ -74,7 +74,7 @@ endforeach() set(cpu_flags) if (CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m7") - set(cpu_flags "-mcpu=cortex-m7 -mthumb -mfpu=fpv5-sp-d16 -mfloat-abi=hard") + set(cpu_flags "-mcpu=cortex-m7 -mthumb -march=armv7e-m -mfpu=fpv5-d16 -mfloat-abi=hard") elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m4") set(cpu_flags "-mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard") elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m3")