<?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>why nRF52810&amp;#39;s UART can&amp;#39;t recevie 20+ bytes?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68044/why-nrf52810-s-uart-can-t-recevie-20-bytes</link><description>now ,nRF52810 &amp;#39;s serial port receives bytes.when the bytes sent by peripheral devices are mode then 20 bytes,nRF52810 will die.if the bytes are less than or equal to20 bytes,there is OK 
 I can&amp;#39;t think of this problem the serial port of nRF52810 can receive</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Nov 2020 03:14:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68044/why-nrf52810-s-uart-can-t-recevie-20-bytes" /><item><title>RE: why nRF52810's UART can't recevie 20+ bytes?</title><link>https://devzone.nordicsemi.com/thread/279837?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 03:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51c17093-69c0-46e9-8cf7-60f564d493fc</guid><dc:creator>liuyanfeng</dc:creator><description>&lt;p&gt;we find&amp;nbsp; reason .thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why nRF52810's UART can't recevie 20+ bytes?</title><link>https://devzone.nordicsemi.com/thread/279752?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 13:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff15b4c3-80aa-46de-ad45-6f194f477511</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You mention that the you&amp;#39;re getting an&amp;nbsp;&lt;span&gt;APP_UART_COMMUNICATION_ERROR. The event structure&amp;nbsp;will then contain a&amp;nbsp;&lt;/span&gt;uint32_t that specifies exactly what kind of error. What kind of error are you getting?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2084.pastedimage1605189237963v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why nRF52810's UART can't recevie 20+ bytes?</title><link>https://devzone.nordicsemi.com/thread/278909?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 01:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51cf412c-e35f-4369-8dfe-1f6a38df6e59</guid><dc:creator>liuyanfeng</dc:creator><description>&lt;p&gt;I used&amp;nbsp; sdk16&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why nRF52810's UART can't recevie 20+ bytes?</title><link>https://devzone.nordicsemi.com/thread/278908?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 01:45:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94e4f6e6-e6a3-4382-b679-ee0986a6fd49</guid><dc:creator>liuyanfeng</dc:creator><description>&lt;p&gt;&lt;span style="font-size:150%;"&gt;How do you judge the serial port stack of nrf52810? How to avoid this problem? You said it was a stack problem. Only nrf52810 received ab0017f5800007e40b0402142845720234364e16424e08ed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;This packet will die. There is no problem receiving other packets.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;How do you explain that?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why nRF52810's UART can't recevie 20+ bytes?</title><link>https://devzone.nordicsemi.com/thread/278713?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 06:44:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:532b34c1-75d2-4731-8e96-4c865f57466b</guid><dc:creator>Henry_Chou</dc:creator><description>&lt;p&gt;Have you used the stack or&amp;nbsp; heap memory functions in your project? It&amp;#39;s seems like the heap or stack ram is conflicted with the UART procedure memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why nRF52810's UART can't recevie 20+ bytes?</title><link>https://devzone.nordicsemi.com/thread/278712?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 06:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ddc4f46-75c3-451c-b0aa-ee882fe8b707</guid><dc:creator>liuyanfeng</dc:creator><description>&lt;p&gt;void uart_event_handle(app_uart_evt_t * p_event)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; static uint8_t data_array[244];&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;static&amp;nbsp;&amp;nbsp; &amp;nbsp;uint8_t index = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;uint8_t&amp;nbsp;&amp;nbsp; &amp;nbsp;cr=0;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (p_event-&amp;gt;evt_type)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case APP_UART_DATA_READY:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; while (app_uart_get(&amp;amp;cr) == NRF_SUCCESS)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; { &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; data_array[index++] = cr; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; NRF_LOG_INFO(&amp;quot; Rec_index:%d&amp;nbsp; cr:%x&amp;quot;,index,cr);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;case APP_UART_COMMUNICATION_ERROR:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; NRF_LOG_INFO(&amp;quot;APP_UART_COMMUNICATION_ERROR &amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ab0017f5800007e40b0402142845720234364e16424e08ed&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;This is how my function is used。&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;We need to use nrf52810 to receive the data packets sent by nrf9160 from the serial port. The packets sent by nrf9160 are all OK,&lt;br /&gt;&lt;br /&gt;Only nrf52810 receives:&lt;br /&gt;&lt;br /&gt;ab0017f5800007e40b0402142845720234364e16424e08ed&lt;br /&gt;&lt;br /&gt;It&amp;#39;s going to crash. I don&amp;#39;t know why?&lt;br /&gt;&lt;br /&gt;Last tip: case app_ UART_ COMMUNICATION_ Error: error&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;/span&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;/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: why nRF52810's UART can't recevie 20+ bytes?</title><link>https://devzone.nordicsemi.com/thread/278701?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 03:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f21effbb-eb93-4878-aa3e-e731a8525dcc</guid><dc:creator>Henry_Chou</dc:creator><description>&lt;p&gt;May you check the map files? If your TX &amp;amp; RX buffer memory define is not more than 20 bytes(not init tx buffer size), the function is also abnormal. I had used the UART TX &amp;amp; RX function more than 128 bytes in your items.The application is SDK17 S132.What&amp;#39;s the SDK you apply?&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;void uart_event_handle(app_uart_evt_t * p_event)&lt;br /&gt;{&lt;br /&gt; static uint8_t data_array[128];&lt;br /&gt; static uint8_t index = 0;&lt;/p&gt;
&lt;p&gt;switch (p_event-&amp;gt;evt_type)&lt;br /&gt; {&lt;br /&gt; /**@snippet [Handling data from UART] */&lt;br /&gt; case APP_UART_DATA_READY:&lt;br /&gt; //UNUSED_VARIABLE(app_uart_get(&amp;amp;data_array[index]));&lt;br /&gt; app_uart_get(&amp;amp;data_array[index]);&lt;br /&gt; index++;&lt;/p&gt;
&lt;p&gt;if ((data_array[index - 1] == &amp;#39;\n&amp;#39;) || (index &amp;gt;= 127))&lt;br /&gt; {&lt;br /&gt; data_array[index]=0;&lt;br /&gt; index = 0;&lt;br /&gt; }&lt;br /&gt; break;&lt;br /&gt; /**@snippet [Handling data from UART] */&lt;br /&gt; case APP_UART_COMMUNICATION_ERROR:&lt;br /&gt; APP_ERROR_HANDLER(p_event-&amp;gt;data.error_communication);&lt;br /&gt; break;&lt;/p&gt;
&lt;p&gt;case APP_UART_FIFO_ERROR:&lt;br /&gt; APP_ERROR_HANDLER(p_event-&amp;gt;data.error_code);&lt;br /&gt; break;&lt;/p&gt;
&lt;p&gt;default:&lt;br /&gt; break;&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;If the&amp;nbsp;&lt;span&gt;data_array define is only 20 bytes, The application will not work normal.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, your case is dead lock. So I suppose that the memory in your side is out of memory allocated.&lt;/span&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: why nRF52810's UART can't recevie 20+ bytes?</title><link>https://devzone.nordicsemi.com/thread/278699?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 02:50:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c268df4b-306d-479b-aead-87282030d9a6</guid><dc:creator>liuyanfeng</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1604630372537v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1604630434683v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;The initialization of the serial port of 52810 is 256 bytes. Why can only receive 20 bytes in the receiving of serial port. If the serial port is larger than 20 bytes, the device will crash. Why?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>