Skip to content

SMP Client : Unnecessary requirement to have 2 slots as an SMP serverΒ #97041

@PYvesLeCalvez

Description

@PYvesLeCalvez

Describe the bug

To integrate an SMP Client, you must pull through prj.conf CONFIG_SMP_CLIENT=y and CONFIG_MCUBOOT_BOOTUTIL_LIB=y. From there, the __flash_area_ids_for_slot function requires 2 slots via the ALL_AVAILABLE_SLOTS define. In fact, two slots are not necessary and cannot always be implemented, which prevents the feature from being implemented for no good reason.

Regression

  • This is a regression.

Steps to reproduce

First of all, the SMP client associated TU should compile.

Go there : zephyr/tests/subsys/mgmt/mcumgr/mcumgr_client
Try to compile ; west build -b native_posix . -p
The TU does not compile but you will not face the same pb as native_posix has 2 slots. Delete the slot 1 and you will face the same pb.

Relevant log output

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug, or the PR is fixing a bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions