<?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>How to stop watch dog</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15758/how-to-stop-watch-dog</link><description>hi, I&amp;#39;am working in a project. I start a watch dog in that project,but I need to stop the watch dog something.And I don&amp;#39;t know how to stop, can anybody help me.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Aug 2016 07:16:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15758/how-to-stop-watch-dog" /><item><title>RE: How to stop watch dog</title><link>https://devzone.nordicsemi.com/thread/60147?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2016 07:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0240fa59-78c6-40f4-8358-8d04906b2fc8</guid><dc:creator>james</dc:creator><description>&lt;p&gt;thanks.It works fine now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to stop watch dog</title><link>https://devzone.nordicsemi.com/thread/60146?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2016 06:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3ddb98d-68f1-4008-9610-115f860a9c28</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;sorry for the late answer, it should be ok to feed the watchdog in the interrupt handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to stop watch dog</title><link>https://devzone.nordicsemi.com/thread/60145?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 07:17:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ef6bcd4-c3b2-47d0-a943-082be300e987</guid><dc:creator>james</dc:creator><description>&lt;p&gt;I feed the dog in the interrupt of app timer. Is that ok?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to stop watch dog</title><link>https://devzone.nordicsemi.com/thread/60144?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 07:15:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ddc07a8-bcc2-45cf-8922-f538cbdd20d2</guid><dc:creator>james</dc:creator><description>&lt;p&gt;It didn&amp;#39;t reset until I make the external IO interrupt after DFU.And after I make several  time of external IO interrupt , it become normal and don&amp;#39;t reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to stop watch dog</title><link>https://devzone.nordicsemi.com/thread/60143?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 06:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cda4b66c-5f57-49b2-9f1e-f5fe983b840e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;if you feed the watchdog in the bootloader then after the dfu a reset will be generated and will also reset the watchdog registers, where you feed the watchdog depends on what you are trying to achieve?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to stop watch dog</title><link>https://devzone.nordicsemi.com/thread/60142?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 06:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77ce2bdf-b69a-48e8-a7f2-22c9939e43a2</guid><dc:creator>james</dc:creator><description>&lt;p&gt;how should I feed the watch dog in bootloarder. I had try to feed the dog like that,but  it couldn&amp;#39;t work fine after dfu.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**@brief Function for initialization of time handle.
 */
//timer calender
static void timer_index_feed_wd( void *p_context )
{
   //fed the dog
	 NRF_WDT-&amp;gt;RR[0] = WDT_RR_RR_Reload;
}


/**@brief Function for initializing the timer handler module (app_timer).
 */
static void timers_init(void)
{
    // Initialize timer module, making it use the scheduler.
    APP_TIMER_APPSH_INIT(APP_TIMER_PRESCALER, APP_TIMER_MAX_TIMERS, APP_TIMER_OP_QUEUE_SIZE, true);
	
	  uint32_t err_code;
	  err_code = app_timer_create( &amp;amp;FEED_WD_TIMER, APP_TIMER_MODE_REPEATED, timer_index_feed_wd );
    APP_ERROR_CHECK(err_code); 
}

main()
{
    .....
if (dfu_start || (!bootloader_app_is_valid(DFU_BANK_0_REGION_START)))
    {
				DisplayDFU( );
			  
				//stop timer
			  err_code = app_timer_start(FEED_WD_TIMER, FEED_WATCH_DOG_PERIOD, NULL);
				APP_ERROR_CHECK(err_code);
			
        // Initiate an update of the firmware.
        err_code = bootloader_dfu_start();
        APP_ERROR_CHECK(err_code);
    }

    if (bootloader_app_is_valid(DFU_BANK_0_REGION_START) &amp;amp;&amp;amp; !bootloader_dfu_sd_in_progress())
    {
        // Select a bank region to use as application region.
        // @note: Only applications running from DFU_BANK_0_REGION_START is supported.	
				err_code = app_timer_stop( FEED_WD_TIMER );
				APP_ERROR_CHECK(err_code);
			
        bootloader_app_start(DFU_BANK_0_REGION_START);
    }
 ....
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to stop watch dog</title><link>https://devzone.nordicsemi.com/thread/60141?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 06:40:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e47f0ba6-ed79-4150-b2e9-7facabe183c3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;you cannot stop the watchdog once it is started. It can configured to pause while CPU is sleeping or debugger halted the CPU (in the CONFIG register) but in normal mode you cannot stop it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>