<?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>Log and shell through RTT backend don&amp;#39;t play nicely</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84493/log-and-shell-through-rtt-backend-don-t-play-nicely</link><description>Hi Nordic Support, 
 I&amp;#39;m running into an issue with ncs v1.8.0 directing log and shell to RTT backend. 
 Objective: Using nRF NCS / nRF52840dk - I want to dedicate 1x UART only for SMP Server interface and use RTT for logging AND shell backend. 
 How</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jul 2022 06:45:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84493/log-and-shell-through-rtt-backend-don-t-play-nicely" /><item><title>RE: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/377994?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 06:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67d4ccc9-d085-43f2-ab1f-b00d2c9f1638</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This case is getting pretty old, and opening a new discussion in the middle of this one will make it messier I&amp;#39;m afraid. Can you create a new ticket instead and link to this one please? In the meantime I can recommend reading through the &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/41488"&gt;reported Zephyr issue&lt;/a&gt; and make sure you have tried what is suggested there. It&amp;#39;s also recommended to move to the latest NCS/Zephyr version if you&amp;#39;re starting on a new project.&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: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/377929?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 16:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7ccd4e2-8925-4efb-b263-09c34e56cc1b</guid><dc:creator>ahoward</dc:creator><description>&lt;p&gt;&lt;span style="font-weight:400;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;I am experiencing the same problem directing shell to both RTT and UART backend. As other have found above, uart outputs as expected until the RTT Viewer is disconnected. Then, some additional prints are outputted before uart stops.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;I have looked through the other messages in this thread and cherry-picked the commits mentioned later in this thread from backport 2.7 of the Zephyr Project, but had no change in outcome. Here are some snips of the issue I&amp;rsquo;m seeing, which aligns with what was found in previous responses.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/uartStopsPrintingAfterRTTDisconnect.PNG" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/dropped_5F00_messages.PNG" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;I am using the sample in zephyr/samples/subsys/shell/shell_module with the nRF52850dk.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Below is the zipped shell module sample including my board overlay for the nRF52840, build folder for reference, and prj.conf with added configs CONFIG_SHELL_BACKEND_RTT=y and CONFIG_SHELL_BACKEND_UART=y. I have also added a&amp;nbsp; while(1) loop with prints in main to show this issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/shell_5F00_module.zip"&gt;devzone.nordicsemi.com/.../shell_5F00_module.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Is there something I&amp;rsquo;m missing in regards to&amp;nbsp;shell having multiple backends?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Thank you in advance for your help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Alyssa&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/363479?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 08:37:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3c148fc-1d7d-4ffe-82b6-75895f7bf6a7</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I finally heard back from the developers, as they&amp;#39;ve been out of office during Easter. This sounds similar to &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/41488"&gt;this issue in Zephyr&lt;/a&gt; from some time ago. If was fixed in Zephyr and backported to &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/42541"&gt;Zephyr v2.7 here&lt;/a&gt;. Since NCS v1.8.0 it should be possible to cherry-pick commits from this backport PR since it&amp;#39;s based on Zephyr v2.7.&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: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/361530?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 13:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:097646b9-df0b-4db7-b4a0-c60c9f91df43</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;We have started investigation, but I have not received any progress worth mentioning as of yet I&amp;#39;m afraid. I&amp;#39;m very sorry about the delay on this issue, but it wasn&amp;#39;t as straight forward as initially expected. Thank you for your patience!&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: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/360889?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 17:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:844ec282-13a8-4eee-91ed-1a9d8543f30f</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;any info yet? it&amp;#39;s been quite some time..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/358399?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 11:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db6b4538-4478-4e3c-be61-335cdb0762d7</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;No, I&amp;#39;m afraid we haven&amp;#39;t made any progress yet, but we&amp;#39;re looking into it, and I pinged them requesting an update. Hopefully I have some more info for you soon. I&amp;#39;m sorry this is taking so long.&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: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/358300?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 22:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75b3351d-23f9-42c4-90af-899fc495d4f8</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt; any updates on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/354027?ContentTypeID=1</link><pubDate>Mon, 21 Feb 2022 06:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04c343d0-9b06-4887-997a-f7a8a74acfeb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Thank you Martin, I have forwarded this information to our developers.&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: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/353969?ContentTypeID=1</link><pubDate>Sat, 19 Feb 2022 04:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d1b6dfb-831b-45c1-aa17-d6f4f4d37273</guid><dc:creator>mtsunstrum</dc:creator><description>&lt;p&gt;I have experienced something similar, even simply with RTT logging, and&amp;nbsp;&lt;strong&gt;no &lt;/strong&gt;shell backend.&lt;/p&gt;
