<?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 failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9096/dfu-failed</link><description>When I send the command to the 51822,so the 51822 ready to DFU,but wait for a long time,51822 is staying at a DFU state,that means 51822 can not work.How to solve this problem?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Oct 2015 11:50:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9096/dfu-failed" /><item><title>RE: DFU failed</title><link>https://devzone.nordicsemi.com/thread/33495?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2015 11:50:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fee87779-dd6c-4d91-9656-e46ed7964e7a</guid><dc:creator>shubham</dc:creator><description>&lt;p&gt;The problem may be with the NRF_POWER-&amp;gt;GPREGRET register. In bootloader code you need to clear the register, if you don&amp;#39;t, after timeout in bootloader, system will reboot and will again check for NRF_POWER-&amp;gt;GPREGRET register and will remain in bootloader mode, and the process will continue.&lt;/p&gt;
&lt;p&gt;So to resolve it, in bootloader&amp;#39;s program in below section:
if (dfu_start || (!bootloader_app_is_valid(DFU_BANK_0_REGION_START)))
add &amp;quot;sd_power_gpregret_clr(0xFF);&amp;quot;&lt;/p&gt;
&lt;p&gt;this will sort out your problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU failed</title><link>https://devzone.nordicsemi.com/thread/33494?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2015 08:01:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d0f0b36-da0a-458e-90a8-a22821e1d7a8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Milk,&lt;/p&gt;
&lt;p&gt;My suggestion for you is to test and make sure everything works first with the nRF Master Control Panel app.&lt;/p&gt;
&lt;p&gt;After that you can test with your own app. Please list the process when you test DFU with your app, step by step. A &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;sniffer trace&lt;/a&gt; would be very useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU failed</title><link>https://devzone.nordicsemi.com/thread/33493?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2015 01:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8b493a7-6cf9-448e-b695-ad33c3f2daea</guid><dc:creator>Milk</dc:creator><description>&lt;p&gt;Hi Hung Bui, DFU app is developped by our company,the device is 51822.DFU app is based on the code of Master Control Pannel.I test it by lightblue.Yesterday,I seek something from Internet.I found that if the device stayed the bootloader all the time instead of entering the application,it means the application corrupted.So I still do not understand,why does the application corrupt?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU failed</title><link>https://devzone.nordicsemi.com/thread/33492?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2015 12:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c2612a6-fa6d-47dc-b419-fa6db12af43f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Milk,&lt;/p&gt;
&lt;p&gt;Please provide more information.
Which DFU master app/device did you use to do DFU ?&lt;/p&gt;
&lt;p&gt;How did you test?&lt;/p&gt;
&lt;p&gt;The nRF51 will stay at DFU state if the DFU master do nothing, a timeout will occurs, and the nRF51 will return to normal mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>