Skip to content

Commit 6b68fb8

Browse files
marius-alex-tacheaustina-csa
authored andcommitted
[k32w0] Add OTA encryption info in contact sensor README (project-chip#34257)
Contact sensor uses some gn args to enable OTA encryption. This means that an upcoming OTA image must be encrypted with the same key provided by chip_with_ota_key. Signed-off-by: marius-alex-tache <marius.tache@nxp.com>
1 parent 54d5773 commit 6b68fb8

File tree

1 file changed

+6
-1
lines changed
  • examples/contact-sensor-app/nxp/k32w/k32w0

1 file changed

+6
-1
lines changed

examples/contact-sensor-app/nxp/k32w/k32w0/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,14 @@ Please see more in the
730730
Here is an example that generates an OTA image with application update TLV:
731731

732732
```
733-
./scripts/tools/nxp/ota/ota_image_tool.py create -v 0xDEAD -p 0xBEEF -vn 42021 -vs "1.0" -da sha256 --app-input-file chip-k32w0x-contact-example.bin chip-k32w0x-contact-example.ota
733+
./scripts/tools/nxp/ota/ota_image_tool.py create -v 0xDEAD -p 0xBEEF -vn 2 -vs "2.0" -da sha256 --enc_enable --input_ota_key "1234567890ABCDEFA1B2C3D4E5F6F1B4" --app-input-file chip-k32w0x-contact-example.bin chip-k32w0x-contact-example.ota
734734
```
735735

736+
Please note the two options `--enc_enable` and `--input_ota_key`, which are
737+
mandatory when `chip_with_ota_encryption=1`. The value of `--input_ota_key` must
738+
match the value of `chip_with_ota_key`. See `args.gni` for the default gn
739+
configuration.
740+
736741
A note regarding OTA image header version (`-vn` option). An application binary
737742
has its own software version, given by
738743
`CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION` (`42020` by default), which can be

0 commit comments

Comments
 (0)