<?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>NCS uart can&amp;#39;t to receive data continuously</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87453/ncs-uart-can-t-to-receive-data-continuously</link><description>Hello, 
 NCS1.9.1, VSCode, nRF52840, 
 from link UART Driver – Nordic Developer Academy (nordicsemi.com) 
 uart can&amp;#39;t to receive data continuously, 
 receiving evt-&amp;gt;data.rx. offset will Increasing, 
 when rx_buf[128 ] is exhausted, will got evt 
 UART_RX_BUF_RELEASED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 30 Apr 2022 05:59:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87453/ncs-uart-can-t-to-receive-data-continuously" /><item><title>RE: NCS uart can't to receive data continuously</title><link>https://devzone.nordicsemi.com/thread/365653?ContentTypeID=1</link><pubDate>Sat, 30 Apr 2022 05:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a1584d8-574e-4d86-b302-2f539f6c55b5</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks，i didn&amp;#39;t expect your reply to be so fast.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1651297478252v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;from lpuart&amp;nbsp;correct&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS uart can't to receive data continuously</title><link>https://devzone.nordicsemi.com/thread/365651?ContentTypeID=1</link><pubDate>Sat, 30 Apr 2022 04:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d00569b5-a67b-479d-8056-7101bf39aa56</guid><dc:creator>qwertynoon</dc:creator><description>&lt;p&gt;Hi Dear&lt;/p&gt;
&lt;p&gt;You should not change example code so hard!&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;		case UART_RX_BUF_REQUEST:
			// uint8_t *buf;
			// err = k_mem_slab_alloc(&amp;amp;uart_slab, (void **)&amp;amp;buf, K_NO_WAIT);
			// __ASSERT(err == 0, &amp;quot;Failed to allocate slab&amp;quot;);

			// err = uart_rx_buf_rsp(uart, buf, BUF_SIZE);
			// __ASSERT(err == 0, &amp;quot;Failed to provide new buffer&amp;quot;);
			printk(&amp;quot;UART_RX_BUF_REQUEST\n&amp;quot;);
		break;
		case UART_RX_BUF_RELEASED:
			// k_mem_slab_free(&amp;amp;uart_slab, (void **)&amp;amp;evt-&amp;gt;data.rx_buf.buf);
			printk(&amp;quot;UART_RX_BUF_RELEASED\n&amp;quot;);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is crime!:))))&lt;/p&gt;
&lt;p&gt;Please use this sample&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;v1.9.1\nrf\samples\peripheral\lpuart\&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>