<?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>nRF52832 BLE secure DFU bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39706/nrf52832-ble-secure-dfu-bootloader</link><description>I&amp;#39;m trying to follow the SDK 15.2.0, nRF52832 development board, BLE Secure DFU bootloader example. I cannot seem to get beyond exception error running nrfutil to download new image: Exception: Connection Failure - Device not found!. 
 The device is visible</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Oct 2018 09:10:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39706/nrf52832-ble-secure-dfu-bootloader" /><item><title>RE: nRF52832 BLE secure DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/154232?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 09:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebe7ef11-9e75-4445-b47e-38243feaef56</guid><dc:creator>Simon</dc:creator><description>[quote user="gringlediscus"]Why &amp;nbsp;&amp;#39;Connect another nRF52832&amp;#39;?&amp;nbsp; This board would also need to have &amp;#39;DfuTest&amp;#39; installed and in that mode for it to work, wouldn&amp;#39;t it?&amp;nbsp; Why cannot simply connect the original&amp;nbsp;board with the bootloader?[/quote]
&lt;p&gt;When you are using the&amp;nbsp;&lt;strong&gt;BLE&amp;nbsp;&lt;/strong&gt;Secure DFU Bootloader, you must upload the firmware over &lt;strong&gt;BLE&lt;/strong&gt;, thus another device is required to transfer the&amp;nbsp;DFU data (&lt;span&gt;ble_app_buttonless_dfu_with_bonds_s132.zip&lt;/span&gt;) over BLE. However, if you want to perform a DFU from the computer to the nRF52832, you might want to look into the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fsdk_app_serial_dfu_bootloader.html&amp;amp;cp=4_0_1_4_3_4"&gt;Secure DFU Bootloader over Serial Link (UART/USB)&lt;/a&gt;&amp;nbsp;example.&lt;/p&gt;
&lt;p&gt;As described in the documentation for the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fble_sdk_app_dfu_bootloader.html"&gt;BLE Secure DFU Bootloader&lt;/a&gt;,&amp;nbsp;performing a DFU over BLE can be done in two ways:&amp;nbsp;from another device (using nrfutil commands) or from the phone (using nRF Toolbox or nRF Connect).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="gringlediscus"]The nrfutil parameter -n &amp;quot;DfuTest&amp;#39;, the doc is unclear to me.&amp;nbsp; What happens if DfuTest is not running, I would expect an error, yes?&amp;nbsp; Or is -n parameter only specify a &amp;#39;preferred&amp;#39; device, to be&amp;nbsp;updated if found?[/quote]
&lt;p&gt;&amp;nbsp;This parameter describes which device to perform DFU on. The option -a can also be used to choose a specific target, which requires the BLE address of the target device as input.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The command &amp;quot;nrfutil dfu ble --help&amp;quot; gives information about all the different options. If DfuTest is not running on the target device, the device is not in DFU mode and you wont be able to perform a DFU&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is a nice tutorial for the Secure DFU Bootloader:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards, Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 BLE secure DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/154151?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 14:47:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67ce1844-9ab8-499e-bd7e-b98fff430218</guid><dc:creator>gringlediscus</dc:creator><description>&lt;p&gt;Hi Simon,&amp;nbsp; Thank your for looking into this so quickly!&lt;/p&gt;
&lt;p&gt;Question: Why &amp;nbsp;&amp;#39;Connect another nRF52832&amp;#39;?&amp;nbsp; This board would also need to have &amp;#39;DfuTest&amp;#39; installed and in that mode for it to work, wouldn&amp;#39;t it?&amp;nbsp; Why cannot simply connect the original&amp;nbsp;board with the bootloader?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another&amp;nbsp; Question:&amp;nbsp; The nrfutil parameter -n &amp;quot;DfuTest&amp;#39;, the doc is unclear to me.&amp;nbsp; What happens if DfuTest is not running, I would expect an error, yes?&amp;nbsp; Or is -n parameter only specify a &amp;#39;preferred&amp;#39; device, to be&amp;nbsp;updated if found?&lt;/p&gt;
&lt;p&gt;My task is to verify OTA update, so I did the following test.&amp;nbsp; The goal here is to update an existing image.&amp;nbsp; Here I wish to update the &amp;#39;with_bonds&amp;#39; image with the image &amp;#39;without_bonds&amp;#39;&lt;/p&gt;
&lt;p&gt;Steps taken:&lt;/p&gt;
&lt;p&gt;Downloaded app using nRFgo Studio &lt;br /&gt;&amp;nbsp;sd_s132_bootloader_buttonless_with_setting_page_dfu_secure_ble_debug_without_bonds.hex&lt;br /&gt;&amp;nbsp;Able to place in DFU mode (DfuTest) or in app mode (Nordic_Buttonless)&lt;/p&gt;
&lt;p&gt;Enter DfuTest mode, run following:&lt;br /&gt;&amp;nbsp;nrfutil dfu ble -ic NRF52 -f -pkg ble_app_buttonless_dfu_with_bonds_s132.zip -n &amp;quot;DfuTest&amp;quot;&lt;/p&gt;
&lt;p&gt;results:&lt;br /&gt;&lt;br /&gt;Please select connectivity serial port:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 : COM19 - 682437910&lt;br /&gt;Enter your choice: : 0&lt;br /&gt;Flashing connectivity firmware...&lt;br /&gt;Connectivity firmware flashed.&lt;br /&gt;&amp;nbsp; [------------------------------------]&amp;nbsp;&amp;nbsp;&amp;nbsp; 0%&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt;&amp;nbsp; File &amp;quot;nordicsemi\__main__.py&amp;quot;, line 1133, in &amp;lt;module&amp;gt;&lt;br /&gt;&amp;nbsp; File &amp;quot;site-packages\click\core.py&amp;quot;, line 722, in __call__&lt;br /&gt;&amp;nbsp; File &amp;quot;site-packages\click\core.py&amp;quot;, line 697, in main&lt;br /&gt;&amp;nbsp; File &amp;quot;site-packages\click\core.py&amp;quot;, line 1066, in invoke&lt;br /&gt;&amp;nbsp; File &amp;quot;site-packages\click\core.py&amp;quot;, line 1066, in invoke&lt;br /&gt;&amp;nbsp; File &amp;quot;site-packages\click\core.py&amp;quot;, line 895, in invoke&lt;br /&gt;&amp;nbsp; File &amp;quot;site-packages\click\core.py&amp;quot;, line 535, in invoke&lt;br /&gt;&amp;nbsp; File &amp;quot;nordicsemi\__main__.py&amp;quot;, line 951, in ble&lt;br /&gt;&amp;nbsp; File &amp;quot;nordicsemi\dfu\dfu.py&amp;quot;, line 129, in dfu_send_images&lt;br /&gt;&amp;nbsp; File &amp;quot;nordicsemi\dfu\dfu.py&amp;quot;, line 90, in _dfu_send_image&lt;br /&gt;&amp;nbsp; File &amp;quot;nordicsemi\dfu\dfu_transport_ble.py&amp;quot;, line 453, in open&lt;br /&gt;&amp;nbsp; File &amp;quot;nordicsemi\dfu\dfu_transport_ble.py&amp;quot;, line 142, in connect&lt;br /&gt;&amp;nbsp; File &amp;quot;nordicsemi\dfu\dfu_transport_ble.py&amp;quot;, line 245, in verify_stable_connection&lt;br /&gt;Exception: Connection Failure - Device not found!&lt;br /&gt;Failed to execute script __main__&lt;/p&gt;
&lt;p&gt;Board does not appear in nRFConnect, unable to get board to advertise, does not enter DFU mode.&lt;/p&gt;
&lt;p&gt;BTW unclear what the parameter -f exactly means or does.&amp;nbsp; What is connectivity firmware?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 BLE secure DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/154135?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 14:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27ac84e5-5fe7-46b8-a1c6-fba7b09110ab</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I managed to make it work by following these steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Flash&amp;nbsp;&lt;em&gt;sd_s132_bootloader_buttonless_with_setting_page_dfu_secure_ble_debug_without_bonds.hex&amp;nbsp;&lt;/em&gt;onto an nRF52832 board&lt;/li&gt;
&lt;li&gt;Reset that board while pressing button 4 (Enter DFU mode)&lt;/li&gt;
&lt;li&gt;Open nRF Connect and notice the advertising name (Which is switched to &lt;strong&gt;DfuTest&lt;/strong&gt; after entering DFU mode)&lt;/li&gt;
&lt;li&gt;Connect another nRF52832 to the computer, and run the following command:&amp;nbsp;&lt;em&gt;nrfutil dfu ble -ic NRF52 -f -pkg ble_app_buttonless_dfu_with_bonds_s132.zip &lt;strong&gt;-n &amp;quot;DfuTest&amp;quot;&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;/strong&gt;Choose the&amp;nbsp;correct COM port and board (not the board with the bootloader)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then I didn&amp;#39;t get the Connection Failure error anymore, but I encountered another problem (log from device with bootloader):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Setting vector table to bootloader: 0x00072000
&amp;lt;error&amp;gt; app: Fatal error
&amp;lt;warning&amp;gt; app: System reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I will try to look into this, but hopefully I was able to help you one step ahead.&lt;/p&gt;
&lt;p&gt;Best regards, Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 BLE secure DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/153909?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 17:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d3aabfe-2707-4a86-8952-97a65926558a</guid><dc:creator>gringlediscus</dc:creator><description>&lt;p&gt;ahh, re-imaged&amp;nbsp;using&amp;nbsp;nrfGo Studio, downloaded new image in nrfConnect as described in documentation, when complete no error reported board did not advertise, not sure app was successfully downloaded.&amp;nbsp; Seems to be same as when I used nrfutil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>