<?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>nRF52840 UART connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28158/nrf52840-uart-connection</link><description>Hi support team, 
 I&amp;#39;m using Nordic nRF52840 with PCA10056 and SDK 14.1. I have a problem with UART connection.
I have a custom board which need to hook up UART connection with Nordic PDK for data or command transferring. And also I need annother UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Dec 2017 06:33:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28158/nrf52840-uart-connection" /><item><title>RE: nRF52840 UART connection</title><link>https://devzone.nordicsemi.com/thread/111208?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 06:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b301e3b-7f58-4e6f-9595-b1a68f78accd</guid><dc:creator>Liu Tengfei</dc:creator><description>&lt;p&gt;Thank you, Sigurd. I have figured out where I was wrong.
The right way of UART connection should be &amp;quot;RX-TX, TX-RX, CTS-RTS, RTS-CTS&amp;quot;, just to remind others who might get into the same trouble like me.
&lt;a href="https://devzone.nordicsemi.com/question/182653/nrf52840-uart-connection-problems/"&gt;link to my question&lt;/a&gt;
this link of my another question will be useful for the UART related problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 UART connection</title><link>https://devzone.nordicsemi.com/thread/111207?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2017 10:04:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1173381c-ed95-4106-b78d-ee4308c23ea3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;On the nRF52840-PDK you have 2 USB connectors. The first one is connected to the on-board Segger J-Link debugger/programmer. In the documentation, this MCU is referred to as the “Interface MCU”. See &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52840_pdk/if_mcu.html?cp=2_0_3_4"&gt;this page&lt;/a&gt; at infocenter. The interface MCU features a USB to UART Bridge (virtual COM port). While you can choose any free GPIO pins you want for a regular UART connection on the PDK, the UART connection between the interface MCU and the nRF52840 is fixed, and given in Table 1 &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52840_pdk/vir_com_port.html?cp=2_0_3_4_1"&gt;here&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/attachment/cd1ff142ab48c542627193af7e6b4384" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;The other USB interface(nRF USB) is connected directly to the USB pins on the nRF52840. The signal/USB pins consist of the D+ and D- pins. They are dedicated pins, and not available as standard GPIOs. The USBD peripheral can act as a virtual COM port using the nRF USB connector. This is shown in the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/usbd_cdc_acm_example.html?cp=4_0_0_4_6_48_1"&gt;USB CDC ACM example&lt;/a&gt; in the SDK. In this case, we are not using any UART instance.&lt;/p&gt;
&lt;p&gt;2 ) Does the &amp;quot;FTDI usb to uart convertor&amp;quot; use flow-control and Parity excluded ? Do you have  a logic analyzer(e.g. Saleae) so you can use to see what is happening on the wires ?&lt;/p&gt;
&lt;p&gt;3 ) Then you need to create a new serial uart instance. This is done by using the macro &lt;code&gt;NRF_SERIAL_UART_DEF()&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_SERIAL_UART_DEF(serial_uart0, 0); // Create instance of a serial uart  using UARTE0
NRF_SERIAL_UART_DEF(serial_uart1, 1); // Create instance of a serial uart  using UARTE1

ret = nrf_serial_init(&amp;amp;serial_uart0, &amp;amp;m_uart0_drv_config, &amp;amp;serial_config0);
APP_ERROR_CHECK(ret);

ret = nrf_serial_init(&amp;amp;serial_uart1, &amp;amp;m_uart1_drv_config, &amp;amp;serial_config1);
APP_ERROR_CHECK(ret);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 UART connection</title><link>https://devzone.nordicsemi.com/thread/111206?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 19:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eee901c-f49c-44a1-a559-372f3f7282d1</guid><dc:creator>mweger</dc:creator><description>&lt;p&gt;I&amp;#39;m having the same issue it seems changing the uart pins from the default ones causes a hard fault for some reason. Really annoying if you ask me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>