<?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>RESETREAS issue after WD Reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39254/resetreas-issue-after-wd-reset</link><description>Hi, I am using nRF5_SDK_15.0.0_a53641a. 
 
 I&amp;#39;m using code below to start WD and I&amp;#39;m not feeding WD. 
 
 
 After WD reset, I&amp;#39;m looking at RESETREAS register and DOG bit is not high, only PINRESET is high. 
 What am I missing? 
 
 I found that in in system_nrf52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Oct 2019 20:25:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39254/resetreas-issue-after-wd-reset" /><item><title>RE: RESETREAS issue after WD Reset</title><link>https://devzone.nordicsemi.com/thread/217848?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 20:25:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ded7181-30bf-4e15-8a83-ec02e87c7600</guid><dc:creator>Sigurd</dc:creator><description>[quote user="owain"]In this case can one reinitialise the WDT or will it just run on; possibly expire and reset the system.[/quote]
&lt;p&gt;&amp;nbsp;The WDT will still be running. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45683/watchdog-enabled-across-resets/180045#180045"&gt;this post&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If the WDT is enabled by the application, then it must be feed by the bootloader during the DFU process to avoid the device to reset prematurely.&amp;nbsp;Watchdog support to the bootloader code was added in SDK 15.0 (with a bug-fix for this in SDK 15.2). So for SDK 15, if the application had enabled watchdog before resetting to the bootloader, it is automatically fed in the bootloader. If you are using an older SDK version, take a look at e.g. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/28106/dfu-and-watchdog-timer-wdt-reset"&gt;this post&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESETREAS issue after WD Reset</title><link>https://devzone.nordicsemi.com/thread/217828?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 16:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20303ebb-c56c-4f02-a600-bfbf1176d236</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;So NVIC System Reset which does a reset over AICR is a soft reset and does not reset the WDT.&lt;br /&gt;In this case can one reinitialise the WDT or will it just run on; possibly expire and reset the system.&lt;br /&gt;&lt;br /&gt;So when we do a DFU, from our application code; which transfers control to the bootrom for the DFU this must be a forced watchdog reset; otherwise we would be seeing WD timeouts ewhen doing DFU which is not the case.&lt;/p&gt;
&lt;p&gt;This may explain some of the unexpected restarts we have been seeing occasionally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESETREAS issue after WD Reset</title><link>https://devzone.nordicsemi.com/thread/217728?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 10:05:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:879fd811-b7be-4b6e-aafe-69f598d3dfed</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Please be aware of what sources that are resetting, and&amp;nbsp;not resetting the watchdog. See &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=3_0_0_4_2_5_7#concept_res_behav"&gt;this link.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also be aware of how the watchdog CONFIG register is set. See &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/wdt.html?cp=3_0_0_5_35_3_8#register.CONFIG"&gt;this link&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you are still having issues with this, please create a new support case. See &lt;a href="https://devzone.nordicsemi.com/support/add"&gt;this link.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESETREAS issue after WD Reset</title><link>https://devzone.nordicsemi.com/thread/217608?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 17:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4ffb7a5-1c0d-4a8e-b162-0e3648464ce4</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;I have done nothing with the RESETREAS rgeister. I just see its contents using my debugger.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Scenario I have is we are going through our bootrom; starting our application and I am seeing an unexpected reset. We don&amp;#39;t start the watchdog until we start our application.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Selecting our application project I was seeing a restart and&amp;nbsp;NOT hitting any fault handler or NVIC reset breakpoint; so I suspected a watchdog; hence setting a breakpoint in the bootrom early on before the errata stuff is processed. In this situation I see the DOG and Reset bits set. If I restart via the debugger then I only the Reset bit.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I may only be seeing this issue when rhe device is connected on a segger JLink. Selecting our application project I was seeing a restart and not hitting any fault handler breakpoint; so I suspected a watchdog. I don&amp;#39;t understand this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESETREAS issue after WD Reset</title><link>https://devzone.nordicsemi.com/thread/217601?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 16:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e59ed48-436a-4e8e-a7b9-95bedc1aec50</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi Owain,&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45524/enter-system-off-use-triggered-from-detect-signal-from-gpio-to-wake-up-but-register-is-not-correct"&gt;this post&lt;/a&gt;.&amp;nbsp;Quote:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;Are you clearing the RESETREAS register after you read it out on startup? The reason I ask is that workaround for errata 136 implemented in system_nrf52.c will clear the other bits if the PINRESET&amp;nbsp;bit is set. In other words, you can expect to see this behavior if you don&amp;#39;t clear the register, and you have done a pinreset&amp;nbsp;since the last power-on reset. &amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESETREAS issue after WD Reset</title><link>https://devzone.nordicsemi.com/thread/217480?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 09:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fffca08f-9ad9-4734-8d3f-559bef4f5971</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;I too have stumbled upon this problem.&lt;br /&gt;&lt;br /&gt;I am getting a genuine watchdog reset but errata136 is wiping the status from the watchodg register.&lt;br /&gt;&lt;br /&gt;I was relyng on this as designed to log reset reasons; why is this bit being cleared by this errata.&lt;br /&gt;And when is the bug being fixed so we may use this status register properly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESETREAS issue after WD Reset</title><link>https://devzone.nordicsemi.com/thread/152012?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 11:03:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b1bed59-5dcd-4de7-a0d5-29a12a379eb6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="69482" url="~/f/nordic-q-a/39254/resetreas-issue-after-wd-reset"]After WD reset, I&amp;#39;m looking at RESETREAS register and DOG bit is not high, only PINRESET is high.&amp;nbsp; What am I missing?[/quote]
&lt;p&gt;After PINRESET bit is set, you need to clear the&amp;nbsp;&lt;span&gt;RESETREAS register&amp;nbsp;&lt;/span&gt;yourself after you have read the register and taken&amp;nbsp;appropriate actions based on the value. If you don&amp;#39;t clear the register, the DOG bit will always be masked out after a&amp;nbsp;&lt;span&gt;PINRESET.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Snippet:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    do_something_based_on_resetreas_value();
    // Action taken. Now clear the flag
    NRF_POWER-&amp;gt;RESETREAS = 0xFFFFFFFF;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>