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
- Add DFU over Bluetooth SMP support for the light bulb sample
- Create a snippet for the Zigbee FOTA support, used by both
light bulb and light switch samples
- Update documentation with DFU over Bluetooth SMP support
Signed-off-by: Eduardo Montoya <eduardo.montoya@nordicsemi.no>
The Matter extension builds include Matter over-the-air (OTA) update support through MCUboot by default.
5
+
Device Firmware Upgrade (DFU) over Bluetooth LE using the Simple Management Protocol (SMP) is also enabled by default in the :file:`prj_matter_fota.conf` configuration selected by ``FILE_SUFFIX=matter_fota``.
6
+
7
+
Matter OTA and SMP DFU are independent transports.
8
+
SMP is not part of the Matter specification.
9
+
Use `mcumgr`_ or `nRF Connect Device Manager`_ to perform the update.
10
+
11
+
See |sample matter bt dfu testing ref| for step-by-step testing instructions.
To activate the :ref:`lib_zigbee_fota`, use the :file:`prj_fota.conf` configuration file together with the ``zigbee_fota_ext_flash`` snippet.
5
+
The snippet provides external-flash partition layouts, sysbuild MCUboot settings, and the matching MCUboot configuration (via ``zigbee_fota_mcuboot_ext_flash``).
6
+
For example, when building from the command line, use the following command:
7
+
8
+
.. parsed-literal::
9
+
:class: highlight
10
+
11
+
west build |sample dir| -b *board_target* -- -DFILE_SUFFIX=fota -DSNIPPET=zigbee_fota_ext_flash
12
+
13
+
The FOTA variant enables `MCUboot image compression`_.
14
+
The generated Zigbee update file contains a compressed MCUboot image, and MCUboot decompresses it while applying the update.
15
+
This setting reduces the update image size, but the MCUboot must run in the overwrite-only mode, so the device cannot revert to the previous image after the update is applied.
16
+
17
+
Alternatively, you can :ref:`configure Zigbee FOTA manually <ug_zigbee_configuring_components_ota>`.
18
+
19
+
.. note::
20
+
The decompression support increases the size of the MCUboot image.
21
+
When adapting this FOTA configuration to a custom board or application, make sure that the MCUboot partition is large enough for the generated bootloader image.
22
+
The FOTA variant uses devicetree-based partitioning with Partition Manager disabled; see :ref:`zigbee_ug_static_partition` for the partition layout requirements.
23
+
24
+
Device firmware upgrade over Bluetooth SMP (Zigbee-only builds)
To additionally enable Device Firmware Upgrade (DFU) over Bluetooth LE using the Simple Management Protocol (SMP) in a Zigbee-only build, add ``CONFIG_ZIGBEE_BT_DFU=y`` to the FOTA build command:
28
+
29
+
.. parsed-literal::
30
+
:class: highlight
31
+
32
+
west build |sample dir| -b *board_target* -- -DFILE_SUFFIX=fota -DSNIPPET=zigbee_fota_ext_flash -DCONFIG_ZIGBEE_BT_DFU=y
33
+
34
+
This option enables the MCUmgr SMP server over Bluetooth LE alongside :ref:`lib_zigbee_fota`.
35
+
It cannot be combined with the |sample matter ref| (``CONFIG_CHIP``).
36
+
For Matter extension builds, SMP DFU is provided through ``CONFIG_CHIP_DFU_OVER_BT_SMP`` instead.
37
+
38
+
See |sample zigbee bt dfu testing ref| for step-by-step testing instructions.
0 commit comments