<?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>Kinetis Software Development KitのトピックRe: How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579486#M5877</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;I've already reported this issue to SDK team, it seems to be a FIFO Error flag on SAI Transmitter that is causing the issue. I've already requested for help in order to understand the best way to implement multiple calls to SAI_TransferSendEDMA().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will let you know as soon as any response is gotten.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2016 21:10:48 GMT</pubDate>
    <dc:creator>isaacavila</dc:creator>
    <dc:date>2016-06-28T21:10:48Z</dc:date>
    <item>
      <title>How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579485#M5876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, community!&lt;/P&gt;&lt;P&gt;I have a problem with SAI EDMA driver for FRDM-K64f (and for FRDM-K82). I used an example of SAI EDMA driver from SDK2.0 pack for TWR-K64. it work fine, but only once!&lt;/P&gt;&lt;P&gt;I used a example code from "sai_edma_transfer_twrk64f120m"&amp;nbsp; for two parts - "sai_init"&amp;nbsp; and "sai_play". and try to call "sai_play" repeatedly.&lt;/P&gt;&lt;P&gt;at First time a data transfer takes place without problems, but at second time data is not sent because it is not processed callback function.&lt;/P&gt;&lt;P&gt;I am a bit do not understand how to use the new KSDK 2 drivers as they differ significantly from previous versions.&lt;/P&gt;&lt;P&gt;May be community help me with realisation of repeatedly call SAI_TransferSendEDMA() function???&lt;/P&gt;&lt;P&gt;I attached a project, and wait for help!!!&lt;/P&gt;&lt;P&gt;Regards, Oleg&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;Original Attachment has been moved to:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338598"&gt;sai2.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 19:46:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579485#M5876</guid>
      <dc:creator>oleglavrukhin</dc:creator>
      <dc:date>2016-06-27T19:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579486#M5877</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;I've already reported this issue to SDK team, it seems to be a FIFO Error flag on SAI Transmitter that is causing the issue. I've already requested for help in order to understand the best way to implement multiple calls to SAI_TransferSendEDMA().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will let you know as soon as any response is gotten.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 21:10:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579486#M5877</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-06-28T21:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579487#M5878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Oleg,&lt;/P&gt;&lt;P&gt;I had the same Problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime I use the following workaround:&lt;/P&gt;&lt;P&gt;In Function SAI_TxEnable() I changed line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base-&amp;gt;TCSR = ((base-&amp;gt;TCSR &amp;amp; 0xFFE3FFFFU) | I2S_TCSR_TE_MASK);&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base-&amp;gt;TCSR = ((base-&amp;gt;TCSR &amp;amp; 0xFFE3FFFFU) | I2S_TCSR_TE_MASK | I2S_TCSR_FEF_MASK);&lt;/P&gt;&lt;P&gt;--&amp;gt; so the FIFO Error is cleared at every SAI_TxEnable().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally I had to change the function &lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 12pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: DE; mso-fareast-language: DE; mso-bidi-language: AR-SA;"&gt;EDMA_AbortTransfer()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 12pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: DE; mso-fareast-language: DE; mso-bidi-language: AR-SA;"&gt;last a&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 12pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: DE; mso-fareast-language: DE; mso-bidi-language: AR-SA;"&gt;ction in this function is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 12pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: DE; mso-fareast-language: DE; mso-bidi-language: AR-SA;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; handle-&amp;gt;tcdUsed = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This may be quick and dirty... but it works for me. I'm waiting for KSDK 2.x. ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 07:53:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579487#M5878</guid>
      <dc:creator>manfredschnell</dc:creator>
      <dc:date>2016-06-30T07:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579488#M5879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example of working code that uses the KSDK 2.0 SAI eDMA driver:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/flit/bass.slab/blob/master/src/app/audio_output.cpp" title="https://github.com/flit/bass.slab/blob/master/src/app/audio_output.cpp"&gt;bass.slab/audio_output.cpp at master · flit/bass.slab · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/flit/bass.slab/blob/master/src/app/audio_output.h" title="https://github.com/flit/bass.slab/blob/master/src/app/audio_output.h"&gt;bass.slab/audio_output.h at master · flit/bass.slab · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has been used on the K22F512 and K66F. I haven't made any changes to the SAI driver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 21:35:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579488#M5879</guid>
      <dc:creator>ChrisReed</dc:creator>
      <dc:date>2016-06-30T21:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579489#M5880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was reported SAI under DMA problem here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/808155#comment-808155"&gt;KSDK v2 SAI driver problem&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;Many thanks Manfred Schnell !! It works for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2016 18:31:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579489#M5880</guid>
      <dc:creator>jankedzierski</dc:creator>
      <dc:date>2016-07-02T18:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579490#M5881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Christopher!&lt;/P&gt;&lt;P&gt;I look into Your example and have a question:&lt;/P&gt;&lt;P&gt;in file "audio_output.cpp" in line 59: &lt;/P&gt;&lt;TABLE class="js-file-line-container highlight tab-size" data-tab-size="8" style="color: #333333; font-family: Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 13px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="blob-code blob-code-inner js-file-line" style="padding: 0 10px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;&amp;nbsp; saiConfig.&lt;SPAN class="pl-smi"&gt;masterSlave&lt;/SPAN&gt; = &lt;SPAN class="pl-c1" style="color: #0086b3;"&gt;kSAI_Slave&lt;/SPAN&gt;; &lt;SPAN class="pl-c" style="color: #969896;"&gt;// kSAI_Master;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="blob-num js-line-number" data-line-number="60" style="padding: 0 10px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; color: rgba(0, 0, 0, 0.298039); text-align: right; border-style: solid; border-color: #eeeeee; border-width: 0px 1px 0px 0px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;then You send out a data via &lt;SPAN style="color: #0086b3; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px;"&gt;SAI_TransferSendEDMA&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;are your MCU uses as SAI slave? &lt;/P&gt;&lt;P&gt;Because in my project I use MCU as SAI master.&lt;/P&gt;&lt;P&gt;regards, Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 19:21:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579490#M5881</guid>
      <dc:creator>oleglavrukhin</dc:creator>
      <dc:date>2016-07-03T19:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579491#M5882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The master/slave setting in &lt;SPAN style="font-family: 'andale mono', times;"&gt;sai_config_t&lt;/SPAN&gt; simply determines which side drives the bit and word clock signals. In master mode, the SAI module drives those signals, whereas in slave mode the audio codec drives them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of master or slave mode, you still use &lt;SPAN style="font-family: 'andale mono', times;"&gt;SAI_TransferSendEDMA()&lt;/SPAN&gt; to transmit data and &lt;SPAN style="font-family: 'andale mono', times;"&gt;SAI_TransferReceiveEDMA()&lt;/SPAN&gt; to receive data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also used this code in master mode (why &lt;SPAN style="font-family: 'andale mono', times;"&gt;kSAI_Master&lt;/SPAN&gt; is commented out on that line). It just happens that the SGTL5000 codec driver configures the codec for slave mode (thus, SAI must be master), while the DA7212 driver configures the codec for master mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:50:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579491#M5882</guid>
      <dc:creator>ChrisReed</dc:creator>
      <dc:date>2016-07-05T14:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579492#M5883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to configure the SAI in Slave mode and SGTL5000 in master mode. I have made SAI configuration as below for Slave mode but not able to make the SGTL5000 configuration in master mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAI config for Slave mode :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static sai_user_config_t i2s_Config =&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; .protocol&amp;nbsp; = kSaiBusI2SType,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .channel&amp;nbsp; = 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .slave_master = kSaiSlave,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .sync_mode&amp;nbsp; = kSaiModeAsync,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .bclk_source&amp;nbsp; = kSaiBclkSourceMclkDiv,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .mclk_source&amp;nbsp; = kSaiMclkSourceSelect1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .dma_source&amp;nbsp;&amp;nbsp; = kDmaRequestMux0I2S0Tx&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help to me to configure the SGTL5000 in Master mode ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ajay-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 06:09:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579492#M5883</guid>
      <dc:creator>ajaypatel</dc:creator>
      <dc:date>2016-07-11T06:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579493#M5884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A fix was provided for this issue, it is only needed to disable Tx and Rx on SAI_TransferAbortSendEDMA and SAI_TransferAbortReceiveEDMA respectively:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14682681611511901 jive_text_macro" data-renderedposition="86_8_1192_608" jivemacro_uid="_14682681611511901" modifiedtitle="true"&gt;&lt;P&gt;void SAI_TransferAbortSendEDMA(I2S_Type *base, sai_edma_handle_t *handle)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assert(handle);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Disable dma */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EDMA_AbortTransfer(handle-&amp;gt;dmaHandle);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Disable DMA enable bit */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAI_TxEnableDMA(base, kSAI_FIFORequestDMAEnable, false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if APPLY_FIX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Disable Tx */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAI_TxEnable(base, false);&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Set the handle state */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; handle-&amp;gt;state = kSAI_Idle;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SAI_TransferAbortReceiveEDMA(I2S_Type *base, sai_edma_handle_t *handle)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assert(handle);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Disable dma */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EDMA_AbortTransfer(handle-&amp;gt;dmaHandle);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Disable DMA enable bit */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAI_RxEnableDMA(base, kSAI_FIFORequestDMAEnable, false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if APPLY_FIX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Disable Rx */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAI_RxEnable(base, false);&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Set the handle state */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; handle-&amp;gt;state = kSAI_Idle;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you disable Tx and Rx and leave the driver as it was (without clearing FEF flag) it should be working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 20:19:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579493#M5884</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-07-11T20:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579494#M5885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for this fix.&lt;/P&gt;&lt;P&gt;I applied it to my sources. --&amp;gt; it works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT 2016-07-14/MS:&lt;/P&gt;&lt;P&gt;In some cases (when playing sound is cancelled) there is a fifo error. --&amp;gt; next start fails&lt;/P&gt;&lt;P&gt;--&amp;gt; I use my workaround again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Function SAI_TxEnable() I changed line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base-&amp;gt;TCSR = ((base-&amp;gt;TCSR &amp;amp; 0xFFE3FFFFU) | I2S_TCSR_TE_MASK);&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base-&amp;gt;TCSR = ((base-&amp;gt;TCSR &amp;amp; 0xFFE3FFFFU) | I2S_TCSR_TE_MASK | I2S_TCSR_FEF_MASK);&lt;/P&gt;&lt;P&gt;EDIT end:&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;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 06:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579494#M5885</guid>
      <dc:creator>manfredschnell</dc:creator>
      <dc:date>2016-07-12T06:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to reuse SAI_TransferSendEDMA in KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579495#M5886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've checked it. It works, but it hangs after few playing attempts. &lt;/P&gt;&lt;P&gt;Manfred Schnell solution works 100/100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 06:15:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-reuse-SAI-TransferSendEDMA-in-KSDK-2-0/m-p/579495#M5886</guid>
      <dc:creator>jankedzierski</dc:creator>
      <dc:date>2016-07-12T06:15:22Z</dc:date>
    </item>
  </channel>
</rss>

