From a287eddfc4862493abc6b56fb6631e454913c8cd Mon Sep 17 00:00:00 2001 From: Paul Melnikov Date: Tue, 18 Jun 2024 21:16:32 +0000 Subject: [PATCH] Dont't enable FPU for FPU-less MCUs --- builder/frameworks/arduino/nrf5.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/frameworks/arduino/nrf5.py b/builder/frameworks/arduino/nrf5.py index d472e53..98c3e5f 100644 --- a/builder/frameworks/arduino/nrf5.py +++ b/builder/frameworks/arduino/nrf5.py @@ -126,7 +126,8 @@ ] ) -if board.get("build.cpu") == "cortex-m4": +# only nRF5283x and nRF52840 have FPUs +if any(mcu in board.get("build.mcu") for mcu in {'5283', '52840'}): env.Append( ASFLAGS=[ "-mfloat-abi=hard",