Skip to content

Commit 6cb8531

Browse files
committed
toolchains gcc - core m7/m7f support addition
1 parent d0b55a2 commit 6cb8531

File tree

1 file changed

+5
-0
lines changed
  • workspace_tools/toolchains

1 file changed

+5
-0
lines changed

workspace_tools/toolchains/gcc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
3737
cpu = "cortex-m0plus"
3838
elif target.core == "Cortex-M4F":
3939
cpu = "cortex-m4"
40+
elif target.core == "Cortex-M7F":
41+
cpu = "cortex-m7"
4042
else:
4143
cpu = target.core.lower()
4244

@@ -47,6 +49,9 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
4749
if target.core == "Cortex-M4F":
4850
self.cpu.append("-mfpu=fpv4-sp-d16")
4951
self.cpu.append("-mfloat-abi=softfp")
52+
elif target.core == "Cortex-M7F":
53+
self.cpu.append("-mfpu=fpv5-d16")
54+
self.cpu.append("-mfloat-abi=softfp")
5055

5156
if target.core == "Cortex-A9":
5257
self.cpu.append("-mthumb-interwork")

0 commit comments

Comments
 (0)