<?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>Having watchdog timer timeout when advertising without timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40978/having-watchdog-timer-timeout-when-advertising-without-timeout</link><description>Hi, 
 I am using nRF5_SDK_12.3.0 and based on \ble_peripheral\ble_app_uart ( with softdevice of s130) to build my application. 
 Recently, I tried to add the wdt to my nrf51822 firmware. 
 So I config the following in sdk_config.h as follows: 
 WDT_ENABLED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Nov 2018 13:35:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40978/having-watchdog-timer-timeout-when-advertising-without-timeout" /><item><title>RE: Having watchdog timer timeout when advertising without timeout</title><link>https://devzone.nordicsemi.com/thread/159578?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 13:35:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66c30058-44de-4a01-85d5-f9243b39bbe3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I guess what you see is that even though your application doesn&amp;#39;t get any interrupts (which would feed the watchdog), then you still have some softdevice interrupts, which will enable the CPU, and hence the WDT for a short amount of time. If the interrupt&amp;nbsp;cause an application layer interrupt, your main loop (for (;;)) will not be called, and you will not feed it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A solution could be to enable &lt;a href="https://devzone.nordicsemi.com/tutorials/b/software-development-kit/posts/radio-notification"&gt;radio notifications&lt;/a&gt;&amp;nbsp;(old tutorial, but it still work with the current SDKs), to get an application layer interrupt before the radio events, which you can use to feed the watchdog.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>