<?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 Re: Strange problem while using UART with DMA in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Strange-problem-while-using-UART-with-DMA/m-p/353061#M49223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Yuri.&lt;/P&gt;&lt;P&gt;Could you please explain some more for me? I've read the mx53 ref manual, but couldn't find much useful information.&lt;/P&gt;&lt;P&gt;How can uart without hardware flow control affect the DMA callback?&lt;/P&gt;&lt;P&gt;Does the RTS/CTS of mx53 works in the modern fashion or the old fashion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2014 10:25:22 GMT</pubDate>
    <dc:creator>jarodnan</dc:creator>
    <dc:date>2014-08-13T10:25:22Z</dc:date>
    <item>
      <title>Strange problem while using UART with DMA</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Strange-problem-while-using-UART-with-DMA/m-p/353058#M49220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a RSB4210(i.MX536) from Advantech and trying to use UART4 with DMA.&lt;/P&gt;&lt;P&gt;The bsp is from the manufacturer, and the kernel version is 2.36.35. Strange things appear if I enable the DMA of UART4.&lt;/P&gt;&lt;P&gt;Using printk to output some debuf message in the mxcuart_dmaread_callback() funtion of mxc_uart.c, I've got things below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I send 64 bytes to the RSB4210, mxcuart_dmaread_callback() is called 3 times, and the received data each time is:&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; bytes:&amp;nbsp; 0x00&lt;/P&gt;&lt;P&gt;46 bytes: 45bytes 0x00&lt;/P&gt;&lt;P&gt;19 bytes: 19bytes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I send 128 bytes to the RSB4210, mxcuart_dmaread_callback() is called 4 times, and the received data each time is:&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; bytes:&amp;nbsp; 0x00&lt;/P&gt;&lt;P&gt;46 bytes: 45bytes 0x00&lt;/P&gt;&lt;P&gt;46 bytes: 45bytes 0x00&lt;/P&gt;&lt;P&gt;38 bytes: 38bytes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also merge the sdma_script_code_mx53.h, mxc_uart.c, mxc_uart.h, serial.c, serial.h from the freescale git server (&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_2.6.35_maintain" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_2.6.35_maintain"&gt;http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_2.6.35_maintain&lt;/A&gt;). But it's still the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've consult Advantech's engineers, they tell me that engineers from freescale said that it should be connected with 4 wires in DMA mode in order to avoid errors. I don't thing it has anything to do with the strange things.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:30:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Strange-problem-while-using-UART-with-DMA/m-p/353058#M49220</guid>
      <dc:creator>jarodnan</dc:creator>
      <dc:date>2014-08-12T13:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem while using UART with DMA</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Strange-problem-while-using-UART-with-DMA/m-p/353059#M49221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; The user should use hardware-driven hardware flow control when using &lt;BR /&gt; DMA data transfer. For more information, see the Linux documentation &lt;BR /&gt; on the serial driver in the kernel source tree.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; Please take a look at section “Hardware Flow Control (RTS/CTS etc.)”&lt;BR /&gt; of the next document :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&lt;A class="jive-link-external-small" href="http://www.tldp.org/HOWTO/Text-Terminal-HOWTO-11.html"&gt;http://www.tldp.org/HOWTO/Text-Terminal-HOWTO-11.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 13 Aug 2014 04:59:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Strange-problem-while-using-UART-with-DMA/m-p/353059#M49221</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2014-08-13T04:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem while using UART with DMA</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Strange-problem-while-using-UART-with-DMA/m-p/353060#M49222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jarod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale DMA driven UART driver uses flow control&lt;/P&gt;&lt;P&gt;(CTSTL (UARTx_UCR4) you can check below links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="304428" data-objecttype="1" href="https://community.freescale.com/thread/304428"&gt;https://community.freescale.com/thread/304428&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://gitorious.org/u-mobo/linux-imx/commits/ed51f22bea310805bfdcc1be236cc56ff0832b3a"&gt;https://gitorious.org/u-mobo/linux-imx/commits/ed51f22bea310805bfdcc1be236cc56ff0832b3a&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;chip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 05:29:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Strange-problem-while-using-UART-with-DMA/m-p/353060#M49222</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-08-13T05:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem while using UART with DMA</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Strange-problem-while-using-UART-with-DMA/m-p/353061#M49223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Yuri.&lt;/P&gt;&lt;P&gt;Could you please explain some more for me? I've read the mx53 ref manual, but couldn't find much useful information.&lt;/P&gt;&lt;P&gt;How can uart without hardware flow control affect the DMA callback?&lt;/P&gt;&lt;P&gt;Does the RTS/CTS of mx53 works in the modern fashion or the old fashion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 10:25:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Strange-problem-while-using-UART-with-DMA/m-p/353061#M49223</guid>
      <dc:creator>jarodnan</dc:creator>
      <dc:date>2014-08-13T10:25:22Z</dc:date>
    </item>
  </channel>
</rss>

