Skip to content

Commit 463cc32

Browse files
committed
Further documentation cleanups.
1 parent fbc6f02 commit 463cc32

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docs/flash-OTP.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,23 @@ make keytools
8989
- Copy one of the generated keys to `wolfboot_signing_private_key.der`
9090
- `cp 1.key wolfboot_signing_private_key.der`
9191

92-
5) Flash the OTP keystore primer:
92+
5) Setup the OTP keystore
9393

94+
Flash the OTP keystore primer:
9495
- Flash `./tools/keytools/otp/otp-keystore-primer.bin` to `0x08000000`
9596
- Disconnect the tool and hit reset button
9697
- The primer will run and flash keystore.c to OTP and enable write protection on those blocks
9798

9899
OR
99100

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
101105

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
104109

105110
7) Setup the option bytes
106111
- User Configuration 2 -> TrustZone Enable (TZEN=0xB4)

0 commit comments

Comments
 (0)