Skip to content

Commit 19d25e4

Browse files
hellesvik-nordicrlubos
authored andcommitted
[nrf noup] partition_manager: Add support for internal flash netcore DFU
Adds check to region of mcuboot_secondary_1 to put it in external flash only if CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY is set. This should allow for DFU from internal flash on the nRF5340 with dynamic partitioning. Also fixing a typo. Signed-off-by: Sigurd Hellesvik <[email protected]> (cherry picked from commit 27e4783)
1 parent 1d96021 commit 19d25e4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

boot/zephyr/pm.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,17 @@ mcuboot_pad:
7878
mcuboot_primary_1:
7979
region: ram_flash
8080
size: CONFIG_NRF53_RAM_FLASH_SIZE
81-
#endif /* CONFIG_NRF53_MULTI_IMAGE_UPDATE */
81+
#endif /* CONFIG_NRF53_MCUBOOT_PRIMARY_1_RAM_FLASH */
8282

8383
#if (CONFIG_NRF53_MULTI_IMAGE_UPDATE)
8484
mcuboot_secondary_1:
85+
#if defined(CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY)
8586
region: external_flash
87+
#else
88+
placement:
89+
align: {start: CONFIG_FPROTECT_BLOCK_SIZE}
90+
after: mcuboot_secondary
91+
#endif
8692
size: CONFIG_NRF53_RAM_FLASH_SIZE
8793

8894
#endif /* CONFIG_NRF53_MULTI_IMAGE_UPDATE */

0 commit comments

Comments
 (0)