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 and paste the key data in this [Sketch](https://github.com/arduino/ArduinoCore-mbed/blob/master/libraries/STM32H747_System/examples/STM32H747_manageBootloader/STM32H747_manageBootloader.ino) and run it to flash the keys alongside the bootloader.
62
62
63
-
### Create a signed and encrypted update Sketch
63
+
### Substitute default keys for sketch generation
64
+
By default the IDE uses the keys located in `{runtime.platform.path}/libraries/MCUboot/default_keys`
65
+
66
+
To use your custom keys follow this steps:
67
+
1. Remove default keys
68
+
```
69
+
cd {runtime.platform.path}/libraries/MCUboot/default_keys
Alternatively you can customize your board.txt file following this [guide](https://arduino.github.io/arduino-cli/0.31/guides/secure-boot/)
86
+
87
+
### Manually create a signed and encrypted update Sketch
64
88
To create a signed and encrypted Sketch an additional step is needed after the Sketch binary is generated. This additional step is done passing the binary through `imgtool`. The flags used by the board to create a secure Sketch are defined [here](https://github.com/arduino/ArduinoCore-mbed/blob/fa628e35011a92fb7e54fa6bfd9a69be33173bf8/boards.txt#L79-L86). The resulting command resembles as follows:
0 commit comments