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",