Skip to content

Commit 659f083

Browse files
author
deepikabhavnani
committed
Correct the floating+dsp options for Cortex-M33
As per the IAR Development guide, below options for CPU are valid 1. Cortex-M33 2. Cortex-M33.no_dsp (core without integer DSP extension) 3. Cortex-M33.fp (floating-point unit with support for single precision) 4. Cortex-M33.no_se (core without support for TrustZone)
1 parent 7292acf commit 659f083

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/toolchains/iar.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ def __init__(self, target, notify=None, macros=None, build_profile=None,
4949
if target.core == "Cortex-M7F" or target.core == "Cortex-M7FD":
5050
cpuchoice = "Cortex-M7"
5151
elif target.core.startswith("Cortex-M33FD"):
52-
cpuchoice = "Cortex-M33"
52+
cpuchoice = "Cortex-M33.fp"
53+
elif target.core.startswith("Cortex-M33F"):
54+
cpuchoice = "Cortex-M33.fp.no_dsp"
5355
elif target.core.startswith("Cortex-M33"):
5456
cpuchoice = "Cortex-M33.no_dsp"
5557
elif target.core.startswith("Cortex-M23"):
@@ -77,9 +79,6 @@ def __init__(self, target, notify=None, macros=None, build_profile=None,
7779
elif target.core == "Cortex-M7F":
7880
asm_flags_cmd += ["--fpu", "VFPv5_sp"]
7981
c_flags_cmd.append("--fpu=VFPv5_sp")
80-
elif target.core.startswith("Cortex-M33F"):
81-
asm_flags_cmd += ["--fpu", "VFPv5_sp"]
82-
c_flags_cmd.append("--fpu=VFPv5_sp")
8382

8483
# Create Secure library
8584
if CORE_ARCH[target.core] == 8 and not target.core.endswith("-NS"):

0 commit comments

Comments
 (0)