<?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>Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52545/receive-external-data-through-uart-on-thingy-91</link><description>Hi, 
 For my project I need to receive 9 bytes of data from our main board. This data gets send using UART. 
 By looking at the pin diagram I could not find specific pins on the Thingy:91 to use as UART RX and TX. 
 So my question, are there any GPIO</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Nov 2019 12:00:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52545/receive-external-data-through-uart-on-thingy-91" /><item><title>RE: Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/221306?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 12:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e99b6dc7-1405-49fe-ac8e-41ced20184e5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="Marc__"]Thx for your answer. I did option 1 and it&amp;#39;s working fine! :-) How the lines IF3-7 are used, i found in the&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/boards/arm/nrf9160_pca20035/nrf9160_pca20035_common.dts#L166"&gt;nrf9160_pca20035_common.dts&lt;/a&gt;&amp;nbsp;file. I just used an overlay file like this to my needed speed of uart1[/quote]
&lt;p&gt;&amp;nbsp;Glad to hear that you got things working!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Marc__"]Thx for the general note, that CTS and RTS are not used anyhow.[/quote]
&lt;p&gt;&amp;nbsp;My apologies here, while the flow control (ie: the UART register setting) is enabled by &amp;quot;UART_0_NRF_FLOW_CONTROL=y&amp;quot; (change 0 to 1 or 2, if using UART1 / UART2), it seems that the nRF9160 sets the GPIOs as the respective output / input, with the default level set. Not a huge problem, but it reconfigures the GPIO pins, which could be problematic for some designs.&lt;/p&gt;
&lt;p&gt;If you set the rts-pin = &amp;lt;0xFFFFFFFF&amp;gt;; and cts-pin = &amp;lt;0xFFFFFFFF&amp;gt;;, they should not be re-configured at all.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll report this as a bug internally&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/221199?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 06:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8187809a-82de-4130-b6e4-47ad1cefede8</guid><dc:creator>Marc</dc:creator><description>&lt;p&gt;Hi Hakon&lt;/p&gt;
&lt;p&gt;Thx for your answer. I did option 1 and it&amp;#39;s working fine! :-) How the lines IF3-7 are used, i found in the&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/boards/arm/nrf9160_pca20035/nrf9160_pca20035_common.dts#L166"&gt;nrf9160_pca20035_common.dts&lt;/a&gt;&amp;nbsp;file. I just used an overlay file like this to my needed speed of uart1&lt;/p&gt;
&lt;p&gt;nrf9160_pca20035ns.overlay&lt;/p&gt;
&lt;p&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;;
	tx-pin = &amp;lt;22&amp;gt;;
	rx-pin = &amp;lt;23&amp;gt;;
	rts-pin = &amp;lt;24&amp;gt;;
	cts-pin = &amp;lt;25&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thx for the general note, that CTS and RTS are not used anyhow.&lt;/p&gt;
