<?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>How to define which UART is used by the console?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121585/how-to-define-which-uart-is-used-by-the-console</link><description>So I will have 2x physical UART provided on my board. I am using printk(), and I want to choose which UART handles console traffic by config options. 
 How to achieve that? All I can see are the boolean options such as CONFIG_SERIAL = y to turn it off</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 May 2025 14:14:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121585/how-to-define-which-uart-is-used-by-the-console" /><item><title>RE: How to define which UART is used by the console?</title><link>https://devzone.nordicsemi.com/thread/536026?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 14:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27767501-96df-4db4-aad5-a4a0171b0331</guid><dc:creator>Nick_RA</dc:creator><description>&lt;p&gt;OK great... I&amp;#39;ll be using custom devicetree anyway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to define which UART is used by the console?</title><link>https://devzone.nordicsemi.com/thread/536021?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 13:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c4af7cf-4670-4adc-9c2d-1bced0467c88</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can change this in devicetree. Create a devicetree overlay and change which UART is used by the zephyr,console node:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		zephyr,console = &amp;amp;uart1;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>