<?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>Using custom RX/TX UART pins on nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65291/using-custom-rx-tx-uart-pins-on-nrf51822</link><description>Hi, 
 I have developed an application on an nrf51dk, with SDK12.3 (as it was the latest that I could make it work with). It is running fine on the DK, but when moving to the custom pcb i ran into a few problems, one of them being that the DK uses pins</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Aug 2020 13:35:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65291/using-custom-rx-tx-uart-pins-on-nrf51822" /><item><title>RE: Using custom RX/TX UART pins on nrf51822</title><link>https://devzone.nordicsemi.com/thread/266765?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 13:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bc68365-5712-40db-a4e3-8d5e8bb63d46</guid><dc:creator>Ricardo Rodrigues</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;My problem was actually of the PEBCAK category. The lines were named from the perspective of the other chip, so in reversing the TX and RX pins on my comm_params, all started working.&lt;/p&gt;
&lt;p&gt;Many thanks for your support.&lt;/p&gt;
&lt;p&gt;I accepted your last reply as the answer because I find that the code you posted my be useful for someone else wanting to debug their UART configuration.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ricardo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using custom RX/TX UART pins on nrf51822</title><link>https://devzone.nordicsemi.com/thread/266754?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 13:09:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6551a738-a945-4b12-b6c0-9c617d5749d5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I tested your code in the UART example in SDK 12.3.0:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-11f1b9feeac24066909f40190e4a3f47/main.c"&gt;devzone.nordicsemi.com/.../main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I tested this on a nRF51 DK by connecting P0.17 to P0.09 and P0.18 to P0.11. It seems to work fine. Can you test this on your board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using custom RX/TX UART pins on nrf51822</title><link>https://devzone.nordicsemi.com/thread/266705?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 11:01:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea6c4af9-2965-40d0-b2da-c22ae9535f97</guid><dc:creator>Ricardo Rodrigues</dc:creator><description>&lt;p&gt;As a note, I am also not using logs through UART.&lt;/p&gt;
&lt;p&gt;On sdk_config, i have:&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_BACKEND_SERIAL_USES_UART 0&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_BACKEND_SERIAL_USES_RTT 1&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_ENABLED 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using custom RX/TX UART pins on nrf51822</title><link>https://devzone.nordicsemi.com/thread/266700?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 10:45:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7ab0487-856c-4bd3-9908-4ec2f9225451</guid><dc:creator>Ricardo Rodrigues</dc:creator><description>&lt;p&gt;void uart_init(on_uart_message_handler_t incoming_message_callback)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t err_code;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; on_uart_incoming_message_handler = incoming_message_callback;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const app_uart_comm_params_t comm_params = {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //RX_PIN_NUMBER, TX_PIN_NUMBER,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18,17,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTS_PIN_NUMBER, CTS_PIN_NUMBER,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_UART_FLOW_CONTROL_DISABLED,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; false,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MACRO_CONCAT_2(UART_BAUDRATE_BAUDRATE_Baud9600)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_UART_FIFO_INIT(&amp;amp;comm_params, UART_RX_BUF_SIZE, UART_TX_BUF_SIZE,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uart_event_handle, APP_IRQ_PRIORITY_LOWEST, err_code);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using custom RX/TX UART pins on nrf51822</title><link>https://devzone.nordicsemi.com/thread/266695?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 10:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02e7d0c7-9953-4412-8b6d-2a55d9f093b4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Simply changing the pins and make sure no other peripheral is controlling the pins should be enough.&lt;/p&gt;
&lt;p&gt;Can you share the code you used for configuring and initializing the UART peripheral/library?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>