<?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>I have problem with SDK13 wdt when central mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22968/i-have-problem-with-sdk13-wdt-when-central-mode</link><description>SDK 13 nRF52, S132, central mode 
 code init: 
 void wdt_init (void) //Configure WDT.
 
 {
uint32_t err_code;
nrf_drv_wdt_config_t config = NRF_DRV_WDT_DEAFULT_CONFIG;
err_code = nrf_drv_wdt_init(&amp;amp;config, wdt_event_handler);
APP_ERROR_CHECK(err_code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jun 2017 10:03:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22968/i-have-problem-with-sdk13-wdt-when-central-mode" /><item><title>RE: I have problem with SDK13 wdt when central mode</title><link>https://devzone.nordicsemi.com/thread/90372?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 10:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1c30607-0d2a-45ac-9197-896b33deb72d</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Yes, thanks, I will use a app timer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have problem with SDK13 wdt when central mode</title><link>https://devzone.nordicsemi.com/thread/90371?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 09:07:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffee3b04-7b8a-4152-82f8-314b7b40d8fe</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;As in the description of the sd_app_evt_wait() function says, the function will wait for application event. If you don&amp;#39;t have application event, you will stay in that function. This explain why you can&amp;#39;t get to nrf_drv_wdt_channel_feed(). And why you get there when you connect to a peripheral.&lt;/p&gt;
&lt;p&gt;Our suggestion is either using a timer to do wdt feeding, or you replace sd_app_evt_wait() with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;__WFE();
__SEV(); 
__WFE();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This way you will wake up when there is any BLE event (when softdevice is active), not just application event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>