<?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: store debug data for reboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63262/wdt-store-debug-data-for-reboot</link><description>Hi, 
 I have an unkown problem in my nrf52 application. It happens rarely, so I have no idea where to look at the moment. The only thing I know is that the WDT works and resets the device (looking at RESETREAS register). 
 My idea would be to store some</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Jul 2020 14:17:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63262/wdt-store-debug-data-for-reboot" /><item><title>RE: WDT: store debug data for reboot</title><link>https://devzone.nordicsemi.com/thread/258149?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2020 14:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:485d92fe-2106-4b93-8aee-5041a5d027b9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;A colleague of mine said that you can try this solution:&lt;/p&gt;
&lt;p&gt;&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;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The RAM is not reset during a &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html#unique_832471788" rel="noopener noreferrer" target="_blank"&gt;WDT reset&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WDT: store debug data for reboot</title><link>https://devzone.nordicsemi.com/thread/258142?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2020 14:08:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44f9ad99-9c84-4cda-9949-4b7e4a13864d</guid><dc:creator>lubedence</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am pretty sure it is not a WDT configuration problem. Even though, I would be still interested how to tackle such a problem.&lt;/p&gt;
&lt;p&gt;Regarding UART: already tried that, is too slow :(&lt;/p&gt;
&lt;p&gt;Regarding RTT: I would be very happy if I do not need to use RTT + JLink, but I guess I have to try that as a last resort.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Isn&amp;#39;t there another solution?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WDT: store debug data for reboot</title><link>https://devzone.nordicsemi.com/thread/258136?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2020 13:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6be93369-f667-4344-ae33-f48038f23410</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you tried to log something in the WDT event handler? As you say, you only have two cycles of the LFCLK, but if you use RTT logging I believe you will be able to log some information. (UART is too slow, so no point in using that).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From where do you feed the WDT? Is it possible that you only feed it in certain events, and that you simply didn&amp;#39;t have any events firing causing the WDT to time out?&lt;/p&gt;
&lt;p&gt;What is your watchdog configuration? (pause/run in sleep/halt) You can check this by reading out 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" rel="noopener noreferrer" target="_blank"&gt;CONFIG register&lt;/a&gt; after the WDT is initialized.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>