<?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 callback save reason of timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68722/watchdog-callback-save-reason-of-timeout</link><description>Hello all, 
 I use a nrf9160. In my program, I would like to use a watchdog to be sur than my application is running. 
 1. I would like to save some data in memory without clean it on restart (reaseon of crashed, differents states), first I would like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Nov 2020 15:17:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68722/watchdog-callback-save-reason-of-timeout" /><item><title>RE: Watchdog callback save reason of timeout</title><link>https://devzone.nordicsemi.com/thread/281878?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 15:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60e7f2fa-d094-49ea-860f-eb5a41968cb7</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Oggier,&lt;/p&gt;
&lt;p&gt;For your questions:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Zephyr has exactly what you need which is called&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/storage/nvs/nvs.html"&gt;Non-Volatile Storage (NVS)&lt;/a&gt;&lt;span&gt;. The nvs sample is located in ncs\zephyr\samples\subsys\nvs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. I tested the watchdog sample in&amp;nbsp;ncs\zephyr\samples\drivers\watchdog. According to &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/12369"&gt;a bug report related to this issue,&lt;/a&gt;&amp;nbsp;I need to use &amp;quot;&lt;/span&gt;&lt;span&gt;wdt_setup&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;wdt&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;WDT_OPT_PAUSE_HALTED_BY_DBG&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&amp;quot; in order to set breakpoint in the wdt_callback function. Printk function will not give any printout since the system reset time is very short.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>