<?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>Route UART2 to external headers (not VCOM2)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86784/route-uart2-to-external-headers-not-vcom2</link><description>Hi there, 
 We are running the Serial LTE Modem sample on the nrf9160 DK. We are currently communicating AT commands via the USB cable and VCOM2. 
 However we would like to route these uart lines to the external pins, so that we can communicate with it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Apr 2022 08:44:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86784/route-uart2-to-external-headers-not-vcom2" /><item><title>RE: Route UART2 to external headers (not VCOM2)</title><link>https://devzone.nordicsemi.com/thread/365535?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2022 08:44:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f61f9ea8-ba85-44aa-a4ce-6e1e730212be</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/ug_nrf9160.html#board-controller"&gt;Developing with nRF9160 DK: Board controller&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Route UART2 to external headers (not VCOM2)</title><link>https://devzone.nordicsemi.com/thread/365464?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 14:46:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fd1515a-1e13-419f-a411-415d69237e31</guid><dc:creator>Frikkie Badenhorst</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/86784/route-uart2-to-external-headers-not-vcom2/365426#365426"]The devicetree has its own function to toggle this, see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/boards/arm/nrf9160dk_nrf52840/doc/index.html#board-controller-firmware"&gt;Board controller firmware&lt;/a&gt;.[/quote]
&lt;p&gt;From the description of the board controller firmware, this does indeed seem to be what we are looking for.&amp;nbsp;&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/86784/route-uart2-to-external-headers-not-vcom2/365426#365426"]I suggest putting the code above into a file in your project named boards/nrf9160dk_nrf52840.overlay.[/quote]
&lt;p&gt;We do not have a project for the nrf52. That is exactly what we are trying to figure out, what project should be loaded onto the nrf52.&lt;/p&gt;
&lt;p&gt;Can it be any random project (e.g. blinky etc.) to which we can just add the .overlay file, or should it be an empty project? Or is there a &amp;quot;Board Controller Firmware&amp;quot; example project which we can just not find?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Route UART2 to external headers (not VCOM2)</title><link>https://devzone.nordicsemi.com/thread/365426?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 12:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10493632-c003-45fe-a2c6-9ea8d9531469</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The devicetree has its own function to toggle this, see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/boards/arm/nrf9160dk_nrf52840/doc/index.html#board-controller-firmware"&gt;Board controller firmware&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;From this:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;And if you want to, for example, disable routing for the VCOM2 pins, add the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;vcom2_pins_routing {
        status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;The same would be for vcom0.&lt;/p&gt;
