<?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>DFU through FTP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111117/dfu-through-ftp</link><description>Hi all, I am working on a project with the ncs v2.6.0 and I am trying to update the nrf5340 by downloading the new firmware update on a FTP. I am able to connect to the FTP and download the file (&amp;quot;app_update.bin&amp;quot; attached). When downloading I am writing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2024 15:40:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111117/dfu-through-ftp" /><item><title>RE: DFU through FTP</title><link>https://devzone.nordicsemi.com/thread/483111?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 15:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebad693f-693c-47bc-a7a2-95aa1ed21607</guid><dc:creator>sguitton01</dc:creator><description>&lt;p&gt;Hi thanks,&lt;br /&gt;I checked my external flash memory and I saw some differeces due to the ftp being in ASCII mode instead of Binary mode.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;&lt;br /&gt;Sylvain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU through FTP</title><link>https://devzone.nordicsemi.com/thread/483014?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 11:38:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4847274-ab23-4ac5-858c-f40cf6e94930</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Is the secondary slot located in external or internal flash? Either way, I would recommend you debug the bootloader and check if it is the boot_image_check() check that fails here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/3c2f2ff12bc20625cd65730b6036d061de4da5f7/boot/bootutil/src/loader.c#L819"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/3c2f2ff12bc20625cd65730b6036d061de4da5f7/boot/bootutil/src/loader.c#L819&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can also read out the memory content from the secondary slot and compare that to the app_update.bin to see if the image was stored correctly.&lt;/p&gt;
&lt;p&gt;With nrfjprog:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --memrd &amp;lt;secondary slot start address&amp;gt; --n &amp;lt;secondary slot size in bytes&amp;gt; &amp;gt; secondary_slot.txt&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>