<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Vybrid Processors中的主题 Re: UART framing errors do not get cleared</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/UART-framing-errors-do-not-get-cleared/m-p/648791#M5779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pivk Luka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take in consideration that reading an empty data register to clear one of the flags of&lt;/P&gt;&lt;DIV&gt;the S1 register causes the FIFO pointers to become misaligned. A receive FIFO flush reinitializes the pointers.&lt;/DIV&gt;&lt;DIV&gt;A better way to prevent this situation is to always leave one byte in FIFO and this byte will be read eventually in&lt;/DIV&gt;&lt;DIV&gt;clearing the flag bit.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2017 17:05:13 GMT</pubDate>
    <dc:creator>jamesbone</dc:creator>
    <dc:date>2017-02-07T17:05:13Z</dc:date>
    <item>
      <title>UART framing errors do not get cleared</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/UART-framing-errors-do-not-get-cleared/m-p/648789#M5777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a communication running over UART and we have issues with clearing framing errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we communicate normally and do do not generate to many errors then we can clear S1[FE] flag without issues. ( we clear it by reading S1 and reading D ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we noticed that if we leave the UART running over longer times and produce lots of framing errors it becomes impossible to clear. S1 flag just wont reset any more after trying to clear it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you observe anything similar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 12:50:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/UART-framing-errors-do-not-get-cleared/m-p/648789#M5777</guid>
      <dc:creator>pivkluka</dc:creator>
      <dc:date>2016-12-05T12:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: UART framing errors do not get cleared</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/UART-framing-errors-do-not-get-cleared/m-p/648790#M5778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my setup includes&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;UART1 and 2 both operating in DMA &amp;nbsp;mode&lt;/P&gt;&lt;P&gt;Here are some registry entries -&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RWFIFO &amp;amp; TWFIFO = 1&lt;/P&gt;&lt;P&gt;C3 = flags ORIE, FEIE and PEIE are set to 1&lt;/P&gt;&lt;P&gt;C2 = RE and TE are enabled. RIE and TIE are also enabled&lt;/P&gt;&lt;P&gt;C5 = TDMAS and RDMAS are set to 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some time running and creating lots of framing errors (thousands) it looks like S1[FE] does not get cleared again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clear S1[FE] I do this -&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read register S1 and D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 13:02:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/UART-framing-errors-do-not-get-cleared/m-p/648790#M5778</guid>
      <dc:creator>pivkluka</dc:creator>
      <dc:date>2016-12-23T13:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: UART framing errors do not get cleared</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/UART-framing-errors-do-not-get-cleared/m-p/648791#M5779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pivk Luka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take in consideration that reading an empty data register to clear one of the flags of&lt;/P&gt;&lt;DIV&gt;the S1 register causes the FIFO pointers to become misaligned. A receive FIFO flush reinitializes the pointers.&lt;/DIV&gt;&lt;DIV&gt;A better way to prevent this situation is to always leave one byte in FIFO and this byte will be read eventually in&lt;/DIV&gt;&lt;DIV&gt;clearing the flag bit.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 17:05:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/UART-framing-errors-do-not-get-cleared/m-p/648791#M5779</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2017-02-07T17:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: UART framing errors do not get cleared</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/UART-framing-errors-do-not-get-cleared/m-p/648792#M5780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well as I told you I use DMA, and its not possible to really leave 1 byte there. And DMA by it self does not clear FE flag so to clear it I have to read that 1 byte. If there is any other way please let me know I will try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 15:52:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/UART-framing-errors-do-not-get-cleared/m-p/648792#M5780</guid>
      <dc:creator>pivkluka</dc:creator>
      <dc:date>2017-02-15T15:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: UART framing errors do not get cleared</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/UART-framing-errors-do-not-get-cleared/m-p/648793#M5781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 07:54:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/UART-framing-errors-do-not-get-cleared/m-p/648793#M5781</guid>
      <dc:creator>pivkluka</dc:creator>
      <dc:date>2017-10-10T07:54:50Z</dc:date>
    </item>
  </channel>
</rss>

