<?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>Enable RTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117138/enable-rtt</link><description>Hi , 
 I have a basic project with Hello World project , NCS 2.8.0. 
 To enable RTT I&amp;#39;ve added to prj.conf the following 
 
 CONFIG_USE_SEGGER_RTT =y 
 CONFIG_LOG_BACKEND_RTT =y 
 CONFIG_UART_CONSOLE =n 
 
 When connecting RTT terminal I can see the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Dec 2024 17:37:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117138/enable-rtt" /><item><title>RE: Enable RTT</title><link>https://devzone.nordicsemi.com/thread/514106?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2024 17:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff6631cb-4111-499e-87dc-c31bbf5dc037</guid><dc:creator>lsoria</dc:creator><description>&lt;p&gt;Hi, the hello_world sample uses&lt;span style="font-family:courier new, courier;"&gt; printf()&lt;/span&gt;, which AFAIK is redirected to the UART console.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What happens if you replace &lt;span style="font-family:courier new, courier;"&gt;printf()&lt;/span&gt; with &lt;span style="font-family:courier new, courier;"&gt;printk()&lt;/span&gt;? In order to do so, you must include&lt;span style="font-family:courier new, courier;"&gt; &lt;strong&gt;&amp;lt;zephyr/sys/printk.h&amp;gt;&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Other config that may be required to be set is &lt;span style="font-family:courier new, courier;"&gt;&lt;strong&gt;CONFIG_RTT_CONSOLE&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;If that is not enough, you may also need to add &lt;span style="font-family:courier new, courier;"&gt;&lt;strong&gt;CONFIG_LOG_PRINTK&lt;/strong&gt; &lt;/span&gt;to redirect &lt;span style="font-family:courier new, courier;"&gt;printk&lt;/span&gt; messages to the logging subsystem (which I don&amp;#39;t think so because you&amp;#39;re not using the log subsystem)&lt;/li&gt;
&lt;li&gt;Finally, maybe &lt;span style="font-family:courier new, courier;"&gt;&lt;strong&gt;CONFIG_STDOUT_CONSOLE&lt;/strong&gt; &lt;/span&gt;with &lt;span style="font-family:courier new, courier;"&gt;&lt;strong&gt;CONFIG_RTT_CONSOLE&lt;/strong&gt; &lt;/span&gt;may allow &lt;span style="font-family:courier new, courier;"&gt;printf&lt;/span&gt; calls to be redirected to RTT, but I&amp;#39;m not sure.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>