Skip to content

Conversation

nordic-mik7
Copy link
Contributor

This PR fixes the scrambling of the scratch area after persisting a trailer to the primary slot. Previous use of boot_erase_region() didn't guarantee that the scratch area is scrambled, as it only erases memory for devices that selects CONFIG_MCUBOOT_STORAGE_WITH_ERASE.

Upstream PR #: 2418

@shanthanordic
Copy link

Removed 3.1.0 milestone, review pending

@shanthanordic shanthanordic removed this from the ncs-3.1.0 milestone Aug 8, 2025
@shanthanordic shanthanordic removed the backport ncs-v3.1-branch backport PR for NCS 3.1.x release label Aug 8, 2025
@nordic-mik7 nordic-mik7 force-pushed the dev/scratch_scrambling_fix_down branch from ab97d44 to 6eb79d2 Compare August 12, 2025 13:56
@nordic-mik7 nordic-mik7 force-pushed the dev/scratch_scrambling_fix_down branch 2 times, most recently from 315a331 to c524c2b Compare August 14, 2025 12:26
This commit fixes the scrambling of the scratch area after
persisting a trailer to the primary slot. Previous use of
boot_erase_region() didn't guarantee that the scratch area is
scrambled, as it only erases memory for devices that selects
CONFIG_MCUBOOT_STORAGE_WITH_ERASE.

Signed-off-by: Michal Kozikowski <[email protected]>
(cherry picked from commit 800868a)
@nordic-mik7 nordic-mik7 force-pushed the dev/scratch_scrambling_fix_down branch from c524c2b to 6e7d221 Compare August 14, 2025 12:30
Copy link

@rlubos rlubos merged commit 95d384a into nrfconnect:main Aug 14, 2025
3 checks passed
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.

5 participants