<?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>Check if WDG is runnung?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15821/check-if-wdg-is-runnung</link><description>Hi, 
 What is the best way to check if the Watchdog is running? 
 I want to initial it just if it is not enabled. 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 21 Aug 2016 06:22:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15821/check-if-wdg-is-runnung" /><item><title>RE: Check if WDG is runnung?</title><link>https://devzone.nordicsemi.com/thread/60412?ContentTypeID=1</link><pubDate>Sun, 21 Aug 2016 06:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba60a020-8e36-41ce-9180-1473b043207a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Missed to see that.  Accepting your answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if WDG is runnung?</title><link>https://devzone.nordicsemi.com/thread/60411?ContentTypeID=1</link><pubDate>Sun, 21 Aug 2016 01:37:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c51c46ef-c93b-4c9b-a965-87992e1bb78c</guid><dc:creator>motlib</dc:creator><description>&lt;p&gt;The watchdog unit has a register called RUNSTATUS. It&amp;#39;s value reads as 1 if the watchdog is running. So you could use&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;bool is_watchdog_started( void )
{
    if(NRF_WDT-&amp;gt;RUNSTATUS == 1) {
        return true;
    }
    else
    {
        return false;
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See chapter 20.3 / table 167 in the reference manual for details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>