Skip to content

Commit 5501947

Browse files
Deepika0xc0170
authored andcommitted
Update IAR project template as per IAR 8.32
Reference template file is used from IAR8.32 installation available at path "Embedded Workbench 8.2\arm\config\template\ConvertToIAR\template_project.ewp" Also added trustzone configs in iar_definitions.json
1 parent 0ff6f99 commit 5501947

File tree

3 files changed

+972
-896
lines changed

3 files changed

+972
-896
lines changed

tools/export/iar/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ def iar_device(self):
8686
"CExtraOptionsCheck": 0,
8787
"CExtraOptions": "",
8888
"CMSISDAPJtagSpeedList": 0,
89+
"DSPExtension": 0,
90+
"TrustZone": 0,
8991
}
90-
9192
iar_defaults.update(device_info)
9293
IARdevice = namedtuple('IARdevice', iar_defaults.keys())
9394
return IARdevice(**iar_defaults)
@@ -126,6 +127,10 @@ def generate(self):
126127
except TargetNotSupportedException:
127128
debugger = "CMSISDAP"
128129

130+
trustZoneMode = 0
131+
if self.toolchain.target.core.endswith("-NS"):
132+
trustZoneMode = 1
133+
129134
ctx = {
130135
'name': self.project_name,
131136
'groups': self.iar_groups(self.format_src(srcs)),
@@ -134,6 +139,7 @@ def generate(self):
134139
'device': self.iar_device(),
135140
'ewp': sep+self.project_name + ".ewp",
136141
'debugger': debugger,
142+
'trustZoneMode': trustZoneMode,
137143
}
138144
ctx.update(flags)
139145

0 commit comments

Comments
 (0)