Skip to content

Commit

Permalink
samples: matter: bootloader size optimizations
Browse files Browse the repository at this point in the history
Add LTO and size optimization configs for mcuboot and remove
redundant configs.
Set mcuboot size to `0xD000` for nRF54Lxx
Remove PDK overlays.

Signed-off-by: Maciej Baczmanski <[email protected]>
  • Loading branch information
maciejbaczmanski authored and de-nordic committed Dec 5, 2024
1 parent 25cf294 commit e25cafd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ Matter samples
* All Matter samples that support low-power mode to enable the :ref:`lib_ram_pwrdn` feature.
It is enabled by default for the release configuration of the :ref:`matter_lock_sample`, :ref:`matter_light_switch_sample`, :ref:`matter_smoke_co_alarm_sample`, and :ref:`matter_window_covering_sample` samples.
* All Matter samples to enable the ZMS file subsystem in all devices that contain MRAM, such as the nRF54H Series devices.
* The ``pm_static`` configuration for the :ref:`zephyr:nrf54l15dk_nrf54l15` board target, increasing MCUboot size to enable the ED25519 signature type.

* Disabled pausing Matter watchdog while CPU is in idle state in all Matter samples.
To enable it set the :ref:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_PAUSE_IN_SLEEP<CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_PAUSE_IN_SLEEP>` Kconfig option to ``y``.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ mcuboot_pad:
app:
address: 0xD800
region: flash_primary
size: 0xD7800
size: 0xD4800
mcuboot_primary:
address: 0xD000
orig_span: &id001
- app
- mcuboot_pad
region: flash_primary
size: 0xD8000
size: 0xD5000
span: *id001
mcuboot_primary_app:
address: 0xD800
orig_span: &id002
- app
region: flash_primary
size: 0xD7800
size: 0xD4800
span: *id002
mcuboot_secondary:
address: 0xE5000
address: 0xE2000
orig_span: &id003
- mcuboot_secondary_pad
- mcuboot_secondary_app
Expand All @@ -35,13 +35,13 @@ mcuboot_secondary:
span: *id003
mcuboot_secondary_pad:
region: flash_primary
address: 0xE5000
address: 0xE2000
size: 0x800
# Compression rate 34.80%
mcuboot_secondary_app:
region: flash_primary
address: 0xE5800
size: 0x8C800
address: 0xE2800
size: 0x8F800
factory_data:
address: 0x172000
region: flash_primary
Expand Down

0 comments on commit e25cafd

Please sign in to comment.