<?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>Buttonless DFU not starting bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19533/buttonless-dfu-not-starting-bootloader</link><description>Hi, 
 I am having trouble with buttonless DFU on my application. I am working on custom hardware on the nRF51822, SDK10.0.0, S130. 
 When I enter DFU from my application the application goes through the reset_prepare sequence I created but then does</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Feb 2017 10:05:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19533/buttonless-dfu-not-starting-bootloader" /><item><title>RE: Buttonless DFU not starting bootloader</title><link>https://devzone.nordicsemi.com/thread/75928?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 10:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cadbadb-fae7-41d2-a1d6-87598466a576</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I did a quick test with the unaltered bootloader example in SDK v10.0 and the S130 ble_app_hrs example with DFU support, the OFF bit in the RESETREAS register was not set upon entry of main in the bootloader after DFU was initiated by the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU not starting bootloader</title><link>https://devzone.nordicsemi.com/thread/75927?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 09:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:811646c3-e7d0-4319-b240-6ed21e30fbd9</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;I have done some further digging and have uncovered the issue. Whenever a DFU is initiated, the OFF bit in the RESETREAS register (high when the device is woken up from a pin reset) is set high when I believe it should be low. The line in question is this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;bool pin_wakeup = ((NRF_POWER-&amp;gt;RESETREAS &amp;amp; POWER_RESETREAS_OFF_Msk) == POWER_RESETREAS_OFF_Msk);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Do you know why this is the case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU not starting bootloader</title><link>https://devzone.nordicsemi.com/thread/75925?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 11:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f84fa3eb-8abb-480d-a661-d8864d000ae3</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If you reach the &lt;code&gt;bootloader_util_app_start()&lt;/code&gt; call, then I would start a debug session in the bootloader and set a breakpoint in main(), after you&amp;#39;ve pressed run and it jumps to the application, to see if the branch operation performed in &lt;code&gt;bootloader_util_app_start()&lt;/code&gt; was successful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU not starting bootloader</title><link>https://devzone.nordicsemi.com/thread/75924?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 11:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c43cf8c-e6c8-4a02-9b38-6c4d4f9b0a9d</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;Yes, I reach that call after initiating a DFU update from the MCP. Is there anything else I should check?&lt;/p&gt;
&lt;p&gt;I have looked through that example but cannot find much different between the example and my implementation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU not starting bootloader</title><link>https://devzone.nordicsemi.com/thread/75926?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 10:45:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73e9b46f-bd5f-4edb-9e4d-d6d62d4b07ce</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I assume that you have followed &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v10.0.0/bledfu_appextending.html?resultof=%22%65%78%74%65%6e%64%69%6e%67%22%20%22%65%78%74%65%6e%64%22%20%22%64%66%75%22%20"&gt;this&lt;/a&gt; step by step guide. Do you reach the &lt;code&gt;bootloader_util_app_start(NRF_UICR-&amp;gt;BOOTLOADERADDR)&lt;/code&gt; call in  the &lt;code&gt;bootloader_start()&lt;/code&gt; function in dfu_app_handler.c ? I also recommend that you take a look at the ble_app_hrs example with DFU in the SDK, you&amp;#39;ll find it in &lt;em&gt;examples\ble_peripheral\ble_app_hrs\pca10028\s130_with_dfu\arm5_no_packs&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>