Skip to content

Commit 5dab1e4

Browse files
authored
Merge pull request #10513 from kfnta/armc6_m33_nofpu
Fix ARMC6 fpu detection for M33 core
2 parents b895bf6 + cae568c commit 5dab1e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/toolchains/arm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,14 +547,15 @@ def __init__(self, target, *args, **kwargs):
547547
"Cortex-M7FD": "cortex-m7",
548548
"Cortex-M33": "cortex-m33+nodsp",
549549
"Cortex-M33F": "cortex-m33+nodsp",
550+
"Cortex-M33E": "cortex-m33",
550551
"Cortex-M33FE": "cortex-m33"}.get(core, core)
551552

552553
cpu = cpu.lower()
553554
self.flags['common'].append("-mcpu=%s" % cpu)
554555
self.SHEBANG += " -mcpu=%s" % cpu
555556

556557
# FPU handling
557-
if core == "Cortex-M4" or core == "Cortex-M7" or "core" == "Cortex-M33":
558+
if core in ["Cortex-M4", "Cortex-M7", "Cortex-M33", "Cortex-M33E"]:
558559
self.flags['common'].append("-mfpu=none")
559560
elif core == "Cortex-M4F":
560561
self.flags['common'].append("-mfpu=fpv4-sp-d16")

0 commit comments

Comments
 (0)