<?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 data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95911/receive-data-via-uart-with-nrf5340</link><description>hello, I am currently working on a project that involves sending data via serial from a device to the nordic nr5340. but I can&amp;#39;t find an example that shows how it would be in this case, in the course it tells me to use the asynchronous api, but in this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Mar 2023 08:22:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95911/receive-data-via-uart-with-nrf5340" /><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/413435?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 08:22:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ba8e4bd-8ed8-4372-a73b-734744eef996</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Håkon is currently unavailable, and I will handle your case in the mean time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you give me a quick update what your status is at the moment?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where you able to solve your issue through the other case?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/412569?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 15:25:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87bbb792-896f-419b-91c3-8da28fa55c4c</guid><dc:creator>brando14</dc:creator><description>&lt;p&gt;Hello, thank you very much for the help, Answering your questions:&lt;/p&gt;
&lt;p&gt;1) It only happens to me when I try to pass the uart example from devacademy to nordic and try to connect with the console, with any other example it works fine.&lt;/p&gt;
&lt;p&gt;2) I have not tried it but I will do that test, to have that option.&lt;/p&gt;
&lt;p&gt;On the other hand, over the weekend I tried only connecting the nordic to the pc without having the other board connected to the nordic, and if I was able to run the example correctly, I had left another query in another topic and where they already indicated another way to proceed to those kinds of cases.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know if it is because since the texas is sending data this could cause some interference, since the example uses the interface that is in the console, that is, the uart0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/412536?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 13:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1053b83b-94ec-44ac-b8c0-d1538bf16008</guid><dc:creator>helsing</dc:creator><description>[quote user="brando14"]when I try to pass it al nordic opens the folder where the segger part is, what do you suggest I do?[/quote]
&lt;p&gt;The window should normally not pop up. What exactly do you click on when this occurs? Does this only happen with this specific application? Are you able to build and flash other samples, like the hello_world sample?&lt;/p&gt;
[quote user="brando14"]it builds fine[/quote]
&lt;p&gt;Could you try flashing the .hex file using &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt; Programmer? Are you able to flash hello_world this way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/411787?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 20:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e606f290-c72c-47da-9437-67ed94e507d9</guid><dc:creator>brando14</dc:creator><description>&lt;p&gt;Hello I have the next scenario:&lt;/p&gt;
&lt;p&gt;I work with two boards:&lt;/p&gt;
&lt;p&gt;Texas PCB: EVM430-FR6047 MCU018 PCB Rev A&lt;/p&gt;
&lt;p&gt;Nordic Semiconductor PCB: nRF5340 DK&lt;/p&gt;
&lt;p&gt;The texas board is connected with a ultrasonic sensor and sends the flow volume data through uart protocol. So the idea if forwarding the data coming from the MSP430 (ultrasonic flow sensor) to the nRF5340 DK for further processing via uart.&lt;/p&gt;
&lt;p&gt;So I am wiring both PCBs this way:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;J3: TXD (black cable) --&amp;gt; nRF5340 DK P1.15&amp;nbsp;&lt;/p&gt;
&lt;p&gt;J3: RXD (purple cable) --&amp;gt; nRF5340 DK P1.14&lt;/p&gt;
&lt;p&gt;&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/pastedimage1677183018409v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to use the dev academy example as a guide but it doesn&amp;#39;t even work for me, it builds fine but every time I pass them to nordic it only opens the segger folder.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/411715?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 15:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cee9afcc-cc42-447a-8263-e7826430b6f4</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi brando,&lt;/p&gt;
&lt;p&gt;Sorry for the delay.&lt;/p&gt;
[quote user="brando14"]every time i build it gives me the following error:[/quote]
&lt;p&gt;Could you please check the build log from the &amp;#39;terminal&amp;#39; tab in nRF Connect for VS Code?&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/pastedimage1677165768926v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry, I am a little confused regarding what you are working on. Is nRF5340 connected to a sensor or to another MCU that has a sensor connected to it? What would you like to do with the data you receive over UART on nRF5340?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/410726?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 20:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61b1e551-daeb-4b82-8363-30fab2fbe6e4</guid><dc:creator>brando14</dc:creator><description>&lt;p&gt;hello thanks for answering this problem too i tried to run the uart example from dev academy course but every time i build it gives me the following error:&lt;/p&gt;
&lt;p&gt;&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/pastedimage1676666453596v12.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried to change the version, taking into account that in version 2.2.0 every time I build the application, some files are not generated in the zephir folder inside the build, but the error still persists, not only that but also when I try to pass it al nordic opens the folder where the segger part is, what do you suggest I do?&lt;/p&gt;
&lt;p&gt;&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/pastedimage1676666482384v13.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/410183?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 21:04:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:793f5746-aedc-43fa-a30a-4cef4746de57</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi brando,&lt;/p&gt;
&lt;p&gt;I will get back to you with more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/409700?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 19:52:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36345551-8816-4ae2-ab18-590b51a3d0ee</guid><dc:creator>brando14</dc:creator><description>&lt;p&gt;&lt;span&gt;hello greetings, I have been using that example as a base, but from what I understand is that this example is to be used with the console, and I do not fully understand how it would be for my case, since I currently have the following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;1) I have 1 pcb connected via serial to nordic via pins 14 and 15, using the following configuration in my overlay file.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;amp;uart1 {
		compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
		reg = &amp;lt;0x8000 0x1000&amp;gt;;
		interrupts = &amp;lt;8 NRF_DEFAULT_IRQ_PRIORITY&amp;gt;;
		status = &amp;quot;okay&amp;quot;;
		current-speed = &amp;lt;115200&amp;gt;;
		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;uart1_default {
		group1 {
				psels = &amp;lt;NRF_PSEL(UART_TX, 1, 14)&amp;gt;;

		};
		group2 {
				psels = &amp;lt;NRF_PSEL(UART_RX, 1, 15)&amp;gt;;
			
		};
};
&amp;amp;uart1_sleep {
		group1 {
				psels = &amp;lt;NRF_PSEL(UART_TX, 1, 14)&amp;gt;,
				        &amp;lt;NRF_PSEL(UART_RX, 1, 15)&amp;gt;;					
		
		};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;2) I am using the course example as a base, but I don&amp;#39;t understand how to get the data, nor how to manipulate it. I know that in the callback function it tells me that I can access it but I don&amp;#39;t understand how it does it and I would really like to have more clarity on that aspect.&lt;/p&gt;
&lt;p&gt;&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/pastedimage1676317960357v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/408704?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2023 21:31:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab536e10-b1af-4bd7-affb-2a34bbac2a5f</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Have you tried running the &lt;a href="https://github.com/NordicDeveloperAcademy/nRF-Connect-SDK-Fundamentals/tree/main/v2.x.x/lesson5/fund_less5_exer1_solution"&gt;example from Lesson 5 of the devacademy course&lt;/a&gt;? You could try to printing &lt;code&gt;rx_buf&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;There is also another &lt;a href="https://github.com/too1/ncs-uart-async-count-rx"&gt;sample demonstrating asynchronous UART&lt;/a&gt;. Please note that sample was tested using nRF Connect SDK v1.9.1. I suggest testing it using v1.9.1 before migrating it to v2.x.x.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/408068?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 15:47:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f9d26db-5459-48a9-a499-c331ccc93780</guid><dc:creator>brando14</dc:creator><description>&lt;p&gt;ok, thank you for the reply i will wait&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/408062?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 15:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:027b58ac-1023-4ede-9d35-4074dc4c1f07</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi brando, I will get back to you after the weekend.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/407646?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 19:54:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eb28415-3cc3-4a0a-9a6d-d73d34df4675</guid><dc:creator>brando14</dc:creator><description>&lt;p&gt;hello, thanks for the reply and&amp;nbsp;sorry for the delay in responding, well&amp;nbsp;What I really want to do is the following:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp;I have a sensor that sends the following numerical data through uart:&lt;br /&gt;&lt;br /&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/pastedimage1675280579555v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2)&amp;nbsp;What I want to do is use one of the sdk apis, preferably the asynchronous one that is the one I use in the course to be able to access that data using the nrf5340.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Currently I already managed to configure so that the rx and tx pins are in the gpio P1.14 and P1.15 respectively, and I have them connected, and I tried the connection and the interface indicates that it is online.&lt;/p&gt;
&lt;p&gt;However, what is not clear to me is how to receive the data, so I would like to know if there is not a simple example with that api for this type of case.&lt;/p&gt;
&lt;p&gt;I am new to using the device and any information you can provide me would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/406560?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2023 22:42:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f6c4762-3dcd-4f5b-a587-ff3a679879ab</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;It sounds like lpuart should be suitable for this application. Any questions so far?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/406319?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 15:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31581283-f971-4a46-a0a6-df263606dd6e</guid><dc:creator>brando14</dc:creator><description>&lt;p&gt;hello, thanks for answering me, the connection will be with another board which transmits the information given by a sensor connected to it, through uart, at the moment they are a numerical data, my idea is that the nordic receives the information and prints it on the console at the moment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receive data via uart with nrf5340</title><link>https://devzone.nordicsemi.com/thread/406057?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 14:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2160e77-d1d1-48c8-9053-8c564e9d3548</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What will you be communicating with? What are the requirements for your application? If low power is important, then I suggest you have a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/peripheral/lpuart/README.html"&gt;Low Power UART&lt;/a&gt;(lpuart) sample. &lt;/p&gt;
&lt;p&gt;As you may know, if you click &amp;#39;Browse&amp;#39; next to &amp;quot;Application template&amp;quot; in VS Code you can search for &amp;#39;uart&amp;#39; to get a long list of relevant samples. However, we are happy to guide you further. &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/2768.image.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]Currently what I know is that a configuration must be made to specify the pins since by default the nrf5340 receives is through the gpios that are connected to the usb, however in the case of how the data is handled it is still confusing for me[/quote]
&lt;p&gt;You may use an .overlay file to specify which pins to use for the UART on the nRF5340 DK. I could get back to you with an example. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>