<?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 DMA transfer timeout in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1785092#M218451</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using i.MX8 hardware and I am using DMA interface to transfer data. But I have to poll till transfer completes. I am planning to implement timeout for DMA transfer. what would be the ideal timeout I will use?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2024 09:10:43 GMT</pubDate>
    <dc:creator>thediptendu</dc:creator>
    <dc:date>2024-01-09T09:10:43Z</dc:date>
    <item>
      <title>DMA transfer timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1785092#M218451</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using i.MX8 hardware and I am using DMA interface to transfer data. But I have to poll till transfer completes. I am planning to implement timeout for DMA transfer. what would be the ideal timeout I will use?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 09:10:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1785092#M218451</guid>
      <dc:creator>thediptendu</dc:creator>
      <dc:date>2024-01-09T09:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: DMA transfer timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1787410#M218602</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/227923"&gt;@thediptendu&lt;/a&gt;!&lt;BR /&gt;Thank you for contacting NXP Support!&lt;/P&gt;
&lt;P&gt;There are eDMA example code in the path like M4_SDK/boards/mekmimx8qx/driver_examples/edma and boards/mekmimx8qx/driver_examples/flexcan/loopback_edma_transfer. In these example code, we can see that after we start the eDMA transfer, we need to wait for the complete signal to be true to know that the transfer is done.&lt;/P&gt;
&lt;P&gt;During the time that eDMA is transferring, actually the program don't need to poll the complete signal in a loop, and it can do other things. (In the example code, it don't have other things to do, so that's why it's waiting in a while loop) But when the program want to know whether the eDMA transfer is done before it can start the next transfer, it need to wait for the complete signal to be true.&lt;/P&gt;
&lt;P&gt;So I guess the "timeout" customer want is actually a timer, like the one in boards/mekmimx8qx/driver_examples/tpm/timer, so that they can check the eDMA complete signal after a period of time.&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 17:39:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1787410#M218602</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-01-11T17:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: DMA transfer timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1787697#M218617</link>
      <description>&lt;P&gt;Hello Chavira,&lt;/P&gt;&lt;P&gt;Thanks for replying. If we are waiting in while loop, then we are continuously waiting. what if the signal never becomes true? in that scenario, the code is stuck there. So my intention to implement a timeout and return FAIL if it does not come out of the loop.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;During the time that eDMA is transferring, actually the program don't need to poll the complete signal in a loop, and it can do other things.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How we can do other things while polling a signal?&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;M4_SDK/boards/mekmimx8qx/driver_examples/edma and boards/mekmimx8qx/driver_examples/flexcan/loopback_edma_transfer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please send me the link to refer.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Diptendu&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 04:41:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1787697#M218617</guid>
      <dc:creator>thediptendu</dc:creator>
      <dc:date>2024-01-12T04:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: DMA transfer timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1788843#M218717</link>
      <description>&lt;P&gt;HI &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/227923"&gt;@thediptendu&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Then you can set up a timer. When the timer is triggered, it will check the eDMA complete signal. And by doing this, it don't need to poll the complete signal in a loop.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-mcuxpresso/mcux-sdk-examples/tree/main/mekmimx8qx/driver_examples/edma" target="_blank"&gt;https://github.com/nxp-mcuxpresso/mcux-sdk-examples/tree/main/mekmimx8qx/driver_examples/edma&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-mcuxpresso/mcux-sdk-examples/tree/main/mekmimx8qx/driver_examples/flexcan/loopback_edma_transfer" target="_blank"&gt;https://github.com/nxp-mcuxpresso/mcux-sdk-examples/tree/main/mekmimx8qx/driver_examples/flexcan/loopback_edma_transfer&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 15:23:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1788843#M218717</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-01-15T15:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: DMA transfer timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1790933#M218860</link>
      <description>&lt;LI-SPOILER&gt;Hi Chavira,&lt;BR /&gt;&lt;BR /&gt;Implementing timer will lead to design change in my code and at this point of time, I feel it is not good idea. So I am wondering if any timeout I can use while polling. Do you have any suggestion?&lt;BR /&gt;Thanks,&lt;BR /&gt;Diptendu&lt;/LI-SPOILER&gt;</description>
      <pubDate>Thu, 18 Jan 2024 09:16:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1790933#M218860</guid>
      <dc:creator>thediptendu</dc:creator>
      <dc:date>2024-01-18T09:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: DMA transfer timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1792020#M218937</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/227923"&gt;@thediptendu&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Sorry but I don't see there is other ways to implement such timeout.&lt;/P&gt;
&lt;P&gt;Best regards!&lt;/P&gt;
&lt;P&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 15:57:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DMA-transfer-timeout/m-p/1792020#M218937</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-01-19T15:57:16Z</dc:date>
    </item>
  </channel>
</rss>

