<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Unable to find bootable image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95468/unable-to-find-bootable-image</link><description>Hello, 
 From time to time I am getting the error &amp;quot; Unable to find bootable image&amp;quot; when I start a debug session in SES-NE v5.60. 
 FIH_CALL(boot_go, fih_rc, &amp;amp;rsp); if (fih_not_eq(fih_rc, FIH_SUCCESS)) { BOOT_LOG_ERR(&amp;quot;Unable to find bootable image&amp;quot;); FIH_PANIC;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jun 2024 15:27:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95468/unable-to-find-bootable-image" /><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/488725?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 15:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acd881c3-ed78-4eee-9a90-f7cc2bb838a1</guid><dc:creator>liteyear</dc:creator><description>&lt;p&gt;Oh boy, there goes a couple of days. This is still an issue with ncs 2.5.2 in VSCode.&lt;br /&gt;&lt;br /&gt;The root cause is indeed the extra breakpoints. Thank you, thank you for reporting that. It was so elusive!&lt;br /&gt;&lt;br /&gt;I can confirm that adding&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_BOOT_VALIDATE_SLOT0&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;=n&lt;/span&gt; to &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;child_image/mcuboot.conf&lt;/span&gt; eliminates the issue. Seems to me to be only upside to using that over the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;_ONCE&lt;/span&gt; variant. Now to ensure I don&amp;#39;t forget to remove it for non debug builds! If only the &amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/config_and_build_system.html#custom-configurations"&gt;file suffixes&lt;/a&gt;&amp;quot; feature was as useful as build configurations used to be for every other IDE...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/428179?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 13:19:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1ea0da9-2c5a-4fab-a608-80c6072d2434</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Perhaps you can use &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/d5d451ec21d749f7bc09910f7c426f332c557900/boot/zephyr/Kconfig#L185"&gt;CONFIG_BOOT_VALIDATE_SLOT0_ONCE&lt;/a&gt;? Then the image is only validated on the first boot, but validation is skipped after that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/428003?ContentTypeID=1</link><pubDate>Mon, 29 May 2023 16:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db0f067f-cefe-4643-90d7-f524ce089306</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;I have the same problems.&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;modify&amp;nbsp;the flash with a software breakpoint.&lt;br /&gt;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.&lt;/p&gt;
&lt;p&gt;So the question is: how to compile MCUBOOT/TFM without the firmware hash check?&lt;br /&gt;Or is there another way to avoid it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/406846?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 12:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8c8117a-5508-4acc-9041-53a328e0d964</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;I will test in&amp;nbsp; my present project on VSC and face same problem just from&amp;nbsp; a week. After removing all breakpoints, I shall test and tell.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/406828?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 11:19:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23aef111-78c0-4dbe-a6fd-16cfb3eae7bc</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry I have just seen your message.&lt;/p&gt;
&lt;p&gt;Glad you found the root cause.&lt;/p&gt;
&lt;p&gt;It is strange that the number of breakpoints can cause the bootloader problems finding the bootable image.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/406703?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 14:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3344e97-84c5-4ebc-9b03-9bca226f3456</guid><dc:creator>Earthworn1</dc:creator><description>&lt;p&gt;Okay i fixed it. The problem are to many breakpoints&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/406684?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 14:11:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0563170-22be-4bbe-b22c-fe37d56862af</guid><dc:creator>Earthworn1</dc:creator><description>&lt;p&gt;I got the Error again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I only get the error when using mbedtls.&lt;/p&gt;
&lt;p&gt;I add following Configs and debugging isn&amp;#39;t possible anymore.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_ANJAY_COMPAT_MBEDTLS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NORDIC_SECURITY_BACKEND&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_OBERON_BACKEND&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_TLS_LIBRARY&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_ENTROPY_C&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_CIPHER_MODE_CBC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_CCM_C&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_CTR_DRBG_C&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_LEGACY_CRYPTO_C&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_PK_WRITE_C&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_DHM_C&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_ECP_C&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MBEDTLS_ECP_DP_SECP384R1_ENABLED&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class="ctrl-char ESC"&gt;Do you also use MBEDTLS?&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;span&gt;&lt;span class="unsolicited"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/405878?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 15:10:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d9a927d-a158-4fd6-811a-a091c939a091</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote userid="121883" url="~/f/nordic-q-a/95468/unable-to-find-bootable-image/405827"]I could debug for 1 Week and now i got the same issue again.&amp;nbsp;[/quote]
&lt;p&gt;That is exactly what I have been experiencing but it has been weeks since I have not seen the error. The only difference is I see it in Segger Embedded Studio and you and Mexco are seeing it in VS Code. So, it seems we can safely eliminate the IDE as a possible cause.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/405827?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 12:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ff1d1b8-a2ca-4096-aa4f-0d1272aa2d27</guid><dc:creator>Earthworn1</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i have the same problem as mexco.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I Flash from Actions -&amp;gt; Flash&amp;nbsp; and the programm works fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then i use Actions-&amp;gt;Debug and the Application cant find the bootloader image.&lt;/p&gt;
&lt;p&gt;The merged.hex File dosen&amp;#39;t change in between.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I had the problem in the beginning and than suddenly it fixed itself. I could debug for 1 Week and now i got the same issue again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any other ideas?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I read the two hex files from the memory. They are identical.&lt;/p&gt;
&lt;p&gt;Any other ideas?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/405807?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 10:37:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dff6215-eb97-4ae5-91d9-5889c15a0d97</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Mexco,&lt;/p&gt;
&lt;p&gt;I understand your frustration .&lt;/p&gt;
[quote userid="111623" url="~/f/nordic-q-a/95468/unable-to-find-bootable-image/405003"]&lt;p&gt;2. Programmed the nRF9160DK directly from Actions-&amp;gt; Flash. In this case also, program runs properly, but not possible to stop execution at any breakpoint.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then, after above two methods, tried: Actions-&amp;gt; Debug. &lt;/p&gt;[/quote]
&lt;p&gt;So, to clarify, has your merged.hex changed between step 2 and Actions-&amp;gt;Debug?&lt;/p&gt;
&lt;p&gt;If this is NOT the case then there is no reason for the error. However, if the merged.hex has changed then, as Einar said, you must do&amp;nbsp;&lt;span&gt;Actions-&amp;gt; Flash followed by&amp;nbsp;Actions-&amp;gt;Debug.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope this helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mohamed&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/405003?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 11:28:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e71028c4-634f-4cbe-a58a-acc8bfe80d7f</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Hi. I tried following methods:&lt;/p&gt;
&lt;p&gt;1. Programmed merged.hex using Programmer of nRF Connect. Then, program runs continuously properly. But in this, it is not possible to stop at any breakpoint.&lt;/p&gt;
&lt;p&gt;2. Programmed the nRF9160DK directly from Actions-&amp;gt; Flash. In this case also, program runs properly, but not possible to stop execution at any breakpoint.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then, after above two methods, tried: Actions-&amp;gt; Debug. The nRF9160DK is automatically re-programmed for Debug Configuration, but image error occurs and program never reach to main(). I got fed up of this issue and seems that will have to create whole project and add again custom code to sample code of Asset_tracker. If this issue occurs near last stage of a large project, causes wastage of too much time.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/404963?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 09:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bde40611-bfc1-446c-b8c8-207c380ae3ba</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Is it so that you only see this issue if you rebuild and debug without selecting Actions -&amp;gt; Flash first? If so, this is as expected, and the reason is that you need to program the full merged.hex as if not, the bootloader will not recognize the application as it has changed, and boot validation will fail. This is the expected behavior when using a bootloader, and the solution is to flash the merged hex file first in this case (for instance with Actions -&amp;gt; Flash), and then debug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/404891?ContentTypeID=1</link><pubDate>Sat, 14 Jan 2023 15:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a39637a-127b-45d9-bfc6-6333dce777ea</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Hi... I facing same issue with Visual Studio also. After wasting a week, I re-created the same project again, merged my files from faulty project to new.&lt;/p&gt;
&lt;p&gt;In VSC, on left side penal, under Actions -&amp;gt; flash is used to run the build, then there is no issue.&lt;/p&gt;
&lt;p&gt;But, during Actions-&amp;gt;Debug, sometimes same issue occurs of and then. I facing this issue in Asset Tracker sample application, in which I adding custom code. Please suggest solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/403853?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 13:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0004032-d108-4e05-88ab-b3c187ed8f2d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. There is no obvious reason why it should faile sometimes, this should be consistent. Can you try to keep the application identical, and repeat testing, so that you get both a failing and working case? In both cases, dump the flash memory, and compare to see what is different. With that, we should be in a better position to understand where to look more closely.&lt;/p&gt;
&lt;p&gt;You can easily dump the entire flash like this:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;code&gt;nrfjprog --memrd 0 --n 0x80000 &amp;gt; flash_dump.txt&lt;/code&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When you got dumpts from both cases, diff the files to see where there is a difference, and what the difference is.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/403845?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 12:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:134f1d15-2105-47e2-be41-6aa1a085a8d5</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thank you for your suggestions.&lt;/p&gt;
&lt;p&gt;I always download the merged.hex file before I start a debug session as shown below.&lt;/p&gt;
&lt;p&gt;Target -&amp;gt; Download zephyr/merged.hex&lt;/p&gt;
&lt;p&gt;Most of the time I don&amp;#39;t get the error&amp;nbsp;&lt;strong&gt;&amp;quot;Unable to find bootable image&amp;quot;&lt;/strong&gt; but, as I said, from time to time I do and when I do get it, it can take a long time for me to get rid of it by restarting SES IDE many times, disconnecting the DK board, restarting my laptop etc..., hence my frustration. I am aware of VS CODE and we are planning to migrate to it but not right now. Until we do, I am looking for support from Nordic. I am hoping you will be able to provide it.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/403839?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 12:38:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b687078-2487-4237-95d2-3ac942e1c955</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Mohamed,&lt;/p&gt;
&lt;p&gt;When you download the application from SES NE, the image header needed by MCUBoot is missing. So it is expected that MCUBoot will not find a bootable image. When using MCUBoot, you need to flash the merged.hex file, and as this is not done automatically, you need to do it manually. Then you can subsequently debug by selecting to debug without downloading. To avoid this, you could consider testing/debugging without using MCUBoot, or migrating to &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-vs-code"&gt;nRF Connect for VS Code&lt;/a&gt;, which is the only IDE we&amp;nbsp;recommend going forward (and also the only supported IDE for the latest nRF Connect SDK releases).&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>