Skip to content

Commit

Permalink
samples: new mcuboot configuration
Browse files Browse the repository at this point in the history
* all platforms: size optimization in mcuboot
* nrf54L: ed25519 signature as default (from nrf)
nrfconnect/sdk-nrf#19148
* nrf54L10: link time optimization in mcuboot
* nrf54L10: mcuboot partition size set to 52 KB

Signed-off-by: Krzysztof Taborowski <[email protected]>
  • Loading branch information
ktaborowski committed Dec 19, 2024
1 parent 0632715 commit 14df970
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
24 changes: 12 additions & 12 deletions samples/sid_end_device/pm_static_nrf54l15dk_nrf54l10_cpuapp.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions samples/sid_end_device/sysbuild/mcuboot/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ CONFIG_MULTITHREADING=n
CONFIG_TICKLESS_KERNEL=n
CONFIG_TIMEOUT_64BIT=n
CONFIG_NRF_ENABLE_ICACHE=n
CONFIG_SIZE_OPTIMIZATIONS=y

0 comments on commit 14df970

Please sign in to comment.