<?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>Watchdog timer use case sensitive application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57809/watchdog-timer-use-case-sensitive-application</link><description>Hi, 
 Good day! 
 Statement of problem: In our application, we are using nrf52832 SoC to control critical components (heater). So I was suggested to use a watchdog timer to control the critical elements. I tried to search online about this watchdog timer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 15 Feb 2020 09:14:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57809/watchdog-timer-use-case-sensitive-application" /><item><title>RE: Watchdog timer use case sensitive application</title><link>https://devzone.nordicsemi.com/thread/234517?ContentTypeID=1</link><pubDate>Sat, 15 Feb 2020 09:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:843f527f-cfa6-408e-b3f9-85df220356a3</guid><dc:creator>AimHigh</dc:creator><description>&lt;p&gt;Thank you, Einar. Your information is all I wanted to know about Watchdog timer.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Watchdog timer use case sensitive application</title><link>https://devzone.nordicsemi.com/thread/234433?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 13:53:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2ec2e52-653f-48ac-a532-8be3d175bee5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The watchdog in the nRF is just a simple downwards counting timer that you configure to run with a predefined counter reset value. During normal operation, you reload the counter (feed/kick it). If the application for some reason fails to do this (due to a deadlock or something else), then the counter will reach 0 and trigger a watchdog reset. The application will be notified by an interrupt before the reset, giving you time to put external signals in a safe state,etc (but there is no time to write to flash).&lt;/p&gt;
&lt;p&gt;Essentially you should design your system so that the watchdog timeout is long enough that it does not occur during normal operations, and you should try to make sure that you don&amp;#39;t feed it in an error condition. (For instance, don&amp;#39;t use a high priority timer interrupt to reload it, since in that case it may very well be reloaded even though there is an error state).&lt;/p&gt;
&lt;p&gt;You can refer to the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrf_dev_wdt_example.html"&gt;WDT example&lt;/a&gt;&amp;nbsp;to see how it can be used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Watchdog timer use case sensitive application</title><link>https://devzone.nordicsemi.com/thread/234366?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 10:57:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43a2829d-ee87-4384-a82f-97f948e4ae9e</guid><dc:creator>AimHigh</dc:creator><description>&lt;p&gt;Hi Dmitry,&lt;/p&gt;
&lt;p&gt;Thank you for your suggestion.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How I can implement this watchdog timer with the application to protect its critical elements?&lt;/p&gt;
&lt;p&gt;I am asking a very basic question when it comes to application am I not sure where to add this watchdog timer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Watchdog timer use case sensitive application</title><link>https://devzone.nordicsemi.com/thread/234326?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 08:33:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b157d778-26f6-417a-a232-0e69dda608fd</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;it&amp;#39;s possible (RAM contents is not cleared upon reset), but in general you shouldn&amp;#39;t rely on any app state after watchdog reset. You don&amp;#39;t know what&amp;#39;s happen - there may be power glitch or bug in the code that corrupts some RAM regions. The rule - after reset, put your system in safe state by hardware (for example, ensure pullups/pulldowns on pins that control critical elements).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>