<?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>UARTE spontaneous disable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117002/uarte-spontaneous-disable</link><description>Hi, 
 
 I am currently using the NRF52840 in a 2 MCU setting (2nd MCU is from STM). UART0 is connected to the PC while UART1 is connected to the second MCU for communication. I currently experience the problem that I sometimes receive a UART_RX_DISABLED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Dec 2024 07:16:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117002/uarte-spontaneous-disable" /><item><title>RE: UARTE spontaneous disable</title><link>https://devzone.nordicsemi.com/thread/514650?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 07:16:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ce524e7-744d-4c3c-a912-6693be628920</guid><dc:creator>Antek Schabert</dc:creator><description>&lt;p&gt;I figured out the problem while writing the example with the DKs. I got my buffers mixed up when I reenabled the UART which caused a racing condition where the UART was writing on the same buffer that was currently being processed.&lt;/p&gt;
&lt;p&gt;The UART still gets disabled sometimes if the rx pin is floating but that does not cause problems in itself&lt;/p&gt;
&lt;p&gt;Thank you for your time and support&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Antek&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE spontaneous disable</title><link>https://devzone.nordicsemi.com/thread/514445?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 09:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d24b09fd-f78c-45ca-896b-a0a40022fe6d</guid><dc:creator>Antek Schabert</dc:creator><description>&lt;p&gt;Yes I tried using a logic analyzer and the messages were correct there. I will try to reproduce the problem with 2 DKs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE spontaneous disable</title><link>https://devzone.nordicsemi.com/thread/514441?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 09:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fcbe887-32a6-4f2f-a511-a9ff6c442e0b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Have you tried analyzing the UART pins using a logic analyzer to determine that the data is actually correct coming from your other device? Is there some way for me to reproduce what you are seeing using a couple of DKs? I can set up another DK repeatedly sending a string over UART to the device that we are testing, but if so, let me know what that string should be.&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: UARTE spontaneous disable</title><link>https://devzone.nordicsemi.com/thread/514153?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 07:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:562d0ac9-090b-4bc5-bbdd-931f520d4ca0</guid><dc:creator>Antek Schabert</dc:creator><description>&lt;p&gt;The Start of the message is a predefined character sequence followed by the length, payload and then CRC&lt;/p&gt;
&lt;p&gt;I tried listening on the communication line to see if the problems were a bad message from the sensor but what I saw was that the message was correctly sent but it had a faulty byte in the payload while the CRC was received correctly.&amp;nbsp;I didn&amp;#39;t see any missed characters so I assume as long as the start sequence does not contains a bad byte there wouldn&amp;#39;t be any shifts in the received messages.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Antek&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE spontaneous disable</title><link>https://devzone.nordicsemi.com/thread/513852?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 14:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d78a2844-2365-4097-a284-bbf7ffde2590</guid><dc:creator>Edvin</dc:creator><description>[quote user=""]When I receive the UART_RX_DISABLED event I try to reenable the UART which works, but after the reenable it seems the UART is a bit unstable since my messages then have corrupted bytes which are detected by a CRC check in my messages.[/quote]
&lt;p&gt;What do you see? Do you see random bit flips, or does the CRC not add up? Are the messages shifted? (how do you determine the start and end of the UART message?)&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>