<?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>WDT resets the board during DEBUG</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87019/wdt-resets-the-board-during-debug</link><description>Hi, 
 I am debugging an Application running on a custom board that uses the NORDIC nrf52832 processor connected to an IMU over twi. I am using SDK17.0.2 
 I find WDT is kicking in restarting the application at a particular point. There is nothing wrong</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Apr 2022 10:22:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87019/wdt-resets-the-board-during-debug" /><item><title>RE: WDT resets the board during DEBUG</title><link>https://devzone.nordicsemi.com/thread/363515?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 10:22:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9d98d61-ff0d-484d-a31f-851e209353c5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The WDT is just a simple downwards counting timer, and whenever it reaches 0 a reset occurs (after a short delay of two 32.768 kHz clock cycle). And the WDT is restarted to the configured reload value whenever it is fed/kicked, so then it starts&amp;nbsp;counting down from that value again (must happen on all enabled channels in case more than one channel is enabled). There is no more logic than that, so a WDT reset in itself does not imply any other issue than that the WDT is not fed fast enough.&lt;/p&gt;
[quote user=""]How can I prevent the WDT from reseting the board during DEBUG process?[/quote]
&lt;p&gt;Normally it makes sense to disable the WDT while debugging, as when debugging (pausing, stepping, breaking, etc), you change the timing of things and may not feed the WDT fast enough. As this is a special case it is typically better to simply not enable the WDT in this case rather than to introduce some special handling or complexities for this situation. That said, the WDT supports being paused when the debugger has halted the CPU by setting&amp;nbsp;HALT to 0 in the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/wdt.html?cp=4_2_0_39_3_6#register.CONFIG"&gt;CONFIG register&lt;/a&gt;&amp;nbsp;(if using the driver, use for instance NRF_WDT_BEHAVIOUR_RUN_SLEEP).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>