Skip to content

Commit

Permalink
[STM32F7] add FPU option for assembly compiling (needed for rtos libr…
Browse files Browse the repository at this point in the history
…ary)
  • Loading branch information
adustm committed May 13, 2016
1 parent dbb99d4 commit e5c1d37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workspace_tools/toolchains/iar.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,

IAR_BIN = join(IAR_PATH, "bin")
main_cc = join(IAR_BIN, "iccarm")
self.asm = [join(IAR_BIN, "iasmarm")] + ["--cpu", cpuchoice]
if target.core == "Cortex-M7F":
self.asm = [join(IAR_BIN, "iasmarm")] + ["--cpu", cpuchoice] + ["--fpu", "VFPv5_sp"]
else:
self.asm = [join(IAR_BIN, "iasmarm")] + ["--cpu", cpuchoice]
if not "analyze" in self.options:
self.cc = [main_cc] + c_flags
self.cppc = [main_cc, "--c++", "--no_rtti", "--no_exceptions"] + c_flags
Expand Down

0 comments on commit e5c1d37

Please sign in to comment.