boot: zephyr: Fix RAM load chain load address

Fixes showing the wrong address when booting a RAM load image

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
(cherry picked from commit 7fc3ad3d0b)
This commit is contained in:
Jamie McCrae 2024-07-24 14:09:45 +01:00
parent 197287cea1
commit 24de0fbc7c
1 changed files with 5 additions and 0 deletions

View File

@ -534,8 +534,13 @@ int main(void)
FIH_PANIC;
}
#ifdef CONFIG_BOOT_RAM_LOAD
BOOT_LOG_INF("Bootloader chainload address offset: 0x%x",
rsp.br_hdr->ih_load_addr);
#else
BOOT_LOG_INF("Bootloader chainload address offset: 0x%x",
rsp.br_image_off);
#endif
#if defined(MCUBOOT_DIRECT_XIP)
BOOT_LOG_INF("Jumping to the image slot");