File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
libraries/MCUboot/examples/enableSecurity Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ This example enables secuity features of the MCUboot bootloader writing encryption
3
+ and signing key into the microcontroller flash memory.
4
+
5
+ Once the keys are loaded you need to build and upload the future sketches enabling
6
+ the Security Settings -> "Signing + Encryption" in the tools menu of the IDE. This
7
+ will create an encrypted and signed binary conforming to the MCUboot image format
8
+ using imgtool. See https://docs.mcuboot.com/design.html#image-format for more details
9
+ about image format.
10
+
11
+ Writing the keys will also enable MCUboot image swap using a scratch area. This will
12
+ increase the sketch update time after the upload, but also adds the possibility to
13
+ revert to the previous image version if the update is not confirmed.
14
+ See ConfirmSketch example for more details about setting the confirmed flag.
15
+
16
+ Circuit:
17
+ - Arduino Portenta H7 board
18
+
19
+ This example code is in the public domain.
20
+ */
21
+
1
22
#include " FlashIAP.h"
2
23
#include " QSPIFBlockDevice.h"
3
24
#include " MBRBlockDevice.h"
You can’t perform that action at this time.
0 commit comments