<?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>nrf52 serial DFU file loading sequence</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42731/nrf52-serial-dfu-file-loading-sequence</link><description>Hi, 
 I have implemented the Master Serial DFU to send my bootloader.bin , application.bin file and Softdevice.bin files. 
 I&amp;#39;m facing with updating these file. 
 I want to know is there any sequence to load these file. Which one goes first and next.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Jan 2019 22:47:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42731/nrf52-serial-dfu-file-loading-sequence" /><item><title>RE: nrf52 serial DFU file loading sequence</title><link>https://devzone.nordicsemi.com/thread/167492?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 22:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1047579f-cc0f-4662-83ab-8fa4f50db19b</guid><dc:creator>Goudra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the reply.&lt;/p&gt;
&lt;p&gt;Please provide your suggestion on below link.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42873/uploading-issue-of-application-and-softdevice-file-from-the-master-serial-dfu"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/42873/uploading-issue-of-application-and-softdevice-file-from-the-master-serial-dfu&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basava,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 serial DFU file loading sequence</title><link>https://devzone.nordicsemi.com/thread/167192?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 18:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1db99b91-3818-48e0-81cb-a9f710f43335</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Basava,&lt;/p&gt;
&lt;p&gt;1. Generally yes, the bootloader does not impose any restrictions on this, but see my second answer.&lt;/p&gt;
&lt;p&gt;2. As long as they are API compatible. That is, you can&amp;#39;t do a major version upgrade of the softdevice without updating the application image. Major softdevice updates will have breaking API changes and/or change size, hence requiring the app to be re-compiled with new API headers and probably linked with a different start address.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. Yes it should be possible.&lt;/p&gt;
[quote user="Goudra"]Please let me know which is the right procedure to write all files.[/quote]
&lt;p&gt;The bootloader will reset itself during the activation process of the new images. So it should not be necessary for the DFU controller to issue a reset command between uploads (a new upload is started when you send the init packet).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;EDIT: Forgot to add that the bootloader must be merged with the softdevice image if you do a major softdevice update and the bootloader includes the BLE transport layer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 serial DFU file loading sequence</title><link>https://devzone.nordicsemi.com/thread/166977?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 23:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9557ba9a-799f-49d0-b3f0-b8e560181a34</guid><dc:creator>Goudra</dc:creator><description>&lt;p&gt;Adding to above question.&lt;/p&gt;
&lt;p&gt;1. Is it possible to load each file separately? (Bootloader, application and softdevice).&lt;/p&gt;
&lt;p&gt;2. We want upload only SD file or bootloader file and application file base on the requirement. Is it possible to load any one file any time?&lt;/p&gt;
&lt;p&gt;3. We Dont want to combine files and dont want load all files at same time. Is this possible?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basava.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 serial DFU file loading sequence</title><link>https://devzone.nordicsemi.com/thread/166966?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 18:34:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6723df3-e205-401e-a959-58bda34788ae</guid><dc:creator>Goudra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now I have created package. It has two .bin&amp;nbsp; files (&lt;strong&gt;bt_app_42994+.bin &lt;/strong&gt;and&lt;strong&gt; sd_bl.bin&lt;/strong&gt; )&amp;nbsp; and two .dat files(&lt;strong&gt;bt_app_42994+.dat &lt;/strong&gt;and&lt;strong&gt; sd_bl.dat&lt;/strong&gt;).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know which is the right procedure to write all files.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;Procedure A:&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="text-decoration:underline;"&gt;Procedure B:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. Write &lt;strong&gt;sd_bl.dat&lt;/strong&gt; file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span&gt;1. Write&amp;nbsp;&lt;/span&gt;&lt;strong&gt;sd_bl.dat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2. write &lt;strong&gt;sd_bl.bin&lt;/strong&gt; file.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span&gt;2. write&amp;nbsp;&lt;/span&gt;&lt;strong&gt;sd_bl.bin&lt;/strong&gt;&lt;span&gt;&amp;nbsp;file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;3. Write&amp;nbsp;&lt;strong&gt;bt_app_42994+.dat&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;file&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;strong&gt;&amp;nbsp;3. Reset the device.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. Write&amp;nbsp;&lt;strong&gt;bt_app_42994+.bin&amp;nbsp;&amp;nbsp;&lt;/strong&gt;file.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.Write&amp;nbsp;&lt;strong&gt;bt_app_42994+.dat&amp;nbsp;&amp;nbsp;&lt;/strong&gt;file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5. &lt;strong&gt;Reset the device.&lt;/strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.Write&amp;nbsp;&lt;strong&gt;bt_app_42994+.bin&amp;nbsp;&amp;nbsp;&lt;/strong&gt;file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;strong&gt;&amp;nbsp;6. Reset the device.&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;can&amp;nbsp; e merge package file with sequence in one file and load it. Like&amp;nbsp; &lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;Procedure A:&lt;/span&gt;&amp;nbsp;&lt;/strong&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is it required to reset the device&amp;nbsp; after loading one .dat and one .bin file Like&lt;span style="text-decoration:underline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;Procedure B&lt;/span&gt;:&lt;/strong&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks and regards,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Basavanagouda.&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;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 serial DFU file loading sequence</title><link>https://devzone.nordicsemi.com/thread/166742?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 08:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32ad0cb3-5056-4af7-ba14-6e38ab3a76fd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;With nrfutil you can create one distribution packet that contains softdevice+bootloader and application, but the update needs to be performed in two rounds. First the you upload a merged binary of the softdevice and bootloader , then the application. The update sequence is illustrated in the documentation &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_bootloader_dfu_banks.html?cp=4_0_0_3_5_1_2_0#lib_bootloader_dfu_dual_bank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;nrfutil.exe pkg generate --hw-version 52 --application-version 1 --application bt_app_42994.hex &amp;nbsp;--bootloader-version 1 --bootloader bt_bl_42981+.hex&amp;nbsp;--softdevice s132_nrf52_6.1.0_softdevice.hex&amp;nbsp; --sd-req 0xAF&amp;nbsp; --sd-id 1 sdblapp.zip&lt;/span&gt;&lt;/p&gt;
&lt;p&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>