Skip to content

Commit 4076788

Browse files
author
deepikabhavnani
committed
Non Secure flag is required for pre-processing of linker file
1 parent 9192823 commit 4076788

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/toolchains/gcc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def __init__(self, target, notify=None, macros=None,
9393

9494
if target.core == "Cortex-M23" or target.core == "Cortex-M33":
9595
self.cpu.append("-mcmse")
96+
elif target.core == "Cortex-M23-NS" or target.core == "Cortex-M33-NS":
97+
self.flags["ld"].append("-D__DOMAIN_NS=1")
9698

9799
self.flags["common"] += self.cpu
98100

0 commit comments

Comments
 (0)