<?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>Buttonless DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62715/buttonless-dfu</link><description>Hello, 
 I&amp;#39;m currently testing the bootloader with nrf52832 DK on SDK16.0.0 with Segger Embedded Studio. I followed the guide provided in this link https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2020 07:55:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62715/buttonless-dfu" /><item><title>RE: Buttonless DFU</title><link>https://devzone.nordicsemi.com/thread/256110?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 07:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88365dc6-f848-450d-b920-6d1350d3ab13</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am glad to hear it works now. But, what you describe is a bit odd.&amp;nbsp;I cannot explain it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU</title><link>https://devzone.nordicsemi.com/thread/255916?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 09:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:371ad7dc-beb2-45f5-b7b3-2b751d30a31f</guid><dc:creator>Fikri Saman</dc:creator><description>&lt;p&gt;I don&amp;#39;t think there is much difference between the debug and the non debug version, but after trying the debug version, it worked. The DK accepted the blinky firmware and rejected the &lt;span&gt;hrs_application_s132.zip as it should be. What&amp;#39;s weirder is when I re-flash the DK with the non-debug version, there was no more problem like before. I was able to update the DK with my blinky firmware&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU</title><link>https://devzone.nordicsemi.com/thread/255753?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 11:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b225a100-8559-4743-80d9-7c953dc6e6fb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Your approach looks correct. Can you try to build the debug bootloader (example sufficed with _debug) instead, and observe the RTT log? That will probably give a good indication of what goes wrong. It could also be relevant to see the full log from the DFU master (nRF Connect, I assume).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU</title><link>https://devzone.nordicsemi.com/thread/255729?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 10:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26bac72c-0e76-462d-b2d4-b0ae6f1072a7</guid><dc:creator>Fikri Saman</dc:creator><description>&lt;p&gt;It doesn&amp;#39;t seem to be accepting any firmware update anymore. Here were my steps :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Generate private key&lt;/li&gt;
&lt;li&gt;Generate public key based on the private key&lt;/li&gt;
&lt;li&gt;Build secure_bootloader_ble with the new public key&lt;/li&gt;
&lt;li&gt;Build ble_app_buttonless_dfu&lt;/li&gt;
&lt;li&gt;Build ble_app_blinky that is going to be the new firmware updated on the DK&lt;/li&gt;
&lt;li&gt;Generate a zip file combining&amp;nbsp;&lt;span&gt;ble_app_blinky&amp;nbsp;and private.key :&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --hw-version 52 --application-version 1 --application .\ble_app_blinky_pca10040_s132_sdk16.hex --sd-req 0xCB --key-file .\private_sdk16.key app_dfu_package.zip &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Generate bootloader setting file :&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil settings generate --family NRF52 --application .\ble_app_buttonless_dfu_pca10040_s132.hex --application-version 0 --bootloader-version 0 --bl-settings-version 2 --key-file .\private_sdk16.key bootloader_setting.hex &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Merge SD with BL :&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;mergehex -m .\s132_nrf52_7.0.1_softdevice.hex .\secure_bootloader_ble_s132_pca10040.hex -o SD_BL.hex &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Merge SD, BL and&amp;nbsp;ble_app_buttonless_dfu :&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;mergehex -m .\SD_BL.hex .\ble_app_buttonless_dfu_pca10040_s132.hex -o SD_BL_APP.hex    &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Merge SD,BL, app and bootloader setting file&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Program the DK with SD_BL_APP_Settings.hex&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On my phone with nRF Connect, I managed to connect to Nordic_Buttonless but when I try to DFU the zip file, it shows the message &amp;quot;Starting DFU&amp;quot; and afterwards &amp;quot;Disconnecting&amp;quot; right away.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU</title><link>https://devzone.nordicsemi.com/thread/255692?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 07:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58d7ba43-0675-4494-8a12-595908919615</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes and no. The public key is part of the bootloader hex, so you must build a new bootloader. The SoftDevice is the same, and also the application and settings page (as long as the application is exactly the same hex). But you must sign the update zip image with the private key that corresponds to the public key that is in the bootloader.&lt;/p&gt;
&lt;p&gt;The point of all this is that&amp;nbsp;only the holder of the private key that corresponds to the public key in the device is allowed to make valid update images.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU</title><link>https://devzone.nordicsemi.com/thread/255680?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 07:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eb894c5-acb6-42c0-babb-672b7bf9c7e9</guid><dc:creator>Fikri Saman</dc:creator><description>&lt;p&gt;Hello Einar,&lt;/p&gt;
&lt;p&gt;So as I understand it, I have to generate another hex file that combines :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Debug version of Secure DFU bootloader&lt;/li&gt;
&lt;li&gt;SoftDevice&lt;/li&gt;
&lt;li&gt;Buttonless Secure DFU template application&lt;/li&gt;
&lt;li&gt;Bootloader settings page generated for the application&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But with my own public key when building the &amp;quot;Secure DFU bootloader&amp;quot;, right? All right, I&amp;#39;ll try it later on. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU</title><link>https://devzone.nordicsemi.com/thread/255573?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 13:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0980781-4445-4e34-a340-118544541f0b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;[quote user=""][/quote]&lt;/p&gt;
&lt;p&gt;When I try to update it with a zip file that I generated in the bootloader tutorial, it failed. But when I try to update it again this time with&amp;nbsp;hrs_application_s132.zip provided in the same folder as the precompiled the &amp;quot;Buttonless Secure DFU with bonds&amp;quot; hex file, it works and the DK start advertising as Nordic HRM.&lt;/p&gt;
&lt;p&gt;So can anyone point out&amp;nbsp;why my application.zip didn&amp;#39;t work but &lt;span&gt;hrs_application_s132.zip did?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Since updating with the&amp;nbsp;hrs_application_s132.zip that is shipped with the SDK works, this means that you are using the public key that is shipped with the example bootloader. This corresponds to the private key that was used to sign the example upgrade packages. However, you must use your own key pair, and use your own private key when generating your own update images. And for that to work, you must build the bootloader to use your own public key, by changing&amp;nbsp;examples\dfu\dfu_public_key.c. See &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_dfu_keys.html"&gt;Working with keys&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>