<?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>52840 WDT causing confilict</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75555/52840-wdt-causing-confilict</link><description>Hi, 
 
 I added watchdog to usbd_ble_uart sample code. 
 BLE connection breaks when sending data to DK via USB. 
 What might be the cause? 
 
 Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 May 2021 02:32:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75555/52840-wdt-causing-confilict" /><item><title>RE: 52840 WDT causing confilict</title><link>https://devzone.nordicsemi.com/thread/311934?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 02:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:074b06e9-e6e5-49c5-9951-7b3a907db8b5</guid><dc:creator>Avadacadabara</dc:creator><description>&lt;p&gt;Remove the watchdog, it works as usbd_ble_uart sample project.&lt;/p&gt;
&lt;p&gt;Adding watchdog to usb-ble sample is an attempt to verify the reason of ble disconnection for another project. Somehow I solved the problem by switching slaves&amp;#39; pin ports...&lt;/p&gt;
&lt;p&gt;But the problem still exists in this simplified project. I&amp;#39;ll keep you updated.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840 WDT causing confilict</title><link>https://devzone.nordicsemi.com/thread/311811?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 12:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98c61a03-2e9d-4681-b377-c64d6469ec09</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;This doesn&amp;#39;t make much sense, and you can confirm that if you remove the watchdog all works again?&amp;nbsp;&lt;/p&gt;
[quote user="Avadacadabara"]I received GATT CONN TIMEOUT when disconnected(That&amp;#39;s an Error 8).[/quote]
&lt;p&gt;The peer likely did a reset or out of range, causing a timeout.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840 WDT causing confilict</title><link>https://devzone.nordicsemi.com/thread/311621?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 02:26:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d495577b-1f43-4f8c-be4a-198aa6beda1a</guid><dc:creator>Avadacadabara</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your advice.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The connection break seems not caused by&amp;nbsp;watchdog reset. I feed the dog in main loop(which includes following commands only and &lt;span&gt;I didn&amp;#39;t receive LOG_INFO placed in WDT callback function&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;nrf_drv_wdt_channel_feed(m_channel_id);&lt;br /&gt; while (app_usbd_event_queue_process());&lt;br /&gt; idle_state_handle();) and WDT reset tick is default 2 sec&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I send data with &amp;#39;\n&amp;#39; endline through USB, usb call back not triggered, I have to reopen the COM port to receive the data via ble_nus, the connection would break right after I receive it.&lt;/p&gt;
&lt;p&gt;Another clue is that if I add&amp;nbsp;NRF_LOG_INFO in front of&amp;nbsp;nrf_drv_wdt_channel_feed();. The system response properly without connection lose. I tried to replace&amp;nbsp;&lt;span&gt;NRF_LOG_INFO&amp;nbsp; with delay yet it won&amp;#39;t help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I received GATT CONN TIMEOUT when disconnected(That&amp;#39;s an Error 8).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Your help is appreciated!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52840 WDT causing confilict</title><link>https://devzone.nordicsemi.com/thread/311464?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 12:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0fbc154-7ccd-4b4c-b032-294b361a7531</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I suggest to start by taking a look at the watchdog example:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/hardware_driver_wdt.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/hardware_driver_wdt.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would have started at looking at the reload value you have set (NRFX_WDT_CONFIG_RELOAD_VALUE), and possible increase it. Secondly look at how often you are able to call&amp;nbsp;nrf_drv_wdt_channel_feed(), and make sure it is called more frequently than set by the reload value (&lt;span&gt;NRFX_WDT_CONFIG_RELOAD_VALUE)&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>