Skip to content

Commit c025e33

Browse files
committed
M2351: Rename non-PSA target name to NU_PFM_M2351_NPSA_S/NS
1. Create a private target name NU_PFM_M2351_CM which stands for the NuMaker-PFM-M2351 board and is to be extended. 2. NU_PFM_M2351_NPSA_S/NS target names for non-PSA secure/non-secure targets respectively. 3. The original target name NUMAKER_PFM_M2351 is recycled and cannot be used. Use NU_PFM_M2351_S/NS for non-PSA secure/non-secure targets instead. NOTE: Target name doesn't follow the rule below because online database has limit of max 20 chars: NUMAKER_PFM_M2351_PSA/NOPSA_S/NS Instead, it has the rule: NU_PFM_M2351_[NPSA_]S/NS NU_PFM_M2351_S/NS for PSA targets. This is to be consistent with current PSA target naming. So the resolved target names are: NU_PFM_M2351_S : PSA secure target NU_PFM_M2351_NS : PSA non-secure target NU_PFM_M2351_NPSA_S : Non-PSA secure target NU_PFM_M2351_NPSA_NS : Non-PSA non-secure target
1 parent 2471c9e commit c025e33

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed

targets/targets.json

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8663,8 +8663,7 @@
86638663
"macros_add": ["CMSDK_CM7"],
86648664
"device_has_add": ["MPU"]
86658665
},
8666-
"NUMAKER_PFM_M2351": {
8667-
"core": "Cortex-M23-NS",
8666+
"NU_PFM_M2351_CM": {
86688667
"default_toolchain": "ARMC6",
86698668
"extra_labels": [
86708669
"NUVOTON",
@@ -8678,7 +8677,6 @@
86788677
"MBED_TZ_DEFAULT_ACCESS=1",
86798678
"LPTICKER_DELAY_TICKS=4"
86808679
],
8681-
"trustzone": true,
86828680
"is_disk_virtual": true,
86838681
"supported_toolchains": ["ARMC6"],
86848682
"config": {
@@ -8701,6 +8699,7 @@
87018699
},
87028700
"overrides": {
87038701
"deep-sleep-latency": 1,
8702+
"tickless-from-us-ticker": true,
87048703
"mpu-rom-end": "0x1fffffff"
87058704
},
87068705
"inherits": ["Target"],
@@ -8730,17 +8729,43 @@
87308729
"FLASH",
87318730
"MPU"
87328731
],
8733-
"components_add": ["FLASHIAP"],
87348732
"detect_code": ["1305"],
87358733
"release_versions": ["5"],
87368734
"device_name": "M2351KIAAEES",
87378735
"bootloader_supported": true,
87388736
"tickless-from-us-ticker": true,
87398737
"forced_reset_timeout": 3,
8740-
"mbed_rom_start" : "0x10040000",
8741-
"mbed_rom_size" : "0x40000",
8742-
"mbed_ram_start" : "0x30008000",
8743-
"mbed_ram_size" : "0x10000"
8738+
"public": false
8739+
},
8740+
"NU_PFM_M2351_NPSA_NS": {
8741+
"inherits": ["NU_PFM_M2351_CM"],
8742+
"core": "Cortex-M23-NS",
8743+
"trustzone": true,
8744+
"extra_labels_add": [
8745+
"M23_NS"
8746+
],
8747+
"macros_add": [
8748+
"MBED_TZ_DEFAULT_ACCESS=1"
8749+
],
8750+
"components_add": ["FLASHIAP"],
8751+
"mbed_rom_start" : "0x10040000",
8752+
"mbed_rom_size" : "0x40000",
8753+
"mbed_ram_start" : "0x30008000",
8754+
"mbed_ram_size" : "0x10000"
8755+
},
8756+
"NU_PFM_M2351_NPSA_S": {
8757+
"inherits": ["NU_PFM_M2351_CM"],
8758+
"core": "Cortex-M23",
8759+
"trustzone": true,
8760+
"extra_labels_add": [
8761+
"M23_S"
8762+
],
8763+
"device_has_remove": ["TRNG", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "STDIO_MESSAGES"],
8764+
"components_add": ["FLASHIAP"],
8765+
"mbed_rom_start" : "0x0",
8766+
"mbed_rom_size" : "0x40000",
8767+
"mbed_ram_start" : "0x20000000",
8768+
"mbed_ram_size" : "0x8000"
87448769
},
87458770
"TMPM3H6": {
87468771
"inherits": ["Target"],

0 commit comments

Comments
 (0)