<?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>E: Image in the primary slot is not valid!</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106381/e-image-in-the-primary-slot-is-not-valid</link><description>Hi, I got Image in the primary slot is not valid! error. Could you help me on this. 
 I tried to use dfu to flash the binary. 
 I follow this link: https://docs.mcuboot.com/readme-zephyr 
 Built bootloader using command: west build -b nrf52840_mdk 
 Then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Dec 2023 13:17:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106381/e-image-in-the-primary-slot-is-not-valid" /><item><title>RE: E: Image in the primary slot is not valid!</title><link>https://devzone.nordicsemi.com/thread/459186?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 13:17:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a925d688-69c7-4185-bf46-346617a05064</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="JianPan"]I didn&amp;#39;t use&amp;nbsp;&lt;span&gt;nRF Connect SDK or vanilla zephyr. Actually, I don&amp;#39;t know&amp;nbsp;vanilla zephyr. I googled but couldn&amp;#39;t find a good link for&amp;nbsp;vanilla zephyr. Could you share more info with me.&lt;/span&gt;[/quote]
&lt;p&gt;The nRF Connect SDK is our own SDK built on top of the Zephyr RTOS. Zephyr RTOS can be used as standalone, and in this case I refer to it as &amp;quot;Vanilla Zephyr&amp;quot;.&lt;/p&gt;
&lt;p&gt;To work with our products, you can use the &amp;quot;Vanilla&amp;quot; Zephyr RTOS, but we recommend the nRF Connect SDK.&lt;br /&gt;I recommend our &lt;a href="https://academy.nordicsemi.com/"&gt;https://academy.nordicsemi.com/&lt;/a&gt; to get started.&lt;/p&gt;
&lt;p&gt;We usually do not build MCUboot as standalone, but rather as part of another application. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/bootloaders_and_dfu/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I also have an unofficial introduction to MCUboot with the nRF Connect SDK over at &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Have a look at those and see if you still got the same questions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: E: Image in the primary slot is not valid!</title><link>https://devzone.nordicsemi.com/thread/459173?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 12:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29271a5e-e610-44f3-9d20-d6ee38fbfb5c</guid><dc:creator>JianPan</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks for the quick reply.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t use&amp;nbsp;&lt;span&gt;nRF Connect SDK or vanilla zephyr. Actually, I don&amp;#39;t know&amp;nbsp;vanilla zephyr. I googled but couldn&amp;#39;t find a good link for&amp;nbsp;vanilla zephyr. Could you share more info with me.&lt;br /&gt;&lt;br /&gt;I am using ./zephyr/zephyrproject/bootloader/mcuboot to do the tests. It come with west command while I installed zephyr.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#ff9900;"&gt;host@vm:~/zephyr/zephyrproject/bootloader/mcuboot$ git branch -a&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;* (HEAD detached at refs/heads/manifest-rev)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt; manifest-rev&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;host@vm:~/zephyr/zephyrproject/bootloader/mcuboot$ git log -1&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;commit 05d11942774fc15b90af101232ec5305051216ec (HEAD, manifest-rev)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;Author: Jamie McCrae &amp;lt;jamie.mccrae@nordicsemi.no&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;Date: Wed Aug 16 07:39:37 2023 +0100&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff9900;"&gt;docs: release: Add note on firmware loader mode&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="color:#ff9900;"&gt; Adds a note on the new firmware loader operation type&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="color:#ff9900;"&gt; Signed-off-by: Jamie McCrae &amp;lt;jamie.mccrae@nordicsemi.no&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff9900;"&gt;host@vm:~/zephyr/zephyrproject/bootloader/mcuboot$&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span&gt;After building the binary, I used &lt;span style="color:#0000ff;"&gt;west flash&lt;/span&gt; command to flash bootloader and application. The first &lt;span style="color:#0000ff;"&gt;west flash&lt;/span&gt; looks good. I can see the nrf52840_mdk change to dfu mode. I am not sure if &lt;span style="color:#0000ff;"&gt;west flash&lt;/span&gt; is the correct command to flash the application. I tried &lt;span style="color:#0000ff;"&gt;sudo dfu-util&lt;/span&gt; command too, but didn&amp;#39;t work.&lt;br /&gt;&lt;br /&gt;Is there any way or command I can dump the memory from nrf52840_mdk board? How can I recover the nrf52840_mdk board to this state?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: E: Image in the primary slot is not valid!</title><link>https://devzone.nordicsemi.com/thread/459149?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 11:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83279d8b-8abd-4df1-8851-ea99d409b202</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First, let me ask: Do you use the nRF Connect SDK or vanilla zephyr?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>