<?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>Reset DFU process after power loss</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27474/reset-dfu-process-after-power-loss</link><description>Hi, 
 I am implementing modified DFU for nRF52832 which uses external flash memory. If power loss occures during update process, device then start update process from the last known progress (e.g. 35 %). I want to ensure that update process always starts</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Nov 2017 11:21:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27474/reset-dfu-process-after-power-loss" /><item><title>RE: Reset DFU process after power loss</title><link>https://devzone.nordicsemi.com/thread/108518?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 11:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2d27ecc-1eda-44f6-ba51-7b9370bab1bc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Michal,&lt;/p&gt;
&lt;p&gt;The way the DFU controller continue the process is described &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_dfu_transport_ble.html?cp=4_0_0_3_5_2_2_3_1#lib_dfu_transport_msc_data"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The offset is what exactly tell if the last DFU interrupted in the middle of the process or not.&lt;/p&gt;
&lt;p&gt;So what you need to do is either let the DFU controller ignore the offset, or you erase the offset in the bootloader setting stored in flash. Offsets are stored in bootloader setting in progress field in nrf_dfu_settings_t.&lt;/p&gt;
&lt;p&gt;You can think of erasing it when the bootloader starts. But make sure you test and verify Softdevice update and bootloader update works fine after your modification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>