Skip to content

Conversation

@tomchy
Copy link
Contributor

@tomchy tomchy commented Oct 27, 2025

Interpret pending active slot requests while calculating the expected next slot to boot.

Ref: NCSDK-35821

@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-NONE_Confirm_requests branch from f56418e to 56fbf75 Compare October 28, 2025 17:28

if (rcs == 0 && rca == 0 && img_mgmt_vercmp(&aver, &sver) < 0) {
if (rcs == 0 && rca == 0 && (img_mgmt_vercmp(&aver, &sver) < 0) ||
(img_mgmt_vercmp(&aver, &sver) == 0 && (active_slot > query_slot))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment on this logic?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added/modified comments to justify this logic.

@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-NONE_Confirm_requests branch 2 times, most recently from 269e2df to b58bb6c Compare October 29, 2025 15:31
If slots have equal version, but a secondary slot is the active one, the
next boot will switch to the primary slot.
Expose this through SMP commands by marking the primary slot as pending.

Upstream PR #: 98441

Signed-off-by: Tomasz Chyrowicz <[email protected]>
Interpret pending active slot requests while calculating the expected
next slot to boot.

Signed-off-by: Tomasz Chyrowicz <[email protected]>
@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-NONE_Confirm_requests branch from b58bb6c to 9fac199 Compare October 29, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants