<?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 of WDT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24959/reconfigure-of-wdt</link><description>hi, 
 i need to reconfigure the WDT and also change the timer value in WDT. is it possible to do that. 
 i tried but i can not. 
 1.configured wdt with timer 5sec.
2.i had reconfigued wdt with timer 1 sec. 
 before reconfigue i have clear the start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Sep 2017 19:12:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24959/reconfigure-of-wdt" /><item><title>RE: Reconfigure of WDT</title><link>https://devzone.nordicsemi.com/thread/98282?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 19:12:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc559be3-64aa-4f5e-a6bc-2f432f3bb8d3</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;Good to know :) thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure of WDT</title><link>https://devzone.nordicsemi.com/thread/98281?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 19:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b93320d6-8887-458a-b7bb-4519d5679cdf</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;The watchdog must be configured before it is started. After it is started, the watchdog’s configuration registers, which comprise registers CRV, RREN, and CONFIG, will be blocked for further configuration.&lt;/p&gt;
&lt;p&gt;If you need to reconfigure WDT after it&amp;#39;s started, you should instead look into using the RTC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure of WDT</title><link>https://devzone.nordicsemi.com/thread/98280?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 14:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea68ea8b-7d21-4569-ab75-031863d397f9</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;Still not making yourself clear. The use of that code is to reset the timer that causes the watchdog to reboot the microcontroller.. &lt;a href="https://developer.mbed.org/cookbook/WatchDog-Timer"&gt;developer.mbed.org/.../WatchDog-Timer&lt;/a&gt; Are you sure a watchdog timer is the best option to solve your need?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure of WDT</title><link>https://devzone.nordicsemi.com/thread/98279?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 14:42:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44b5f217-e51b-4d98-b073-086e1cd032eb</guid><dc:creator>Satheeshkumar</dc:creator><description>&lt;p&gt;NRF_WDT-&amp;gt;RR[0] = WDT_RR_RR_Reload; what is the use of this code when will reload the value after reset?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure of WDT</title><link>https://devzone.nordicsemi.com/thread/98278?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 14:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2cc0d70-5fb3-4fea-8028-f5984270ad7c</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;Extern? You mean extend? I&amp;#39;m not sure I understand what you want to do. If you want to change the wdt reset time &amp;quot;online&amp;quot; I guess you could test making #define WATCHDOG_SECONDS into a variable, and then calling wdt_init(); again if you change the variable.. Not sure if it will work though, you can try :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure of WDT</title><link>https://devzone.nordicsemi.com/thread/98277?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 14:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13002463-6e93-4f88-96d7-455af9fb4038</guid><dc:creator>Satheeshkumar</dc:creator><description>&lt;p&gt;according to project, the process may takes minimum 5 sec to max 20sec. if i have configured wdt upto 20sec, may be my process can be finished within 10sec, i should wait another 10sec to wdt reset. that why i need to extern the timer. i mean, if i configure wdt 1 sec, i can extern to another 1 sec and another 1 sec like that without wdt reset. i can not predict my process of project, when will finish. i could not do manual hard reset. i need to auto reset function. please help me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure of WDT</title><link>https://devzone.nordicsemi.com/thread/98276?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 14:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9a26f25-4fa7-4f76-a3ec-bfd689215d58</guid><dc:creator>Satheeshkumar</dc:creator><description>&lt;p&gt;thanks for reply, please help me to extern the wdt timer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reconfigure of WDT</title><link>https://devzone.nordicsemi.com/thread/98275?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 11:56:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c12e9c36-8879-428e-867a-7f6cd5433422</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;This works for me (SDK 14.0.0 with s132) ..&lt;/p&gt;
&lt;p&gt;In main.c:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define WATCHDOG_SECONDS 5 /**&amp;lt; Time in [seconds] before watchdog resets MCU. */

/**@brief Function for initializing the watchdog.
 *
 * @details This function will be called in case of the watchdog timer not being reset at the end of the big while
 *
 * @warning This may or may not cause resets on errors when initialized
 */
void wdt_init(void){
    //Configure Watchdog. a) Pause watchdog while the CPU is halted by the debugger.  b) Keep the watchdog running while the CPU is sleeping.
	NRF_WDT-&amp;gt;CONFIG = (WDT_CONFIG_HALT_Pause &amp;lt;&amp;lt; WDT_CONFIG_HALT_Pos) | ( WDT_CONFIG_SLEEP_Run &amp;lt;&amp;lt; WDT_CONFIG_SLEEP_Pos);   
	NRF_WDT-&amp;gt;CRV = WATCHDOG_SECONDS*32768;  // timout limit
	NRF_WDT-&amp;gt;RREN |= WDT_RREN_RR0_Msk;      // Enable reload register 0
	NRF_WDT-&amp;gt;TASKS_START = 1;               // Start the Watchdog timer
}

int main(void){
    
    wdt_init();     //Initialize watchdog

    for(;;){
        // Application stuff
         NRF_WDT-&amp;gt;RR[0] = WDT_RR_RR_Reload;  //Reload watchdog register 0
         power_manage();
    }     
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>