<?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>Serial UART lost characters</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114616/serial-uart-lost-characters</link><description>Hi all 
 
 I currently have a project where i send and receive commands over UART to another chip. When i receive a message over UART, a callback is triggered and I continuously read the serial terminal using &amp;quot; uart_fifo_read ( uart_dev_test , &amp;amp; c , 1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Sep 2024 08:14:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114616/serial-uart-lost-characters" /><item><title>RE: Serial UART lost characters</title><link>https://devzone.nordicsemi.com/thread/502443?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2024 08:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13dc2a03-2ba7-467d-a281-0b00d8bf331f</guid><dc:creator>marsal</dc:creator><description>&lt;p&gt;I am not sure if this is relevant for you but in my case, I had to use Timer support not to lose RX characters:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_UART_1_NRF_HW_ASYNC_TIMER&lt;/span&gt;&lt;span&gt;=2&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;See:&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102325/using-uart1-or-uart2-on-nrf9160dk-asset-tracker-v2/438642"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/102325/using-uart1-or-uart2-on-nrf9160dk-asset-tracker-v2/438642&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial UART lost characters</title><link>https://devzone.nordicsemi.com/thread/501963?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 14:21:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f267e472-dcf3-4a20-9dd4-bd9d1e2f6d92</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Hkhan7861,&lt;/p&gt;
&lt;p&gt;Could you show me how the characters missing in your test ?&amp;nbsp;&lt;br /&gt;I did a quick test here with the echo_bot sample and it seems to work fine. I don&amp;#39;t see any character missing:&amp;nbsp;&lt;br /&gt;&lt;br /&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/pastedimage1725978030395v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I changed&amp;nbsp;MSG_SIZE to 1000 and reduce the number of message to 2&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;K_MSGQ_DEFINE&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;uart_msgq&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;MSG_SIZE&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;4&lt;/span&gt;&lt;span&gt;&lt;span&gt;);&lt;br /&gt;&lt;br /&gt;Also I increased the main stack size:&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MAIN_STACK_SIZE&lt;/span&gt;&lt;span&gt;=4069&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>