<?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 logging, release the UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90116/zephyr-logging-release-the-uart</link><description>In the nordic,nrf52840dk_nrf52840.dts there is a part &amp;quot;chosen&amp;quot; that says: 
 zephyr,console = &amp;amp;uart0; zephyr,shell-uart = &amp;amp;uart0; zephyr,uart-mcumgr = &amp;amp;uart0; zephyr,bt-mon-uart = &amp;amp;uart0; zephyr,bt-c2h-uart = &amp;amp;uart0; 
 I am using both UART0 and UART1 for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Jul 2022 09:02:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90116/zephyr-logging-release-the-uart" /><item><title>RE: Zephyr logging, release the UART</title><link>https://devzone.nordicsemi.com/thread/378493?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 09:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b87d33cb-19d9-4296-bf38-154c9c881413</guid><dc:creator>BvdP4Celsius</dc:creator><description>&lt;p&gt;Thanks,&lt;br /&gt;&lt;span&gt;CONFIG_HAS_SEGGER_RTT will generate an error, however t&lt;/span&gt;e following settings worked for me:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_PRINTK&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_MODE_IMMEDIATE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_CONSOLE&lt;/span&gt;&lt;span&gt;=n&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;div&gt;&lt;span&gt;#CONFIG_HAS_SEGGER_RTT=y&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr logging, release the UART</title><link>https://devzone.nordicsemi.com/thread/377992?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 06:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a97b4828-8b57-4ae7-b657-45598430395e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;you might have to tell that you do not need uart logging, can you try this.&lt;/p&gt;
&lt;pre&gt;CONFIG_UART_CONSOLE=n
CONFIG_RTT_CONSOLE=y
CONFIG_HAS_SEGGER_RTT=y
CONFIG_USE_SEGGER_RTT=y

#CONFIG_LOG_BACKEND_RTT=y
#CONFIG_SHELL_BACKEND_RTT=y
#CONFIG_LOG_BACKEND_RTT_FORCE_PRINTK=y&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr logging, release the UART</title><link>https://devzone.nordicsemi.com/thread/377875?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 13:07:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08b7a309-91ca-461c-9343-6898c89cfa65</guid><dc:creator>BvdP4Celsius</dc:creator><description>&lt;p&gt;Adding the&amp;nbsp;&lt;span&gt;CONFIG_LOG_BACKEND_RTT&lt;/span&gt;&lt;span&gt;=y to the prj,conf did not release the UART. The logging info is (also) visible on the UART port.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr logging, release the UART</title><link>https://devzone.nordicsemi.com/thread/377614?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 12:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcd17e7d-1f4e-4d4c-ad2a-0786b29f7e0b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I think you can use RTT as backend for logs&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/3.0.0/reference/kconfig/CONFIG_LOG_BACKEND_RTT.html"&gt;docs.zephyrproject.org/.../CONFIG_LOG_BACKEND_RTT.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>