Commit 9e72eb39 authored by Mateusz Michalek's avatar Mateusz Michalek Committed by Dominik Ermel
Browse files

doc: imgtool: importance of clear flag



factory-programming procedure.

Signed-off-by: default avatarMateusz Michalek <mateusz.michalek@nordicsemi.no>
Signed-off-by: default avatarAnna Wojdylo <anna.wojdylo@nordicsemi.no>
parent 251c0541
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -147,6 +147,14 @@ the status area just before starting the upgrade process, because it
would be very hard to determine this information when an interruption
occurs and the information is spread across multiple areas.

## [Factory-programing requirement](#factory-programing-requirement)

It is important to have updates without any voids in encryption. 
Therefore, from the very beginning, flags and TLV's must be set accordingly.
Perform the first flashing with an image signed by imgtool with encryption settings
intended for DFU.
Append it with the `--clear` flag to keep the image unencrypted and ready for use.

## [Creating your keys with imgtool](#creating-your-keys-with-imgtool)

`imgtool` can generate keys by using `imgtool keygen -k <output.pem> -t <type>`,