<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87484/how-to-use-the-rxto-event-trigger-rx-interrupt</link><description>software:nRF CONNECT SDK 1.6.1 
 CPU type:nrf5340 
 module:uarte 
 
 hi professor, 
 I want to trigger receiving interrupt when receiving timeout.I see the product specification there are rxto event in nrf5340.Do you have any example code for me?</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 16 May 2022 06:43:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87484/how-to-use-the-rxto-event-trigger-rx-interrupt" /><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/367964?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 06:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:059469e7-87ba-48f3-aa13-c3e3fa7a0ada</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Do you see the log from your application? What does uart_callback_set() return? Does it return 0 or something else? If you can see your log, you should see it printed &lt;br /&gt;&amp;quot;uart set callback failure&amp;quot;&lt;/p&gt;
&lt;p&gt;If it fails, it will print both lines (with your current implementation):&lt;/p&gt;
&lt;p&gt;&amp;quot;uart set callback failure.&amp;quot;&lt;br /&gt;&amp;quot;uart set callback finished.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Which one is it? And if it fails, what does it fail with?&lt;/p&gt;
&lt;p&gt;Try:&lt;/p&gt;
&lt;p&gt;printf(&amp;quot;uart set callback failure (err = %d)\n&amp;quot;, err_code);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/367853?ContentTypeID=1</link><pubDate>Fri, 13 May 2022 13:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4af8d9f2-c369-414e-b40e-85566e52ee54</guid><dc:creator>user101671</dc:creator><description>&lt;p&gt;I mean I have set callback by&amp;nbsp;&lt;span&gt;uart_callback_set function. But&amp;nbsp;&amp;nbsp;&amp;nbsp;the p_cb-&amp;lt;handle is still NULL.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/367812?ContentTypeID=1</link><pubDate>Fri, 13 May 2022 10:50:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ac31814-61f5-45cf-b9b9-d353e8d9a8c9</guid><dc:creator>user26071</dc:creator><description>[quote user="sunnyyang"]If don&amp;#39;t use this function, what should I do？[/quote]
&lt;p&gt;What do you mean?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/367666?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 14:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a98290b6-4daa-45ae-834b-ec0f90c8a9f6</guid><dc:creator>user101671</dc:creator><description>&lt;p&gt;I have used the uart_callback_set to set call back function.If don&amp;#39;t use this function, what should I do？&lt;/p&gt;
&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1652363928819v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/367664?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 13:58:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d25f076b-3a53-4fdc-a60e-eaf5dab9ad26</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Ok, so you are trying to trigger a callback at NULL, then. Why is it NULL? Did you not set up a handler when you initialized the UART?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/367660?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 13:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17a8cc71-a900-4b9a-9895-b77e2f2e0068</guid><dc:creator>user101671</dc:creator><description>&lt;p&gt;The reason is p_cb-&amp;lt;handle is NULL.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1652363417052v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/367655?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 13:38:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcb6cb5d-8666-4aa0-99c7-533b3f5bc715</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Ok, I don&amp;#39;t have NCS v1.6.1. What does nrfx_uarte.c line 568 look like?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/367627?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 12:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c395a76b-0e49-4155-8a27-0337e968f0f1</guid><dc:creator>user101671</dc:creator><description>&lt;p&gt;hi profess，&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I re-compiling my project&amp;nbsp; and run&amp;nbsp;arm-none-eabi-addr2line.It&amp;#39;s point to rx_done_event.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1652359840879v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/366985?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 13:57:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3603cd38-f364-4ba2-92e8-1bee68ce29e6</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Try to use the tool arm-none-eabi-addr2line to look up what function that is on your R14/lr address. It should point to the line reporting the usage fault. It looks like it is in the main thread.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Remember that re-compiling your project may change the build and what functions that are placed here, so remember to use the R14 address from your log from your latest build.&lt;/p&gt;
&lt;p&gt;What function does it point to?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/366954?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 13:09:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d251be5b-9a44-4ce0-a002-e5ad2ee5afcd</guid><dc:creator>user101671</dc:creator><description>&lt;p&gt;hi professor,&lt;/p&gt;
&lt;p&gt;There are fault during interrupt handling when I run uart_rx_enable.I have&amp;nbsp;merged&amp;nbsp;&lt;span&gt;SDK\nrf\samples\bluetooth\peripheral_uart\prj.conf to my project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1652101554527v1.png" alt=" " /&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6406.prj.conf"&gt;test-devzone.nordicsemi.com/.../6406.prj.conf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/366510?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 13:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01eb16aa-c518-4088-8a42-1c599961eba5</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Ok, so take the UART related configs from the prj.conf in SDK\nrf\samples\bluetooth\peripheral_uart and add them to your prj.conf, and then initialize the UART like it is done in the peripheral_uart sample in your own main.c file.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/366495?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 13:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fa367ee-c958-4bc8-beef-f36fa8092b4e</guid><dc:creator>user101671</dc:creator><description>&lt;p&gt;Because my original project referred to peripheral path in&amp;nbsp;&lt;span&gt;\zephyr\samples\bluetooth.My other functions have been finished.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/366494?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 13:33:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f81c1bb-8fe1-48ef-aeb6-51ad41ce0708</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="sunnyyang"]The peripheral_uart&amp;nbsp; use&amp;nbsp;uart_rx_enable to enable uart. [/quote]
&lt;p&gt;But did you check what uart_rx_enable does? It uses the&amp;nbsp;uarte_nrfx_init() inside uart_nrfx_uarte.c found in ncs\zephyr\drivers\serial\uart_nrfx_uarte.c.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="sunnyyang"]But I must use path \zephyr\samples\bluetooth to create my project[/quote]
&lt;p&gt;What do you mean by this? And why must you use this folder?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/366483?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 13:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5877bff0-c426-4228-925c-cb203ccd72be</guid><dc:creator>user101671</dc:creator><description>&lt;p&gt;hi professor,&lt;/p&gt;
&lt;p&gt;I have uesd peripherl_uart example to test and it can meet my needs. But I must use path \zephyr\samples\bluetooth to create my project.Do you have any other suggestions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/366010?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 13:37:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:517fb3ea-fffa-49a6-a948-e8ebf3068c8a</guid><dc:creator>user101671</dc:creator><description>&lt;p&gt;hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;nbsp;want to receive a buffer after a certain time. The peripheral_uart&amp;nbsp; use&amp;nbsp;uart_rx_enable to enable uart. But I want to use uarte because of easy dma.Do you any uarte example code?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the RXTO event trigger rx interrupt?</title><link>https://test-devzone.nordicsemi.com/thread/366000?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 13:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bba29148-b293-43af-84bd-00bffdaaa83d</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think we have any example code showing you how to use the RXTO event directly, but it also doesn&amp;#39;t do what you describe. The RXTO event is triggered if you use the STOP task register.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From what I understand from your question, you want to receive a buffer after a certain time, perhaps from the first byte. Is that correct? If so, you can look into the peripheral_uart sample found in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/"&gt;NCS&lt;/a&gt;\nrf\samples\bluetooth\peripheral_uart.&lt;/p&gt;
&lt;p&gt;In this sample, you will get a callback when the UART receives some bytes, and then stops. After a given amount of time, the UART will trigger a callback with all the bytes received before the timeout.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>