Skip to content

swap_move: Message about non optimal sector distribution seems wrong #2172

@mimok

Description

@mimok

This is not a critical issue but i believe there is a problem with the test which checks whether the sector distribution is optimal or not.
This test can be found here:

if (num_usable_sectors_pri != (num_sectors_sec + 1)) {

On my STM32F429 MCU, I have seven 128KB sectors for slot 0, six 128KB sectors for slot 1 and mcuboot complains about non optimal distribution of sectors while everything seems to work.

If i put five sectors in slot1, mcuboot does not complain anymore but the maximum size of an update is reduced by 128KB.

Why a 7/6 distribution would be less optimal than a 7/5 distribution ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions