Non Secure flag is required for pre-processing of linker file

pull/6201/head
deepikabhavnani 2017-09-22 09:38:58 -05:00 committed by Cruz Monrreal II
parent 3e181422d8
commit 8eac84ca80
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,8 @@ class GCC(mbedToolchain):
if target.core == "Cortex-M23" or target.core == "Cortex-M33":
self.cpu.append("-mcmse")
elif target.core == "Cortex-M23-NS" or target.core == "Cortex-M33-NS":
self.flags["ld"].append("-D__DOMAIN_NS=1")
self.flags["common"] += self.cpu