<?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のトピックRe: when use uart with DMA, why its DMA callback function invoked so slowly?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465585#M73296</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; The burst size of half of UART FIFO is good choice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2015 04:17:10 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2015-12-17T04:17:10Z</dc:date>
    <item>
      <title>when use uart with DMA, why its DMA callback function invoked so slowly?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465582#M73293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The follow issue i have deal with it for a long time, but i cannot complete it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description: On imx6sx i send the packet which is about 6 bytes and then, after sending over, I&amp;nbsp; send next packet about 2ms later. The amazing things happened, the tx interrupt is triggered, but the dma callback is invoked 4ms later, that is to say, the date will be sent out almostly 4ms after tx interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the following packets are the same as above, if i increase the send interval, it will be ok. and tx interrupt is triggered, the tx callback will be invoked immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking forward to your reply, thank you very much at first.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="tx_callback prompt.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56975i0126E571E86E2532/image-size/large?v=v2&amp;amp;px=999" role="button" title="tx_callback prompt.png" alt="tx_callback prompt.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 12:36:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465582#M73293</guid>
      <dc:creator>aarongao</dc:creator>
      <dc:date>2015-12-07T12:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: when use uart with DMA, why its DMA callback function invoked so slowly?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465583#M73294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Perhaps the problem concerns with the fact, that DMA transfer data in bursts, DMA cannot transfer less data, than burst length.&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>Tue, 15 Dec 2015 08:50:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465583#M73294</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-12-15T08:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: when use uart with DMA, why its DMA callback function invoked so slowly?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465584#M73295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its so good to receive your answer. I agree with you that the DMA burst size is the reason possibly, and, i try to modify the burst size before,and it doesn't work. I will check the actual parameter of the burst size and capture the wave on the line. &lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 15:15:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465584#M73295</guid>
      <dc:creator>aarongao</dc:creator>
      <dc:date>2015-12-16T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: when use uart with DMA, why its DMA callback function invoked so slowly?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465585#M73296</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; The burst size of half of UART FIFO is good choice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 04:17:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465585#M73296</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-12-17T04:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: when use uart with DMA, why its DMA callback function invoked so slowly?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465586#M73297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, now our DMA configuration&amp;nbsp; is the same as the link below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://lxr.free-electrons.com/source/drivers/tty/serial/imx.c"&gt;http://lxr.free-electrons.com/source/drivers/tty/serial/imx.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;open it, you can search the keyword 'burst'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&amp;nbsp; you said the burst size is the half of Uart FIFO. you mean tx dst_maxburst or rx src_maxburst?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or I need set the rx src_maxburst is the half of Uart FIFO, and set the tx dst_maxburst is the same as the Uart FIFO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 05:56:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465586#M73297</guid>
      <dc:creator>aarongao</dc:creator>
      <dc:date>2015-12-17T05:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: when use uart with DMA, why its DMA callback function invoked so slowly?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465587#M73298</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;I mean both &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;tx dst_maxburst and rx src_maxburst.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrads,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 04:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465587#M73298</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-12-18T04:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: when use uart with DMA, why its DMA callback function invoked so slowly?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465588#M73299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for reply so late, recently i focus on the other task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look up the Uart chapter of imx6sx, and find the Rx/Tx FIFO is 32Bytes. As you advice, the half-of FIFO is 16Bytes.&lt;/P&gt;&lt;P&gt;and ss you said before"&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Perhaps the problem concerns with the fact, that DMA transfer data in bursts, DMA cannot transfer less data, than burst length."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;So DMA transfers the data should less than 16Bytes, and now I send/receive the data usually less than 16Bytes, do you mean i should not use the DMA, maybe interrupt mode without DMA will be better?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 15:27:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465588#M73299</guid>
      <dc:creator>aarongao</dc:creator>
      <dc:date>2015-12-22T15:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: when use uart with DMA, why its DMA callback function invoked so slowly?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465589#M73300</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; yes, often UART is needed to be used in so called debug / interractive mode, without DMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 02:59:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/when-use-uart-with-DMA-why-its-DMA-callback-function-invoked-so/m-p/465589#M73300</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-12-23T02:59:42Z</dc:date>
    </item>
  </channel>
</rss>

