<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Zephyr Task WDT doesn&amp;#39;t cause a system reset, hangs system</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88036/zephyr-task-wdt-doesn-t-cause-a-system-reset-hangs-system</link><description>Hello, I am trying to add a watchdog timer to my code which consists of THREE threads, so I referred to the task_wdt example in Zephyr/Samples/Subsys for SDK1.6.1. 
 Based on the example, I initialize the WDT and add a sleep &amp;gt; watchdog time after a count</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 23 May 2022 14:06:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88036/zephyr-task-wdt-doesn-t-cause-a-system-reset-hangs-system" /><item><title>RE: Zephyr Task WDT doesn't cause a system reset, hangs system</title><link>https://test-devzone.nordicsemi.com/thread/369074?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 14:06:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72b84c93-ea72-4678-8abe-b52f29502f15</guid><dc:creator>user15146</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think you are running into a issue that is fixed in the &lt;span&gt;latest&amp;nbsp;&lt;/span&gt;release.&lt;/p&gt;
&lt;p&gt;See this commit:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/df1125a58c8a313b6518ef44054d6c25f37e15a4"&gt;https://github.com/nrfconnect/sdk-zephyr/commit/df1125a58c8a313b6518ef44054d6c25f37e15a4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are also some other bugs in task_wdt that is fixed in the&amp;nbsp;latest&amp;nbsp;&lt;span&gt;release.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Task WDT doesn't cause a system reset, hangs system</title><link>https://test-devzone.nordicsemi.com/thread/368706?ContentTypeID=1</link><pubDate>Fri, 20 May 2022 04:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:050e5a18-8ae5-434f-8b7e-f3932091fc4c</guid><dc:creator>user114427</dc:creator><description>&lt;p&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/78206.main.c"&gt;test-devzone.nordicsemi.com/.../78206.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4338.prj.conf"&gt;test-devzone.nordicsemi.com/.../4338.prj.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So here are the two files - In my main, I initialize WDT at bootup and start it and then there is the connect() do_while loop, which takes roughly 10 seconds to complete so I want my wdt to fire and reboot just for testing, but instead it just hangs indefinitely.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;And yes, the example worked for me. Not sure what I&amp;#39;m missing here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Task WDT doesn't cause a system reset, hangs system</title><link>https://test-devzone.nordicsemi.com/thread/368554?ContentTypeID=1</link><pubDate>Thu, 19 May 2022 09:23:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4be2d15-bdab-476b-a44f-c808b6084ff9</guid><dc:creator>user15146</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Based on the example, I initialize the WDT and add a sleep &amp;gt; watchdog time after a count of 50, but instead of calling a wdt callback or system reset, my code just gets stuck into an undefined state.&amp;nbsp;[/quote]
&lt;p&gt;I tried reproducing this, but it&amp;#39;s working fine here.&amp;nbsp;Could you post your whole main.c and prj.conf?&lt;/p&gt;
&lt;p&gt;Does the unmodified sample work as expected? What board target did you build for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>