<?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>Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38692/application-stuck-after-bootloader-start-with-wdt-enabled</link><description>Hi, 
 I am using a custom board with the nrf52832 with SDK 13 and I have a bootloader and an application that both configure and feed the WDT. 
 However, upon restart (power off, followed by a power on) the application sometimes starts but gets stuck</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Oct 2018 13:37:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38692/application-stuck-after-bootloader-start-with-wdt-enabled" /><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/151688?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 13:37:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ea64023-e34f-481d-8959-4695287560bd</guid><dc:creator>gsalazar</dc:creator><description>&lt;p&gt;It is SDK 13.1,&amp;nbsp; I found a&amp;nbsp;&lt;span&gt;nrf_drv_clock_uninit() call buried in the code. I will try to test it without calling that function&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/151674?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 13:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e1954d7-cd8d-47c4-990e-d6180083008f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Are&amp;nbsp;you sure that you are not calling&amp;nbsp;nrf_drv_clock_uninit() , nrf_drv_clock_on_sd_disable() or nrf_drv_clock_lfclk_release() ?&lt;/p&gt;
&lt;p&gt;This is SDK 13.1 ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/151502?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 14:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f543649-e4f5-4b67-973f-02ee1704326d</guid><dc:creator>gsalazar</dc:creator><description>&lt;p&gt;After doing what you described I see that I am stuck in the&amp;nbsp;&lt;strong&gt;drivers_nrf/hal/nrf_clock.h&amp;nbsp;file at line 356&lt;/strong&gt;. This is the&amp;nbsp;&lt;strong&gt;nrf_clock_lf_is_running&amp;nbsp;&lt;/strong&gt;function, however I never call this function nor any of the functions that call this one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/151495?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 13:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8332b036-ada7-42ab-83cf-3e0881852b7a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;It could be that the code somewhere tries to turn off the LF clock while the WDT is running, and therefore get stuck. But to figure out where in the code you are stuck, connect the debugger, and use &amp;ldquo;nrfjprog &amp;ndash;readregs&amp;rdquo;. You will then need to take a look at the printed PC value to figure out where in the code you are. Use the PC value together with the .elf file and addr2line to find the file name and line number of where in the code you are. E.g.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;addr2line -e filename.elf 0x23680&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/150201?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 09:10:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70955e25-dc39-4381-92c7-0f7465bea318</guid><dc:creator>gsalazar</dc:creator><description>&lt;p&gt;One thing I observed is that after the system hangs eventually the WDT triggers and the application boots correctly. I believe this means that the problem exists but the nrf52 is not completely blocked, just the application&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/150199?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 09:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a07835d-ebd1-4085-9fd7-71d49464d414</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If you have the inductors, then the DC/DC mode is not what is causing the issue. To answer your question; yes, you need to explicitly enable DC/DC mode. Use&amp;nbsp;&lt;span&gt;&lt;em&gt;sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE)&lt;/em&gt; to enable it.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/150194?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 09:00:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89db1792-50b6-4cbc-9247-07642ba2e687</guid><dc:creator>gsalazar</dc:creator><description>&lt;p&gt;I have both inductors with the same values and assembly as&amp;nbsp;presented in the&amp;nbsp;reference HW guide.&lt;/p&gt;
&lt;p&gt;Do I need to explicitly enable the DC/DC mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/150192?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 08:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c3deef7-8fed-4e7c-970b-e4c4d137eb47</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Are you using DC/DC mode? Does the custom board have the DC/DC components, &lt;span&gt;inductor L2 and L3&lt;/span&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/149683?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 15:51:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90992363-c402-4a62-86c8-da78a9e1d5bd</guid><dc:creator>gsalazar</dc:creator><description>&lt;p&gt;I tried running a debug session but when compiling with debug and no optimizations I cannot reproduce the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/149669?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 14:10:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6d82583-d38b-4771-9929-c3179d4a4820</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Have you tried running a debug session to see where you get stuck? It could be that you are running into the error-handler? Please see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/149633?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 11:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d2ac7d1-d141-48f9-9104-47d77164257b</guid><dc:creator>gsalazar</dc:creator><description>&lt;p&gt;Yes, from the tests I performed if I do not use the WDT in the bootloader I cannot reproduce the problem. If I remove the WDT from the application the problem persists.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/149631?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 11:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:785201ff-6508-426c-b66a-5bfa1414a300</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;OK, and when you don&amp;#39;t start the WDT in the bootloader, the issue disappear ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/149630?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 11:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c3f54f0-e919-4a78-8d4c-88f8af84a1f2</guid><dc:creator>gsalazar</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have the behaviour set as&amp;nbsp;NRF_WDT_BEHAVIOUR_PAUSE_SLEEP_HALT and a reload time of 5 minutes.&lt;/p&gt;
&lt;p&gt;Increase it to more than 5 minutes, I cannot really move it up due to the application that I have.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application stuck after bootloader start with WDT enabled</title><link>https://devzone.nordicsemi.com/thread/149626?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 11:47:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:606ad754-bd36-43c9-9497-a4ee13003f6a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What WDT configuration are you using ? What &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/structnrf__drv__wdt__config__t.html?cp=4_0_5_6_8_28_1_1"&gt;behaviour and reload_value&lt;/a&gt; have you set?&lt;/p&gt;
&lt;p&gt;Have you tried increasing the reload_value ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>