<?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>Disabling the softdevice hangs when using LFRC with an active watchdog</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56256/disabling-the-softdevice-hangs-when-using-lfrc-with-an-active-watchdog</link><description>Using LFRC as the softdevice LFCLK source, enabling and running the WDT causes the softdevice to hang until the watchdog reset when calling nrf_sdh_disable_request . This is with SDK v15.3.0 on both S112 and S140. 
 
 Configuring the WDT to pause on debugging</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Jan 2020 16:39:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56256/disabling-the-softdevice-hangs-when-using-lfrc-with-an-active-watchdog" /><item><title>RE: Disabling the softdevice hangs when using LFRC with an active watchdog</title><link>https://devzone.nordicsemi.com/thread/227972?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 16:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ae2ac7-b7de-4ad1-b7a4-846f5e88c72e</guid><dc:creator>fwst303</dc:creator><description>&lt;p&gt;Thanks a lot, Einar!&lt;/p&gt;
&lt;p&gt;I like the idea of some sort of notification being returned about the driver not being able to shut down its LFCLK. Then an app could decide to ignore this or handle it as needed.&lt;/p&gt;
&lt;p&gt;For the softdevice, if the WDT is running then caring about the LFRC getting shut down is kind of moot, so maybe some sort of error check or &amp;quot;if !(WDT is running &amp;amp;&amp;amp; softdevice LFCLK == LFRC)&amp;quot; guard around the call for would suffice there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling the softdevice hangs when using LFRC with an active watchdog</title><link>https://devzone.nordicsemi.com/thread/227969?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 16:22:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cb73096-64f1-4237-b3da-ea6d90473261</guid><dc:creator>fwst303</dc:creator><description>&lt;p&gt;Confirmed, inserting `nrf_drv_clock_lfclk_request(NULL);` before `nrf_sdh_disable_request();` allows the softdevice disable to succeed and execution to continue. I&amp;#39;d prefer to use LFRC and this workaround is fine for the app, so I&amp;#39;ll use this until something more official is introduced from Einar&amp;#39;s report. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling the softdevice hangs when using LFRC with an active watchdog</title><link>https://devzone.nordicsemi.com/thread/227944?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 14:55:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e6f1689-b28c-45f3-a1bd-1ddaa95ec5aa</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think you can see this as a bug in the clock drivers. I have reported it internally.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not sure exactly where this should be fixed. If you tell nrfx to disable the clock by calling&amp;nbsp;nrfx_clock_lfclk_stop(), it could perhaps return an error if the watchdog is enabled, or silently handle this by not waiting for the clock to stop if the watchdog timer is ready.&amp;nbsp;Alternatively, you could modify&amp;nbsp;sd_state_evt_handler() to not call&amp;nbsp;nrf_drv_clock_lfclk_release() on the NRF_SDH_EVT_STATE_DISABLED event as you do, or check if the WDT is enabled, and only call it if not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling the softdevice hangs when using LFRC with an active watchdog</title><link>https://devzone.nordicsemi.com/thread/227885?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 12:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaeeaeb0-1321-4225-a5cf-309c7b6e3e5a</guid><dc:creator>Sebastian B&amp;#248;e</dc:creator><description>&lt;p&gt;&lt;span&gt;m_clock_cb.lfclk_requests. If the nrfx WDT driver is not registering this request. Is it possible for the application to do so?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>