diff --git a/nrf5.py b/nrf5.py index 570e71d..85cbec6 100644 --- a/nrf5.py +++ b/nrf5.py @@ -107,16 +107,23 @@ ) if board.get("build.cpu") == "cortex-m4": - env.Append( - CCFLAGS=[ - "-mfloat-abi=softfp", - "-mfpu=fpv4-sp-d16" - ], - LINKFLAGS=[ - "-mfloat-abi=softfp", - "-mfpu=fpv4-sp-d16" - ] - ) + if (board.get("build.mcu") in ["nrf52810","nrf52805"]): + env.Append( + CCFLAGS=[ + "-mfloat-abi=soft" + ] + ) + else: + env.Append( + CCFLAGS=[ + "-mfloat-abi=softfp", + "-mfpu=fpv4-sp-d16" + ], + LINKFLAGS=[ + "-mfloat-abi=softfp", + "-mfpu=fpv4-sp-d16" + ] + ) env.Append( ASFLAGS=env.get("CCFLAGS", [])[:]