<?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</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80549/watchdog-timer</link><description>Hello Zephyr experts, 
 I am having problem with the function wdt_disable(const struct device *dev); 
 
 There is no problem in setup and feed the watchdog. 
 wdt = device_get_binding (WDT); // watchdog device binding succesfully 
 
 wdt_channel_id =</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Oct 2021 06:49:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80549/watchdog-timer" /><item><title>RE: watchdog timer</title><link>https://devzone.nordicsemi.com/thread/335623?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 06:49:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:977facee-b7e6-429a-9616-9ed80c01031d</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Great!&lt;/p&gt;
&lt;p&gt;Let us know if there is anything else!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: watchdog timer</title><link>https://devzone.nordicsemi.com/thread/335551?ContentTypeID=1</link><pubDate>Sat, 23 Oct 2021 00:16:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05ccbea7-1735-4360-85d7-30b332ed42cb</guid><dc:creator>jchan12345</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Elfving,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your response.&amp;nbsp; I was just working on my job assignment to test the watchdog and i saw the&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;int wdt_disable(const struct device *dev) function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is okay if wdt cannot be disabled&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Joseph&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: watchdog timer</title><link>https://devzone.nordicsemi.com/thread/333749?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 13:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49454c13-704d-4117-bdce-d0e1a1ac43b1</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Joseph!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What you are trying to do here is disabling the watchdog from the application, which is against its purpose.&amp;nbsp;&lt;span&gt;The purpose of a watchdog is to ensure that your program continuously feeds it in order to verify that your program runs as it should. I wouldn&amp;#39;t recommend disabling it in runtime, and it is not something the function should allow you to either.&amp;nbsp;Error -1 is the &amp;quot;Not Owner&amp;quot; error, it is not letting you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want to experiment with using the watchdog I would recommend you to move the if statement to rather turn the watchdog on&amp;nbsp;if the&amp;nbsp;user_command == &amp;quot;enable watchdog&amp;quot;, instead of turning it off.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>