<?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 communication between nrf9160 and nrf52840 on Thingy91</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93322/uart-communication-between-nrf9160-and-nrf52840-on-thingy91</link><description>I am having problems setting up UART communication between nrf9160 and nrf52840 on Thingy91. My set up consist of a Thingy52 and a Thingy91. I am using ncs version 2.0.1. 
 The Thingy52 is currently running the peripheral_uart sample and seems to work</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Oct 2022 13:47:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93322/uart-communication-between-nrf9160-and-nrf52840-on-thingy91" /><item><title>RE: UART communication between nrf9160 and nrf52840 on Thingy91</title><link>https://devzone.nordicsemi.com/thread/393055?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2022 13:47:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d4e9883-b170-449f-aab3-1520eabb26dc</guid><dc:creator>Tonja Joseph</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thanks for the answer. I actually just manages to make it work! :)&lt;br /&gt;&lt;br /&gt;The solution was to also configure the CTS and RTS pins in both overlay files. These were set up in the original board files to pins that are not connected in my case. This is probably why there were no data flow on my UART lines. I also changed the uart peripheral to uart1 from uart0. Not sure if this was necessary, but I can test it and report what I find.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Here are my new overlay files.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;nrf52840dk_nrf52840.overlay&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;amp;uart1 {
	current-speed = &amp;lt;115200&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};


&amp;amp;pinctrl {

    uart1_default: uart1_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 25)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 22)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 19)&amp;gt;;
		};
	};

	uart1_sleep: uart1_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 25)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 1, 0)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 22)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 19)&amp;gt;;
			low-power-enable;
		};
	};
    

};


&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;thingy91_nrf9160_ns.overlay&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart1 {
	current-speed = &amp;lt;115200&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};


&amp;amp;pinctrl {

	uart1_default: uart1_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 22)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 23)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 24)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 25)&amp;gt;;
		};
	};

	uart1_sleep: uart1_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 22)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 23)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 0, 24)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 0, 25)&amp;gt;;
			low-power-enable;
		};
	};

};
&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication between nrf9160 and nrf52840 on Thingy91</title><link>https://devzone.nordicsemi.com/thread/393039?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2022 13:13:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c5772d1-76ff-4280-9114-7c81871d82b2</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From the schematic you link:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1666962632397v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I suggest that you connect an oscilloscope or logic analyzator to SB8 and SB9 and see if you can see any traffic on the actual lines.&lt;/p&gt;
&lt;p&gt;That way you can figure out if the error is in the nRF9160 or nRF52840.&lt;/p&gt;
&lt;p&gt;Also, I recommend having a look at our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.1/nrf/applications/asset_tracker_v2/README.html"&gt;Asset Tracker v2&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.1/nrf/applications/connectivity_bridge/README.html"&gt;Connectivity bridge&lt;/a&gt; samples, as they also do UART communication between the 9160 and 52840 on the Thingy91.&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: UART communication between nrf9160 and nrf52840 on Thingy91</title><link>https://devzone.nordicsemi.com/thread/392972?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2022 09:21:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3353b3ef-4a71-46f7-b1af-cd7e8a3744b4</guid><dc:creator>Tonja Joseph</dc:creator><description>&lt;p&gt;To clarify, what happens when I am trying to send a message over UART is that the uart_tx()-function returns successfully, but I do not see anything on the&amp;nbsp;&lt;span&gt;recipient side. This is the case in both directions.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also attaching the schematic I have been looking at when deciding the pins to use for RX/TX.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/PCA20035_5F00_Schematic_5F00_And_5F00_PCB.pdf"&gt;devzone.nordicsemi.com/.../PCA20035_5F00_Schematic_5F00_And_5F00_PCB.pdf&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>