<?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>RE: Changing the UART TX RX pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53691/re-changing-the-uart-tx-rx-pins</link><description>Hi, 
 I am having difficulty changing the UART Tx/Rx pins of nrf52840 (custom board) in the direct_test_mode example project in the SDK 16.0.0. 
 Based on https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Findex.html 
 I should be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Oct 2019 10:06:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53691/re-changing-the-uart-tx-rx-pins" /><item><title>RE: RE: Changing the UART TX RX pins</title><link>https://devzone.nordicsemi.com/thread/217033?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 10:06:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65c4d145-4e69-4152-b4a8-256c38e1e9b3</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You don&amp;#39;t need to redefine the RX and TX pins in the pca10056.h file, you can just modify the main.c to use whatever pins you want for RX and TX:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define DTM_RX_PIN NRF_GPIO_PIN_MAP(0, 11) // p0.11
#define DTM_TX_PIN NRF_GPIO_PIN_MAP(1, 08) // p1.08


/**@brief Function for UART initialization.
 */
static void uart_init(void)
{   
    uint32_t err_code;
    const app_uart_comm_params_t comm_params =
      {
          DTM_RX_PIN,
          DTM_TX_PIN,
          RTS_PIN_NUMBER,
          CTS_PIN_NUMBER,
          APP_UART_FLOW_CONTROL_DISABLED,
          false,
          DTM_BITRATE
      };

    APP_UART_FIFO_INIT(&amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_error_handle,
                       APP_IRQ_PRIORITY_LOWEST,
                       err_code);

    APP_ERROR_CHECK(err_code);
}
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The SDK supports SES, Keil, IAR, and GCC.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>