<?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>Can i change Rx, Tx pin of UART?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15913/can-i-change-rx-tx-pin-of-uart</link><description>Hi, I made a PCB board nrf51822. 
 Because of my mistake, Rx, Tx pin was not cross connected to MCU. 
 So i want to change Rx &amp;lt;-&amp;gt; Tx pin. 
 In the example of ble_app_uart_s130_pca10028, 
 I change the below source code. 
 const app_uart_comm_params_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Apr 2019 06:40:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15913/can-i-change-rx-tx-pin-of-uart" /><item><title>RE: Can i change Rx, Tx pin of UART?</title><link>https://devzone.nordicsemi.com/thread/182983?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 06:40:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34ad7f74-a986-4123-b378-2b3b9f2e23e3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, you can use any pins with UART. You just have to configure the library/driver you use with the correct pin configuration. Please create a new question if you need more follow-up on this, and then also include which chip and SDK version you are using, as well as which library/driver and how you have configured it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can i change Rx, Tx pin of UART?</title><link>https://devzone.nordicsemi.com/thread/182677?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 19:41:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05e71ebb-db72-4861-9e39-be0571a83b64</guid><dc:creator>Siddharth rana</dc:creator><description>&lt;p&gt;I have come across the same problem but with my custom board where my tx-rx pin are different.&lt;/p&gt;
&lt;p&gt;When I configure UART example from sdk peripheral with my custom board tx-rx pin value.&lt;/p&gt;
&lt;p&gt;It goes into error and my program does not run.&lt;/p&gt;
&lt;p&gt;Can I use virtual comp port example with different tx-rx pin.?&lt;/p&gt;
&lt;p&gt;Or I have to config uart0-uart1 ..??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can i change Rx, Tx pin of UART?</title><link>https://devzone.nordicsemi.com/thread/60717?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 10:22:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:765bfcf1-f8d9-489d-ba80-98b838be611b</guid><dc:creator>Sangkyu</dc:creator><description>&lt;p&gt;Thanks for your answer.
I don&amp;#39;t know ablout NUS. Just, i use example code...
The time out error occur when connect MCU tx to BLE rx by unsing rx tx swapped source code.
Before the connection, paring is not problem. As soon as connect  tx to rx, the error message printed and break the paring.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can i change Rx, Tx pin of UART?</title><link>https://devzone.nordicsemi.com/thread/60716?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 06:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab514f2d-201d-4764-ae12-a7067f607d0a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You can all the pins connected to the UART peripheral as you like. I do not know your value of &lt;code&gt;RX_PIN_NUMBER&lt;/code&gt; and &lt;code&gt;TX_PIN_NUMBER&lt;/code&gt;, but if you want to swap them, you just need to swap them in the &lt;code&gt;app_uart_comm_params_t&lt;/code&gt; instance:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;const app_uart_comm_params_t comm_params =
{
    RX_PIN_NUMBER,
    TX_PIN_NUMBER,
    RTS_PIN_NUMBER,
    CTS_PIN_NUMBER,
    APP_UART_FLOW_CONTROL_ENABLED,
    false,
    UART_BAUDRATE_BAUDRATE_Baud38400
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Maybe you have done exactly that, but it is difficult to know as your second code snippet use magic number for the pins. If the only problem is swapped pins, then this is all you need to do.&lt;/p&gt;
&lt;p&gt;As you write about the nRF Toolbox app and an error message &amp;quot;Error 6:The connection has timed out unexpectedly&amp;quot;, I assume you are testing BLE over UART using NUS? The error message indicates that the BLE connection has timed out, and is not directly related to UART. I suggest you first debug and fix your UART communication, then consider debug BLE (and NUS), as debugging several issues at once tend to make things more complicated than it has to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>