<?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</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61482/watchdog</link><description>Hi, 
 
 I&amp;#39;m using NRF_WDT and it works very good. 
 I would like to investigate my project failures and I want to save some data when watchdog is expired. 
 
 How can I catch the watchdog before it reset my application, so I will be able to save data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 May 2020 12:14:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61482/watchdog" /><item><title>RE: Watchdog</title><link>https://devzone.nordicsemi.com/thread/250433?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 12:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e3790a8-0b9b-4279-a003-94a3b13ef0cb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can enable interrupt for the WDT TIMEOUT event to get notified when the WD has timed out, see &lt;span&gt;&lt;a title="Watchdog reset" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/wdt.html?cp=4_0_0_5_35_2#concept_b4n_xzw_sr"&gt;Watchdog reset. &lt;/a&gt;&lt;/span&gt;&lt;span&gt;The limitation is that you only get ~2 32KHz clock cycles inside the WDT interrupt handler before the reset is effectuated, so it&amp;#39;s not giving you enough time to store information to flash. Instead you may try to store it to a &amp;quot;non initialized&amp;quot; section of RAM as my colleague Sigurd suggested in this thread: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30075/saving-the-location-of-watchdog-timeout"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/30075/saving-the-location-of-watchdog-timeout&lt;/a&gt; &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>