You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The certificate in above examples is signed with OEM key from ./prebuild folder.
46
-
47
-
Prebuild folder contains CyBootloader_WithLogs and CyBootloader_Release with corresponding *.hex and *.jwt files.
48
-
* WithLogs prints execution results to terminal.
49
-
* Release does not print to terminal and boots up silently.
50
-
51
-
**_NOTE:_** CypressBootloader_CM0p.jwt and CypressBootloader_CM0p.hex must be used in pair from the same directory in provisioning packet generation (.packets/prov_cmd.jwt) and provisioning procedure itself.
52
-
53
-
## 3. Run entrance exam
54
-
55
-
python entrance_exam_runner.py
56
-
57
-
## 4. Perform provisioning:
58
-
**_ATTENTION:_** Proceed to **UPGRADE IMAGES** section first if UPGRADE image is needed.
59
-
60
-
Execute *provision_device_runner.py*.
61
-
The script will run with the default arguments if no arguments specified.
62
-
63
-
Default arguments can be overridden with a custom:
64
-
65
-
--prov-jwt <filename> Path to provisioning JWT file (packet which contains all data necessary for provisioning, including policy, authorization packets and keys)
66
-
--hex <filename> Path to Cypress Bootloader HEX binary file
67
-
--pubkey-json <filename> File where to save public key in JSON format
68
-
--pubkey-pem <filename> File where to save public key in PEM format
**_NOTE:_** PSoC6 supply voltage of 2.5V is required to perform provisioning.
6
+
**_NOTE_:** Before starting work with Cypress Secure Boot enabled target please read User Guide https://www.cypress.com/secureboot-sdk-user-guide
75
7
76
8
## UPGRADE IMAGES
77
9
@@ -87,9 +19,9 @@ The upgrade images types are determined by the following policy setting (firmwar
87
19
-**_"encrypt_key_id":_** 1, - should remain unchanged, means that Device Key will be used in ECDH/HKDF protocol
88
20
89
21
Requirements:
90
-
- Policy with **_smif.json** from prepare/ folder should be used.
22
+
- Policy with **_smif.json** from policy/ folder should be used.
91
23
For encrypted image:
92
-
- aes.key generated, as described in **DEVICE_PROVISIONING - 1**
24
+
- aes.key generated, as described in user guide
93
25
- dev_pub_key.pem must be placed in keys/ folder (this key is generated in provisioning procedure)
94
26
- secure_image_parameters.json file in the target directory must contain valid keys' paths
95
27
@@ -110,7 +42,7 @@ Encrypted UPGRADE image:
110
42
"encrypt": true,
111
43
"encrypt_key_id": 1,
112
44
113
-
Modified policy file should be used for provisioning the device, as described in paragraph 4.
45
+
Modified policy file should be used for provisioning the device, as described in User Guide.
114
46
115
47
Now mbed-os application or test can be built as described in section **TESTS**. Images for UPGRADE are generated at build time, according to policy.
116
48
@@ -140,11 +72,3 @@ The generic HEX file (for example one that is produced by mbed-os build system)
140
72
141
73
Run commands:
142
74
mbed test --compile -m CY8CPROTO_064_SB -t GCC_ARM -n tests-mbed* -v
143
-
144
-
# TROUBLESHOOTING:
145
-
146
-
1. In case of messages like "unable to find device" execute "mbedls -m 1907:CY8CPROTO_064_SB", then check with "mbedls" if device is detected as CY8CPROTO_064_SB with code 1907.
147
-
2. Keys, from ./keys folder is used for signing images by default, these keys should be used for provisioning.
148
-
3. Consider using CyBootloader from CyBootloader_WithLogs folder. It produces logs, which are useful to understand whether CyBootloader works correctly.
149
-
4. When running application with SMIF and _smif.json policy the field "smif_id" should be set to 1 for CY8CPROTO_064_SB.
150
-
5. Low frequency quartz (32768 Hz) oscillator have to be soldered on CY8CPROTO_064_SB (not present in stock version of board).
0 commit comments