<?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>NRFX Uarte invalid data after framing error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117833/nrfx-uarte-invalid-data-after-framing-error</link><description>Hey, I try to implement wtih nordic connect sdk and the nrfx library a uart communication where a 9th data bit will send for synchronisation. When the 9th data bit will be received the event type isNRFX_UARTE_EVT_ERROR and the error_mask is UARTE_ERRORSRC_FRAMING_MSK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2025 15:02:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117833/nrfx-uarte-invalid-data-after-framing-error" /><item><title>RE: NRFX Uarte invalid data after framing error</title><link>https://devzone.nordicsemi.com/thread/517983?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 15:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12becc5f-ad23-4092-980b-836da67a08c3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The uart may operate in two different modes, the easydma (uarte) and the legacy interrupt based (uart). You can change between the two in the devicetree by using&lt;/p&gt;
&lt;p&gt;&lt;span&gt;compatible&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;nordic,nrf-uarte&amp;quot;&lt;/span&gt;&lt;span&gt;&lt;span&gt;;&lt;br /&gt;vs.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;compatible&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;nordic,nrf-uart&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do using uart work better in this case?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX Uarte invalid data after framing error</title><link>https://devzone.nordicsemi.com/thread/517862?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 07:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab3350a3-f6e6-494f-b3ef-4c9b842989ea</guid><dc:creator>HinnaX</dc:creator><description>&lt;p&gt;I&amp;#39;ve found here some information about this topic.&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uarte.html#ariaid-title5"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52840/page/uarte.html#ariaid-title5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;quot;If there was a framing error (wrong stop bit), that specific byte will NOT be stored into Data RAM, but following incoming bytes will.&amp;quot;&lt;br /&gt;&lt;br /&gt;So it need a workaround to get the current byte at the framing error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX Uarte invalid data after framing error</title><link>https://devzone.nordicsemi.com/thread/517796?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 20:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c30cf44d-d4b4-4ede-965c-15b81ce02616</guid><dc:creator>Kenneth</dc:creator><description>[quote user="HinnaX"] So the distance or the time between end of last normal data packet and start of framing error packet is 1,2 ms.[/quote]
&lt;p&gt;Interesting, I guess in this case that once the UART experience the framing error it unintentionally overwrite the last received byte on the buffer. I can&amp;#39;t see any other reason. Since this is handled in hardware it&amp;#39;s very little that can be done with it, other than to try to workaround it by reading the buffer faster or delaying the sync bit?&lt;/p&gt;
&lt;p&gt;Enneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX Uarte invalid data after framing error</title><link>https://devzone.nordicsemi.com/thread/517500?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 14:14:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e062701-ff25-49dc-ab1d-1e6e8d7bcf80</guid><dc:creator>HinnaX</dc:creator><description>&lt;p&gt;Hey Kenneth,&lt;br /&gt;thanks for your reply. So the distance or the time between end of last normal data packet and start of framing error packet is 1,2 ms.&lt;br /&gt;&lt;br /&gt;&amp;quot;Is it possible that the pointer or buffer is updated on framing error?&amp;nbsp;&amp;quot;&lt;br /&gt;&lt;br /&gt;What do you mean with that question? So between the RX_DONE event and the RX_EVT_ERROR there is no update from my code side. &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX Uarte invalid data after framing error</title><link>https://devzone.nordicsemi.com/thread/517460?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 12:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da7d4106-d96b-4ff1-afaa-57d7827213b3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I think I would have looked that the serial interface using a logic analyzer just be sure you have full control over the start, data, and stop bit, and that that the framing error actually occurs after a correctly received byte. What is the distance between the two? Is it possible that the pointer or buffer is updated on framing error?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That said, you may want to check out the nRF54L for new designs, it have some new features for UARTE:&lt;br /&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf54L15/page/uarte.html"&gt;https://docs.nordicsemi.com/bundle/ps_nrf54L15/page/uarte.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX Uarte invalid data after framing error</title><link>https://devzone.nordicsemi.com/thread/517439?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 11:00:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aef76265-0be3-42e0-a755-6129a74d2412</guid><dc:creator>HinnaX</dc:creator><description>&lt;p&gt;So 255 is value of the byte before the framing error occurs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>