<?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>nRF9160 asset tracker configure UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45941/nrf9160-asset-tracker-configure-uart</link><description>Hi 
 I downloaded and successfully build and ran the asset tracker sample on the nRF9160 DK using segger embedded studio. In a first step I want to reroute the debug UART output to the pins P0.17 and P0.18. Therefore I checked this post and introduced</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Apr 2019 06:25:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45941/nrf9160-asset-tracker-configure-uart" /><item><title>RE: nRF9160 asset tracker configure UART</title><link>https://devzone.nordicsemi.com/thread/182240?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 06:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61770a9a-8cb4-4fdd-a6e4-0e75c7db9ea3</guid><dc:creator>Marc</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;Oslash;yvind&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thx! to add the uart0 definition in the .overlay of the secure boot example solved the problem! :-)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 asset tracker configure UART</title><link>https://devzone.nordicsemi.com/thread/181618?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 13:03:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:399d187e-9dc3-4918-8d2c-71a4656cae93</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Marc,&lt;/p&gt;
[quote user="Marc__"]What do you mean with this and why is it necessary?[/quote]
&lt;p&gt;My quote didn&amp;#39;t follow the answer, but it was in&amp;nbsp;conjunction to &amp;quot;&lt;span&gt;Second, I wanted to introduce a second UART / Serial in the project&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please have a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44470/nrf9160-dk-gpio-uart"&gt;this post&lt;/a&gt;, &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44097/how-to-config-the-uart-of-nrf9160-sip"&gt;this post&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44648/how-to-communicate-an-external-module-through-uart-in-nrf9160dk"&gt;this post&lt;/a&gt; which discusses the same setup as you. You may have to add the overlay file to secure boot as well. I have not had the time to check if it is running as it should on my side, only verified that the pins are set and that the TX pin is high and RX is floating.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 asset tracker configure UART</title><link>https://devzone.nordicsemi.com/thread/181312?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 11:59:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:009a72d0-26de-43bf-89fb-eeba2533ee9f</guid><dc:creator>Marc</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I did what you told and now I can observe in the generated_dts_board.h the pin numbers change according to the setting in&amp;nbsp;the .overlay file. I also added the lines in the prj.conf file. However, when I build and flash the application, the debug UART is still routed to the Interface MCU.. Do I miss something else in the config process? Does your example run on a DK?&lt;/p&gt;
&lt;p&gt;I checked with the LTE logging from &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41742/nrf91-zephyr-enable-lte-logging/162495#162495"&gt;this post&lt;/a&gt; if the settings in prj.conf have any effect at all. =&amp;gt; yes, this works.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m now using the cmake and ninja cmd line commands to build because with the SES I&amp;#39;m not sure if it always properly porcesses changes in prj.conf and .overlay..&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/45941/nrf9160-asset-tracker-configure-uart/181092"]These settings need to be added for UART1 as well.[/quote]
&lt;p&gt;What do you mean with this and why is it necessary?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 asset tracker configure UART</title><link>https://devzone.nordicsemi.com/thread/181092?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 13:44:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae992774-6213-4d9c-8f1a-5274059efcc3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Marc,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The overlay file should override the default pins. Where have you placed the overlay file?&lt;br /&gt;&lt;br /&gt;Did you include the UART settings in&amp;nbsp;prj.conf:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_UART_0_NRF_UARTE=y
CONFIG_UART_0=y
CONFIG_AT_HOST_UART=0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;These settings need to be added for UART1 as well.&lt;/p&gt;
&lt;p&gt;Can you verify that the pins are configured in the following file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; samples\nrf9160\asset_tracker\build\zephyr\include\generated\generated_dts_board.h&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You should be able to see what pins have been configured for UART0.&amp;nbsp;&lt;br /&gt;My file before overlay:&lt;br /&gt;&lt;img alt="generated_dts_board.h before overlay" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-fc67d732af704530a56410c113668018/3002_2D00_nRF91_5F00_overlay_2D00_before.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;And after overlay:&lt;/p&gt;
&lt;p&gt;&lt;img alt="generated_dts_board.h after overlay" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-fc67d732af704530a56410c113668018/3002_2D00_nRF91_5F00_overlay_2D00_after.PNG" /&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps. Let me know if anything is unclear.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 asset tracker configure UART</title><link>https://devzone.nordicsemi.com/thread/180977?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 09:48:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c48f642-ff8f-4bc3-9f63-878dbb54aab8</guid><dc:creator>Marc</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;Oslash;yvind&lt;/p&gt;
&lt;p&gt;Thanks for your answer. I tested your solution and it works. BUT, it&amp;#39;s not what I wanted. The solution you provided just configures the analog switch. What I wanted is to &lt;strong&gt;change the UART pins&lt;span style="text-decoration:underline;"&gt; on the nRF9160&lt;/span&gt; using software configuration&lt;/strong&gt;. According to the board controller, pins 17 and 18 should already be routed by default to the Arduino interface. So what do I have to do to&amp;nbsp;configure&amp;nbsp;the UART &lt;span style="text-decoration:underline;"&gt;in software&lt;/span&gt; to pins 17 and 18?&lt;/p&gt;
&lt;p&gt;BR, Marc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 asset tracker configure UART</title><link>https://devzone.nordicsemi.com/thread/180955?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 08:44:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf1db7c-330d-4959-bb95-23c85bcc6127</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Marc,&lt;br /&gt;&lt;br /&gt;The&amp;nbsp;configure the UARTx pins, you have to&amp;nbsp;configure the&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/User_Guides/nrf91_dk/latest/UG/nrf91_DK/hw_description/board_controller#board_controller"&gt;board controller&lt;/a&gt;. Please see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45476/connecting-uart1-to-a-periph-on-nrf9160-dk"&gt;this thread&lt;/a&gt;, which has a good explanation on how to configure the UART.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>