<?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>About WDT behaviour during sleep.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76120/about-wdt-behaviour-during-sleep</link><description>Hello. 
 When going to sleep with the BLE connection established, the WDT counter will be added. (WDT behaviour: NRF_WDT_BEHAVIOUR_PAUSE_SLEEP_HALT) At this time, my app cannot detect wakeup. 
 Who adds the WDT counter? How do I refresh the WDT counter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Jun 2021 08:29:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76120/about-wdt-behaviour-during-sleep" /><item><title>RE: About WDT behaviour during sleep.</title><link>https://devzone.nordicsemi.com/thread/314381?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 08:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b7ac80f-48ba-4c64-a0be-f99ecf9f811d</guid><dc:creator>hn_utc</dc:creator><description>&lt;p&gt;Thank you for answering.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About WDT behaviour during sleep.</title><link>https://devzone.nordicsemi.com/thread/314376?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 08:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73a263d1-daef-48de-858b-87b398a80bd5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="hnutc"]How can I prevent a WDT reset by a SoftDevice interrupt that does not require application involvement?&amp;nbsp;Do I need to wake up at regular intervals just to reload the watchdog counter?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote user="hnutc"]Is there any other way?[/quote]
&lt;p&gt;No. (Though if you use a long WDT timeout you will not have to wake up very often, so it will typically have a negligible effect on the average current consumption if that is why you do not want to do it.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About WDT behaviour during sleep.</title><link>https://devzone.nordicsemi.com/thread/314320?ContentTypeID=1</link><pubDate>Wed, 09 Jun 2021 04:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e740bff9-6dde-4e74-b85c-3093b08ecad1</guid><dc:creator>hn_utc</dc:creator><description>[quote userid="7377" url="~/f/nordic-q-a/76120/about-wdt-behaviour-during-sleep/314079#314079"]Note that the CPU will be active from time to time even if the application code doe snot run, for instance for SoftDevice interrupts that may not require application involvement.[/quote]
&lt;p&gt;How can I prevent a WDT reset by a SoftDevice interrupt that does not require application involvement?&amp;nbsp;Do I need to wake up at regular intervals just to reload the watchdog counter? Is there any other way?&lt;/p&gt;
&lt;p&gt;I understand that it is better not to pause the WDT while CPU is sleeping.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About WDT behaviour during sleep.</title><link>https://devzone.nordicsemi.com/thread/314079?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 07:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0af25b29-eaa1-437b-9929-392346feac6a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]Who adds the WDT counter?[/quote]
&lt;p&gt;The WDT counter counts 32.768 kHz clock cycles. If you have configured the WDT to pause while sleeping and halted the WDT will only count clock cycles while the CPU is active. Note that the CPU will be active from time to time even if the application code doe snot run, for instance for SoftDevice interrupts that may not require application involvement. Perhaps that is what confuses you?&lt;/p&gt;
[quote user=""]How do I refresh the WDT counter?[/quote]
&lt;p&gt;What do you mean exactly? Once started, there is no way to change the WDT configuration at all. The only way to re-configure then is after a reset (except soft reset, which does not reset the WDT).&lt;/p&gt;
&lt;p&gt;Note that it is typically not a good idea to pause the WDT while CPU is sleeping. In case there is an issue that prevents the CPU from waking up the WDT would not be able to do it&amp;#39;s work and reset the device to recover in this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>