&lt;p&gt;When doing this, you would build for the nRF52840 on the 9160DK, as it is the one controlling the pins. (nrf9160dk_nrf52840)&lt;br /&gt;I suggest putting the code above into a file in your project named boards/nrf9160dk_nrf52840.overlay.&lt;/p&gt;
&lt;p&gt;Is this what you are looking for?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Route UART2 to external headers (not VCOM2)</title><link>https://devzone.nordicsemi.com/thread/365421?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 12:24:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d37c1b5-767e-4f4b-a13f-a2ae8ad87b33</guid><dc:creator>Frikkie Badenhorst</dc:creator><description>&lt;p&gt;Hi Sigurd,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It does not matter which UART really. We just want to be able to program the nrf91_UARTX_CTRL pins in order to disconnect the UART from the interface MCU.&lt;/p&gt;
&lt;p&gt;&lt;img height="301" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1651148245781v1.png" width="346" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;These pins are connected to the nrf52 on the DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1651148487045v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;We are thus looking for a project containing the source code that is running by default on the nrf52, so that we can edit the states of these pins.&lt;/p&gt;
&lt;p&gt;(By the way the signals are alreaddy routed the the external pins which we can access, however while the signals are also connected to the interface MCU, we are getting a lot of noise on the pins. When disconnecting the interface MCU, the signals work fine, but we want to have the interface MCU on in order to debug)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Route UART2 to external headers (not VCOM2)</title><link>https://devzone.nordicsemi.com/thread/365416?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 12:10:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e66d593-c065-4521-beb9-161d16e80961</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;To clarify:&lt;/p&gt;
&lt;p&gt;The figure you post are of UART1.&lt;br /&gt;The original post is asking for UART2.&lt;/p&gt;
&lt;p&gt;Is it important for you which UART is routed to the external pins?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Route UART2 to external headers (not VCOM2)</title><link>https://devzone.nordicsemi.com/thread/365141?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 09:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6483f018-da1e-4544-ad1f-b2730a5c7d8d</guid><dc:creator>Frikkie Badenhorst</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Sorry for the late response, other items had higher priority and I can focus on this part now.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/86784/route-uart2-to-external-headers-not-vcom2/362639#362639"]For the nRF52 on the nRF9160DK, see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/83511/source-code-for-52840-board-controller-on-the-nrf9160dk/348323#348323"&gt;This case&lt;/a&gt;.[/quote]
&lt;p&gt;Can you please advise how we get this source code into a project?&amp;nbsp;We are having real frustating experiences with the nordic tools and Segger Embedded Studio.&amp;nbsp;&amp;nbsp;Anyways, we simply only want to change the state of the nrf91_UART1_CTRL pin so that&amp;nbsp;the UART signals are not routed to VCOM0:&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1651052783700v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;This only requires setting the state of a GPIO pin according to me? No board overlay files should be needed? We simply just want the get the source code provided in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/83511/source-code-for-52840-board-controller-on-the-nrf9160dk/348323#348323"&gt;this case&lt;/a&gt;&amp;nbsp;into a SES project so that we can change the state of the pin and program the nrf52 correctly as to not break the behavior of the entire devkit.&lt;/p&gt;
&lt;p&gt;Can you please provide us with such a project setup or at least just how we can add it to a project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Route UART2 to external headers (not VCOM2)</title><link>https://devzone.nordicsemi.com/thread/362747?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 07:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccc7af26-d831-4444-a54e-97666c1db4ee</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="Frikkie Badenhorst"]And how do we route the uart to the external headers on the nrf5340 DK?[/quote]
&lt;p&gt;You need to add an overlay file to your project for the nRF5340.&lt;br /&gt;As you can see in &amp;quot;nrf/samples/zigbee/ncp/boards/nrf52840dk_nrf52840.overlay&amp;quot;, the pins are set as such:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;amp;uart1 {
    tx-pin = &amp;lt;6&amp;gt;;
    rx-pin = &amp;lt;8&amp;gt;;
    rts-pin = &amp;lt;5&amp;gt;;
    cts-pin = &amp;lt;7&amp;gt;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then it will be up to you to decide which pins to use for your headers.Also have a look at other overlay files in our nRF Connect SDK for other examples on this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Route UART2 to external headers (not VCOM2)</title><link>https://devzone.nordicsemi.com/thread/362641?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 15:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dbf15d3-e52b-4452-8c51-0299c1297d74</guid><dc:creator>Frikkie Badenhorst</dc:creator><description>&lt;p&gt;Thanks Sigurd, I honestly hope this does not take too long. This is quite an unnecessarily complicated system.&lt;/p&gt;
&lt;p&gt;And how do we route the uart to the external headers on the nrf5340 DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Route UART2 to external headers (not VCOM2)</title><link>https://devzone.nordicsemi.com/thread/362639?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 14:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54cfb9e1-7b0c-4da8-8dfb-d4597cc444ff</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Frikkie&lt;/p&gt;
&lt;p&gt;For the nRF52 on the nRF9160DK, see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/83511/source-code-for-52840-board-controller-on-the-nrf9160dk/348323#348323"&gt;This case&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To change pins for the UART, you need to add board overlay files. See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/guides/dts/howtos.html"&gt;Devicetree HOWTOs&lt;/a&gt; and the our for example &amp;quot;nrf/samples/peripherals/lpuart/boards/&amp;quot;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>