<?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>Connecting UART1 to a periph on nRF9160 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45476/connecting-uart1-to-a-periph-on-nrf9160-dk</link><description>Dear All, 
 
 For a reason that I can&amp;#39;t understand so far, I must erase the nRF52840 to be able to use UART1, TX RX on pins 0 1 (connector P14) to communicate with an external module. When nRF82840 is loaded with the default 9160 Board Controller FW,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2020 07:35:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45476/connecting-uart1-to-a-periph-on-nrf9160-dk" /><item><title>RE: Connecting UART1 to a periph on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/228480?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 07:35:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57946286-72bf-4a38-9a7d-7e621a187180</guid><dc:creator>Siyou</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;I can access UART1 to send AT cmd after changing the&amp;nbsp;CONFIG_BSD_LIBRARY_TRACE_ENABLED=y to n.&lt;/p&gt;
&lt;p&gt;what is meaning of the&amp;nbsp;&lt;span&gt;CONFIG_BSD_LIBRARY_TRACE_ENABLED=y?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART1 to a periph on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/228468?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 05:55:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd265c70-87f8-462e-9d95-e097ef22a44c</guid><dc:creator>Siyou</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How to map the nrf9160 UART0 to VCOM0 and UART1 to VCOM2 at the same time?&lt;/p&gt;
&lt;p&gt;According to the DK user gudie, it stated pin 28&amp;amp;29 was connected to VCOM0 and pin 0&amp;amp;1 was connected to VCOM2 in default, but I cannot access UART1 via VCOM2 for CONFIG_SLM_CONNECT_UART in serial_lte_modem sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART1 to a periph on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/179161?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 09:15:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78a352a3-ed42-481c-8104-6f882e966ca4</guid><dc:creator>Nico_ID</dc:creator><description>&lt;p&gt;You&amp;#39;re welcome !&lt;/p&gt;
&lt;p&gt;At least I&amp;#39;m not crazy, I almost smashed my head on the wall while understanding what I was doing wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART1 to a periph on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/179146?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 08:57:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8f9ac05-aae5-4f94-978e-928c1ff576ce</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Nico,&lt;br /&gt;&lt;em&gt;Sorry, I forgot to address that question in your original post.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;You are totally correct in your findings, it should be opposite.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-90fd12c1e97744b68621ef2052c55b9f/pastedimage1553849639954v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;It has been reported internally so it will be fixed in the next revision.&lt;br /&gt;&lt;/em&gt;&lt;strong&gt;Thank you again for the feedback!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART1 to a periph on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/179015?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 15:47:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16e83008-810f-4fae-9a8e-fc18431f8299</guid><dc:creator>Nico_ID</dc:creator><description>&lt;p&gt;Thanks for that very detailled answer.&amp;nbsp;&lt;br /&gt;Let me check that...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the meantime, can you comment on nRF9160 spec, chapter &amp;quot;&lt;span&gt;5.7.1 nRF9160 DK board control&amp;quot; which states that default config should be PIN header, while it appears to be the opposite ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting UART1 to a periph on nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/178988?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 14:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc8c7413-9d45-4997-a829-d3ea1ab3da97</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Nico,&lt;/p&gt;
&lt;p&gt;The different options that you can change in the board controller can be seen in the Kconfig file to the&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/boards/arm/nrf9160dk_nrf52840/Kconfig"&gt; nrf52840_pca10090.&lt;/a&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;So we need to build and flash a new application on the nrf52840 to route the pins.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want&amp;nbsp;to route the &lt;strong&gt;UART0&lt;/strong&gt; from &lt;strong&gt;VCOM0&lt;/strong&gt; (default) to the external pins (P0.26 - P0.29) we need to reflash the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/board_controller.html"&gt;Board Controller (nrf52840)&lt;/a&gt;&amp;nbsp;so it routes the pins differently.&lt;/p&gt;
&lt;p&gt;This can be done by just adding&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/boards/arm/nrf9160dk_nrf52840/Kconfig"&gt;the following:&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOARD_PCA10090_UART0_ARDUINO=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/samples/hello_world/prj.conf"&gt;prj.conf&lt;/a&gt;&amp;nbsp;&lt;/strong&gt;file in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;for example&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;the&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/tree/master/samples/hello_world"&gt;hello_world sample&lt;/a&gt;&amp;nbsp;and build it for the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.zephyrproject.org/latest/boards/arm/nrf52840_pca10090/doc/index.html#flashing"&gt;nrf52840_pca10090 board.&lt;/a&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;The same goes for when you want to route UART1 to the external pins (&lt;span&gt;P0.01, P0.00, P0.15 and P0.14)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Add &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/de69d2df908fc7bccd8c03b106e7645e90b1503b/boards/arm/nrf52840_pca10090/Kconfig#L33"&gt;the following:&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOARD_PCA10090_UART1_ARDUINO=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;in the &lt;strong&gt;prj.conf&lt;/strong&gt; file.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Adding a precompiled board controller application for routing out UART1 to the external pins:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/board_5F00_controller_5F00_uart1.hex"&gt;devzone.nordicsemi.com/.../board_5F00_controller_5F00_uart1.hex&lt;/a&gt;&lt;br /&gt;&lt;span&gt;Flash with &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;command line&lt;/a&gt;:&amp;nbsp;&lt;/span&gt;&lt;strong&gt;nrfjprog --program boardcontroller_uart1.hex -f nrf52 --sectorerase -r --verify&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;When flashing the nrf52840 remember to have the&amp;nbsp;SW5 to nrf52.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;Example with interfacing with UART0:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;br /&gt;Here you can see how I connected the&amp;nbsp;&lt;a href="https://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_TTL-232RG_CABLES.pdf"&gt;TTL-232RG-VIP-WE&amp;nbsp;&lt;/a&gt;with the nrf91DK with UART0:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-90fd12c1e97744b68621ef2052c55b9f/pastedimage1553854045592v2.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-90fd12c1e97744b68621ef2052c55b9f/Capture2.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;So here I am running at_client sample on the nrf91 and use the UART from the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;TTL&amp;nbsp;&lt;/em&gt;to send/receive AT-Commands:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-90fd12c1e97744b68621ef2052c55b9f/pastedimage1553854087913v4.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-90fd12c1e97744b68621ef2052c55b9f/pastedimage1553854108421v5.png" /&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;br /&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>