<?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>mcuboot not recognizing the image to swap</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90907/mcuboot-not-recognizing-the-image-to-swap</link><description>Hi, 
 
 I am using nCS and mcuboot in my application for development, on nRF52833. 
 I build a nCS project, the build bin file (prj.conf as ): 
 
 I broke up into packets using a python script. 
 
 Futher these packets I transferred to my board via BLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Aug 2022 12:33:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90907/mcuboot-not-recognizing-the-image-to-swap" /><item><title>RE: mcuboot not recognizing the image to swap</title><link>https://devzone.nordicsemi.com/thread/384143?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 12:33:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:781063cb-667f-47e0-a0fe-1bf1480dbc9d</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you mean the code itself and how it works, or how to implement/use MCUboot?&lt;/p&gt;
&lt;p&gt;For the former you can take a look at&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/main.c"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/main/boot/zephyr/main.c&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/security_chapter.html"&gt;Security&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you mean the latter you can start by looking at the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;SMP Server Sample&lt;/a&gt;&amp;nbsp;and this guide:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu"&gt;Add DFU support to your application&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot not recognizing the image to swap</title><link>https://devzone.nordicsemi.com/thread/382555?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 05:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7211860f-7f1b-4755-83da-8069e607c319</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you help me with any documentation on mcuboot code flow..?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot not recognizing the image to swap</title><link>https://devzone.nordicsemi.com/thread/381796?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 13:16:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:829cec84-8c50-4b3a-b152-b21e6d02a966</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you sign the image?&amp;nbsp;Can you try&amp;nbsp;using&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/mcuboot/imgtool.html#signing-images"&gt;imgtool&lt;/a&gt;&amp;nbsp;to sign the image with the&amp;nbsp;&lt;code&gt;--pad&lt;/code&gt; argument? This will place a trailer on the image.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot not recognizing the image to swap</title><link>https://devzone.nordicsemi.com/thread/381604?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 13:36:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd8b2b31-92a2-4ad6-962d-569613797753</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am sending it via BLE-Mesh protocol, another device is acting as a client and sending&amp;nbsp;the image to my device.&lt;br /&gt;&lt;br /&gt;I validated that the transfer and reception is right, I even read the byte data post complete image reception, which is also correct.&lt;/p&gt;
[quote userid="92402" url="~/f/nordic-q-a/90907/mcuboot-not-recognizing-the-image-to-swap/381597"]Are you using the SMP Bluetooth service?[/quote]
&lt;p&gt;No,&lt;/p&gt;
&lt;p&gt;As SMP yet doesn&amp;#39;t support BLE-Mesh, the application on my receiving device uses no SMP.&lt;br /&gt;&lt;strong&gt;Here is where I am looking at, my download is complete on receiving device, what other APIs i need to use to mark my downloaded image to be recognized and swapped by mcuboot..?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot not recognizing the image to swap</title><link>https://devzone.nordicsemi.com/thread/381597?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 13:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:389f77c9-b88a-4bd5-a1aa-5404dca4fa7f</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How are you sending the image with BLE? Are you using another Nordic device, a third party device, a phone or a computer? Are you using the SMP Bluetooth service?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot not recognizing the image to swap</title><link>https://devzone.nordicsemi.com/thread/381570?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 12:18:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40b9a9db-2b04-4c64-b494-1e364736f096</guid><dc:creator>Ubaid_M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="92402" url="~/f/nordic-q-a/90907/mcuboot-not-recognizing-the-image-to-swap/381566"]Have you checked that the image is&amp;nbsp;stored in the correct address, that is, the address where MCUboot looks for the image?[/quote]
&lt;p&gt;Yes this i have checked and is in order.&lt;br /&gt;&lt;br /&gt;I have a image which is getting recognized by mcuboot and being swapped upon comparing the hex format of this working image and my image which is not being copied, I realized that there was a difference of image trailers.&lt;br /&gt;&lt;br /&gt;My image trailer was completely unmarked, while in the working image had trailer marked and populated by data.&lt;br /&gt;&lt;br /&gt;I read that&amp;nbsp;&lt;span&gt;img_mgmt_register_group&lt;/span&gt;&lt;span&gt;(); marks the trailers appropriately.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I need to know how to go about this in my application to call and mark the image trailer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot not recognizing the image to swap</title><link>https://devzone.nordicsemi.com/thread/381566?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 12:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662aadae-e01d-4e32-9ddc-352c5c5bfe08</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I feel I am not rightly using&amp;nbsp;&lt;span&gt;img_mgmt_register_group&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;[/quote]
&lt;p&gt;When are you calling the function? You should call it before&amp;nbsp;bt_conn_auth_cb_register()&lt;/p&gt;
&lt;p&gt;Have you checked that the image is&amp;nbsp;stored in the correct address, that is, the address where MCUboot looks for the image?&lt;/p&gt;
&lt;p&gt;Also check that the image that is put in the secondary slot is identical to the firmware image. You can do this by reading out the image from the device using nrfjprog and saving it to a file, then run diff on the two files to verify that they are the same.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot not recognizing the image to swap</title><link>https://devzone.nordicsemi.com/thread/381396?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 14:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a446658b-c645-4958-a465-e6a56abec971</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have started looking into your issue and will come back to you on Monday.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>