<?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>NRF52 UART initialisation issue/crash due to low state on pin</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25125/nrf52-uart-initialisation-issue-crash-due-to-low-state-on-pin</link><description>Hi 
 First I wrote a post because the initialization was crashing, but now I found out it was because the RX line was low.
How to initialize the uart if the RX line is low without modifying the hardware. Thing is I have some devices which I power down</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Sep 2017 15:10:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25125/nrf52-uart-initialisation-issue-crash-due-to-low-state-on-pin" /><item><title>RE: NRF52 UART initialisation issue/crash due to low state on pin</title><link>https://devzone.nordicsemi.com/thread/98960?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 15:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5e2c44b-c8ce-47df-9e58-4eebcf74dccc</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;So the problem is that the RX pin is floating and picking up noise (or just being pulled low)? It is possible to configure the RX pin as &amp;#39;disconnected&amp;#39; by setting the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uart.html?cp=2_1_0_49_9_8#register.PSELRXD"&gt;PSELRXD&lt;/a&gt; register to 0xFFFFFFFF. Maybe that will help. If you are using the drivers and libraries in the SDK you can do it like this:&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,
      UART_PIN_DISCONNECTED,
      APP_UART_FLOW_CONTROL_ENABLED,
      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);

APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But I suppose if you know what you are doing  you can just write to the register directly after having initialized everything the usual way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>