<?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>RTT Logging is causing lags and WDT Resets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74476/rtt-logging-is-causing-lags-and-wdt-resets</link><description>I have a freeRTOS based system and my Logging Thread, which is based on the examples has odd behviour when used in conjunction with the WDT. When I first program the board, the RTT Logging seems to lag, causing the WDT to not re-feed. Causing a System</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Apr 2021 12:43:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74476/rtt-logging-is-causing-lags-and-wdt-resets" /><item><title>RE: RTT Logging is causing lags and WDT Resets</title><link>https://devzone.nordicsemi.com/thread/307489?ContentTypeID=1</link><pubDate>Thu, 29 Apr 2021 12:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e93d9d1b-625a-47cb-9e8a-67fca5d54517</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. Yes, the behavior makes sense if you are encountering this bug. We are planning to fix it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT Logging is causing lags and WDT Resets</title><link>https://devzone.nordicsemi.com/thread/307099?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 17:43:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90d5e638-730d-4578-8e53-3e34ee5e8889</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;Looks like a similar error to this:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63998/freertos-wdt-sdk17-problem"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/63998/freertos-wdt-sdk17-problem&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a plan to fix this issue in a new SDK?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I removed the following line in&amp;nbsp;nrf_drv_clock_init() from nrf_drv_clock.c which seems to fix the issue.&lt;/p&gt;
&lt;p&gt;// if (nrf_wdt_started())&lt;br /&gt;// {&lt;br /&gt;// m_clock_cb.lfclk_on = true;&lt;br /&gt;// }&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT Logging is causing lags and WDT Resets</title><link>https://devzone.nordicsemi.com/thread/307093?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 17:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55247be6-ad62-4082-b126-f7771fe21948</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;I&amp;#39;ve traced this down to a vTaskDelay which is not returning the first time you run the code after programming.&amp;nbsp; If I reset the the chip on the IDE and run again everything it fine.&amp;nbsp; I was using SDK 17.0.2.&amp;nbsp; I reverted back to SDK 16.0 which I&amp;#39;ve test before and everything works fine.&amp;nbsp; So this seems to be related to SDK 17.0.2 and its freeRTOS library&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT Logging is causing lags and WDT Resets</title><link>https://devzone.nordicsemi.com/thread/307086?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 16:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd21ca13-dccc-4b7c-a986-bfa845aa3e29</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;1.&amp;nbsp; Yes it still hangs&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp; Yes same behavior with the UART backend&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp; Using Putty&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT Logging is causing lags and WDT Resets</title><link>https://devzone.nordicsemi.com/thread/306951?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 08:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a18766d-a4e4-492a-93f9-be490f8aa8c7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. I have a few more follow up questions if you don&amp;#39;t mind:&lt;/p&gt;
&lt;p&gt;1. Have you tried to extend the WD timeout to more than a few seconds to see if the program only hangs temporarily?&lt;/p&gt;
&lt;p&gt;2. Do you get the same behavior if you select the UART backend?&lt;/p&gt;
&lt;p&gt;3. How are you viewing the RTT logs, in SES or RTTViewer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT Logging is causing lags and WDT Resets</title><link>https://devzone.nordicsemi.com/thread/306928?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 07:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63fc28e2-84c4-40f4-af64-09edbe39d628</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;I&amp;#39;ve made sure that I&amp;#39;m not using Blocking mode in my sdk_config.h.&amp;nbsp; But still the WDT module won&amp;#39;t feed.&amp;nbsp; I&amp;#39;ve tried placing the WDT feed in a task with a higher priorty than the Logging thread, but its still getting blocked.&amp;nbsp; Which means its happening in the backend module somehow.&lt;/p&gt;
&lt;p&gt;Oddly its only an issue after each programming, but if I restart the debug from the IDE is runs fine.&amp;nbsp; Could it be a JLink driver issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT Logging is causing lags and WDT Resets</title><link>https://devzone.nordicsemi.com/thread/306912?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 06:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a918bf6-0303-4002-b5a7-15ed5d3e5db7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The RTT backend shouldn&amp;#39;t become blocking unless you have selected the &amp;#39;BLOCK&amp;#39; mode in your configuration settings:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1619505824666v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Could you please check that you don&amp;#39;t have this mode selected? I can&amp;#39;t think of any other obvious reasons for why logging is preventing the WDT from being fed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>