Skip to content

Commit 37d8d3e

Browse files
author
Charley Chu
committed
psoc64: Resolve compile and runtime issues
- Remove CY8CKIT_064B0S2_4343W_NPSA target - Reserve 32KB non-secure flash for KV storage This is based on Devaraj's patch #13243 (comment) - Relocate policy file to policy directory Signed-off-by: Charley Chu <[email protected]>
1 parent ae0f8f7 commit 37d8d3e

File tree

4 files changed

+9
-19
lines changed

4 files changed

+9
-19
lines changed

features/storage/kvstore/conf/tdb_internal/mbed_lib.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
},
4242
"MCU_PSOC6": {
4343
"internal_size": "0x10000"
44+
},
45+
"CY8CKIT_064B0S2_4343W": {
46+
"internal_size": "0x8000",
47+
"internal_base_address": "0x10168000"
4448
}
4549
}
4650
}

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W/partition/flash_layout.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
* Flash layout if BL2 not defined:
2626
*
2727
* 0x1000_0000 Secure image primary (320 KB)
28-
* 0x1005_0000 Non-secure image primary (1152 KB)
28+
* 0x1005_0000 Non-secure image primary (1120 KB)
29+
* 0x1016_8000 Non-secure KV Storage (32 KB)
2930
* 0x1017_0000 Secure image secondary (320 KB)
3031
* 0x101c_0000 - 0x101f_ffff Reserved
3132
* 0x101c_0000 Internal Trusted Storage Area (16 KB)
@@ -49,7 +50,7 @@
4950
/* The size of S partition */
5051
#define FLASH_S_PARTITION_SIZE 0x50000 /* 320 KB */
5152
/* The size of NS partition */
52-
#define FLASH_NS_PARTITION_SIZE 0x120000 /* 1152 KB */
53+
#define FLASH_NS_PARTITION_SIZE 0x118000 /* 1120 KB */
5354

5455
/* Sector size of the flash hardware; same as FLASH0_SECTOR_SIZE */
5556
#define FLASH_AREA_IMAGE_SECTOR_SIZE (0x200) /* 512 B */

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W/policy_multi_CM0_CM4_tfm.json renamed to targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W/policy/policy_multi_CM0_CM4_tfm.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@
149149
{
150150
"type": "BOOT",
151151
"address": 268763136,
152-
"size": 1179648
152+
"size": 1146880
153153
},
154154
{
155155
"type": "UPGRADE",
156156
"address": 402653184,
157-
"size": 1179648
157+
"size": 1146880
158158
}
159159
]
160160
}

targets/targets.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6881,21 +6881,6 @@
68816881
"tfm_delivery_dir": "TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064B0S2_4343W",
68826882
"TFM_OUTPUT_EXT": "hex"
68836883
},
6884-
"CY8CKIT_064B0S2_4343W_NPSA": {
6885-
"inherits": [
6886-
"CY8CKIT_064B0S2_4343W"
6887-
],
6888-
"features_remove": [
6889-
"PSA"
6890-
],
6891-
"extra_labels_remove": [
6892-
"TFM",
6893-
"TFM_DUALCPU"
6894-
],
6895-
"hex_filename": "psoc6_02_cm0p_secure.hex",
6896-
"boot_scheme": "single_image",
6897-
"policy_file": "policy_single_CM0_CM4.json"
6898-
},
68996884
"CYSBSYSKIT_01": {
69006885
"inherits": [
69016886
"MCU_PSOC6_M4"

0 commit comments

Comments
 (0)