<?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 example - nRF 9160 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49878/uart-example---nrf-9160-dk</link><description>Hello, I&amp;#39;m trying to test the UART example for nRF 9160 DK. To my understanding, any input sent through one of the ports should appear in the other one (from uart1 to uart0, being the one with &amp;quot;uart loopback&amp;quot; printf). So I set up two terminals (I was</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jul 2019 13:26:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49878/uart-example---nrf-9160-dk" /><item><title>RE: UART example - nRF 9160 DK</title><link>https://devzone.nordicsemi.com/thread/199008?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 13:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:191cb784-8aaf-420f-a668-055a099b54be</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Is&amp;nbsp;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/uart"&gt;this&lt;/a&gt;&amp;nbsp;the example you are using?&lt;/p&gt;
&lt;p&gt;That example does not use multiple UART peripherals by default. It reads from UART_0, and prints the output (also to UART_0). If you change UART_0 to UART_1 in the call to device_get_binding it will read from UART_1, and print to UART_0.&lt;/p&gt;
&lt;p&gt;While the nRF9160 opens 3 ports to the PC, only one is usable from the nRF9160 by default. One is connected to the nRF52840 acting as a board controller, while the last one is not connected by default. Take a look at the documentation&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf91_dk%2FUG%2Fnrf91_DK%2Fmcu_virtual_com_port.html&amp;amp;cp=2_0_3_3_0_1"&gt;here&lt;/a&gt;. The unconnected port can be connected to UART_1 on the nRF9160 by flashing the &amp;quot;hello_world&amp;quot; sample to the board controller as described in the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf91_dk%2FUG%2Fnrf91_DK%2Fboard_controller.html"&gt;nRF9160DK&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf9160.html#board-controller"&gt;NCS&lt;/a&gt;&amp;nbsp;documentation.&lt;/p&gt;
&lt;p&gt;Remember to configure any peripherals you use as non-secure if your application is running in non-secure mode as described in the&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-connect-sdk-tutorial#h158sjwjjwp3j1gz499wsfryw01mj8tuc"&gt;NCS tutorial&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>