Skip to content

Commit 7fc3ad3

Browse files
nordicjmnvlsianpu
authored andcommitted
boot: zephyr: Fix RAM load chain load address
Fixes showing the wrong address when booting a RAM load image Signed-off-by: Jamie McCrae <[email protected]>
1 parent 49976dc commit 7fc3ad3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

boot/zephyr/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,13 @@ int main(void)
534534
FIH_PANIC;
535535
}
536536

537+
#ifdef CONFIG_BOOT_RAM_LOAD
538+
BOOT_LOG_INF("Bootloader chainload address offset: 0x%x",
539+
rsp.br_hdr->ih_load_addr);
540+
#else
537541
BOOT_LOG_INF("Bootloader chainload address offset: 0x%x",
538542
rsp.br_image_off);
543+
#endif
539544

540545
#if defined(MCUBOOT_DIRECT_XIP)
541546
BOOT_LOG_INF("Jumping to the image slot");

0 commit comments

Comments
 (0)