<?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>UART hits communication error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25591/uart-hits-communication-error</link><description>[nRF52840 + SDK13] 
 On the hardware that I have, the UART driver is hitting a communication error because the RX line is low. This only happens when the UART lines are disconnected from my computer. When there is a connection, everything works fine</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Oct 2017 18:24:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25591/uart-hits-communication-error" /><item><title>RE: UART hits communication error</title><link>https://devzone.nordicsemi.com/thread/100875?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 18:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e24b523f-564f-4c94-bae2-428eca723753</guid><dc:creator>wael</dc:creator><description>&lt;p&gt;Thanks Martin. But if I do that, I won&amp;#39;t be able to communicate with the device when the UART lines are physically connected. The problem I was seeing only appears when the UART lines are not physically connected.&lt;/p&gt;
&lt;p&gt;I retried the pull-up option and it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART hits communication error</title><link>https://devzone.nordicsemi.com/thread/100873?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 18:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:665fdab0-ec54-4a33-8369-f34bf2a0f17a</guid><dc:creator>wael</dc:creator><description>&lt;p&gt;I retried the pull-up option and it worked.&lt;/p&gt;
&lt;p&gt;Changed the pull option in &lt;code&gt;apply_config()&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;nrf_gpio_cfg_input(p_config-&amp;gt;pselrxd, NRF_GPIO_PIN_PULLUP);&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART hits communication error</title><link>https://devzone.nordicsemi.com/thread/100874?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 09:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf62a9f0-0bae-4c1d-8d72-14b5c53f105b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can disconnect the RX pin from the UART module completely by setting the RX pin number to 0xFFFFFFFF. &lt;a href="http://PSEL.RXD"&gt;UART PSEL documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When you init the UART you can do it like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;const app_uart_comm_params_t comm_params =
  {
      UART_PIN_DISCONNECTED, // &amp;lt;- 0xFFFFFFFF
      TX_PIN_NUMBER,
      RTS_PIN_NUMBER,
      CTS_PIN_NUMBER,
      APP_UART_FLOW_CONTROL_DISABLED,
      false,
      UART_BAUDRATE_BAUDRATE_Baud115200
  };

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);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>