Skip to content

bootutil: sector size == padding size? #2376

@jorgenmk

Description

@jorgenmk

https://github.com/mcu-tools/mcuboot/blob/main/boot/bootutil/src/bootutil_misc.c#L524

Here the padding size is assumed to always be the same as sector size, is this correct?

We are running into issues when application starts filling up the partition.

For example, try to build and run sdk-nrf/applications/connectivity_bridge for board thingy91x/nrf5340/cpuapp. This goes very wrong runtime.

Forcing padding_sz to 512 (default CONFIG_PM_PARTITION_SIZE_MCUBOOT_PAD) makes it work again.

@taltenbach

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions