Skip to content

Commit e768dd2

Browse files
nordicjmde-nordic
authored andcommitted
[nrf fromtree] bootutil: Add shared data support for XIP with revert mode
Adds support for sharing the direct-XIP MCUboot mode with revert to applications using shared data Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 50f8b5f) Signed-off-by: Dominik Ermel <[email protected]>
1 parent 70061f3 commit e768dd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

boot/bootutil/src/boot_record.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,11 @@ int boot_save_shared_data(const struct image_header *hdr, const struct flash_are
240240
#elif defined(MCUBOOT_SWAP_USING_MOVE)
241241
uint8_t mode = MCUBOOT_MODE_SWAP_USING_MOVE;
242242
#elif defined(MCUBOOT_DIRECT_XIP)
243+
#if defined(MCUBOOT_DIRECT_XIP_REVERT)
244+
uint8_t mode = MCUBOOT_MODE_DIRECT_XIP_WITH_REVERT;
245+
#else
243246
uint8_t mode = MCUBOOT_MODE_DIRECT_XIP;
247+
#endif
244248
#elif defined(MCUBOOT_RAM_LOAD)
245249
uint8_t mode = MCUBOOT_MODE_RAM_LOAD;
246250
#else

0 commit comments

Comments
 (0)