<?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>What Kconfig (prj.conf) options should I use for enabling logging via RTT only (no UART).</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112392/what-kconfig-prj-conf-options-should-i-use-for-enabling-logging-via-rtt-only-no-uart</link><description>Hi, I&amp;#39;m developing for a custom project board which only has the SWD pins exposed, which I&amp;#39;m using for (1) programming and (2) RTT logging during development. 
 Once the device goes into production, I intend to disable RTT logging (2). We have NO USE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Jun 2024 16:01:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112392/what-kconfig-prj-conf-options-should-i-use-for-enabling-logging-via-rtt-only-no-uart" /><item><title>RE: What Kconfig (prj.conf) options should I use for enabling logging via RTT only (no UART).</title><link>https://devzone.nordicsemi.com/thread/491404?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 16:01:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ce52c48-8471-4054-a7e6-1ae71d8eeb1c</guid><dc:creator>nik2k</dc:creator><description>&lt;p&gt;Hi Vidar, that clears quite a few things up for me. In the meantime I have done a bit of digging myself with your help. Thanks. You may close the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What Kconfig (prj.conf) options should I use for enabling logging via RTT only (no UART).</title><link>https://devzone.nordicsemi.com/thread/491062?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 10:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:489e29f9-a4bf-445d-971e-2794660a9ff8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Both the logger module and the console will redirect data to the serial terminal if UART backends are enabled. If you want to disable logging and printk/printf&amp;nbsp; output to the console (RTT or UART), you can disable the following symbols:&amp;nbsp;CONFIG_CONSOLE=n,&lt;br /&gt;CONFIG_LOG=n&lt;br /&gt;CONFIG_SERIAL=n&lt;/p&gt;
&lt;p&gt;Note: you will get a Kconfig warning if you try to select&amp;nbsp;&lt;span&gt;CONFIG_RTT_CONSOLE in your project configiuration file while the console is disabled.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What Kconfig (prj.conf) options should I use for enabling logging via RTT only (no UART).</title><link>https://devzone.nordicsemi.com/thread/490919?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 14:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daaf6a52-1338-476a-88a4-f25a3188d7cc</guid><dc:creator>nik2k</dc:creator><description>&lt;p&gt;Hi Vidar, thanks for you time, and sorry for the delayed response. What about CONFIG_CONSOLE? Should I remove it ? I&amp;#39;m also a little shaky on whether to keep CONFIG_RTT_CONSOLE and CONFIG_LOG_BACKEND_RTT, or both?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What Kconfig (prj.conf) options should I use for enabling logging via RTT only (no UART).</title><link>https://devzone.nordicsemi.com/thread/490268?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 12:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ca7293a-a253-4520-aa0b-a3decbd4bc51</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should be sufficient to set CONFIG_SERIAL to &amp;#39;=n&amp;#39;. This will disable the UART serial drivers. To ensure the UART drivers can&amp;#39;t be enabled, you can disable the uart0 node in your device tree, either in your board file or with a board overlay.&lt;/p&gt;
&lt;p&gt;When the UART console is enabled, printk()/printf() input will be relayed over UART, provided that CONFIG_SERIAL is enabled. Similar to how the LOG_* macros work when logging over UART is enabled.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>