<?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>Zehpyr Shell + Logging on RTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89655/zehpyr-shell-logging-on-rtt</link><description>Dear Nordic, 
 
 There is an issue with simultaneous RTT shell and logging on nCS 2.0.0, please check the screenshot. 
 Althougth CONFIG_LOG_BACKEND_RTT_BUFFER=1 setting is made (I tried &amp;#39;2&amp;#39; also), logger still outputs the data to RTT &amp;#39;terminal 0&amp;#39; (with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jul 2022 09:14:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89655/zehpyr-shell-logging-on-rtt" /><item><title>RE: Zehpyr Shell + Logging on RTT</title><link>https://devzone.nordicsemi.com/thread/375491?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 09:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f48d114-9983-499e-b6b7-9e17ba314b61</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;Dear Nordic,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;there is some misunderstanding in terms: RTT Viewer operates by Terminals, not RTT channels. Altougth RTT channel for logger (RTT #1) is created and operates well, there is no ready-to-use software to view the logging output and use shell simultaneosly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We could use SEGGER RTT Logger, but it only saves logs to file - no option to view logs online.&lt;/p&gt;
&lt;p&gt;Still, there is ability to select particular terminal mark or out to particular terminal using&amp;nbsp;SEGGER_RTT_TerminalOut() funciton. So, do we have a solution to distinquish logs and shell interface between logical terminals easier than writing our own log backend?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zehpyr Shell + Logging on RTT</title><link>https://devzone.nordicsemi.com/thread/375463?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 07:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:345b868c-359d-4d9b-acda-047608737b59</guid><dc:creator>Dmitry Kr</dc:creator><description>&lt;p&gt;Have seen following:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84493/log-and-shell-through-rtt-backend-don-t-play-nicely"&gt;Log and shell through RTT backend don&amp;#39;t play nicely&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84554/using-the-zigbee-shell-through-segger-rtt-backend"&gt;Using the Zigbee shell through Segger RTT backend&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have the following on prj.conf:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# Enable RTT&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USE_SEGGER_RTT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SEGGER_RTT_MODE_NO_BLOCK_SKIP&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# enable LOG on RTT&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BACKEND_RTT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BACKEND_RTT_BUFFER&lt;/span&gt;&lt;span&gt;=1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_OVERRIDE_LEVEL&lt;/span&gt;&lt;span&gt;=0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_MAX_LEVEL&lt;/span&gt;&lt;span&gt;=4&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# CONFIG_LOG_PRINTK=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_MODE_OVERFLOW&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_PROCESS_THREAD&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_PROCESS_THREAD_SLEEP_MS&lt;/span&gt;&lt;span&gt;=100&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BUFFER_SIZE&lt;/span&gt;&lt;span&gt;=16384&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_PROCESS_THREAD_STACK_SIZE&lt;/span&gt;&lt;span&gt;=16384&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# console output on RTT&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_RTT_CONSOLE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SHELL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SHELL_BACKENDS&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SHELL_BACKEND_RTT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SHELL_PROMPT_RTT&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;rtt:~$ &amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>