<?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>i.MX Processorsのトピックimx6ULL custom board with UART5 Framing errors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6ULL-custom-board-with-UART5-Framing-errors/m-p/972332#M144783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We have a custom imx6ULL board using RTEMS with 5 UARTs, we have an internal connection on UART5 that runs @ 230400 baud, N81.&amp;nbsp; This board is a replacement board for an older ARM9 processor.&lt;/P&gt;&lt;P&gt;We have been experiencing a high number of framing errors (on RXD) on this port with no obvious reason, including checking the oscilliscope and the framing on the 8N1 characters look fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do not use DMA for the Rx (as have had issues on other Freescale processors not handling errors well with DMA), but we have the Rx FIFO watermark set to 8 bytes with the aging timer set.&lt;/P&gt;&lt;P&gt;We are seeing these framing errors, usually on a 0x00 or 0x01 or 0x02 character, and sometimes even though the FIFO shows a framing error, the character is still correct.&lt;/P&gt;&lt;P&gt;We have checked the baudates and all looks good, but the problem has persisted.&lt;/P&gt;&lt;P&gt;Today I setup a test where I looped back the TXD to the RXD on our board, still framing errors, the I turned on the INTERNAL LOOPBACK on the RXD (UART5_UTS bit 12 LOOP) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When sending 100 bytes streams of random characters I am *still* receiving the RX framing errors at about the same rate.&amp;nbsp; I confirmed that the internal loopback is used as I am still receiving character when externally the TXD and RXD pins are open.&lt;BR /&gt;I have tried a lot of different tweaks in our driver to see if I can remove this issue, but to no effect.&lt;/P&gt;&lt;P&gt;Has anybody experienced anything like this previously?&lt;/P&gt;&lt;P&gt;If so, is there any solution for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technical information:&lt;/P&gt;&lt;P&gt;Module Clock on the system is setup at 80MHz&lt;/P&gt;&lt;P&gt;UFCR RFDIV setup to 0x05 - dvide input clock by 1&lt;/P&gt;&lt;P&gt;UBIR&amp;nbsp; = 9&amp;nbsp;&amp;nbsp;&amp;nbsp; followed by&lt;/P&gt;&lt;P&gt;UBMR = 215&lt;/P&gt;&lt;P&gt;(the actual baudrate of our system is setup for 213481 on the other modules so I have matched the rate on the this chip)&lt;/P&gt;&lt;P&gt;80Mhz/16/231481 = 21.6&lt;/P&gt;&lt;P&gt;I have also tried UBIR=99 and UBMR=2159, but with similar results.&lt;/P&gt;&lt;P&gt;Interrupt driven, with RXFIFO set to 8 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ian Caddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2019 05:21:43 GMT</pubDate>
    <dc:creator>iancaddy</dc:creator>
    <dc:date>2019-09-11T05:21:43Z</dc:date>
    <item>
      <title>imx6ULL custom board with UART5 Framing errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ULL-custom-board-with-UART5-Framing-errors/m-p/972332#M144783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We have a custom imx6ULL board using RTEMS with 5 UARTs, we have an internal connection on UART5 that runs @ 230400 baud, N81.&amp;nbsp; This board is a replacement board for an older ARM9 processor.&lt;/P&gt;&lt;P&gt;We have been experiencing a high number of framing errors (on RXD) on this port with no obvious reason, including checking the oscilliscope and the framing on the 8N1 characters look fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do not use DMA for the Rx (as have had issues on other Freescale processors not handling errors well with DMA), but we have the Rx FIFO watermark set to 8 bytes with the aging timer set.&lt;/P&gt;&lt;P&gt;We are seeing these framing errors, usually on a 0x00 or 0x01 or 0x02 character, and sometimes even though the FIFO shows a framing error, the character is still correct.&lt;/P&gt;&lt;P&gt;We have checked the baudates and all looks good, but the problem has persisted.&lt;/P&gt;&lt;P&gt;Today I setup a test where I looped back the TXD to the RXD on our board, still framing errors, the I turned on the INTERNAL LOOPBACK on the RXD (UART5_UTS bit 12 LOOP) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When sending 100 bytes streams of random characters I am *still* receiving the RX framing errors at about the same rate.&amp;nbsp; I confirmed that the internal loopback is used as I am still receiving character when externally the TXD and RXD pins are open.&lt;BR /&gt;I have tried a lot of different tweaks in our driver to see if I can remove this issue, but to no effect.&lt;/P&gt;&lt;P&gt;Has anybody experienced anything like this previously?&lt;/P&gt;&lt;P&gt;If so, is there any solution for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technical information:&lt;/P&gt;&lt;P&gt;Module Clock on the system is setup at 80MHz&lt;/P&gt;&lt;P&gt;UFCR RFDIV setup to 0x05 - dvide input clock by 1&lt;/P&gt;&lt;P&gt;UBIR&amp;nbsp; = 9&amp;nbsp;&amp;nbsp;&amp;nbsp; followed by&lt;/P&gt;&lt;P&gt;UBMR = 215&lt;/P&gt;&lt;P&gt;(the actual baudrate of our system is setup for 213481 on the other modules so I have matched the rate on the this chip)&lt;/P&gt;&lt;P&gt;80Mhz/16/231481 = 21.6&lt;/P&gt;&lt;P&gt;I have also tried UBIR=99 and UBMR=2159, but with similar results.&lt;/P&gt;&lt;P&gt;Interrupt driven, with RXFIFO set to 8 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ian Caddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 05:21:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ULL-custom-board-with-UART5-Framing-errors/m-p/972332#M144783</guid>
      <dc:creator>iancaddy</dc:creator>
      <dc:date>2019-09-11T05:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ULL custom board with UART5 Framing errors</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ULL-custom-board-with-UART5-Framing-errors/m-p/972333#M144784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to use uart flow control (rts,cts) to avoid data loss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 23:32:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ULL-custom-board-with-UART5-Framing-errors/m-p/972333#M144784</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-09-11T23:32:27Z</dc:date>
    </item>
  </channel>
</rss>

