boards/arm/nrf91/common/nrf91_boot_image.c: print message if no image found

if there is no valid boot image found we print error message and panic
This commit is contained in:
raiden00pl 2024-07-26 10:14:49 +02:00 committed by Xiang Xiao
parent e75c19ce58
commit b3ccc4c94c

View File

@ -203,6 +203,16 @@ int board_boot_image(const char *path, uint32_t hdr_size)
ARM_ISB();
/* Check if reset is valid */
if (vt.reset == 0xffffffff)
{
syslog(LOG_ERR, "Not found image to boot!");
PANIC();
}
syslog(LOG_INFO, "Jump to 0x%" PRIx32 "\n", vt.reset);
/* Jump to non-secure entry point */
nsfunc *ns_reset = (nsfunc *)(vt.reset);