<?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>Configure P0.05/P0.07 as GPIO when using uart0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116631/configure-p0-05-p0-07-as-gpio-when-using-uart0</link><description>I&amp;#39;ve got a custom board using an nRF52832. I&amp;#39;m using the P0.06/P0.08 as the TX/RX pins for UART comms, but don&amp;#39;t need the P0.05/P0.07 pins for CTS/RTS. Is there anyway I can reconfigure those to be used as GPIO, rather than have them sitting unused? </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Nov 2024 13:54:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116631/configure-p0-05-p0-07-as-gpio-when-using-uart0" /><item><title>RE: Configure P0.05/P0.07 as GPIO when using uart0</title><link>https://devzone.nordicsemi.com/thread/511920?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 13:54:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a63fe1a-5b98-4147-b6d0-10dde097c210</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;To use the CTS/RTS pins as normal gpio, you can write an overlay file reconfiguring the pins for uart and removing the CTS/RTS assignments.. Just assign the Tx/RX pins:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&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;;
        };
        group2 {
            psels = &amp;lt;NRF_PSEL(UART_RX, 0, 8)&amp;gt;;
            bias-pull-up;
        };
    };

    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;;
            low-power-enable;
        };
    };
};

&amp;amp;uart0 {
    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;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;Best Regards,&lt;/div&gt;
&lt;div&gt;Swathy&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>