<?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>MCU hanging due to Segger RTT log</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68746/mcu-hanging-due-to-segger-rtt-log</link><description>I am using NRF52840 custom board and SEGGER RTT log for debugging. 
 
 I set the NRF_LOG_BACKEND_RTT_ENABLED 1 and NRF_LOG_ENABLED 1 
 The following is a screenshot of my settings 
 
 I am able to have my debug log printing on RTT viewer. However, if</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Nov 2020 13:55:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68746/mcu-hanging-due-to-segger-rtt-log" /><item><title>RE: MCU hanging due to Segger RTT log</title><link>https://devzone.nordicsemi.com/thread/282100?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 13:55:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7e45590-f5e2-454f-b390-cf9347334884</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Seeing any log messages after setting NRF_LOG_ENABLED to 0 in your project should not be possible. Can you tell me more about your setup, as what you&amp;#39;re describing sounds impossible. Are you using an nRF52 DK as a debugger? Are you sure that you&amp;#39;re rebuilding and flashing the edited example every time you make any changes?&lt;/p&gt;
&lt;p&gt;Also, what SDK example project is this based on? Are you able to recreate the behavior on a Development Kit?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCU hanging due to Segger RTT log</title><link>https://devzone.nordicsemi.com/thread/281990?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 09:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9f04354-4cbe-448e-9c12-8260b932e0e2</guid><dc:creator>potter1234</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;It is the nRF52840 you are referring to that keeps running, correct?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;--&amp;gt; Yes, it was running but somehow it hanged after a few seconds. And&amp;nbsp;nRF52840&amp;nbsp;would be normal after I reconnect to SEGGER RTT log again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you set the NRF_LOG_ENABLED to 0 are you able to see any log messages at all?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; --&amp;gt; Yes, I can still see log printing even after setting it to 0&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCU hanging due to Segger RTT log</title><link>https://devzone.nordicsemi.com/thread/281824?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 13:42:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe231464-5495-4012-8414-89614ec96377</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user=""]if I disconnect my device to J-Link debugger, the mcu keeps running for around 10 seconds and then stops.[/quote]
&lt;p&gt;&amp;nbsp;It is the nRF52840 you are referring to that keeps running, correct?&lt;/p&gt;
&lt;p&gt;I think the correct workaround would be to decrease the&amp;nbsp;&lt;span&gt;SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN (to 16) as this is what is used in most of our example projects. It might be that the MCU needs some time to go through the entirety buffer when this parameter is set too high.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you set the NRF_LOG_ENABLED to 0 are you able to see any log messages at all?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>