Skip to content

Commit f7c7c73

Browse files
ccli8adbridge
authored andcommitted
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 ab742b0 commit f7c7c73

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
@@ -8615,8 +8615,7 @@
86158615
"macros_add": ["CMSDK_CM7"],
86168616
"device_has_add": ["MPU"]
86178617
},
8618-
"NUMAKER_PFM_M2351": {
8619-
"core": "Cortex-M23-NS",
8618+
"NU_PFM_M2351_CM": {
86208619
"default_toolchain": "ARMC6",
86218620
"extra_labels": [
86228621
"NUVOTON",
@@ -8630,7 +8629,6 @@
86308629
"MBED_TZ_DEFAULT_ACCESS=1",
86318630
"LPTICKER_DELAY_TICKS=4"
86328631
],
8633-
"trustzone": true,
86348632
"is_disk_virtual": true,
86358633
"supported_toolchains": ["ARMC6"],
86368634
"config": {
@@ -8653,6 +8651,7 @@
86538651
},
86548652
"overrides": {
86558653
"deep-sleep-latency": 1,
8654+
"tickless-from-us-ticker": true,
86568655
"mpu-rom-end": "0x1fffffff"
86578656
},
86588657
"inherits": ["Target"],
@@ -8682,17 +8681,43 @@
86828681
"FLASH",
86838682
"MPU"
86848683
],
8685-
"components_add": ["FLASHIAP"],
86868684
"detect_code": ["1305"],
86878685
"release_versions": ["5"],
86888686
"device_name": "M2351KIAAEES",
86898687
"bootloader_supported": true,
86908688
"tickless-from-us-ticker": true,
86918689
"forced_reset_timeout": 3,
8692-
"mbed_rom_start" : "0x10040000",
8693-
"mbed_rom_size" : "0x40000",
8694-
"mbed_ram_start" : "0x30008000",
8695-
"mbed_ram_size" : "0x10000"
8690+
"public": false
8691+
},
8692+
"NU_PFM_M2351_NPSA_NS": {
8693+
"inherits": ["NU_PFM_M2351_CM"],
8694+
"core": "Cortex-M23-NS",
8695+
"trustzone": true,
8696+
"extra_labels_add": [
8697+
"M23_NS"
8698+
],
8699+
"macros_add": [
8700+
"MBED_TZ_DEFAULT_ACCESS=1"
8701+
],
8702+
"components_add": ["FLASHIAP"],
8703+
"mbed_rom_start" : "0x10040000",
8704+
"mbed_rom_size" : "0x40000",
8705+
"mbed_ram_start" : "0x30008000",
8706+
"mbed_ram_size" : "0x10000"
8707+
},
8708+
"NU_PFM_M2351_NPSA_S": {
8709+
"inherits": ["NU_PFM_M2351_CM"],
8710+
"core": "Cortex-M23",
8711+
"trustzone": true,
8712+
"extra_labels_add": [
8713+
"M23_S"
8714+
],
8715+
"device_has_remove": ["TRNG", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "STDIO_MESSAGES"],
8716+
"components_add": ["FLASHIAP"],
8717+
"mbed_rom_start" : "0x0",
8718+
"mbed_rom_size" : "0x40000",
8719+
"mbed_ram_start" : "0x20000000",
8720+
"mbed_ram_size" : "0x8000"
86968721
},
86978722
"TMPM3H6": {
86988723
"inherits": ["Target"],

0 commit comments

Comments
 (0)