diff --git a/samples/sid_end_device/pm_static_nrf54l15dk_nrf54l10_cpuapp.yml b/samples/sid_end_device/pm_static_nrf54l15dk_nrf54l10_cpuapp.yml index ada6b15df..fd8801cfd 100644 --- a/samples/sid_end_device/pm_static_nrf54l15dk_nrf54l10_cpuapp.yml +++ b/samples/sid_end_device/pm_static_nrf54l15dk_nrf54l10_cpuapp.yml @@ -1,40 +1,40 @@ app: - address: 0xc800 + address: 0xd800 end_address: 0xfd000 region: flash_primary - size: 0xf0800 + size: 0xef800 mcuboot: address: 0x0 - end_address: 0xc000 + end_address: 0xd000 placement: before: - mcuboot_primary region: flash_primary - size: 0xc000 + size: 0xd000 mcuboot_pad: - address: 0xc000 - end_address: 0xc800 + address: 0xd000 + end_address: 0xd800 placement: before: - mcuboot_primary_app region: flash_primary size: 0x800 mcuboot_primary: - address: 0xc000 + address: 0xd000 end_address: 0xfd000 orig_span: &id001 - mcuboot_pad - app region: flash_primary - size: 0xf1000 + size: 0xf0000 span: *id001 mcuboot_primary_app: - address: 0xc800 + address: 0xd800 end_address: 0xfd000 orig_span: &id002 - app region: flash_primary - size: 0xf0800 + size: 0xef800 span: *id002 settings_storage: address: 0xfd000 @@ -53,11 +53,11 @@ mfg_storage: size: 0x1000 mcuboot_secondary: address: 0x0 - end_address: 0xf1000 + end_address: 0xf0000 placement: align: start: 0x4 region: external_flash share_size: - mcuboot_primary - size: 0xf1000 + size: 0xf0000 diff --git a/samples/sid_end_device/sysbuild/mcuboot/boards/nrf54l15dk_nrf54l10_cpuapp.conf b/samples/sid_end_device/sysbuild/mcuboot/boards/nrf54l15dk_nrf54l10_cpuapp.conf index 9f6d267f4..5818fd966 100644 --- a/samples/sid_end_device/sysbuild/mcuboot/boards/nrf54l15dk_nrf54l10_cpuapp.conf +++ b/samples/sid_end_device/sysbuild/mcuboot/boards/nrf54l15dk_nrf54l10_cpuapp.conf @@ -21,14 +21,17 @@ CONFIG_TICKLESS_KERNEL=y CONFIG_BOOT_WATCHDOG_FEED=n -CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y - # nRF54L15DK uses SPI NOR external flash CONFIG_GPIO=y CONFIG_SPI=y CONFIG_SPI_NOR=y CONFIG_SPI_NOR_SFDP_DEVICETREE=y CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 +CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y # required by SPI driver CONFIG_MULTITHREADING=y + +# Activate LTO +CONFIG_LTO=y +CONFIG_ISR_TABLES_LOCAL_DECLARATION=y diff --git a/samples/sid_end_device/sysbuild/mcuboot/prj.conf b/samples/sid_end_device/sysbuild/mcuboot/prj.conf index 7c92c668c..f2bd8b411 100644 --- a/samples/sid_end_device/sysbuild/mcuboot/prj.conf +++ b/samples/sid_end_device/sysbuild/mcuboot/prj.conf @@ -42,3 +42,4 @@ CONFIG_MULTITHREADING=n CONFIG_TICKLESS_KERNEL=n CONFIG_TIMEOUT_64BIT=n CONFIG_NRF_ENABLE_ICACHE=n +CONFIG_SIZE_OPTIMIZATIONS=y