You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sysflash: Correct ALL_AVAILABLE_SLOTS when MCUBOOT is not image 2
Consider an nRF5340 application with the following sysbuild config:
```
SB_CONFIG_BOOTLOADER_MCUBOOT=y
SB_CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256=y
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
SB_CONFIG_SECURE_BOOT_APPCORE=y
SB_CONFIG_SECURE_BOOT_NETCORE=y
SB_CONFIG_NETCORE_APP_UPDATE=y
SB_CONFIG_MCUBOOT_NRF53_MULTI_IMAGE_UPDATE=y
SB_CONFIG_MCUBOOT_MODE_OVERWRITE_ONLY=y
```
In this case, we have a total of 3 updatable images (app, net, mcuboot).
`MCUBOOT_IMAGE_NUMBER = 2` (i.e. `CONFIG_UPDATEABLE_IMAGE_NUMBER = 2`),
as the app secondary partition is reused for MCUBoot secondary.
`CONFIG_MCUBOOT_MCUBOOT_IMAGE_NUMBER = 2` as the net core image has
index 1.
In this case, we should fall through to the definition of
`ALL_AVAILABLE_SLOTS` that caters for 2 updatable images.
0 commit comments