<?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: IMXRT1024 TransferGetSendCountEDMA Usage in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-TransferGetSendCountEDMA-Usage/m-p/1352687#M16623</link>
    <description>&lt;P&gt;Hi Dear &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56840"&gt;@jeremyzhou&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried it after transfer compilation but it is returning wrong value. For example, I am sending 70 bytes in default SDK example of EDMA LPUART Ring buffer. Scenario working fine and receivedBytes correctly setting as 70. But TransferGetReceiveCountEDMA or TransferGetSendCountEDMA is returning wrong value. Could you help me about what is the correct usage of it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2021 12:58:03 GMT</pubDate>
    <dc:creator>Lukas_Frank</dc:creator>
    <dc:date>2021-10-08T12:58:03Z</dc:date>
    <item>
      <title>IMXRT1024 TransferGetSendCountEDMA Usage</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-TransferGetSendCountEDMA-Usage/m-p/1349104#M16531</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just trying to monitor transferred byte count in my project. I am in default SDK example lpuart_edma_rb_transfer and my code is like below:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;.
..
...
sendXfer.data = g_tipString;
sendXfer.dataSize = sizeof(g_tipString) - 1;
txOnGoing = true;
LPUART_SendEDMA(EXAMPLE_LPUART, &amp;amp;g_lpuartEdmaHandle, &amp;amp;sendXfer);

/* Wait send finished */
while (txOnGoing)
{
LPUART_TransferGetSendCountEDMA(EXAMPLE_LPUART,&amp;amp;g_lpuartEdmaHandle,&amp;amp;transferCount);
}
...
..
.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this code is producing unrelated values. How can I monitor transferred byte counts continously and simeltenously?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 11:35:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-TransferGetSendCountEDMA-Usage/m-p/1349104#M16531</guid>
      <dc:creator>Lukas_Frank</dc:creator>
      <dc:date>2021-09-30T11:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1024 TransferGetSendCountEDMA Usage</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-TransferGetSendCountEDMA-Usage/m-p/1352500#M16617</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;LPUART_TransferGetSendCountEDMA can return the number of bytes written to the LPUART TX register when the txState is kLPUART_TxIdle, otherwise, it doesn't work.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;status_t LPUART_TransferGetSendCountEDMA(LPUART_Type *base, lpuart_edma_handle_t *handle, uint32_t *count)
{
    assert(NULL != handle);
    assert(NULL != handle-&amp;gt;txEdmaHandle);
    assert(NULL != count);

    if ((uint8_t)kLPUART_TxIdle == handle-&amp;gt;txState)
    {
        return kStatus_NoTransferInProgress;
    }

    *count = handle-&amp;gt;txDataSizeAll -
             ((uint32_t)handle-&amp;gt;nbytes *
              EDMA_GetRemainingMajorLoopCount(handle-&amp;gt;txEdmaHandle-&amp;gt;base, handle-&amp;gt;txEdmaHandle-&amp;gt;channel));

    return kStatus_Success;
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Have a great day.&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 08:18:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-TransferGetSendCountEDMA-Usage/m-p/1352500#M16617</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-08T08:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1024 TransferGetSendCountEDMA Usage</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-TransferGetSendCountEDMA-Usage/m-p/1352687#M16623</link>
      <description>&lt;P&gt;Hi Dear &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56840"&gt;@jeremyzhou&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried it after transfer compilation but it is returning wrong value. For example, I am sending 70 bytes in default SDK example of EDMA LPUART Ring buffer. Scenario working fine and receivedBytes correctly setting as 70. But TransferGetReceiveCountEDMA or TransferGetSendCountEDMA is returning wrong value. Could you help me about what is the correct usage of it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 12:58:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-TransferGetSendCountEDMA-Usage/m-p/1352687#M16623</guid>
      <dc:creator>Lukas_Frank</dc:creator>
      <dc:date>2021-10-08T12:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1024 TransferGetSendCountEDMA Usage</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-TransferGetSendCountEDMA-Usage/m-p/1353034#M16639</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1) Could you help me about what is the correct usage of it?&lt;BR /&gt;-- These two functions: TransferGetReceiveCountEDMA and TransferGetSendCountEDMA can work well only on condition that the handle-&amp;gt;txState or handle-&amp;gt;rxState is idle.&lt;BR /&gt;So you'd better use the EDMA_GetRemainingMajorLoopCount() function instead of them.&lt;BR /&gt;Have a great day.&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 07:20:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1024-TransferGetSendCountEDMA-Usage/m-p/1353034#M16639</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-10-09T07:20:46Z</dc:date>
    </item>
  </channel>
</rss>

