<?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 on NRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10198/dfu-on-nrf52</link><description>Hello, 
 Has someone been able to use DFU with nRF52 device? 
 I&amp;#39;m trying to add the DFU capability/service to the HRM example.
I have added the BLE_DFU_APP_SUPPORT define, and included the following 3 files to the project: 
 bootloader_util.c
dfu_app_handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Nov 2015 06:52:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10198/dfu-on-nrf52" /><item><title>RE: DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/37844?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2015 06:52:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5526b741-eaa3-4be5-8eae-8e6453b447b8</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;It&amp;#39;s good to hear it&amp;#39;s working. I would be grateful if you could accept the answer by clicking the check mark to the left of it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/37843?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 15:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:841f7008-a726-4488-8e4e-164d9dc522d5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, please have a look at question E in this &lt;a href="https://devzone.nordicsemi.com/blogs/685/common-faq-on-dfu/"&gt;FAQ&lt;/a&gt; for more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/37842?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 14:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f84c271f-c895-4d65-b761-4d59edad3fa5</guid><dc:creator>Andrea</dc:creator><description>&lt;p&gt;Thanks! It is working now.&lt;/p&gt;
&lt;p&gt;Is there a way to flash the application and the bootloader on the device in one go? Instead of flashing the bootloader and then do a first DFU with the application.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m just thinking that in production line this may be annoying since we need an extra step to do the first DFU.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU on NRF52</title><link>https://devzone.nordicsemi.com/thread/37841?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 14:06:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e65595e7-9f31-4436-ba6a-b12763ea431d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Most of the DFU stuff should be functional for the nRF52 in SDK 0.9.2, but not all. The HRM example project does not include project files using DFU (though the code is there when you define &lt;code&gt;BLE_DFU_APP_SUPPORT&lt;/code&gt; as you did). The reason for this is probably that there is some work left there, but unfortunately the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk52.v0.9.2/bledfu_appexample.html?cp=4_0_0_4_2_2_0"&gt;documentation does not reflect this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There will be a new SDK release that addresses this at some point, but for now you can try to work your way around it.&lt;/p&gt;
&lt;p&gt;After you have added the missing files to the project and defined &lt;code&gt;BLE_DFU_APP_SUPPORT&lt;/code&gt;, you have to modify line 146 and 153 in components\libraries\bootloader_dfu\dfu_app_handler.c.&lt;/p&gt;
&lt;p&gt;In both those lines you should replace &lt;code&gt;NRF_UICR-&amp;gt;BOOTLOADERADDR&lt;/code&gt; with &lt;code&gt;*(uint32_t *)(0x10001014)&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I have not tested this, but it should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>