Skip to content

Commit e355dd8

Browse files
committedJul 9, 2024
[k32w0] Add OTA encryption info in contact sensor README
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 fbb44ea commit e355dd8

File tree

1 file changed

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

1 file changed

+9
-1
lines changed
 

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,10 @@ application. Please make sure that the application is written at address 0x4000:
643643

644644
![FLASH_LOCATION](../../../../platform/nxp/k32w/k32w0/doc/images/flash_location.JPG)
645645

646+
Please also note that, by default, the device expects the OTA image to be
647+
encrypted with the same key specified by `chip_with_ota_key`. See `args.gni` for
648+
the default gn configuration.
649+
646650
### OTA Testing
647651

648652
The OTA topology used for OTA testing is illustrated in the figure below.
@@ -730,9 +734,13 @@ Please see more in the
730734
Here is an example that generates an OTA image with application update TLV:
731735

732736
```
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
737+
./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
734738
```
735739

740+
Please note the two options `--enc_enable` and `--input_ota_key`, which are
741+
mandatory when `chip_with_ota_encryption=1`. The value of `--input_ota_key` must
742+
match the value of `chip_with_ota_key`.
743+
736744
A note regarding OTA image header version (`-vn` option). An application binary
737745
has its own software version, given by
738746
`CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION` (`42020` by default), which can be

0 commit comments

Comments
 (0)