<?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 loading on startup</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79051/dfu-loading-on-startup</link><description>Hello, 
 I’m able flash my code to the nRf52832 with no problem. At this point all is well. The problem occurs when I power down the device and then power up. On power up, for reasons I can’t locate, the device immediately goes into DFU mode instead of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Aug 2021 13:22:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79051/dfu-loading-on-startup" /><item><title>RE: DFU loading on startup</title><link>https://devzone.nordicsemi.com/thread/327237?ContentTypeID=1</link><pubDate>Mon, 30 Aug 2021 13:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:883e841c-86ee-424d-b3a8-e53791a7e05b</guid><dc:creator>Craig Hoffman</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Please disregard my last post. I located and corrected the file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again, thanks for your help.&lt;/p&gt;
&lt;p&gt;Craig H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU loading on startup</title><link>https://devzone.nordicsemi.com/thread/327215?ContentTypeID=1</link><pubDate>Mon, 30 Aug 2021 12:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fed383a6-3147-4cc7-a438-d8bd0f10ab1e</guid><dc:creator>Craig Hoffman</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;/p&gt;
&lt;p&gt;Thank you so much for the concise explanation on how to mitigate my DFU issue. I do need one more piece of information regarding this issue. When I do a search for&amp;nbsp;&lt;span&gt;sdk_config.h hundreds of these files appear. How can I determine which&amp;nbsp;sdk_config.h corresponds to my application?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks again for your help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Craig H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU loading on startup</title><link>https://devzone.nordicsemi.com/thread/327191?ContentTypeID=1</link><pubDate>Mon, 30 Aug 2021 11:39:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38ce86dd-6c68-4f51-96a4-a67cbb88ea15</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Craig,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you power on the chip, the bootloader will check if it should enter DFU mode or not. There are several methods to enter DFU mode,&amp;nbsp;and you can configure them in sdk_config.h.&amp;nbsp;The different methods are documented&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="DFU mode" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader.html?cp=8_1_3_5_0_2#lib_bootloader_dfu_mode"&gt;here&lt;/a&gt;. If none of these methods have been used to activate DFU mode, the bootloader will check if the application is valid, and if it&amp;#39;s valid, the bootloader will start the app.&lt;/p&gt;
&lt;p&gt;There is an inactivity timer used when you&amp;nbsp;activate&amp;nbsp;and enter DFU mode, and then you have the configured amount of ms to start the DFU, before the bootloader exits DFU mode, and tries to start the app again.&amp;nbsp;&lt;span&gt;When the DFU mode is entered, the inactivity timer is started. On timer expiration, the bootloader resets. The inactivity timer is restarted on any DFU activity. The inactivity timeout is by default set to&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__bootloader__config.html#gac4b458d2cbbdc42f27f223871360b546"&gt;NRF_BL_DFU_INACTIVITY_TIMEOUT_MS&lt;/a&gt;&lt;span&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;See the&amp;nbsp;&lt;a title="DFU mode" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader.html?cp=8_1_3_5_0_2#lib_bootloader_dfu_mode"&gt;DFU mode&lt;/a&gt;&amp;nbsp;documentation.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the default setting from sdk_config.h:&lt;/p&gt;
&lt;p&gt;// &amp;lt;i&amp;gt; If 0, no inactivity timer will be used. Values 1-99 are invalid.&lt;/p&gt;
&lt;p&gt;#ifndef NRF_BL_DFU_INACTIVITY_TIMEOUT_MS&lt;br /&gt;#define NRF_BL_DFU_INACTIVITY_TIMEOUT_MS 120000&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU loading on startup</title><link>https://devzone.nordicsemi.com/thread/327052?ContentTypeID=1</link><pubDate>Sat, 28 Aug 2021 01:30:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7e1adff-2205-46b2-bd87-397e1c5a5be2</guid><dc:creator>Craig Hoffman</dc:creator><description>&lt;p&gt;As an update, the same thing occurs when the basic Blink program is flashed to the nRF52832.&lt;/p&gt;
&lt;p&gt;Craig H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>