Skip to content

Commit 152f6f1

Browse files
committed
M2351: Refine MBED_TZ_DEFAULT_ACCESS placement
1. On M2351, SYS/CLK registers are hard-wired to secure. Define MBED_TZ_DEFAULT_ACCESS to 1 so that all non-secure user threads have access to call secure functions to control these registers. 2. MBED_TZ_DEFAULT_ACCESS is only meaningful for non-secure target. Define it only for non-secure target in targets.json. 3. On TFM target, MBED_TZ_DEFAULT_ACCESS has defined in mbed_lib.json. Avoid duplicate definition which IAR assembler doesn't allow.
1 parent 91464b2 commit 152f6f1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

targets/targets.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12544,7 +12544,6 @@
1254412544
"OUTPUT_EXT": "hex",
1254512545
"macros": [
1254612546
"MBED_FAULT_HANDLER_DISABLED",
12547-
"MBED_TZ_DEFAULT_ACCESS=1",
1254812547
"LPTICKER_DELAY_TICKS=4"
1254912548
],
1255012549
"is_disk_virtual": true,
@@ -12683,7 +12682,6 @@
1268312682
"NU_PREBUILD_SECURE"
1268412683
],
1268512684
"macros_add": [
12686-
"MBED_TZ_DEFAULT_ACCESS=1",
1268712685
"CMSIS_NVIC_VIRTUAL",
1268812686
"MBEDTLS_PSA_CRYPTO_C"
1268912687
],

0 commit comments

Comments
 (0)