<?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>nRF9160 UART0 changing pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97120/nrf9160-uart0-changing-pins</link><description>Hello, 
 
 I would like to change the default pin configuration for nrf9160: 
 TX: 29 -&amp;gt; 13 
 RX 28 -&amp;gt; 14 
 CTS: 26 -&amp;gt; 26 
 RTS: 27 -&amp;gt; 27 
 
 I followed this post: UART communication between nrf9160 and nrf52840 on Thingy91 
 Therefore my nrf9160dk_nrf9160_ns</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Feb 2023 11:39:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97120/nrf9160-uart0-changing-pins" /><item><title>RE: nRF9160 UART0 changing pins</title><link>https://devzone.nordicsemi.com/thread/412474?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 11:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:853847de-5340-47ac-94bc-46ddc5414c59</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Finally I got it reading this useful information:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_dev/pin_control/index.html"&gt;Pin control &amp;mdash; nRF Connect SDK 2.2.99 documentation (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here it is the code snippet that works in my case:&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, 13)&amp;gt;;
        };
        group2 {
            psels = &amp;lt;NRF_PSEL(UART_RX, 0, 14)&amp;gt;;
            bias-pull-up;
        };
    };
    uart0_sleep: uart0_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(UART_TX, 0, 13)&amp;gt;,
                    &amp;lt;NRF_PSEL(UART_RX, 0, 14)&amp;gt;;
            low-power-enable;
        };
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 UART0 changing pins</title><link>https://devzone.nordicsemi.com/thread/412461?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 10:35:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a8854f7-281e-4355-88ec-826260f928af</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello Naeem,&lt;/p&gt;
&lt;p&gt;I only want to wire out the UART0, for that purpose I have available pins 13 and 14. By this way I would be able to send/receive AT commands to the modem directly from the computer.&lt;/p&gt;
&lt;p&gt;I am using a custom board which has the nrf9160 B0 version. Also I tried this approach:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/96320/uart0-overlay-for-hello_world-app/408707"&gt;uart0 overlay for hello_world app&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However I have the same issue.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 UART0 changing pins</title><link>https://devzone.nordicsemi.com/thread/412459?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 10:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31510022-498b-45e3-acb3-7acb541479b4</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Javier,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, the correct overlay file is enough for that configurations.&lt;/p&gt;
&lt;p&gt;However, as you are following the post (mentioned in your query): they are trying to establish uart communication between nrf9160 and nrf52840 on the thingy 91. How is your setup? You are doing uart between which devices and platform?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please have a look at&amp;nbsp;their solution as well; they needed correct and complete overlays for both mcu.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>