<?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 getting reset continuously</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67546/watchdog-timer-getting-reset-continuously</link><description>Hello, 
 I wanted to implement WDT resets when my application hangs. I am working on the advertiser code, what I observe was when I implement WDT driver in SDK 15.2 examples/ble_peripheral/ble_app_beacon, the WDT would cause a watchdog reset initially</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Oct 2020 10:28:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67546/watchdog-timer-getting-reset-continuously" /><item><title>RE: Watchdog timer getting reset continuously</title><link>https://devzone.nordicsemi.com/thread/277344?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 10:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a17fea0-5be2-4332-a6b3-102f114943d5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Pankti,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure why it doesn&amp;#39;t work for you but WDT is not that complicated.&amp;nbsp;I attached here an example that I modified the ble_app_beacon to add WDT. It uses an app timer to refresh the wdt.&amp;nbsp;&lt;br /&gt;If button 1 is pressed (P0.13==0) it will not refresh the wdt and will reset after 2 seconds.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5621.ble_5F00_app_5F00_beacon_5F00_wdt.zip"&gt;devzone.nordicsemi.com/.../5621.ble_5F00_app_5F00_beacon_5F00_wdt.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Watchdog timer getting reset continuously</title><link>https://devzone.nordicsemi.com/thread/276999?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 01:23:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d12ecd45-eb0e-4986-8b6f-049f9cb261bd</guid><dc:creator>pankti583</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I checked, the problem here is, wdt_timer_handler is never getting called, I was then looking on the devzone for the issue and found this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/1396/timer-handler-never-called"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/1396/timer-handler-never-called&lt;/a&gt;. Here, it asks to start LFCLK manually, if not using softdevice. In the code, i have used softdevice and there are multiple timers. I referred to the example - ble_app_hrs, in the SDK 15.2, where multiple timers have been implemented.&lt;/p&gt;
&lt;p&gt;Also, gone through, the Application Timer Tutorial&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/application-timer-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/application-timer-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;and Application Timer Library&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.1.0/lib_timer.html?cp=4_0_0_3_46"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.1.0/lib_timer.html?cp=4_0_0_3_46&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;And, in the forum, referred related posts :&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53220/multiple-timers-and-scheduler/215218#215218"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/53220/multiple-timers-and-scheduler/215218#215218&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/65764/app_timer-instant-timeout"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/65764/app_timer-instant-timeout&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/198/comprehension-question-timer/1088#1088"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/198/comprehension-question-timer/1088#1088&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42904/app-timer-and-scheduler-issues-and-enhancements/167740#167740"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/42904/app-timer-and-scheduler-issues-and-enhancements/167740#167740&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29399/timer-interrupt-priority-and-ble-connection"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/29399/timer-interrupt-priority-and-ble-connection&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After, referring to the above posts and few others, I thought to add app_scheduler and referred to&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/scheduler-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/scheduler-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I found it difficult to understand the scheduler tutorial and the example gave me compilation errors, I was not able to figure out why wdt_timer_handler is not called? I added a breakpoint, but it never gets executed. It would be very helpful, if you can guide me through this issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Pankti&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Watchdog timer getting reset continuously</title><link>https://devzone.nordicsemi.com/thread/276697?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 15:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19cd679c-42bd-48e7-aacc-8e1f344839b0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Pankti,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you configured the nRFX_WDT module in sdk_config.h as showed in the wdt example ?&lt;/p&gt;
&lt;p&gt;Please check and make sure&amp;nbsp;wdt_timer_handler() is called every 2 seconds.&lt;/p&gt;
&lt;p&gt;If you use the default&amp;nbsp;NRF_DRV_WDT_DEAFULT_CONFIG , which set the WDT timeout to 2 seconds, I would suggest to set the timer timeout to less than 2 seconds, for example 1 second.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that you must do a power reset after programing and before testing with WDT otherwise the WDT reset won&amp;#39;t take effect if the chip is in debug mode.&lt;/p&gt;
&lt;p&gt;Please try to test using wdt example in the SDK. You can think of implementing a timer to reload instead of the button as in the example.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>