Unable to find bootable image

Hello,

From time to time I am getting the error "Unable to find bootable image" when I start a debug session in SES-NE v5.60.

FIH_CALL(boot_go, fih_rc, &rsp);
if (fih_not_eq(fih_rc, FIH_SUCCESS)) {
BOOT_LOG_ERR("Unable to find bootable image");
FIH_PANIC;
}

So, I deleted the whole content of the build folder and re-built the solution and produced a new merged,hex file. But the error persists. If I keep erasing/rebuilding the solution eventually I can start the debug session. Sometimes it takes many retries before it starts working again. I am wasting a lot of precious time that I cannot afford to waste.

Could someone please help sort this problem out ?

Why is this happening randomly?

What can be done to prevent it from happening?

If it cannot be prevented then how can it be fixed without wasting a long time on rebuilding the solution many times?

Thank you.

Kind regards

Mohamed

Parents Reply
  • I have the same problems.

    I think the problem is associated with the debug probe (Segger J-LInk). These probes have some number of hardware breakpoints (two?) and all other breakpoints will modify the flash with a software breakpoint.
    If one starts the application with more active breakpoints than provided in hardware the hash of the application is not the same and the application is not valid and will not be loaded.

    So the question is: how to compile MCUBOOT/TFM without the firmware hash check?
    Or is there another way to avoid it?

Children
Related