<?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のトピックSpurious call to SAI SDMA callback</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Spurious-call-to-SAI-SDMA-callback/m-p/1217000#M168026</link>
    <description>&lt;P&gt;I'm using the SAI SDMA driver to continiously play audio. I've notices that sometimes the callback I've installed using&amp;nbsp;SAI_TransferTxCreateHandleSDMA() is called much earlier compared to when I expected it to. I'm not seeing any fifo errors by when checking SAI_TxGetStatusFlag()&lt;/P&gt;&lt;P&gt;I'm calling&amp;nbsp;SAI_TransferSendSDMA() directly from the callback to load the next buffer. Is this allowed? Could it be possible that the interrupt returns before the SDMA have written any a second dma request is issued?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 16:11:17 GMT</pubDate>
    <dc:creator>johan_carlsson</dc:creator>
    <dc:date>2021-01-19T16:11:17Z</dc:date>
    <item>
      <title>Spurious call to SAI SDMA callback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Spurious-call-to-SAI-SDMA-callback/m-p/1217000#M168026</link>
      <description>&lt;P&gt;I'm using the SAI SDMA driver to continiously play audio. I've notices that sometimes the callback I've installed using&amp;nbsp;SAI_TransferTxCreateHandleSDMA() is called much earlier compared to when I expected it to. I'm not seeing any fifo errors by when checking SAI_TxGetStatusFlag()&lt;/P&gt;&lt;P&gt;I'm calling&amp;nbsp;SAI_TransferSendSDMA() directly from the callback to load the next buffer. Is this allowed? Could it be possible that the interrupt returns before the SDMA have written any a second dma request is issued?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 16:11:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Spurious-call-to-SAI-SDMA-callback/m-p/1217000#M168026</guid>
      <dc:creator>johan_carlsson</dc:creator>
      <dc:date>2021-01-19T16:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Spurious call to SAI SDMA callback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Spurious-call-to-SAI-SDMA-callback/m-p/1217133#M168033</link>
      <description>&lt;P&gt;Which NXP device are you using? and which version of SDK are you trying?.&lt;/P&gt;
&lt;P&gt;Let me share the documentation link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/api_doc/dev/467/group__sai__sdma.html" target="_blank"&gt;https://mcuxpresso.nxp.com/api_doc/dev/467/group__sai__sdma.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 21:48:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Spurious-call-to-SAI-SDMA-callback/m-p/1217133#M168033</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2021-01-19T21:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Spurious call to SAI SDMA callback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Spurious-call-to-SAI-SDMA-callback/m-p/1217136#M168034</link>
      <description>&lt;P&gt;I use i.MX8 M Mini, I run zephyr (so SDK 2.8) on the M4 core.&lt;/P&gt;&lt;P&gt;I have looked at the documentation for both sai, sai_sdma and sdma.&lt;/P&gt;&lt;P&gt;I use the sdma interrupt to trigger an audio framework to generate audio, so I need that interrupt to be deterministic and reliable with no underflows of the fifo.&lt;/P&gt;&lt;P&gt;looking at the sai sdma driver I see that it calls the sdma driver and disables the sdma channel in the irq callback. Why it does so would be interesting to know.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 22:02:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Spurious-call-to-SAI-SDMA-callback/m-p/1217136#M168034</guid>
      <dc:creator>johan_carlsson</dc:creator>
      <dc:date>2021-01-19T22:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spurious call to SAI SDMA callback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Spurious-call-to-SAI-SDMA-callback/m-p/1217459#M168036</link>
      <description>&lt;P&gt;Please load the "FSL_SDMA_MULTI_FIFO_SCRIPT" script into the SDMA as follow:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;#include "fsl_sdma_script.h"
const short g_sdma_multi_fifo_script[] = FSL_SDMA_MULTI_FIFO_SCRIPT;
...
(In main function)
...
SDMA_Init(EXAMPLE_DMA, &amp;amp;dmaConfig);
SDMA_CreateHandle(&amp;amp;dmaHandle, EXAMPLE_DMA, EXAMPLE_CHANNEL, &amp;amp;context);
SDMA_SetChannelPriority(EXAMPLE_DMA, EXAMPLE_CHANNEL, 2);
SDMA_LoadScript(EXAMPLE_DMA, FSL_SDMA_SCRIPT_CODE_START_ADDR, (void *)g_sdma_multi_fifo_script,FSL_SDMA_SCRIPT_CODE_SIZE);
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 00:36:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Spurious-call-to-SAI-SDMA-callback/m-p/1217459#M168036</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2021-01-20T00:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spurious call to SAI SDMA callback</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Spurious-call-to-SAI-SDMA-callback/m-p/1217728#M168067</link>
      <description>&lt;P&gt;I'm only using one channel so the multififo script is not used.&lt;/P&gt;&lt;P&gt;I think I figured it out and the main issue was that I only call&amp;nbsp;SAI_TransferSendSDMA() once and the rest from the callback. So there was always only one buffer in the bdpool. By disabling the interrupts and calling SAI_TransferSendSDMA()&amp;nbsp;four times I fill it up before any interrupt is triggered and from there I always have it full.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 08:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Spurious-call-to-SAI-SDMA-callback/m-p/1217728#M168067</guid>
      <dc:creator>johan_carlsson</dc:creator>
      <dc:date>2021-01-20T08:03:23Z</dc:date>
    </item>
  </channel>
</rss>

