CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER

Number of supported images

Type: int

Help

Sets how many application images are supported (pairs of secondary and primary slots).
Setting this to 2 requires MCUMGR_BUF_SIZE to be at least 512b.
NOTE: The UPDATEABLE_IMAGE_NUMBER of MCUBOOT configuration, even for Zephyr build,
needs to be set to the same value; this is due to the fact that the mcumgr uses
boot_util and the UPDATEABLE_IMAGE_NUMBER controls number of images supported
by that library.

Direct dependencies

MCUMGR_CMD_IMG_MGMT && MCUMGR

(Includes any dependencies from ifs and menus.)

Kconfig definition

At <Zephyr>/subsys/mgmt/mcumgr/Kconfig:159

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:42<Zephyr>/subsys/Kconfig:35<Zephyr>/subsys/mgmt/Kconfig:9

Menu path: (Top) → Sub Systems and OS Services → Device Management → mcumgr Support → Command Handlers → Enable mcumgr handlers for image management

config IMG_MGMT_UPDATABLE_IMAGE_NUMBER
    int "Number of supported images"
    range 1 2
    default UPDATEABLE_IMAGE_NUMBER
    depends on MCUMGR_CMD_IMG_MGMT && MCUMGR
    help
      Sets how many application images are supported (pairs of secondary and primary slots).
      Setting this to 2 requires MCUMGR_BUF_SIZE to be at least 512b.
      NOTE: The UPDATEABLE_IMAGE_NUMBER of MCUBOOT configuration, even for Zephyr build,
      needs to be set to the same value; this is due to the fact that the mcumgr uses
      boot_util and the UPDATEABLE_IMAGE_NUMBER controls number of images supported
      by that library.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)