Skip to content

Commit

Permalink
Dont't enable FPU for FPU-less MCUs
Browse files Browse the repository at this point in the history
  • Loading branch information
positron96 authored and h2zero committed Jun 21, 2024
1 parent 3d01594 commit a287edd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder/frameworks/arduino/nrf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a287edd

Please sign in to comment.