<?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>NRF51822: Updating Bootloader via DFU OTA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41559/nrf51822-updating-bootloader-via-dfu-ota</link><description>Hi All, 
 I am trying to update the existing Bootloader on my product with the new Bootloader via OTA DFU. I have searched the forum for similar posts and succeeded in creating the zip file with the Bootloader file. But while updating the Bootloader via</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Dec 2018 06:29:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41559/nrf51822-updating-bootloader-via-dfu-ota" /><item><title>RE: NRF51822: Updating Bootloader via DFU OTA</title><link>https://devzone.nordicsemi.com/thread/162198?ContentTypeID=1</link><pubDate>Tue, 18 Dec 2018 06:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c819d7fb-01a0-4873-a216-7c71f2275d72</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Really Appreciate your timely support Edvin. Thanks !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822: Updating Bootloader via DFU OTA</title><link>https://devzone.nordicsemi.com/thread/162047?ContentTypeID=1</link><pubDate>Mon, 17 Dec 2018 11:20:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af8cafd2-e640-4173-be83-f88d4a93b41d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Krish,&lt;/p&gt;
&lt;p&gt;Can you try the following: update to the latest version of nrfutil(version 4.0.0). It can be found &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/releases" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then try to generate the bootloader packet using the following command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --bootloader bl.hex --bootloader-version 2 --hw-version 51 --sd-req 0x87 --key-file keys\private.key DFU_bl_test1.zip&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Of course, you need to change the paths to the bootloader hex file, as well as the private key file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can use either nRF Connect or nrfutil to perform the DFU. In nRF Connect, you just press the DFU button after connecting, if you use nrfutil, you can use the following:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil dfu ble -pkg DFU_bl_test1.zip -ic NRF5X -n DfuTarg -p COMN -snr xxxxxxxxx -f&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Change NRF5X with either NRF51 or NRF52 (the DK that you use for the transfer, the &lt;strong&gt;connectivity device&lt;/strong&gt;, not the one containing the bootloader).&lt;/p&gt;
&lt;p&gt;Change COMN to the COM port of your &lt;strong&gt;connectivity device&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Change -snr xxxxxxxx with the Segger ID of your&amp;nbsp;&lt;strong&gt;connectivity device&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822: Updating Bootloader via DFU OTA</title><link>https://devzone.nordicsemi.com/thread/161977?ContentTypeID=1</link><pubDate>Mon, 17 Dec 2018 04:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:170184ff-2069-4b24-8017-afecf0431b38</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for the quick reply. I have tried using the same command for creating the bootloader zip that includes key but unfortunately it didn&amp;#39;t work, I am getting error and not able to generate the zip file.&lt;/p&gt;
&lt;p&gt;It would be great if you can please provide the proper syntax to generate the zip file with key. Also send me the new syntax to generate the zip file, I&amp;#39;ll try that as well.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822: Updating Bootloader via DFU OTA</title><link>https://devzone.nordicsemi.com/thread/161870?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 13:32:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e335d8a9-f06b-4bdb-9ead-bd7dec8d2000</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;You need to sign this packet as well with the private key, just as you do with the application.&lt;/p&gt;
&lt;p&gt;n&lt;span&gt;rfutil dfu genpkg fw_bootloader.zip --bootloader nrf51422_xxac_s130.hex --application-version 0xff --dev-revision 2 --dev-type 51 --sd-req 0x87&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see that you do it here. I don&amp;#39;t remember the syntax to this version of nrfutil (It is a bit old, and the new doesn&amp;#39;t have the &amp;quot;nrfutil dfu genpkg&amp;quot; option anymore. But since you know how to add keys to the application, it should be the same for the bootloader pkg.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822: Updating Bootloader via DFU OTA</title><link>https://devzone.nordicsemi.com/thread/161740?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 16:19:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67b560b7-0289-431d-87fe-730329e85af8</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;SDK is 12.2.0 and I&amp;#39;m using secure bootloader&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have set the keyset for updating the application and able to update the application via DFU successfully.&lt;/p&gt;
&lt;p&gt;This issue is only when updating the Bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51822: Updating Bootloader via DFU OTA</title><link>https://devzone.nordicsemi.com/thread/161665?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 12:40:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acf88ea3-c47d-429b-a778-4c579ad3a56f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What SDK version and which bootloader project is your bootloader based on?&lt;/p&gt;
&lt;p&gt;Do you use a keyset (private key and public key)?&lt;/p&gt;
&lt;p&gt;Have you tried to just update the application? Does that work?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>