Skip to content

Commit

Permalink
[nrf noup] boot: zephyr: let secondary_1 slot be in regular flash
Browse files Browse the repository at this point in the history
Added support for multi-image DFU for nRF53 from internal flash which
requires the region parameter of `mcuboot_secondary_1` to be
configurable. So that the `mcuboot_secondary_1` partition is put into
internal flash.

Ref. NCSDK-12809

Signed-off-by: Sigvart Hovland <[email protected]>
  • Loading branch information
sigvartmh committed Aug 31, 2023
1 parent 8fe7070 commit 3204941
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions boot/zephyr/pm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ mcuboot_scratch:
# Padding placed before image to boot. This reserves space for the MCUboot image header
# and it ensures that the boot image gets linked with the correct address offset in flash.
mcuboot_pad:
# MCUboot pad must be placed before the primary application partition.
# The primary application partition includes the secure firmware if present.
# MCUboot pad must be placed before the primary application partition.
# The primary application partition includes the secure firmware if present.
size: CONFIG_PM_PARTITION_SIZE_MCUBOOT_PAD
placement:
before: [mcuboot_primary_app]
Expand All @@ -81,7 +81,12 @@ mcuboot_primary_1:

#if (CONFIG_NRF53_MULTI_IMAGE_UPDATE)
mcuboot_secondary_1:
#if (CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY_1)
region: external_flash
#endif /* CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY_1 */
size: CONFIG_NRF53_RAM_FLASH_SIZE
placement:
after: mcuboot_secondary
align: {start: 4}

#endif /* CONFIG_NRF53_MULTI_IMAGE_UPDATE */

0 comments on commit 3204941

Please sign in to comment.