<?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>Zephyr RTT log output stops with SHELL is enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81416/zephyr-rtt-log-output-stops-with-shell-is-enabled</link><description>Hello, 
 I had RTT configured as the logging backend and it was working fine. When I enabled the SHELL on RTT, the log output stopped. Maybe more specifically, printk() output stopped. 
 It looks like this should be the default operation but it isn&amp;#39;t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Nov 2021 23:49:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81416/zephyr-rtt-log-output-stops-with-shell-is-enabled" /><item><title>RE: Zephyr RTT log output stops with SHELL is enabled</title><link>https://devzone.nordicsemi.com/thread/339105?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 23:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fba5899-5a41-4024-8f7f-fecb47f1f506</guid><dc:creator>Allen</dc:creator><description>&lt;p&gt;Put these options in &amp;quot;prj.conf&amp;quot; to enable Shell and Log output via RTT. This will also enable printk() RTT output.&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Menlo, Monaco, &amp;#39;Courier New&amp;#39;, monospace;font-size:10.5px;font-weight:normal;line-height:16px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_NCS_SAMPLES_DEFAULTS&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Menlo, Monaco, &amp;#39;Courier New&amp;#39;, monospace;font-size:10.5px;font-weight:normal;line-height:16px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SHELL&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SHELL_STACK_SIZE&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=1024&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SHELL_BACKEND_SERIAL&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SHELL_BACKEND_RTT&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LOG&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LOG_PRINTK&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LOG_BACKEND_UART&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SHELL_LOG_BACKEND&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr RTT log output stops with SHELL is enabled</title><link>https://devzone.nordicsemi.com/thread/339104?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 23:27:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d957c9e-a2ed-49fc-be68-0202de91dd3a</guid><dc:creator>Allen</dc:creator><description>&lt;p&gt;Ok, here is some more info.&lt;/p&gt;
&lt;p&gt;CONFIG_SHELL_LOG_BACKEND=y&lt;/p&gt;
&lt;p&gt;This option can only be enabled if CONFIG_LOG_MINIMAL=n&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_MINIMAL can not be set to &amp;#39;n&amp;#39; when CONFIG_NCS_SAMPLES_DEFAULTS=y&lt;/p&gt;
&lt;p&gt;However setting CONFIG_NCS_SAMPLES_DEFAULTS=n sees to have its own set of problems.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am still unable to get printk() output when the CONFIG_SHELL=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>