Skip to content

Commit e5c1d37

Browse files
committed
[STM32F7] add FPU option for assembly compiling (needed for rtos library)
1 parent dbb99d4 commit e5c1d37

File tree

1 file changed

+4
-1
lines changed
  • workspace_tools/toolchains

1 file changed

+4
-1
lines changed

workspace_tools/toolchains/iar.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
6060

6161
IAR_BIN = join(IAR_PATH, "bin")
6262
main_cc = join(IAR_BIN, "iccarm")
63-
self.asm = [join(IAR_BIN, "iasmarm")] + ["--cpu", cpuchoice]
63+
if target.core == "Cortex-M7F":
64+
self.asm = [join(IAR_BIN, "iasmarm")] + ["--cpu", cpuchoice] + ["--fpu", "VFPv5_sp"]
65+
else:
66+
self.asm = [join(IAR_BIN, "iasmarm")] + ["--cpu", cpuchoice]
6467
if not "analyze" in self.options:
6568
self.cc = [main_cc] + c_flags
6669
self.cppc = [main_cc, "--c++", "--no_rtti", "--no_exceptions"] + c_flags

0 commit comments

Comments
 (0)