<?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>UART serial input too long, causes crashes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56925/uart-serial-input-too-long-causes-crashes</link><description>Hi, 
 Setting the scene: 
 I have several sensors that are decoded via an external device that outputs UART serial data (115200 baud rate). 
 The data looks like this: Received string: 1,1177,1,1175,2,0,20,119,136 
 This can be received fine by my UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Jan 2020 12:12:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56925/uart-serial-input-too-long-causes-crashes" /><item><title>RE: UART serial input too long, causes crashes</title><link>https://devzone.nordicsemi.com/thread/230842?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 12:12:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1cb47ef-a955-42a7-85d1-00ea499e5b5c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Thomas&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure exactly what&amp;nbsp;MAX_TEST_DATA_BYTES is used for in your example, but the working string is less than 32 bytes in length, while the non-working string is 35 bytes long, so perhaps this define has something to do with it?&lt;/p&gt;
&lt;p&gt;Otherwise I am not sure why a slightly longer string would lead to such issues.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As a side note I would recommend using the nrf_libuarte driver for UART rather than the app_uart_fifo driver, as it is more well tested and robust.&amp;nbsp;&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></channel></rss>