<?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/OTA Bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9717/wdt-ota-bootloader</link><description>Hi, 
 I&amp;#180;m using a watchdog in my Application. Furthermore I need the ability to use the ota/dfu functionality.
I trigger the bootloader with a simple beacon. 
 if((memcmp(addr.addr, &amp;amp;adv_data.p_data[9], 6)) == 0) 
 sd_power_gpregret_clr(0xff); 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Oct 2015 13:09:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9717/wdt-ota-bootloader" /><item><title>RE: WDT/OTA Bootloader</title><link>https://devzone.nordicsemi.com/thread/35957?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 13:09:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04e9a973-63da-476d-9144-09e4989c07fc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The problem is that there are no events during advertisement. Thus, WDT is not being fed in time as @Maulik Patel mentioned.&lt;/p&gt;
&lt;p&gt;Another solution to creating an app timer instance is to lower the APP_ADV_TIMEOUT_IN_SECONDS which which will result in BLE_GAP_EVT_TIMEOUT every time the advertisement times out. Program execution will return to the endless loop once the event has been serviced and reload the timer. Note that advertising is restarted in this event, so it will never really time out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WDT/OTA Bootloader</title><link>https://devzone.nordicsemi.com/thread/35956?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 09:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c43e92da-fb91-4b06-968c-7bc0a57fa74f</guid><dc:creator>SKo</dc:creator><description>&lt;p&gt;I noticed a reset while debugging the bootloader. The WDT RUNNSTATUS Register changed from 1 running, to 0 not running. I think this reset is caused by the wdt?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WDT/OTA Bootloader</title><link>https://devzone.nordicsemi.com/thread/35955?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 08:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d422ebf0-c5c8-4da0-bf6c-9c965a4648cb</guid><dc:creator>Maulik Patel</dc:creator><description>&lt;p&gt;Hi SKo,&lt;/p&gt;
&lt;p&gt;Can you make sure that your application does not go into sleep in function sd_app_evt_wait(). I mean if there is no any event from SD up to Watch Dog Timeout then your chip will cause a Watch Dog Reset.
What you can try is, create and add a dummy timer which is in repeated mode and keep expiring every second or so, which will help your bootloader in exiting from sd_app_evt_wait() function and reloading a watchdog timer and then again go into sleep if no activity is there.&lt;/p&gt;
&lt;p&gt;I hope this helps you.&lt;/p&gt;
&lt;p&gt;Regards,
Maulik Patel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>