<?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; IOS &amp;amp; Bonding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16270/dfu-ios-bonding</link><description>Hi guys, 
 in my application, I&amp;#39;m trying to do multiple fota, I succeed at the first time &amp;amp; after that I can jump again to the bootloader, but after that something is going wrong, bonds with bootloader are erased and I cannot connect to it again even</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Oct 2016 14:07:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16270/dfu-ios-bonding" /><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62199?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 14:07:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39b53da8-58cf-4e1a-8b20-0c0a168d018b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;So you have added the code from the experimental buttonless dfu example to the ANCS example in SKD 12?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62198?ContentTypeID=1</link><pubDate>Sat, 15 Oct 2016 12:00:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f83bc01-5f63-4082-b96a-0cb8815e85ed</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;and softedevice S110 version not S130&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62197?ContentTypeID=1</link><pubDate>Sat, 15 Oct 2016 11:35:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e96b77e9-c24d-450a-916d-dee360481975</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@Bjørn Spockeli  it was SDK 10&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62195?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2016 09:20:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4bf6061-dee3-4a6d-a25f-96914f74b9e2</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;When you say &amp;quot;it was working previously&amp;quot; was this with SDK v11 or an older version(not SDK v12)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62196?ContentTypeID=1</link><pubDate>Sat, 24 Sep 2016 20:33:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc40102f-d4d4-4377-af67-8ea9da6f7013</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;but it was previously working with bonding, I don&amp;#39;t think that this is the problem !!! , I put it like that but no gain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62194?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 11:19:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:511c6af2-2253-4d8f-bd4e-a97ec6a07f6d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Is this for the nRF52 or nRF51? It should be set to a multiple of the flash page size, 4kB on the nRF52 and 1kB on the nRF51.I suggest that you set it to 3* flash page size, i.e. 0xC00 for the nRF51 and 0x3000 on the nRF52.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62190?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 09:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:146914cf-fb42-4dc7-814e-704ab5b8e33d</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;So, it&amp;#39;s used in bootloader what is the value to be set on DFU_APP_DATA_RESERVED ? it&amp;#39;s now 0x0000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62193?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 08:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dadf142-fd6e-44d2-8ecf-27f53e3b4e27</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The header file is used in the bootloader, not the application. If you&amp;#39;re using the bootloader example from SDK 12, then it should be a part of the project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62192?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 08:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2c90e78-b4bf-42d2-8295-49400bd7aa34</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;I mean my code is not using this file, should I just include it without any calls for its parameters ? ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62191?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 08:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4aeb319-aa57-47d8-89ba-3d0bd20f4a24</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@Bjørn Spockeli I don&amp;#39;t include this file, can u send me the version you have ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62189?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 12:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1006e8c8-dfa9-434b-bee0-e2865126f0b8</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@mohamed: The &lt;code&gt;DFU_APP_DATA_RESERVED&lt;/code&gt; define is found in &lt;code&gt;nrf_dfu_types.h&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62188?ContentTypeID=1</link><pubDate>Sat, 17 Sep 2016 19:00:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2491fd8e-5c4b-41be-9661-4a99fb207b43</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@Hungbui I didn&amp;#39;t find APP_DATA_RESERVED at all, what should I do and how to define it and how ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62182?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 11:44:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a3872b8-5f8e-4899-b381-3411663ad6f1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@mohamed: Have you found and modified APP_DATA_RESERVED as suggested   ? It&amp;#39;s the AppData part as shown &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_memory.html?cp=4_0_1_4_3_1_3"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62184?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2016 21:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ab87e6d-abc4-4801-9302-4bcbfc826168</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@hungbui here is my pstorage configuration:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;				static __INLINE uint16_t pstorage_flash_page_size()
				{
				  return (uint16_t)NRF_FICR-&amp;gt;CODEPAGESIZE;
				}
				#define PSTORAGE_FLASH_PAGE_SIZE     pstorage_flash_page_size()      
				#define PSTORAGE_FLASH_EMPTY_MASK    0xFFFFFFFF                     

				#ifdef NRF51
				#define BOOTLOADER_ADDRESS           (NRF_UICR-&amp;gt;BOOTLOADERADDR)
				#elif defined NRF52
				#define BOOTLOADER_ADDRESS           (PSTORAGE_FLASH_EMPTY_MASK)
				#endif

				static __INLINE uint32_t pstorage_flash_page_end()
				{
				   uint32_t bootloader_addr = BOOTLOADER_ADDRESS;
				  
				   return ((bootloader_addr != PSTORAGE_FLASH_EMPTY_MASK) ?
						   (bootloader_addr/ PSTORAGE_FLASH_PAGE_SIZE) : NRF_FICR-&amp;gt;CODESIZE);
				}

				#define PSTORAGE_FLASH_PAGE_END pstorage_flash_page_end()

				#define PSTORAGE_NUM_OF_PAGES       2                                                          
				#define PSTORAGE_MIN_BLOCK_SIZE     0x0010                                                     
				#define PSTORAGE_DATA_START_ADDR    ((PSTORAGE_FLASH_PAGE_END - PSTORAGE_NUM_OF_PAGES - 1) \
													* PSTORAGE_FLASH_PAGE_SIZE)                                 
				#define PSTORAGE_DATA_END_ADDR      ((PSTORAGE_FLASH_PAGE_END - 1) * PSTORAGE_FLASH_PAGE_SIZE)  
				#define PSTORAGE_SWAP_ADDR          PSTORAGE_DATA_END_ADDR                                     
				#define PSTORAGE_MAX_BLOCK_SIZE     PSTORAGE_FLASH_PAGE_SIZE                                    
				#define PSTORAGE_CMD_QUEUE_SIZE     10
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62183?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2016 17:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4a5af43-09a5-4a2b-a94e-afb7e47a898f</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@HungBui yup, I&amp;#39;m pairing by this pop up notification to pair or cancel, then it&amp;#39;s paired in application mode.
okay I&amp;#39;m reading your link now &amp;amp; would see if it&amp;#39;s applied in my code or not but I tried it before and it was working with me.
I&amp;#39;m using the device manager and pstorage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62187?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 11:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:125eb485-c340-4243-af7b-1ece0d3c4926</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@mohamed: How did you bond to the device (when the &amp;quot;Pair with this device?&amp;quot;pop up appear) ? You bond when you are in bootloader mode or you bond when you are in application mode (ANCS)?&lt;/p&gt;
&lt;p&gt;If you bond in application mode and you don&amp;#39;t want to lose bond after you do DFU, you would need to define how much space you want to reserve for the bond information.&lt;/p&gt;
&lt;p&gt;If you are using the secure bootloader from SDK v12, you can have a look &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/lib_bootloader.html?cp=4_0_0_3_3_0_1_0#lib_bootloader_memory51"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You would need to match the APP_DATA_RESERVED size with the size of the fds (or pstorage) you used for peermanager/device manager. On SDK v12 it&amp;#39;s 3 virtual page (3kB on nRF51 and 12kB on nRF52)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62186?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 08:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4abf3fc8-ab0a-4128-9966-1a0d94b6aa6b</guid><dc:creator>Mohamed O.Abouzeid</dc:creator><description>&lt;p&gt;@RogerClark , I can&amp;#39;t use buttons in my application, I&amp;#39;m entring the bootloader by enable notification on DFU packet control &amp;amp; send 0x01 on the same characteristic, before it disconnects immediately &amp;amp; start advertising as &amp;quot;dfutarg&amp;quot; but no it discconnects but take some time &amp;amp; advertise as dfutarg with erasing bonds and I can&amp;#39;t connect to it or even my application again.
if it&amp;#39;s possible I would try on both IOS and android but it seems to be useless for IOS  because once it&amp;#39;s added to paired devices, I couldn&amp;#39;t jump even to the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU &amp; IOS &amp; Bonding</title><link>https://devzone.nordicsemi.com/thread/62185?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 03:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e0b0b0e-5fcd-4dfd-a058-8ba32c6f60da</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;How are you entering the bootloader ? Via a button on a GPIO pin, which is pressed during power cycling (or resetting)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>