Skip to content

Conversation

tomchy
Copy link
Contributor

@tomchy tomchy commented Sep 25, 2025

No description provided.

@tomchy tomchy changed the title Bugfix/mcuboot/ncsdk 35612 fix merged slot offsets NCSDK-35612: Fix offsets in the merged slot builds Sep 25, 2025
@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-35612_Fix_merged_slot_offsets branch 6 times, most recently from 00efa4f to d67321a Compare October 2, 2025 14:21
tomchy added 2 commits October 2, 2025 17:03
…ion"

This reverts commit 28efd42.

Sgned-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
Use cpuapp_slot_partition instead of slot0_partition, so it is possible
to add MCUboot header through --pad-header option.
In such cases, the FLASH_LOAD_OFFSET does not point to the begining of
the slot, but to the beginning of the executable area, thus the check
for the active slot should use ranges instead of exact values.

Upstream PR #: 96925

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-35612_Fix_merged_slot_offsets branch from d67321a to 5f4afb5 Compare October 2, 2025 15:10
It is possible to add MCUboot header through --pad-header option.
In such cases, the FLASH_LOAD_OFFSET does not point to the beginning of
the slot, but to the beginning of the executable area, thus the check
for the active slot should use ranges instead of exact values.

Upstream PR #: 96925

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-35612_Fix_merged_slot_offsets branch from 5f4afb5 to 81f4259 Compare October 2, 2025 15:15
MarekPieta and others added 2 commits October 2, 2025 17:18
The "zephyr-code-partition" chosen DTS node cannot be used when build
uses Partition Manager. In that case, mcumgr must rely on the
definitions provided by the Partition Manager.

Jira: NCSDK-21381

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
(cherry picked from commit 6b04cee)
In the merged slot approach, the memory reservation for the MCUboot
header is done in CMake, as it is not obvious, which image includes the
(merged) MCUboot header.
This change will remove the unnecessary gap between images.

Ref: NCSDK-35612

Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-35612_Fix_merged_slot_offsets branch from 81f4259 to 6f16451 Compare October 2, 2025 15:18
@tomchy tomchy marked this pull request as ready for review October 2, 2025 15:30
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.

2 participants