&lt;p&gt;I did not try option 2.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Marc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/221130?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 15:08:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aa8e082-5c88-40ec-90dc-04e20621a4e2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Marc,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Marc__"]For this I just need to know if and which two lines of IF3-7 would be available? Since the Modem Trace is not yet available (and I don&amp;#39;t need it) I rekon I could use these lines. I want still to be able to see the debug log on the UART over USB however.[/quote]
&lt;p&gt;If you cut the trace, and connect to the &amp;quot;nrf91&amp;quot; side, they&amp;#39;re all available, as long as you have not enabled modem tracing.&lt;/p&gt;
&lt;p&gt;As a generic note, the CTS and RTS are not used, so they&amp;#39;re free to use even when both UARTs are running.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Marc__"]Option 2:&lt;br /&gt;TP7 is connected to P0.10 and has an already open solder bridge (SB5&amp;amp;6). Thus, It seems P0.10 is not used and I could use it for the UART_1 RX? One RX is the minimum I need. Or do you see another option for the TX line too? Maybe TP36 (P0.05) which seems not to be connected to the SPI:MISO?[/quote]
&lt;p&gt;Yes, you&amp;#39;re right wrt. P0.10. You can also hook into either SB5 or SB6 to get to P0.10. But, you are going to be short one GPIO here, as P0.05 goes to ADXL362 and ADXL372.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/220976?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 07:28:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5267ac51-fb71-436a-b6d8-e1501c687c17</guid><dc:creator>Marc</dc:creator><description>&lt;p&gt;Hi Hakon&lt;/p&gt;
&lt;p&gt;I have the same need for an UART on the Thingy:91 like T1mS_. I have a&amp;nbsp;SW running on the nRF91-DK communicating over UART_1 with an external controller. Now for the Proof of Concept I need to show a miniaturization for which I want to use the Thingy. I could think of two options:&lt;/p&gt;
&lt;p&gt;Option 1:&lt;br /&gt;Use two lines of the UART-USB bridge MCU_IF3-7 (P0.21-25), cut the according solder bridges (SB7-11) and connect the wires directly to one pad of the solder bridges.&amp;nbsp;&lt;br /&gt;For this I just need to know if and which two lines of IF3-7 would be available? Since the Modem Trace is not yet available (and I don&amp;#39;t need it) I rekon I could use these lines. I want still to be able to see the debug log on the UART over USB however.&lt;/p&gt;
&lt;p&gt;Option 2:&lt;br /&gt;TP7 is connected to P0.10 and has an already open solder bridge (SB5&amp;amp;6). Thus, It seems P0.10 is not used and I could use it for the UART_1 RX? One RX is the minimum I need. Or do you see another option for the TX line too? Maybe TP36 (P0.05) which seems not to be connected to the SPI:MISO?&lt;/p&gt;
&lt;p&gt;Thx!&lt;/p&gt;
&lt;p&gt;Marc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/213850?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 10:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46461c51-f0db-42f8-954d-1a6d97f8f3fd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Thingy:91 is limited in terms of GPIOs available.&lt;/p&gt;
&lt;p&gt;The UART pins, marked with &amp;quot;MCU_IF0&amp;quot; to &amp;quot;MCU_IF7&amp;quot; are directly wired to the nRF52840, as the nRF52840 acts as a USB-to-UART bridge in this case.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you need a more flexible solution in terms of GPIOs, I would recommend that you look at the nRF91-DK instead.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/213798?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 07:04:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e18eaf50-1e1d-4ebd-a3cd-2063fb97afef</guid><dc:creator>T1mS_</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/mjd093"&gt;MJD093&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to wait for an answer from Nordic.&lt;/p&gt;
&lt;p&gt;Your answer already helped me to get more in depth information.&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Tim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/213716?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 15:01:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f1bec85-cc70-457b-91da-da93daccbae6</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;The headers you have marked there are headers P6 and P7. They can be found on page 6 of the hardware pdf. &lt;/p&gt;
&lt;p&gt;As for how to integrate with the Thingy:91, I will leave that question for Nordic as I don&amp;#39;t honestly know how you would interface with it. I don&amp;#39;t see any points for that.&lt;/p&gt;
&lt;p&gt;I was just answering your original question you had on UART Pins and the code for enabling them &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/213699?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 14:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2535cd0b-a8ac-47e0-8740-8ff8c9abc74b</guid><dc:creator>T1mS_</dc:creator><description>&lt;p&gt;Ok, I understand the TP stands for the test pads.&lt;/p&gt;
&lt;p&gt;But I still can&amp;#39;t figure it out which of the GPIO pins I can access. There are some free holes to solder pins on but they are not named:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1570457682261v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/213688?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 13:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67a7181f-fbcc-4798-b110-ce2df630050b</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;No, those are test pads. The test pads 18 and 19 are connected to the Power Management IC (see &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Prototyping-platforms/Nordic-Thingy-91/Download#infotabs"&gt;Thingy:91 hardware files&lt;/a&gt;, PCA20035_Schematic_And_PCB pdf, page 5). &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/213643?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 12:08:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac6c14a8-e6e0-4f47-95bc-32824abc9cf0</guid><dc:creator>T1mS_</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/mjd093"&gt;MJD093&lt;/a&gt; ,&lt;/p&gt;
&lt;p&gt;Thanks for the answer. So the Pins are set to 18 and 19:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1570449914740v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Are these meant by this?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1570450049339v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_cts_c.html&amp;amp;cp=5_0_4_2_2_7"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_cts_c.html&amp;amp;cp=5_0_4_2_2_7&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive external data through UART on Thingy:91</title><link>https://devzone.nordicsemi.com/thread/211604?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 15:57:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c06e9a43-d177-46da-bd8e-b419f19de28e</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Any P0.## pin can be used as UART pins. You just need to set them up in the device&amp;#39;s tree structure. The Perpiheral for UART# is given the P0.## pins that you set up in the .dts files and will configure them for you according to the configuration.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/a2c36f15843f9e11bd997cf5e72b0b4d69a552f7/boards/arm/nrf9160_pca10090/nrf9160_pca10090_common.dts#L83"&gt;https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/a2c36f15843f9e11bd997cf5e72b0b4d69a552f7/boards/arm/nrf9160_pca10090/nrf9160_pca10090_common.dts#L83&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above link shows how this is done for the nRF9160 PCA10090 Development Kit.&lt;/p&gt;
&lt;p&gt;In the device files for the PCA20035 (the Thingy:91) you just need to set up your desired pins for RX and TX like the above.&lt;/p&gt;
&lt;p&gt;The default UART Pins on the Thingy91 are currently set as &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/b456fb40c4912e3d435b9ee029d8ef24b113f7d0/boards/arm/nrf9160_pca20035/nrf9160_pca20035_common.dts#L165"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/b456fb40c4912e3d435b9ee029d8ef24b113f7d0/boards/arm/nrf9160_pca20035/nrf9160_pca20035_common.dts#L165&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>