&lt;p&gt;So it is possible it is a more fundamental issue&amp;nbsp;that is easier to isolate&lt;/p&gt;
&lt;p&gt;To recreate, take example application &lt;strong&gt;central_uart&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In prj.conf file, add the following to get more log messages:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_BT_DEBUG_CONN=y&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_BT_LOG_LEVEL_DBG=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The second CONFIG_ entry will generate a flood of RTT messages. The RTT viewer will indicate that 500+ messages were missed, and will display 10 or more log lines. But after that, there no no more messages.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Application though is still running fine.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/353842?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 12:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a374245c-8555-4716-8a90-a2f52104b554</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I agree that this sounds more like a bug than anything else, and&amp;nbsp;I have reported it internally for the developers to get a better look into this. It might take a few days before we hear back from them, but I will keep you updated if there is any progress.&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: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/353726?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 22:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c3e1233-f6e6-44f5-b254-d35251ef0989</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad you were able to reproduce.&lt;/p&gt;
&lt;p&gt;I do not see how those two settings could fix the problem, and I believe it is a bug that&amp;#39;s causing this issue. Let me explain:&lt;/p&gt;
&lt;p&gt;Those settings are controlling the RTT retry while in an active connection with RTT, if you read the description.&lt;/p&gt;
&lt;p&gt;The problem in this case is RTT buffer is full, and we know that from &amp;quot;log mem&amp;quot; that I showed in the screenshot above.&lt;/p&gt;
&lt;p&gt;However upon opening an RTT connection, while the buffer is full, the RTT doesn&amp;#39;t pull the data from the buffer!!!&lt;/p&gt;
&lt;p&gt;I suspect the RTT log backend is overwriting the data in the buffer, but somehow &amp;quot;the trigger to download (or upload to PC)&amp;quot; the buffer is not working.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Also from a different view, if you&amp;#39;re suggesting increasing those params help, (which I don&amp;#39;t think they do), they will only help up to when their limits are reached, so for a system that has been working for days, months, years, and has been overwriting the logs in the RTT buffer, eventually the retry ms and retry count will be reached and the same problem will occur. i.e. when you go connect via RTT viewer to such system, if we&amp;#39;re beyond those timeout * counts, then it has stopped trying (based on what you suggested) and it will stop logging. This isn&amp;#39;t the expected behavior.&lt;/p&gt;
&lt;p&gt;The expected behavior is RTT buffer gets downloaded into the RTT viewer on connect (this always worked with previous versions, nRF SDK and nRF NCS) and this is failing in this example. Simply that is the root cause or the issue itself. If you don&amp;#39;t believe this, when you have the issue reproduced, keep sending &amp;quot;log mem&amp;quot; and you will get Blocks Free: 0. no matter how long you wait.&lt;/p&gt;
&lt;p&gt;In fact it looks like it downloads the buffer, but then it something breaks the RTT process? perhaps need more stack? higher system work Q buffer? something on those lines?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/353591?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 12:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e88beb5-3518-46a3-81ba-80e6fa362cea</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for the clarification, I had missed adding one of the overlays on my end, and was able to reproduce this. Have you tried playing with the defines that (by default) are set in the log_backend_rtt.c file? Here you have &lt;strong&gt;CONFIG_LOG_BACKEND_RTT_RETRY_DELAY_MS&lt;/strong&gt; and &lt;strong&gt;CONFIG_LOG_BACKEND_RTT_RETRY_CNT&lt;/strong&gt; that together sets up how often and how many times the backend will retry before dropping data and assuming an RTT session is inactive. Increasing both these values so they occur rarer and a higher total amount I think should help here.&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: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/353469?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 21:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5f696b1-0103-4b7a-8bdd-c74bcae09a0c</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;This is how I build with approach 1:&lt;/p&gt;
&lt;p&gt;west build -b nrf52840dk_nrf52840 -d build_appr1 -- -DOVERLAY_CONFIG=&amp;#39;overlay-serial.conf;overlay-fs.conf;overlay-shell-mgmt.conf;overlay-approch1-shell-thru-rtt.conf&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I suspect you&amp;#39;re connecting too quickly after disconnect. Please leave &amp;gt;10seconds after disconnect, and then connect.&lt;/p&gt;
&lt;p&gt;This allows the buffer to fill up and I think that&amp;#39;s what causes the issue.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/logs_5F00_stopped_5F00_disconnect_5F00_conenct.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;OR From boot: Connect to the board via RTT viewer after it has been running for at least 10 seconds (from boot).&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2022_2D00_02_2D00_16-13_5F00_00_5F00_57_2D00_.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also attached my build folder for comparison, in case you&amp;#39;re still not experiencing the same issue as I, try programming build_appr1\zephyr\merged.hex directly and see if you do.&lt;br /&gt;if you do, then our build environment could be different, if you don&amp;#39;t then it may have to do with Segger Software differences?! I use 7.58 and I also tried on an olde PC with 6.xx&lt;/p&gt;
&lt;p&gt;.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/build_5F00_appr1.zip"&gt;devzone.nordicsemi.com/.../build_5F00_appr1.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/352668?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 14:20:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0521d7b8-a4dc-465e-99a5-9ba6aea6585e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I tested the application and overlay files you sent over, but I&amp;#39;m not able to recreate what you describe in approach 1. After letting the log run for some time, I tried repeatedly to disconnect/close the RTT viewer, but the RTT viewer &amp;quot;smp_samples&amp;quot; kept trickling in without stopping, so I&amp;#39;m not sure if I need to make any changes to the project you uploaded or what?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1644589234769v1.png" alt=" " /&gt;&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: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/352461?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 01:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ea601c2-a861-42cb-b191-d5b296c94efc</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;OK&amp;nbsp;&lt;span&gt;CONFIG_LOG_BACKEND_SHOW_COLOR=n does remove the extra &amp;quot;undefined characters&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, the main issue is still there.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Why is Segger RTT unable to read the logs and interact with shell as well? It only provides shell in the &amp;quot;approach 2&amp;quot; explained above.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have to open RTT viewer to interact with Shell and open RTT logger to see the logs. This isn&amp;#39;t ideal, and opening RTT logger does break the RTT viewer connection.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried this both with Segger RTT Software 7.58b and 6.88a. No difference.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regarding the RTT modes, I understand I think, but whether MODE_OVERWRITE or MODE_BLOCK, shouldn&amp;#39;t it resume printing NEW logs (regardless of whether it overwrote or missed a bunch of logs) after RTT viewer is connected?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Again it would be really helpful if you can please load the sample mods I shared in the zip file. And see if you can get both Shell and Logs working in either approach 1 or 2. disconnect from RTT and then connect 5 seconds later to see if it resumes.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/352344?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 13:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c61eaab2-407f-4611-af7a-eeca9b3fb371</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The &amp;quot;undefined&amp;quot; characters you&amp;#39;re seeing seem to be color coding of the messages, which makes sense since CONFIG_LOG_BACKEND_SHOW_COLOR is set to Y by default.&lt;/p&gt;
&lt;p&gt;Regarding the RTT &amp;quot;recovering&amp;quot; from a full buffer, that depends on how you handle a full buffer. You can for example check out the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_LOG_BACKEND_RTT_MODE_OVERWRITE.html#std-kconfig-CONFIG_LOG_BACKEND_RTT_MODE_OVERWRITE"&gt;CONFIG_LOG_BACKEND_RTT_MODE_OVERWRITE&lt;/a&gt;&amp;nbsp;which lets you overwrite messages if the buffer fills up. Another alternative is to wait until there&amp;#39;s enough space in the buffer for a message with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/CONFIG_LOG_BACKEND_RTT_MODE_BLOCK.html?highlight=config_log_backend_rtt#std-kconfig-CONFIG_LOG_BACKEND_RTT_MODE_BLOCK"&gt;CONFIG_LOG_BACKEND_RTT_MODE_BLOCK&lt;/a&gt;.&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: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/352198?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 01:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:934befe6-a509-4d88-aa88-4c7bec767b54</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Those settings are already enabled. So adding them didn&amp;#39;t make any difference.&lt;/p&gt;
&lt;p&gt;Would you mind trying to build the project/ zip file I attached?&lt;/p&gt;
&lt;p&gt;I faced this issue in our dev FW, then went back to SMP server which is the closest sample, and with small mods replicated the issue - hence this post.&lt;/p&gt;
&lt;p&gt;The other post may have not been pushing much to the LOG buffer - perhaps that&amp;#39;s why theirs works. and it&amp;#39;s also based off of a different sample.&lt;/p&gt;
&lt;p&gt;We expect the RTT to recover from a buffer full situation (i.e. if no RTT was connected to it for a while), then when RTT connection is established, it should download all the logs it has in its full buffer and resume downloading new logs, but it doesn&amp;#39;t in this example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/351997?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 10:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce11880e-7283-41ff-8313-b192c9d3a367</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The printk was mostly just because the user adds that themselves, but I imagined the configs would work similar for you.&amp;nbsp;There was also another user just yesterday with similar issues, and there shouldn&amp;#39;t be more to it than the following configs:&lt;/p&gt;
&lt;p&gt;CONFIG_SHELL_BACKENDS=y&lt;br /&gt;CONFIG_SHELL_BACKEND_RTT=y&lt;br /&gt;CONFIG_LOG_BACKEND_RTT_BUFFER=1&lt;/p&gt;
&lt;p&gt;You can see their full solution here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84554/using-the-zigbee-shell-through-segger-rtt-backend"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/84554/using-the-zigbee-shell-through-segger-rtt-backend&lt;/a&gt;&amp;nbsp;&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: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/351917?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 17:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb8fe1cb-6953-4085-8894-c75d5d465211</guid><dc:creator>Farhang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried that but unfortunately it didn&amp;#39;t fix the issue.&lt;/p&gt;
&lt;p&gt;As soon as enough logs are backlogged in the buffer, connecting via RTT just drops the last set of logs and stops - i.e. doesn&amp;#39;t show new logs - shell works.&lt;/p&gt;
&lt;p&gt;So overall no difference.&lt;/p&gt;
&lt;p&gt;My method for testing this was just making another overlay.conf file and copy pasted all of the kconfig setting in the post you mentioned above.&lt;/p&gt;
&lt;p&gt;Also since I&amp;#39;m using LOG_XXX messages I don&amp;#39;t see how printk() would have fixed it. But good to try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log and shell through RTT backend don't play nicely</title><link>https://devzone.nordicsemi.com/thread/351842?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 14:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a421d2-858c-4812-8169-280f2df92998</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;We had a&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/81416/zephyr-rtt-log-output-stops-with-shell-is-enabled/339105#339105"&gt; similar request a couple of months back &lt;/a&gt;where the user found the solution to enable both shell and log output via RTT and enable printk() RTT output. Please give it a try and see if that works better than the two approaches you mention above.&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>