<?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 - MCUBoot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84564/unable-to-find-bootable-image---mcuboot</link><description>I try to integrate mcuboot and BT DFU into my application. I&amp;#39;m using SDK 1.8.0 and DK board nrf52832. 
 My problem is, that i got this message &amp;quot;Unable to find bootable image&amp;quot; by mcuboot (investigated via debugger, unfortunatelly i&amp;#39;m not able to enable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Feb 2022 15:34:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84564/unable-to-find-bootable-image---mcuboot" /><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/353429?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 15:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46f5d66b-e7be-4ea7-9326-b67810518cde</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hello Mohamed, could you please open a new case and ask your question there?&lt;/p&gt;
&lt;p&gt;Thomas: Even though your issue is kind of related as the initial topic, could you could open a new ticket as well (just link to this ticket and explain the current state), since the initial guy started this post got his issue resolved.&lt;/p&gt;
&lt;p&gt;I can see that this ticket has the status &amp;quot;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84564/unable-to-find-bootable-image---mcuboot/352891#352891"&gt;verified answer&lt;/a&gt;&amp;quot;, so it is locked,&amp;nbsp;so none of you will be&amp;nbsp;able to post any more replies here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/353425?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 15:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97c1da1c-28b2-480b-b946-b16863ad5899</guid><dc:creator>Learner</dc:creator><description>[quote userid="72692" url="~/f/nordic-q-a/84564/unable-to-find-bootable-image---mcuboot/352100#352100"]When I commented these out I was able to get mcuboot serial log to work.[/quote]
&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Apologies if I am intruding in this conversation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I built hello_world_with_mcuboot project in Segger Embedded Studio (SES) and flashed the merged.hex file in the dev board nRF52833DK. Unfortunately, it is not behaving as expected.&lt;/p&gt;
&lt;p&gt;1- I am not seeing the &amp;quot;Hello World!&amp;quot; message.&lt;/p&gt;
&lt;p&gt;2- Each time I stop the debugger and restart by clicking &amp;#39;Go&amp;#39; or F5 I get prompted with the message&lt;/p&gt;
&lt;p&gt;&amp;quot;The project zephyr/merged.hex is out of date and needs to be built. Build the project before debugging?&amp;quot;&lt;/p&gt;
&lt;p&gt;But I am sure nothing has changed in the project since the last build.&lt;/p&gt;
&lt;p&gt;Note, I have&amp;nbsp;not changed anything in the project you provided in the zip file. Should I?&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 - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/353311?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 10:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8df47710-f111-4e8f-91b1-619b7e7df7f1</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;Can I use hello_world_with_mcuboot example above and build it in Segger Embedded Studio?&lt;/p&gt;
&lt;p&gt;Thank you.&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 - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352957?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 16:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a4a8ade-3d00-4873-8fb8-82f34b7c7ff1</guid><dc:creator>ecsfang</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;First sorry for the confusion ...&lt;br /&gt;&lt;br /&gt;I&amp;#39;m trying to see what differs between the two builds, and one thing I noticed is in the&amp;nbsp;&lt;em&gt;build/ncs/CMakeCache.txt&lt;/em&gt; file.&lt;br /&gt;&lt;br /&gt;When it fails, it more or less only differs in the following line:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;mcuboot_OVERLAY_CONFIG:INTERNAL=&lt;br /&gt;&amp;nbsp; /xx/vsln-ncs/vt2-overlays/vt2-mcuboot-overlay.conf&lt;br /&gt;&amp;nbsp; /xx/ncs/nrf/subsys/partition_manager/partition_manager_enabled.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;br /&gt;When it works it looks like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;mcuboot_OVERLAY_CONFIG:INTERNAL=&lt;br /&gt;&amp;nbsp; /xx/vsln-ncs/vt2-overlays/vt2-mcuboot-overlay.conf &lt;br /&gt;&amp;nbsp; /xx/ncs/nrf/subsys/partition_manager/partition_manager_enabled.conf&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;&amp;nbsp; ;&amp;nbsp;&lt;/span&gt;&lt;span style="background-color:#ffff99;color:#800000;"&gt;/xx/vsln-ncs/vt2-overlays/vt2-mcuboot-overlay.conf &lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;color:#800000;"&gt;&amp;nbsp; /xx/ncs/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And the .config only differs for mcuboot as I showed in a previous entry:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;code&gt;$ diff build/ncs/mcuboot/zephyr/.config fail_build/ncs/mcuboot/zephyr/.config &lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; 265,266c265,266&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;lt; CONFIG_PARTITION_MANAGER_ENABLED=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;lt; CONFIG_FLASH_MAP_CUSTOM=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; ---&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;gt; # CONFIG_PARTITION_MANAGER_ENABLED is not set&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;gt; # CONFIG_FLASH_MAP_CUSTOM is not set&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So, it seems as if the config somehow is not correctly setup during a prestine build. The &lt;em&gt;vt2-mcuboot-overlay.conf&lt;/em&gt; is included twice, and the &lt;em&gt;ext_flash_mcuboot_secondary&lt;/em&gt;&amp;nbsp;is only included in the working build.&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;ext_flash_mcuboot_secondary.conf&lt;/em&gt; is included in the CMakeFile.txt for the mcuboot, in the file &lt;em&gt;ncs/nrf/modules/mcuboot/CMakeLists.txt&lt;/em&gt;:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;&amp;nbsp; if&lt;/span&gt;&lt;span&gt; (CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY)&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; # By passing this value we don&amp;#39;t require the user to pass any overlay files&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; # to the MCUboot child image for storing the secondary partition in&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; # external flash.&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; add_overlay_config(&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; mcuboot&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ${ZEPHYR_NRF_MODULE_DIR}&lt;/span&gt;&lt;span&gt;/&lt;strong&gt;subsys/partition_manager/ext_flash_mcuboot_secondary.conf&lt;/strong&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt; )&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;&amp;nbsp; endif&lt;/span&gt;&lt;span&gt;()&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;And&amp;nbsp;&lt;span&gt;&lt;strong&gt;CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY&lt;/strong&gt; seems to be configured in the&amp;nbsp;&lt;em&gt;subsys/partition_manager/ext_flash_mcuboot_secondary.conf&lt;/em&gt; file, which seems odd since then we have a circular reference ... (the config is set in the file included &lt;em&gt;if&lt;/em&gt; the config is set ...) ?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;And that is the &lt;em&gt;only&lt;/em&gt; content of the file ncs/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY&lt;/span&gt;&lt;strong&gt;=y&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;I can&amp;#39;t see that this config is set anywhere else ...&lt;/p&gt;
&lt;p&gt;Could that be that the &lt;span&gt;MCUBOOT_SECONDARY&lt;/span&gt; somehow is not included in the first build, but in the second build the buildsystem gets that the &lt;span&gt;MCUBOOT_SECONDARY&lt;/span&gt; should be included ... at least that how I interpret the CMakeCache.txt contents ... that could explain why the bootloader doesn&amp;#39;t find the image in the first build.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Thomas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;---&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352918?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 13:59:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5845bc0f-93bf-430f-88ca-d469baca6f26</guid><dc:creator>ecsfang</dc:creator><description>&lt;p&gt;Hi Simon!&lt;br /&gt;&lt;br /&gt;Thanks for your response!&lt;/p&gt;
&lt;p&gt;Sorry - I had mixed up my files! It didn&amp;#39;t help with creating a child_image etc, it still only works for me after the second build ... :(&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration:line-through;"&gt;I can also confirm that if I create a &amp;quot;child_image/mcuboot.conf&amp;quot;-file:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration:line-through;"&gt;&lt;code&gt;&amp;nbsp; xxx/src/ncs/&lt;strong&gt;child_image&lt;/strong&gt;$ ll&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="text-decoration:line-through;"&gt;&lt;code&gt;&amp;nbsp; -rw-r--r-- 1 sefangeth domain_users 1307 feb 14 14:40 &lt;strong&gt;mcuboot.conf&lt;/strong&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration:line-through;"&gt;then it works!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;The configuration for mcuboot we have is normally placed in an overlay file, pointed to from the CMakeFile.txt:&lt;/span&gt;&lt;br /&gt;&lt;span style="text-decoration:line-through;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;&lt;code&gt;&amp;nbsp; &lt;strong&gt;list&lt;/strong&gt;&lt;strong&gt;(APPEND mcuboot_OVERLAY_CONFIG &amp;quot;$ENV{VSLN_NCS_ROOT}/vt2-overlays/vt2-mcuboot-overlay.conf&amp;quot;)&lt;/strong&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;So, it seems as if the overlay-file is not used when compiling for the first time (i.e. after deleting the build directory).&amp;nbsp;In the example above - the&lt;em&gt; mcuboot.conf&lt;/em&gt; is identical to the &lt;em&gt;vt2-mcuboot-overlay.conf&lt;/em&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration:line-through;"&gt;Can that be explained - or is the child_image approach to be preferred?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352906?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 13:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:856d17ad-1e05-460a-977a-8b594dc7e0ff</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Okay, I&amp;#39;m happy it got resolved!&lt;/p&gt;
&lt;p&gt;Let me try to look into&amp;nbsp;the issue you encounter&amp;nbsp;&lt;span&gt;Online&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/members/ecsfang"&gt;Thomas Fänge&lt;/a&gt;&lt;/p&gt;
[quote user="ecsfang"]&lt;p&gt;I can&amp;#39;t really find something in the output when I build (prestine or not), but I saw that in the build/ncs/mcuboot/zephyr/.config it differs between the two builds (prestine build or not):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(The &amp;#39;build&amp;#39; directory contains a prestine build (i.e. after &amp;quot;rm -rf build&amp;quot;), and no_build is a renamed build-directory after a second build, i.e. after &amp;quot;touch&amp;quot; and build again)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; $ diff build/ncs/mcuboot/zephyr/.config no_build/ncs/mcuboot/zephyr/.config&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; 265,266c265,266&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;lt; # CONFIG_PARTITION_MANAGER_ENABLED is not set&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;lt; # CONFIG_FLASH_MAP_CUSTOM is not set&lt;/code&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;m using this application&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4300.hello_5F00_world_5F00_with_5F00_mcuboot_5F00_v2.zip"&gt;hello_world_with_mcuboot_v2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve installed west v0.10.1 to another location. and downgraded NCS to v1.7.0, as it seems that&amp;#39;s what you&amp;#39;re using.&lt;/p&gt;
&lt;p&gt;This is the content of the sample folder to start with:&lt;/p&gt;
&lt;pre&gt;CMakeLists.txt&amp;nbsp; README.rst&amp;nbsp; mcuboot.conf&amp;nbsp; pm_static.yml&amp;nbsp; prj.conf&amp;nbsp; sample.yaml&amp;nbsp; src&lt;/pre&gt;
&lt;p&gt;First I&amp;nbsp;check the west version&lt;/p&gt;
&lt;pre&gt;C:/msys64/mingw64/bin/west --version&lt;br /&gt;West version: v0.10.1&lt;/pre&gt;
&lt;p&gt;Then I do a pristine build:&lt;/p&gt;
&lt;pre&gt;C:/msys64/mingw64/bin/west build -b nrf52dk_nrf52832 -d build_v10_pristine -p&lt;/pre&gt;
&lt;p&gt;Then I created the build folder you refer to as &amp;quot;&lt;em&gt;no_build&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;C:/msys64/mingw64/bin/west build -b nrf52dk_nrf52832 -d build_v10_no_build&lt;/p&gt;
&lt;p&gt;touch CMakeLists.txt&amp;nbsp;&lt;/p&gt;
&lt;p&gt;C:/msys64/mingw64/bin/west build -b nrf52dk_nrf52832 -d build_v10_no_build&lt;/p&gt;
&lt;p&gt;Eventually I did a diff between the generated mcuboot folders&lt;/p&gt;
&lt;pre&gt;diff build_v10_pristine/mcuboot/zephyr/.config build_v10_no_build/mcuboot/zephyr/.config&lt;/pre&gt;
&lt;p&gt;But I got no result, which means they have the same content&lt;/p&gt;
&lt;p&gt;I have not yet installed Dual Boot Linux Ubuntu on my new computer, but I will do it soon and test this on Ubuntu as well.&lt;/p&gt;
&lt;p&gt;However, could you try the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Update to NCS v1.8.0 and the associated west v0.12.0?
&lt;ul&gt;
&lt;li&gt;If you install it through the Toolchain Manager, all the correct tools will be installed automatically&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Check how you include the mcuboot config folder. Try to add it to child_image/mcuboot.conf&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352891?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 13:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d943442-4d38-49de-8159-b635f7dc95c0</guid><dc:creator>Dymek117</dc:creator><description>&lt;p&gt;Simon, basing on your post with step-by-step described build process I fixed this issue.&lt;/p&gt;
&lt;p&gt;Final solution was to create &lt;strong&gt;/child_image/&lt;/strong&gt; directory and &lt;strong&gt;place mcuboot.conf inside&lt;/strong&gt; this dir.&lt;br /&gt;Then, no additional instructions for this file is needed in cmakelist, it is included by default.&lt;br /&gt;I have no idea why id does matter, but after this small change pristine build is booting fine.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using SDK 1.8.0 on Windows 10. My west version&amp;nbsp;v0.12.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352889?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 13:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bbcab2d-2024-42f6-8d73-cf4374d6175e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/dymek117"&gt;Dymek117&lt;/a&gt;&lt;/p&gt;
[quote user="Dymek117"]My mcuboot.conf is on the same level that prj.conf. [/quote][quote user="Dymek117"]&lt;p&gt;Also, small difference about mcuboot is in our cmake files, i set overlay config for mcuboot, like here:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;list&lt;/span&gt;&lt;span&gt;(APPEND mcuboot_OVERLAY_CONFIG &lt;/span&gt;&lt;span&gt;&amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;I tried to modify my sample according to the above, check it out here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_world_5F00_with_5F00_mcuboot_5F00_v2.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_with_5F00_mcuboot_5F00_v2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then did a pristine build using NCS v1.8.0:&lt;/p&gt;
&lt;pre&gt;west build -b nrf52dk_nrf52832 -d build_v12_pristine -p&lt;/pre&gt;
&lt;p&gt;and it worked fine:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.7.0-ncs1  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
I: Jumping to the first image slot
&amp;#255;*** Booting Zephyr OS build v2.7.0-ncs1  ***
Hello World! nrf52dk_nrf52832&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I tested this with both west&amp;nbsp;v0.12.0 and&amp;nbsp;v0.10.1&lt;/p&gt;
&lt;p&gt;Can you upload the project you&amp;#39;re using as a zipped file and provide a detailed step-by-step guide on how to reproduce the issue. Could you let me know what west version you&amp;#39;re using as well as the OS? You&amp;#39;re using NCS v1.8.0, right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352807?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 07:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f669712-9bdc-4ed1-ab0b-5b32536728b9</guid><dc:creator>ecsfang</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;For your information, I&amp;#39;m building in a Ubuntu (18.04) environment and using West version 0.10.1:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; $ west --version&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; West version: v0.10.1&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;I can&amp;#39;t really find something in the output when I build (prestine or not), but I saw that in the build/ncs/mcuboot/zephyr/.config it differs between the two builds (prestine build or not):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(The &amp;#39;build&amp;#39; directory contains a prestine build (i.e. after &amp;quot;rm -rf build&amp;quot;), and no_build is a renamed build-directory after a second build, i.e. after &amp;quot;touch&amp;quot; and build again)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; $ diff build/ncs/mcuboot/zephyr/.config no_build/ncs/mcuboot/zephyr/.config&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; 265,266c265,266&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;lt; # CONFIG_PARTITION_MANAGER_ENABLED is not set&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;lt; # CONFIG_FLASH_MAP_CUSTOM is not set&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; ---&lt;/code&gt;&lt;br /&gt;&lt;strong&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;gt; CONFIG_PARTITION_MANAGER_ENABLED=y&lt;/code&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;gt; CONFIG_FLASH_MAP_CUSTOM=y&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Ie. these two configs are &lt;strong&gt;not&lt;/strong&gt; set in the prestine build, but in the second build they are set - that is the only difference in the .config file between the two builds.&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffe0;"&gt;&lt;strong&gt;Edit!&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffffe0;"&gt;I found another difference in the file&amp;nbsp;&lt;em&gt;build/ncs/mcuboot/zephyr/&lt;strong&gt;dev_handles.c&lt;/strong&gt;&lt;/em&gt;.&lt;br /&gt;In the prestine build (after rm -rf) the last entry looks like this:&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span style="background-color:#ffffe0;"&gt;/* 10 : /soc/spi@40023000/mx25u1633f@0:&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffffe0;"&gt; * - /soc/gpio@50000000&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffffe0;"&gt; * - /soc/gpio@50000300&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffffe0;"&gt; * - /soc/spi@40023000&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffffe0;"&gt; */&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffffe0;"&gt;const device_handle_t __aligned(2) __attribute__((__section__(&amp;quot;.__device_handles_pass2&amp;quot;)))&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="background-color:#ffffe0;"&gt;__devicehdl_DT_N_S_soc_S_spi_40023000_S_mx25u1633f_0[] = { &lt;span style="color:#ff0000;"&gt;5, 6&lt;/span&gt;, 9, DEVICE_HANDLE_ENDS, DEVICE_HANDLE_ENDS, DEVICE_HANDLE_ENDS };&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffe0;"&gt;In the second build, it has changed to:&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;span style="background-color:#ffffe0;"&gt;/* 10 : /soc/spi@40023000/mx25u1633f@0:&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffffe0;"&gt;* - /soc/gpio@50000000&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffffe0;"&gt;* - /soc/gpio@50000300&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffffe0;"&gt;* - /soc/spi@40023000&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffffe0;"&gt;*/&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffffe0;"&gt;const device_handle_t __aligned(2) __attribute__((__section__(&amp;quot;.__device_handles_pass2&amp;quot;)))&lt;br /&gt;&lt;strong&gt;__devicehdl_DT_N_S_soc_S_spi_40023000_S_mx25u1633f_0[] = { &lt;span style="color:#ff0000;"&gt;6, 5&lt;/span&gt;, 9, DEVICE_HANDLE_ENDS, DEVICE_HANDLE_ENDS, DEVICE_HANDLE_ENDS };&lt;/strong&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffe0;font-family:inherit;"&gt;Again, no other difference in this file ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Cheers,&lt;br /&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352744?ContentTypeID=1</link><pubDate>Sat, 12 Feb 2022 00:49:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3afc6a9d-2da6-4341-8646-20bb5d174e51</guid><dc:creator>Dymek117</dc:creator><description>&lt;p&gt;Thanks for deep investigation Simon.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;First difference I see between our setups is that I dont have child_image directory. My mcuboot.conf is on the same level that prj.conf. But &amp;quot;mcuboot&amp;quot; directory is present in /build/ after successful build. Do you think it may cause any difference? (or maybe lack of child_image dir is symptom of some mistakes in configuration, where does this dir come from?)&lt;/p&gt;
&lt;p&gt;Also, small difference about mcuboot is in our cmake files, i set overlay config for mcuboot, like here:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;list&lt;/span&gt;&lt;span&gt;(APPEND mcuboot_OVERLAY_CONFIG &lt;/span&gt;&lt;span&gt;&amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;And I see that this is not present in your example, how does build system know to apply settings from child_image/mcuboot.conf? Is this some kind of default location?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Looking on above differences and your investigation I suspect that my mcuboot is not always being re-generated and rebuilt. But I have no idea why :(&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352743?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 23:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc6ff99d-0e3f-4b73-b0d9-4b3f20d2876f</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/dymek117"&gt;Dymek117&lt;/a&gt;, I will try to reproduce using your steps&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2480.hello_5F00_world_5F00_with_5F00_mcuboot.zip"&gt;hello_world_with_mcuboot.zip&lt;/a&gt;&amp;nbsp;for all the steps below&lt;/p&gt;
[quote user="Dymek117"]But if I do Pristine Build (without modifying bootloader .config) bootloader will no longer load application.[/quote]
&lt;p&gt;Okay, let me test this. Let&amp;#39;s do a pristine build and see if I can reproduce the issue.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m starting now without any build folder. I&amp;#39;m using NCS v1.8.0. I placed the sample hello_world_with_mcuboot inside nrf/samples/&lt;/p&gt;
&lt;p&gt;These are the folders present in my sample&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CMakeLists.txt  README.rst  child_image  pm_static.yml  prj.conf  sample.yaml  src&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then I do a pristine build, as you mentioned:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf52dk_nrf52832 -d build -p&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I then flash it to the nRF52 DK using west flash (will automatically flash build folder with name &amp;#39;build&amp;#39;) and I get the following output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.7.0-ncs1  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
I: Jumping to the first image slot
&amp;#255;*** Booting Zephyr OS build v2.7.0-ncs1  ***
Hello World! nrf52dk_nrf52832&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So it seems like doing a pristine build works fine here.&lt;/p&gt;
&lt;p&gt;However, maybe you already had a build folder present when you ran pristine build, I will test that as well&lt;/p&gt;
&lt;p&gt;I delete the build folder using rm -rf build, and this is the content of the sample to start with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CMakeLists.txt  README.rst  child_image  pm_static.yml  prj.conf  sample.yaml  src&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s&amp;nbsp;run a normal build, to generate the build folder:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf52dk_nrf52832 -d build&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I tried to flash it and everything worked fine, the sample booted.&lt;/p&gt;
&lt;p&gt;Then I tried to do a pristine build&lt;/p&gt;
[quote user="Dymek117"]I do Pristine Build (without modifying bootloader .config) [/quote]
&lt;p&gt;I followed the advice above, by not touching anything. This is the content inside&amp;nbsp;nrf/samples/hello_world now:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CMakeLists.txt  README.rst  build  child_image  pm_static.yml  prj.conf  sample.yaml  src&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then I ran the pristine build:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf52dk_nrf52832 -d build -p&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It worked fine, I got this output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.7.0-ncs1  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
I: Jumping to the first image slot
&amp;#255;*** Booting Zephyr OS build v2.7.0-ncs1  ***
Hello World! nrf52dk_nrf52832
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using west version 0.12.0, cmake version 3.20.5 and ninja version&amp;nbsp;1.9.0&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;pip3 show -f west
Name: west
Version: 0.12.0
.
.
.
cmake --version
cmake version 3.20.5
.
.
ninja --version
1.9.0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The operating system is Windows 11&lt;/p&gt;
&lt;p&gt;Can you try to follow the exact same steps above with the same sample. If I have misunderstood your steps please tell me. If you run the same steps as me but with a different (failing) result, I would be interested to know more about your environment. What version of the different tools are you using and what OS are you using?&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;think&amp;nbsp;the problem you see is that the hash&amp;nbsp;value the bootloader expects is different from the hash value&amp;nbsp;calculated from the application, this can happen if you modify the main application (which will cause the hash value to be different) and rebuild that, without rebuilding the mcuboot (so it won&amp;#39;t get the new updated hash value). However, &lt;code&gt;west build&lt;/code&gt; and &lt;code&gt;west pristine build&lt;/code&gt; should rebuild both mcuboot as well as the main image when the main image changes (I just tested this).&lt;/p&gt;
&lt;p&gt;I was able to reproduce your behaviour however using these commands:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;west build -b nrf52dk_nrf52832 -d build1&lt;/li&gt;
&lt;li&gt;modify main.c&lt;/li&gt;
&lt;li&gt;west build -b nrf52dk_nrf52832 -d build2&lt;/li&gt;
&lt;li&gt;dir
&lt;ul&gt;
&lt;li&gt;CMakeLists.txt README.rst build build1 build2 child_image pm_static.yml prj.conf sample.yaml src&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;nrfjprog --eraseall&lt;/li&gt;
&lt;li&gt;nrfjprog -f NRF52 --sectorerase --verify --program build1/mcuboot/zephyr/zephyr.hex&lt;/li&gt;
&lt;li&gt;nrfjprog -f NRF52 --sectorerase --verify --program build2/ncs/zephyr/app_signed.hex&lt;/li&gt;
&lt;li&gt;nrfjprog -f NRF52 --reset&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Got the following output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.7.0-ncs1  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
W: Failed reading image headers; Image=0
E: Unable to find bootable image&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But this result is expected and not a bug, since I built mcuboot and the main image using&amp;nbsp;from different build folders&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/ecsfang"&gt;Thomas Fänge&lt;/a&gt;, I will look into your steps next week&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352736?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 22:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:453daa3a-23af-43f2-aeb9-0280b19b7f27</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Thanks for the additional information and the steps to reproduce. I will look into this/talk to the developers. I&amp;#39;ll keep you updated.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352456?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 23:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dc95aff-46da-4184-9b50-f4d35aff0bdd</guid><dc:creator>Dymek117</dc:creator><description>&lt;p&gt;Surely we have the same problem.&lt;/p&gt;
&lt;p&gt;Simon, could you please guide us through build and flash process which will allow to build mcuboot with application, that can be run by bootloader? Maybe we miss something. Final conclusion is, that mcuboot is no longer able to start application if pristine build has been performed (or build directory removed).&lt;br /&gt;After this, mcuboot config has to be touch/modified, and rebuild.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352319?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 12:35:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5153e010-8367-499b-98fd-619b3f2f803f</guid><dc:creator>ecsfang</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I seem to have a similar problem!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;If I do a complete build (remove build directory, build, flash mcuboot, flash signed application), then it won&amp;#39;t start, neither after reset or power-cycle ...&lt;/p&gt;
&lt;p&gt;In that state I rebuild again (just touch CMakeFiles.mak and then build) and flash only the mcuboot again, then the nRF starts as expected ... !?&lt;/p&gt;
&lt;p&gt;&amp;nbsp; $ rm -rf build&lt;br /&gt;&amp;nbsp; $ west build --build-dir build/ncs src/ncs&lt;br /&gt;&amp;nbsp; $ nrfjprog -f NRF52 --sectorerase --verify --program build/ncs/mcuboot/zephyr/zephyr.hex&lt;br /&gt;&amp;nbsp; $ nrfjprog -f NRF52 --sectorerase --verify --program build/ncs/zephyr/app_signed.hex&lt;br /&gt;&amp;nbsp; $ nrfjprog -f NRF52 --reset&lt;br /&gt;&lt;br /&gt;Now the nRF restarts but immediatly &amp;quot;stops&amp;quot; (consumes ~4.5mA), no logs. nothing ...&lt;br /&gt;&lt;br /&gt;Tries to flash mcuboot again ...&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; $ nrfjprog -f NRF52 --sectorerase --verify --program build/ncs/mcuboot/zephyr/zephyr.hex&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; $ nrfjprog -f NRF52 --reset&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Same result, just hangs ...&lt;br /&gt;Build again and flash mcuboot again ...&lt;/p&gt;
&lt;p&gt;&amp;nbsp; $ touch src/ncs/CMakeLists.txt&lt;br /&gt;&lt;span&gt;&amp;nbsp; $ west build --build-dir build/ncs src/ncs&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; $ nrfjprog -f NRF52 --sectorerase --verify --program build/ncs/mcuboot/zephyr/zephyr.hex&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; $ nrfjprog -f NRF52 --reset&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now it starts as expected!! And this is reproducible&lt;br /&gt;&lt;br /&gt;Also strange is that the result differs:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; $ ll build/ncs/mcuboot/zephyr/zephyr.hex&lt;br /&gt;&amp;nbsp; -rw-r--r-- 1 fange domain_users 126904 feb 10 13:27 /xxxx/build/ncs/mcuboot/zephyr/zephyr.hex&lt;/p&gt;
&lt;p&gt;&amp;nbsp; $ ll ~/tmp/zephyr.hex&amp;nbsp; &amp;lt;&amp;lt;--- This is a copy of the mcuboot from the &amp;quot;first&amp;quot; build attempt&lt;br /&gt;&amp;nbsp; -rw-r--r-- 1 fange domain_users 126814 feb 10 13:25 /xxxx/tmp/zephyr.hex&lt;br /&gt;&lt;br /&gt;Must the mcuboot be build &amp;quot;after&amp;quot; the application? Why the difference in size?&lt;br /&gt;&lt;br /&gt;I have just updated SDK from 1.4.1 to 1.7.1 and can&amp;#39;t say I have seen this behavior before ... maybe I also am doing something wrong in the build process - but I can&amp;#39;t see what.&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;Edit!&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;I had missed to enable loggin in the mcuboot, and when I did I got the following output:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;&amp;nbsp;&lt;strong&gt; &amp;nbsp; *** Booting Zephyr OS build v2.6.99-ncs1-1 ***&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; I: Starting bootloader&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; E: Bad image magic 0xe58&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; E: Unable to find bootable image&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;/Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352152?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 16:19:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40cd7e5d-73af-41d5-a008-8d7b3af35bbc</guid><dc:creator>Dymek117</dc:creator><description>&lt;p&gt;OK, I think I found the reason. It is not about specific content of mcuboot .conf file . It is about modyfing it itself. After modyfing mcuboot.conf bootloader is being not only rebuilt but also re-generated.&amp;nbsp;&lt;br /&gt;But if I do Pristine Build (without modifying bootloader .config) bootloader will no longer load application.&lt;br /&gt;After any change in mcuboot config file and rebuild (it takes longer then) and flash it starts working again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So maybe mcuboot has to be regenerated every time application is changed?&lt;br /&gt;Only Pristine Build is causing this error, regular build does not affect starting app by bootloader.&lt;br /&gt;(after every pristine build i need to modify mcuboot.conf and rebuild again, only after this process bootloader will load app again)&lt;br /&gt;&lt;br /&gt;I guess i&amp;#39;m doing something wrong with building/flashing process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352122?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 14:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d407d6d6-4720-4fcd-a025-3c01b10bd7ad</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Interesting. Yes, let me know if you get it to work or not&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352118?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 14:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47c3827b-d30b-4fd0-9e0d-19866ec46821</guid><dc:creator>Dymek117</dc:creator><description>&lt;p&gt;Small update from me. After removing these from mcuboot .conf&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MULTITHREADING&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CONSOLE&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_CONSOLE&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CONSOLE_HANDLER&lt;/span&gt;&lt;span&gt;=n&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;span&gt;MCUBoot is loading application again. I will investigte deeper and check if DFU is working.&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 - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352111?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 14:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4146c41e-ee32-4ae0-99b0-21bb47fcdc4c</guid><dc:creator>Dymek117</dc:creator><description>&lt;p&gt;Thanks for quick answer :)&lt;/p&gt;
&lt;p&gt;Problem occurs after regular &amp;quot;west flash&amp;quot; (flashing merged.hex).&lt;br /&gt;I will now try the example you provided and compare it to my own. In this time, i also attach my zephyr app prj.conf.&lt;br /&gt;I did some optimization here to save space, maybe I cut too much, please take a look:&lt;br /&gt;(these setting are for BT DFU application)&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SIZE_OPTIMIZATIONS=y

CONFIG_GPIO=y
CONFIG_PWM=y
CONFIG_ADC=y
CONFIG_NRFX_TIMER0=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y

CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME=&amp;quot;nordic&amp;quot;

CONFIG_BT_SMP=y
CONFIG_BT_LBS=y

# Enable mcumgr.
CONFIG_MCUMGR=y

# Enable most core commands.
CONFIG_MCUMGR_CMD_IMG_MGMT=y
CONFIG_MCUMGR_CMD_OS_MGMT=y

# Ensure an MCUboot-compatible binary is generated.
CONFIG_BOOTLOADER_MCUBOOT=y

# Allow for large Bluetooth data packets.
CONFIG_BT_L2CAP_TX_MTU=252
CONFIG_BT_BUF_ACL_RX_SIZE=256

# Enable the Bluetooth (unauthenticated) and shell mcumgr transports.
CONFIG_MCUMGR_SMP_BT=y
CONFIG_MCUMGR_SMP_BT_AUTHEN=n

# Some command handlers require a large stack.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096

CONFIG_SPI=n
CONFIG_I2C=n
CONFIG_BOOT_BANNER=n
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_STDOUT_CONSOLE=n
CONFIG_PRINTK=n
CONFIG_EARLY_CONSOLE=n
CONFIG_TIMESLICING=n
CONFIG_MINIMAL_LIBC_MALLOC=n
CONFIG_LOG=n
CONFIG_ASSERT=n

# Disable Bluetooth features not needed
CONFIG_BT_DEBUG_NONE=y
CONFIG_BT_ASSERT=n
CONFIG_BT_DATA_LEN_UPDATE=n
CONFIG_BT_PHY_UPDATE=n
CONFIG_BT_GATT_CACHING=n
CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS=n
CONFIG_BT_HCI_VS_EXT=n
CONFIG_BT_CTLR_PRIVACY=n
CONFIG_BT_CTLR_PHY_2M=n&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to find bootable image - MCUBoot</title><link>https://devzone.nordicsemi.com/thread/352100?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 14:18:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6272d069-6c0c-476b-bfea-e12cfdcdd6f9</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I added the exact same pm_static.yml file and the same prj.conf to the hello_world sample. In addition I enabled CONFIG_BOOTLOADER_MCUBOOT=y in hello_world/prj.conf. It ran without any errors.&lt;/p&gt;
&lt;p&gt;Test it yourself here. I used nrf52dk_nrf52832 and NCS v1.9.0-rc1:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_world_5F00_with_5F00_mcuboot.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_with_5F00_mcuboot.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can you test it yourself and see if you get it to work?&lt;/p&gt;
&lt;p&gt;So based on the information/files you&amp;#39;ve given me, I&amp;#39;m not sure what may cause it to fail. Could you look at the sample hello_world_with_mcuboot I uploaded and see how that differs from your sample?&lt;/p&gt;
[quote user=""]&amp;nbsp; i&amp;#39;m not able to enable logs in that build[/quote]
&lt;p&gt;The reason you don&amp;#39;t see any logs from mcuboot, is because you disable the (uart)console:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_CONSOLE_HANDLER=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I commented these out I was able to get mcuboot serial log to work.&lt;/p&gt;
&lt;p&gt;One question, do you get&amp;nbsp;&lt;span&gt;&amp;quot;Unable to find bootable image&amp;quot; after performing a DFU, or do you get it just when trying to boot the main application?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>