<?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>topic Marking parity errors on iMX6DL serial port in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Marking-parity-errors-on-iMX6DL-serial-port/m-p/501318#M81125</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;We want to be able to pass characters that have parity errors received on the UART to our application using the PARMRK termios flag. We were able to do this on kernel 3.0.35&amp;nbsp; after modifying the interrupt routine to pass the characters up if an error is detected, they were being masked before. However we have moved to 3.14.28 and this now doesn't work, even after putting in our interrupt routine patch. Any characters with a parity error are not passed up to our application and changing termios flags makes no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found&amp;nbsp; that 3.14.28 uses DMA, which doesn't use the UART serial interrupt routine. 3.0.35 didn't use DMA. If I disable DMA to force the driver to use the serial interrupt routine everything works as expected again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to keep DMA enabled so is there anyway to have the PARMRK termios flag work correctly when the UART's are using DMA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2016 16:38:43 GMT</pubDate>
    <dc:creator>IanCraig</dc:creator>
    <dc:date>2016-05-25T16:38:43Z</dc:date>
    <item>
      <title>Marking parity errors on iMX6DL serial port</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Marking-parity-errors-on-iMX6DL-serial-port/m-p/501318#M81125</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;We want to be able to pass characters that have parity errors received on the UART to our application using the PARMRK termios flag. We were able to do this on kernel 3.0.35&amp;nbsp; after modifying the interrupt routine to pass the characters up if an error is detected, they were being masked before. However we have moved to 3.14.28 and this now doesn't work, even after putting in our interrupt routine patch. Any characters with a parity error are not passed up to our application and changing termios flags makes no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found&amp;nbsp; that 3.14.28 uses DMA, which doesn't use the UART serial interrupt routine. 3.0.35 didn't use DMA. If I disable DMA to force the driver to use the serial interrupt routine everything works as expected again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to keep DMA enabled so is there anyway to have the PARMRK termios flag work correctly when the UART's are using DMA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 16:38:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Marking-parity-errors-on-iMX6DL-serial-port/m-p/501318#M81125</guid>
      <dc:creator>IanCraig</dc:creator>
      <dc:date>2016-05-25T16:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Marking parity errors on iMX6DL serial port</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Marking-parity-errors-on-iMX6DL-serial-port/m-p/501319#M81126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="tm6 tm5 a______"&gt; &lt;SPAN class="tm7"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm6 tm5 a______"&gt;&lt;SPAN class="tm7"&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm6 tm5 a______"&gt;&lt;SPAN class="tm7"&gt;&amp;nbsp; In UART driver description regarding Driver Features :&lt;BR /&gt;"&lt;/SPAN&gt;Recognizes frame and parity errors only in interrupt-driven mode; does not recognize&lt;/P&gt;&lt;P class="tm6 tm5 a______"&gt;these errors in DMA-driven mode&lt;SPAN class="tm7"&gt;". &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm6 tm5 a______"&gt; &lt;SPAN class="tm6"&gt;&amp;nbsp; You may try to use UART Parity Error Interrupt in Interrupt Service :&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm5 a______"&gt;&lt;SPAN class="tm6"&gt;Enable it in UART Control Register 3 (UARTx_UCR3), PARERREN. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="a______"&gt;&amp;nbsp; &lt;SPAN class="tm7"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm6 tm5 a______"&gt;&lt;SPAN class="tm7"&gt;Have a great day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm6 tm5 a______"&gt;&lt;SPAN class="tm7"&gt;Yuri&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm6 tm5 a______"&gt;&lt;SPAN class="tm7"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm6 tm5 a______"&gt;&lt;SPAN class="tm7"&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm6 tm5 a______"&gt;&lt;SPAN class="tm7"&gt;Note: If this post answers your question, please click the Correct &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm6 tm5 a______"&gt;&lt;SPAN class="tm7"&gt;Answer button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="tm6 tm5 a______"&gt;&lt;SPAN class="tm7"&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 05:24:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Marking-parity-errors-on-iMX6DL-serial-port/m-p/501319#M81126</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-05-27T05:24:59Z</dc:date>
    </item>
  </channel>
</rss>

