<?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>Configure Watchdog timer to pause during sleep .</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72635/configure-watchdog-timer-to-pause-during-sleep</link><description>Hello, 
 I am working on a nrf52833 custom board. Most of the time, the system stays in sleep mode, and periodically sends bursts of data via SoftDevice. 
 I try to configure the WDT to pause during long sleep for this system. However, it seems like doing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Mar 2021 06:59:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72635/configure-watchdog-timer-to-pause-during-sleep" /><item><title>RE: Configure Watchdog timer to pause during sleep .</title><link>https://devzone.nordicsemi.com/thread/300282?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 06:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd093169-d43f-4f1a-82e7-f3dd0f845453</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The WDT timer will increment on the 32.768KHz clock. In this case, when the timer is configured to halt in sleep, and the periodic events are shorter than one 32kHz clock cycle, it will not increment, and not time out as long as the periodic events are short enough.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure Watchdog timer to pause during sleep .</title><link>https://devzone.nordicsemi.com/thread/299349?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 21:13:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79cf3c8d-4246-4753-bd4a-85d9bb5354d6</guid><dc:creator>philtrinh</dc:creator><description>&lt;p&gt;Hello run_ar,&lt;/p&gt;
&lt;p&gt;Thank you for the information, as I see the periodic events generated in my system are extremely short, and the sleep period is way longer, and therefore the confusion.&amp;nbsp; I did the suggestion to let the system enter endless loop and the WDT resets as expected.&lt;/p&gt;
&lt;p&gt;All and all, this leads to another question regarding the&amp;nbsp;resolution of the WDT timer.&amp;nbsp; Since the WDT timer runs on the 32.768Khz clock (~30.5 uSec period),&amp;nbsp;will the WDT eventually time out if the duration of&amp;nbsp;every periodic event&amp;nbsp;is less than this WDT&amp;nbsp;resolution, say 30 uSec?&lt;/p&gt;
&lt;p&gt;Phil.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure Watchdog timer to pause during sleep .</title><link>https://devzone.nordicsemi.com/thread/299292?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 13:34:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44f86f80-6fbe-4fa3-b397-dd697eb34936</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think I have seen cases where the WD did not time out. More often we see customers complaining it does time out after many hours in case of long sleep periods and having the SD run in the background.&lt;/p&gt;
&lt;p&gt;I see that you have configured a timeout value of ~1 second and also halting the WDT while in sleep. This means you have to do spend some time not sleeping before the watchdog will trigger a reset. Can you elaborate a little on your application? what do you do when it&amp;#39;s not sleeping? for how long is it awake? how long sleep periods do you have? i.e. are you sure the cpu has been running enough for the wdt to trigger?&lt;/p&gt;
&lt;p&gt;As an experiment maybe you could try to enter a loop after the sleep period to see if the wdt resets as it should in that case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>