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
doc: Added documentation about DFU compression for Matter template
* Added information about internal configuration to Matter
template readme
* Added section about image compression to the bootloader
documentation
* Modified sample.yml to build the variant for release with
internal configuration
* Created new partition layout description
* Updated missing section about external flash partitions
layout for nrf54l15
Signed-off-by: Kamil Kasperczyk <[email protected]>
Copy file name to clipboardExpand all lines: doc/nrf/protocols/matter/end_product/bootloader.rst
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,3 +131,24 @@ Downgrade protection
131
131
The :ref:`downgrade protection <ug_fw_update_image_versions_mcuboot_downgrade>` mechanism makes it impossible for an attacker to trick a user to install a firmware image older than the currently installed one.
132
132
The attacker might want to do this to reintroduce old security vulnerabilities that have already been fixed in newer firmware revisions.
133
133
You should enable the downgrade protection mechanism if you choose to enable MCUboot's ``SB_CONFIG_MCUBOOT_MODE_OVERWRITE_ONLY`` Kconfig option, which disables the fallback recovery in case of a faulty upgrade.
The :ref:`MCUboot image compression <mcuboot_image_compression>` feature allows you to reduce the size of the firmware image that is being installed.
141
+
This is done by compressing the image before it is written to the secondary slot.
142
+
143
+
Thanks to the compression, the secondary slot can be smaller than the primary one.
144
+
This is especially useful when you do not want to use external flash for the secondary slot, and you need to place the new image in the internal memory.
145
+
146
+
You can enable this feature by setting the following Kconfig options in your application's sysbuild configuration file:
147
+
148
+
* :kconfig:option:`SB_CONFIG_MCUBOOT_MODE_OVERWRITE_ONLY` to ``y``
149
+
* :kconfig:option:`SB_CONFIG_MCUBOOT_COMPRESSED_IMAGE_SUPPORT` to ``y``
150
+
151
+
If your application has used external flash for the secondary slot and you want to stop using it, disable the following Kconfig options in your application's sysbuild configuration file:
152
+
153
+
* :kconfig:option:`SB_CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK` to ``n``
154
+
* :kconfig:option:`SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY` to ``n``
The following memory map is valid for Matter applications running on the :ref:`nRF54L15 DK <programming_board_names>` (:ref:`nrf54l15dk/nrf54l15/cpuapp <zephyr:nrf54l15dk_nrf54l15>`).
683
+
You can use this DK with any application.
684
+
However, it is currently integrated only by the :ref:`Matter Template sample <matter_template_sample>`.
The following table lists memory requirements for samples running on the :ref:`nRF54L15 DK with CMSE enabled <app_boards_spe_nspe_cpuapp_ns>` (:ref:`nrf54l15dk/nrf54l15/cpuapp/ns <zephyr:nrf54l15dk_nrf54l15>`).
Copy file name to clipboardExpand all lines: samples/matter/template/README.rst
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,32 @@ For example:
130
130
131
131
.. include:: /includes/advanced_conf_matter.txt
132
132
133
+
Matter template using only internal memory
134
+
==========================================
135
+
136
+
For the nRF54L15 DK, you can configure the sample to use only the internal RRAM for storage.
137
+
It applies to the DFU as well, which means that both the currently running firmware and the new firmware to be updated will be stored within the device's internal RRAM memory.
138
+
See the Device Firmware Upgrade support section above for information about the DFU process.
139
+
140
+
The DFU image can fit in the internal flash memory thanks to the usage of :ref:`MCUboot image compression<ug_matter_device_bootloader_image_compression>`.
141
+
142
+
This configuration is disabled by default for the Matter template sample.
143
+
To enable it, set the ``FILE_SUFFIX`` CMake option to ``internal``.
144
+
145
+
The following is an example command to build the sample for the nRF54L15 DK with support for Matter OTA DFU and DFU over Bluetooth SMP, and using internal RRAM only:
146
+
147
+
.. code-block:: console
148
+
149
+
west build -p -b nrf54l15dk/nrf54l15/cpuapp -- -DCONFIG_CHIP_DFU_OVER_BT_SMP=y -DFILE_SUFFIX=internal
150
+
151
+
To build the sample for the same purpose, but in the ``release`` configuration, use the following command:
152
+
153
+
.. code-block:: console
154
+
155
+
west build -p -b nrf54l15dk/nrf54l15/cpuapp -- -DCONFIG_CHIP_DFU_OVER_BT_SMP=y -DFILE_SUFFIX=internal -Dtemplate_EXTRA_CONF_FILE=prj_release.conf
156
+
157
+
In this case, the size of the MCUboot secondary partition used for storing the new application image is approximately 30%-40% smaller than it would be when using a configuration with external flash memory support.
0 commit comments