<?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>Reconfigure watch dog after Soft Reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15201/reconfigure-watch-dog-after-soft-reset</link><description>Hi , 
 We are using NRF52, S132 softdevice ... Whenever we do hard reset everything works fine .. But if I do flash from my IDE (using eclipse,this is a soft reset) and it goes into a WDT reboot . 
 How can I reconfgure WDT in this case ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jul 2016 07:49:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15201/reconfigure-watch-dog-after-soft-reset" /><item><title>RE: Reconfigure watch dog after Soft Reset</title><link>https://devzone.nordicsemi.com/thread/58040?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2016 07:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:796e214f-8c5d-4157-8a58-ed791f97cd45</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Thangaraj: You can use &amp;quot;r&amp;quot; command, make sure you have selected the reset type (RSetType) to 2 = RESETPIN.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure watch dog after Soft Reset</title><link>https://devzone.nordicsemi.com/thread/58039?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 15:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7139c20a-cf00-4fd7-adaa-887b3d3abe6e</guid><dc:creator>Thangaraj</dc:creator><description>&lt;p&gt;We are using JLinkExe , Is there  Any comment that is similiar to &amp;quot;nrfjprog -p&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure watch dog after Soft Reset</title><link>https://devzone.nordicsemi.com/thread/58038?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 12:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:342c471a-f83e-4cb3-bd5f-0a3950fe37b8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t think it will stop the WDT. So a reset needed.&lt;/p&gt;
&lt;p&gt;I would suggest to do a pin reset (nrfjprog -p) after you erase the chip. Or you can put a delay to make sure the WDT trigger the reset before you flash the new firmware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure watch dog after Soft Reset</title><link>https://devzone.nordicsemi.com/thread/58037?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 11:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dacea3c6-cb0f-42b5-abef-0d5f0c27e321</guid><dc:creator>Thangaraj</dc:creator><description>&lt;p&gt;If do erase , Will WDT Config will reset ?&lt;/p&gt;
&lt;p&gt;Am doing erase before flashing everytime&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure watch dog after Soft Reset</title><link>https://devzone.nordicsemi.com/thread/58036?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 09:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c92893aa-5a63-48da-9c91-1bde963d1f5c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Ok, I see. Initialize the peripheral can take too much time and without being feed the dog will reset the board.
If you want to avoid that, I would suggest to do an erase all on your board, before you flash the new firmware. This is to avoid the WDT from running and reset the board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure watch dog after Soft Reset</title><link>https://devzone.nordicsemi.com/thread/58035?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 09:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:176d0dad-9100-4f7d-8d21-ac22f0bce5d6</guid><dc:creator>Thangaraj</dc:creator><description>&lt;p&gt;Inside peripheral init I have SPI UART I2C inits , display and other sensor inits too ..
When I do Hardreset I mean remove my battery and connect again WDT is not rebooting, When I do flash from IDE , This time its a softreset and the previous WDT configuration remain same and the board reboots ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure watch dog after Soft Reset</title><link>https://devzone.nordicsemi.com/thread/58034?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 07:59:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e118839-35d3-459a-bbe8-f346675ef40c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Thangaraj: What do you have inside peripheral_init() ?&lt;/p&gt;
&lt;p&gt;How could the WDT reboots the system when it has not been initialized and started ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure watch dog after Soft Reset</title><link>https://devzone.nordicsemi.com/thread/58033?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 03:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbe3b962-ebbb-4d20-86b9-ae4008f75054</guid><dc:creator>Thangaraj</dc:creator><description>&lt;p&gt;This is my flow .&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;main(){
gpio_init();
peripheral_init(); // here it reboots everytime if I do a flash and it works after a wdt reset 
timers_init()&amp;#39;
watch_dog_init();
while(1){
feed();
do_something();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I made sure reset is because of wdt by reading RESETREAS register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure watch dog after Soft Reset</title><link>https://devzone.nordicsemi.com/thread/58032?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 11:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4aa126f-d637-4d7a-9ad4-2476b23ff120</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Thangaraj: How did you feed the watchdog ?
Do you mean that every time, the first run after you program the firmware, you can&amp;#39;t feed the dog and it will trigger a WDT reset ?
Have you experienced the same with our example ? If you test with your code , could  you edit your question and attach the code ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>