<?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>SDK14 Secure Buttonless DFU with Bonding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25015/sdk14-secure-buttonless-dfu-with-bonding</link><description>Hello, 
 I am currently trying to implement Secure Buttonless DFU in my application using the nRF52832, s132 v5.0.0, and SDK14; but I am having some issues that I am hoping someone can help me resolve. 
 The issue I am seeing is that the call to nrf_dfu_set_peer_data_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Sep 2017 08:44:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25015/sdk14-secure-buttonless-dfu-with-bonding" /><item><title>RE: SDK14 Secure Buttonless DFU with Bonding</title><link>https://devzone.nordicsemi.com/thread/98525?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 08:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb9b23fa-edd2-43b4-918f-055d233c7b0c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, the before the reset you will get a callback to the &lt;code&gt;app_shutdown_handler&lt;/code&gt; in &lt;code&gt;main.c&lt;/code&gt; with the power manager event, &lt;code&gt;NRF_PWR_MGMT_EVT_PREPARE_DFU&lt;/code&gt;. When you get this event you can prevent the device from resetting until you have finished all your ongoing tasks by returning false. The app_shutdown_handler will then be called every second until it returns true and the device resets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 Secure Buttonless DFU with Bonding</title><link>https://devzone.nordicsemi.com/thread/98524?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 22:14:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77320378-4932-4194-9357-0133f7e4f834</guid><dc:creator>Cory Mast</dc:creator><description>&lt;p&gt;Thanks Bjørn, that solved my problem! Out of curiosity, can you suggest a way to prevent the reboot cycle until after my application has a chance to finish any ongoing operations? It appears that the device will reboot after the bonding data is written to flash, I am wondering if the main application has a way to prevent this reboot until it has a chance to finalize preparing for reset.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Cory&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK14 Secure Buttonless DFU with Bonding</title><link>https://devzone.nordicsemi.com/thread/98523?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 09:37:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23dfd370-9b9a-4145-98e3-8e42f1df89f0</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Cory,&lt;/p&gt;
&lt;p&gt;I apologize for the late reply.&lt;/p&gt;
&lt;p&gt;You have make sure that &lt;code&gt;NRF_DFU_BLE_REQUIRES_BONDS&lt;/code&gt; is set to 1 in the &lt;code&gt;sdk_config.h&lt;/code&gt; file of the bootloader_secure_ble example.&lt;/p&gt;
&lt;p&gt;With this flag set you should see that &lt;code&gt;nrf_dfu_set_peer_data_init()&lt;/code&gt; returns 0 and not 1.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>