Skip to content

Commit 27f9cf8

Browse files
committed
Added specific policy file for 2M device to expand slot sizes
1 parent 9b86b39 commit 27f9cf8

File tree

2 files changed

+114
-1
lines changed

2 files changed

+114
-1
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_064S2_4343W/secure_image_parameters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"priv_key_file": "keys/USERAPP_CM4_KEY_PRIV.pem",
1414
"aes_key_file": "keys/image-aes-128.key",
1515
"dev_pub_key_file": "keys/dev_pub_key.pem",
16-
"policy_file": "policy/policy_single_stage_CM4.json"
16+
"policy_file": "policy/policy_single_stage_CM4_2m.json"
1717
}
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"debug" :
3+
{
4+
"m0p" : {
5+
"permission" : "disabled",
6+
"control" : "firmware",
7+
"key" : 5
8+
},
9+
"m4" : {
10+
"permission" : "allowed",
11+
"control" : "firmware",
12+
"key" : 5
13+
},
14+
"system" : {
15+
"permission" : "enabled",
16+
"control" : "firmware",
17+
"key" : 5,
18+
"syscall": true,
19+
"mmio": true,
20+
"flash": true,
21+
"workflash": true,
22+
"sflash": true,
23+
"sram": true
24+
},
25+
"rma" : {
26+
"permission" : "allowed",
27+
"destroy_fuses" : [
28+
{
29+
"start" : 888,
30+
"size" : 136
31+
},
32+
{
33+
"start" : 648,
34+
"size" : 104
35+
}
36+
],
37+
"destroy_flash" : [
38+
{
39+
"start" : 268435456,
40+
"size" : 851968
41+
},
42+
{
43+
"start" : 269483520,
44+
"size" : 16
45+
}
46+
],
47+
"key" : 5
48+
}
49+
},
50+
"wounding" :
51+
{
52+
},
53+
"boot_upgrade" :
54+
{
55+
"title": "upgrade_policy",
56+
"firmware": [
57+
{
58+
"boot_auth": [
59+
3
60+
],
61+
"id": 0,
62+
"launch": 4,
63+
"smif_id": 0,
64+
"upgrade": false,
65+
"upgrade_auth": [
66+
3
67+
],
68+
"resources": [
69+
{
70+
"type": "FLASH_PC1_SPM",
71+
"address": 269287424,
72+
"size": 65536
73+
},
74+
{
75+
"type": "SRAM_SPM_PRIV",
76+
"address": 134348800,
77+
"size": 65536
78+
},
79+
{
80+
"type": "SRAM_DAP",
81+
"address": 134397952,
82+
"size": 16384
83+
}
84+
]
85+
},
86+
{
87+
"boot_auth": [
88+
8
89+
],
90+
"id": 4,
91+
"monotonic": 0,
92+
"smif_id": 0,
93+
"upgrade": true,
94+
"upgrade_auth": [
95+
8
96+
],
97+
98+
"resources": [
99+
{
100+
"type": "BOOT",
101+
"address": 268435456,
102+
"size": 655360
103+
},
104+
{
105+
"type": "UPGRADE",
106+
"address": 269090816,
107+
"size": 655360
108+
}
109+
]
110+
}
111+
]
112+
}
113+
}

0 commit comments

Comments
 (0)