<?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>Cannot get watchdog to run on nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51319/cannot-get-watchdog-to-run-on-nrf9160</link><description>Dear All, 
 
 I am fairly new to the nrf9160 and the Zephyr Os. 
 
 I am trying to write a simple example code for watchdog. All I want to do is to reset my board if I don&amp;#39;t feed it for 2 seconds. I am using trying to use the ncs\zephyr\tests\drivers</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Aug 2019 09:01:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51319/cannot-get-watchdog-to-run-on-nrf9160" /><item><title>RE: Cannot get watchdog to run on nrf9160</title><link>https://devzone.nordicsemi.com/thread/206041?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2019 09:01:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e140256-94d0-4537-b38d-8c6be0c286b9</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;The first link you provided me with was really helpful, as was the rest of your comment.&lt;/p&gt;
&lt;p&gt;Thank you very much&lt;/p&gt;
&lt;div id="simple-translate"&gt;
&lt;div&gt;
&lt;div class="simple-translate-button " style="height:22px;left:10px;top:10px;width:22px;"&gt;&lt;/div&gt;
&lt;div class="simple-translate-panel " style="background-color:#ffffff;font-size:13px;height:200px;left:0px;top:0px;width:300px;"&gt;
&lt;div class="simple-translate-result-wrapper" style="overflow:hidden;"&gt;
&lt;p class="simple-translate-result" style="color:#000000;"&gt;&lt;/p&gt;
&lt;p class="simple-translate-candidate" style="color:#737373;"&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot get watchdog to run on nrf9160</title><link>https://devzone.nordicsemi.com/thread/205759?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 07:30:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a172ed34-1ac9-43c8-b1f2-c79a0f11d2dc</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Giannis,&lt;/p&gt;
&lt;p&gt;If you are new to nRF9160 and NCS I would highly recommend that you go through &lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-connect-sdk-tutorial" rel="noopener noreferrer" target="_blank"&gt;this tutorial&lt;/a&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;The &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fwdt.html&amp;amp;cp=2_0_0_5_19" rel="noopener noreferrer" target="_blank"&gt;watchdog&lt;/a&gt; is a hardware peripheral that is directly connected to the internal reset signals. If the timer expires without the application writing a magic word into the register, it will perform a reset, regardless of the state of the CPU. (&lt;em&gt;Even if you&amp;#39;re in a hardfault)&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The watchdog has the ability to give an interrupt to the application some 32k CLK cycles before resetting the system, provided that the application is not blocked by a higher interrupt (&lt;em&gt;if in HardFault or busFault, you will be blocked&lt;/em&gt;).&lt;/p&gt;
&lt;p&gt;The modem runs completely separate from the application, so the watchdog in the application space shouldn&amp;#39;t be disrupted by the modem.&lt;/p&gt;
&lt;p&gt;The WDT can be configured to run during sleep, or halt when the debugger is connected, as per &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/wdt.html?cp=2_0_0_5_19_3_10#register.CONFIG" rel="noopener noreferrer" target="_blank"&gt;the CONFIG register:&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding a WDT sample, you need to first add WDT to the &amp;#39;Secure Partition Manager&amp;#39;, as shown in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47512/how-to-configure-peripherals-with-spm-on-nrf9160/192299#192299" rel="noopener noreferrer" target="_blank"&gt;this post.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After that, you should be able to run the watchdog in non-secure mode. You can find a sample in &amp;quot;../ncs/zephyr/samples/drivers/watchdog&amp;quot; on how to run and configure it.&lt;/p&gt;
&lt;hr /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>