Skip to content

Commit 3b4341c

Browse files
de-nordicjukkar
authored andcommitted
[nrf noup] loader: Use BOOT_SLOT_PRIMARY and BOOT_SLOT_SECONDARY
nrf-squash! [nrf noup] loader: Fix reading reset addr to support ext flash The commit replaces BOOT_PRIMARY_SLOT and BOOT_SECONDARY_SLOT with BOOT_SLOT_PRIMARY and BOOT_SLOT_SECONDARY respectively. Signed-off-by: Dominik Ermel <[email protected]>
1 parent e72408e commit 3b4341c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/src/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ boot_validated_swap_type(struct boot_loader_state *state,
14621462
#if defined(PM_S1_ADDRESS) || defined(PM_CPUNET_B0N_ADDRESS)
14631463
const struct flash_area *secondary_fa =
14641464
BOOT_IMG_AREA(state, BOOT_SLOT_SECONDARY);
1465-
struct image_header *hdr = boot_img_hdr(state, BOOT_SECONDARY_SLOT);
1465+
struct image_header *hdr = boot_img_hdr(state, BOOT_SLOT_SECONDARY);
14661466
uint32_t reset_addr = 0;
14671467
int rc = 0;
14681468
/* Patch needed for NCS. Since image 0 (the app) and image 1 (the other

0 commit comments

Comments
 (0)