<?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>DFU &amp;amp; Bonding problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12697/dfu-bonding-problem</link><description>hello everybody, 
 I&amp;#39;m working in a project &amp;amp; have to do something like security for the connection &amp;amp; be able to do updates to firmwares, someone suggested that doing bonding, exhanging the IRK addresses &amp;amp; add to whitelist &amp;amp; next time advertise with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Mar 2016 14:25:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12697/dfu-bonding-problem" /><item><title>RE: DFU &amp; Bonding problem</title><link>https://devzone.nordicsemi.com/thread/48226?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2016 14:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8bf7ec7-fe92-474b-accb-26810cce5350</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@Hungbui I tried the ble_app_hrs_with_dfu , it works with S110 :) :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; Bonding problem</title><link>https://devzone.nordicsemi.com/thread/48224?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2016 13:56:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53c3a0dc-3ce7-435e-b122-34a44ee94678</guid><dc:creator>sidekick</dc:creator><description>&lt;p&gt;From what you have described, my understanding is that the first attempt to perform FOTA works fine for you, then you do the bonding and then later again trying to perform FOTA with a bonded peripheral, &lt;strong&gt;fails&lt;/strong&gt;. There seem to be multiple &lt;a href="https://devzone.nordicsemi.com/question/57512/dfu-service-update-for-ios/"&gt;workarounds&lt;/a&gt; but I &lt;strong&gt;think&lt;/strong&gt; the best solution is to upgrade to NRF51822 IC revision 3, Softdevice S100 v8.0.0 and SDK 10.0.0, Since the support for sharing bond information between Bootloader and the Application was first implelemented from Softdevice v8.0.0 onwards. I&amp;#39;m also currently in the &lt;a href="https://devzone.nordicsemi.com/question/67854/dfu-ota-over-ble-compatibility-query-s110-and-sdk-version/"&gt;process&lt;/a&gt; of migrating my application to the above compatibility matrix, while keeping the IC revision to &amp;#39;2&amp;#39; still.&lt;/p&gt;
&lt;p&gt;OOTH, I&amp;#39;ve tested FOTA multiple times with success with the following Compatibility matrix (see below) and with &lt;strong&gt;one caveat that I delete the bond information before I perform FOTA&lt;/strong&gt; and it works fine everytime for me :)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NRF51822 IC revision: 2&lt;/li&gt;
&lt;li&gt;Softdevice: s110, v 7.1.0&lt;/li&gt;
&lt;li&gt;SDK: v6.1.0&lt;/li&gt;
&lt;li&gt;Android Application: Nordic&amp;#39;s Android
APP (nrf Toolbox and nrf MCP)&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; Bonding problem</title><link>https://devzone.nordicsemi.com/thread/48229?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2016 13:44:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1522af9-4854-4bda-86f8-626f63f54fd2</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@HungBui  okay, I&amp;#39;ll test the sdk.zip, before I&amp;#39;m testing my application,
I tested the ble_app_hrs_dfu , it uses the Softdevice S130 &amp;amp; as shown in the post, it has a problem something missing &amp;amp; I couldn&amp;#39;t get it :)&lt;/p&gt;
&lt;p&gt;the SDK version I have is 2.0.0.7-alpha :)
I&amp;#39;m downloading now SDK v10 attached in your answer :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; Bonding problem</title><link>https://devzone.nordicsemi.com/thread/48228?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2016 13:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4b367a7-b8a1-45d9-b4ef-f8f063c8c955</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Mohamed:
Please use the examples provided in the SDK .zip file first, before testing with your application. Also let me know the version of SDK you use. This is depends on the hardware you have. Then you should test with the ble_app_hrs_with_dfu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; Bonding problem</title><link>https://devzone.nordicsemi.com/thread/48227?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2016 13:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fd86ba1-d349-42ae-8242-1da70219984e</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@Hung Bui
okay, What I&amp;#39;m doing is that:&lt;/p&gt;
&lt;p&gt;step 1: flash softdevice&lt;/p&gt;
&lt;p&gt;step 2: flash the bootloader&lt;/p&gt;
&lt;p&gt;step 3: use bootloader to update application&lt;/p&gt;
&lt;p&gt;step 4: use application to bond&lt;/p&gt;
&lt;p&gt;step 5: use application to do FOTA again which is hanged with me as shown in the log file I attached in the question title?&lt;/p&gt;
&lt;p&gt;I need to ask if the softdevice s110 doesn&amp;#39;t support DFU &amp;amp; bonding &amp;amp; if I need to use S130 if any  :)&lt;/p&gt;
&lt;p&gt;now I&amp;#39;m using s130, I face some problems in advertising as sd_adv_start function back with an error NO_MEM, but I need to know what is the actual problem ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; Bonding problem</title><link>https://devzone.nordicsemi.com/thread/48225?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2016 13:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e415bb65-5771-4361-84c3-1a38f875ef3f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mohamed,&lt;/p&gt;
&lt;p&gt;You should not use pack, I would suggest you to use the .zip package of the SDK. You can find the .zip &lt;a href="http://developer.nordicsemi.com/nRF5_SDK/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that the latest SDK doesn&amp;#39;t have support for S110.
Next you need to tell me step by step what you do for testing DFU OTA. For example:&lt;/p&gt;
&lt;p&gt;Step 1: flash softdevice&lt;/p&gt;
&lt;p&gt;Step 2: flash bootloader&lt;/p&gt;
&lt;p&gt;Step 3: Use bootloader to update application&lt;/p&gt;
&lt;p&gt;Step 4: Use application to bond&lt;/p&gt;
&lt;p&gt;and so on.&lt;/p&gt;
&lt;p&gt;And let me know at which step the issue occurs.&lt;/p&gt;
&lt;p&gt;Also if you want to preserve bond information or application data in general, you would need to choose the number of pages (bytes) you want to save by defining DFU_APP_DATA_RESERVED in dfu_types.h
This should match with the number of page you use for pstorage plus the swap page.&lt;/p&gt;
&lt;p&gt;Also please don&amp;#39;t attach your code into the question text, attach it as a file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>