<?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>UART Pin Change with DTS Overlay</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99940/uart-pin-change-with-dts-overlay</link><description>Hi, 
 
 I am trying to change the pins used from UART from the default pins TX:6, RX:8 to TX:9, RX:10 
 I am struggling to figure out how to do this as whenever I update my .overlay file for my device tree I go from a working UART implementation to seeing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jun 2023 13:41:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99940/uart-pin-change-with-dts-overlay" /><item><title>RE: UART Pin Change with DTS Overlay</title><link>https://devzone.nordicsemi.com/thread/429580?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 13:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b877589d-9e21-44c1-9d45-ef377939e9d2</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Evan,&lt;/p&gt;
&lt;p&gt;Are you using the 52-DK.? If you see the backside of the board, you can see the pins that&amp;nbsp;are already in use.. So could you try with any other free gpio.?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Pin Change with DTS Overlay</title><link>https://devzone.nordicsemi.com/thread/428244?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 15:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebeecdc0-68da-434c-8fde-80aae583d6fe</guid><dc:creator>Evan Colt</dc:creator><description>&lt;p&gt;Hi Swathy,&lt;/p&gt;
&lt;p&gt;I am using a serial to USB cable outputting to a standard serial terminal (screen or Arduino). I do not see any errors with either version of the DTS file but when I use the default pins I am able to send and receive serial data and when I use my modified pins I am not so as you stated &amp;#39;the expected output does not appear in the newly assigned pins&amp;#39;. Again the code is not logging any errors. I will experiment with this a little more later today to see if I can give you any more specific information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Pin Change with DTS Overlay</title><link>https://devzone.nordicsemi.com/thread/428135?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 10:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20a61f4b-a7b4-4418-80e4-172bfece39f1</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Evan,&lt;/p&gt;
&lt;p&gt;How are you checking the outputs.? Did you use a logic analyzer to check the UART outputs after changing the pins.? By not working, is there any error message that shows up or only that the expected output does not appear in the newly assigned pins..? The overlay looks correct and I cannot see why this is not working.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Pin Change with DTS Overlay</title><link>https://devzone.nordicsemi.com/thread/427021?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 16:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e5bffac-215c-4a45-843d-0c9da4668cd1</guid><dc:creator>Evan Colt</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;the pins for UART zero were assigned by default in the app-pinctrl.dtsi file as shown below&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
	uart0_default: uart0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 6)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 8)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 5)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 7)&amp;gt;;
		};
	};

	uart0_sleep: uart0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 6)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 8)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 5)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 7)&amp;gt;;
			low-power-enable;
		};
	};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This being said, these lines are faded becuase they are being overriden by the lines in my overlay file described above. I have also tried changing these lines directly without using an overlay and I encounter the same issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The only other place uart0 is defined is in the app.dts file but these line referece the pin control file to declare the pins as seen below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;arduino_serial: &amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me know if I can provide any more info that my be relevant to this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART Pin Change with DTS Overlay</title><link>https://devzone.nordicsemi.com/thread/426814?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 09:17:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fceed653-db24-4a3b-a416-4e7227c4401b</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Evan,&lt;/p&gt;
&lt;p&gt;The overlay that you have shared looks correct. Could you check if uart0 has been defined in any other group within the dts file.?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>