<?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>Change UART pins dynamically</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120977/change-uart-pins-dynamically</link><description>Hello 
 
 Is is possible to change the UART pins dynamically? I am thinking to predefine the pins on device tree as follows: 
 
 &amp;amp;uart1 { 
 status = &amp;quot;okay&amp;quot; ; 
 current-speed = &amp;lt; 115200 &amp;gt;; 
 pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;; 
 pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;; </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Apr 2025 11:57:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120977/change-uart-pins-dynamically" /><item><title>RE: Change UART pins dynamically</title><link>https://devzone.nordicsemi.com/thread/533180?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2025 11:57:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65e792f3-3261-477c-893b-4f09cfb41aa3</guid><dc:creator>Avgerinos89</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change UART pins dynamically</title><link>https://devzone.nordicsemi.com/thread/532992?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 10:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:189d4cf2-4aa6-464b-9731-af7ca573eb9f</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Currently there is no official way of doing it Zephyr. There a PR in progress that I would suspect might be ready for the next release for NCS(3.1) which is due to come out later this year.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A colleague of mine made a workaround for this&amp;nbsp; which can find &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107317/configuring-uart1-using-pinctrl-for-two-uarts/463996"&gt;here&lt;/a&gt;&amp;nbsp;I would note the sample was made for NCS 2.5.x so it might not work out of the box for a newer version of NCS&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>