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
Copy file name to clipboardExpand all lines: docs/flash-OTP.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,18 +89,23 @@ make keytools
89
89
- Copy one of the generated keys to `wolfboot_signing_private_key.der`
90
90
-`cp 1.key wolfboot_signing_private_key.der`
91
91
92
-
5)Flash the OTP keystore primer:
92
+
5)Setup the OTP keystore
93
93
94
+
Flash the OTP keystore primer:
94
95
- Flash `./tools/keytools/otp/otp-keystore-primer.bin` to `0x08000000`
95
96
- Disconnect the tool and hit reset button
96
97
- The primer will run and flash keystore.c to OTP and enable write protection on those blocks
97
98
98
99
OR
99
100
100
-
- Run `make otpgen` and run `./tools/keytools/otp/otp-keystore-gen` to generate an otp.bin file that can be programmed using STM32CubeProgrammer to `0x08FFF000`.
101
+
Generate OTP (otp.bin) and flash using external tool
102
+
- Run `make otpgen`
103
+
- Run `./tools/keytools/otp/otp-keystore-gen` to generate an otp.bin file
104
+
- Program otp.bin to `0x08FFF000` using external tool like STM32CubeProgrammer
101
105
102
-
6) Verify you flashed the keystore in OTP
103
-
- Read memory from STM32CubeProgrammer at address `0x08FFF000` (should start with ASCII "WOLFBOOT")
106
+
6) Verify OTP keystore
107
+
- Read memory at address `0x08FFF000` (should start with ASCII "WOLFBOOT")
108
+
- Typically use STM32CubeProgrammer for this
104
109
105
110
7) Setup the option bytes
106
111
- User Configuration 2 -> TrustZone Enable (TZEN=0xB4)
0 commit comments