<?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 SDK 2.12.1 - RT1052 SAI (MQS): proper init/de-init flow w/ FreeRTOS? in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-2-12-1-RT1052-SAI-MQS-proper-init-de-init-flow-w-FreeRTOS/m-p/1586787#M4153</link>
    <description>&lt;P&gt;The SAI demo shows how to init the SAI, but not de-init.&lt;/P&gt;&lt;P&gt;I'm wondering if how I'm initializing (or deinitializing) is leading to some system instability, as when the SAI has completed playing a sound clip, and i run my deinit code, the system somehow gets stuck in the `SAI3_TX_IRQHandler` perhaps once in a few hours of use here (so not easy to reproduce) WHILE the code is actually running the deinit routine (EDMA_Deinit), as per:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-01-23 at 1.20.36 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208180iB8A5C7E5D25D2530/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-01-23 at 1.20.36 PM.png" alt="Screen Shot 2023-01-23 at 1.20.36 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only run the deinit routine once my clip has completed playing (and this works fine 99.9% of the time...), but it still seems to create instability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the base source code for my SAI control.&lt;/P&gt;&lt;P&gt;I was deinit'ing the Mclk as well as everything else, but made it only so I would init that once @ system startup in hopes that it'd fix my issue. (It didn't).&lt;/P&gt;&lt;P&gt;Another option is to never de-init, but I thought that I should force the SAI to abort any existing DMA's when I'm done w/ a sound clip, right?&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 19:25:36 GMT</pubDate>
    <dc:creator>variable_andrew</dc:creator>
    <dc:date>2023-01-23T19:25:36Z</dc:date>
    <item>
      <title>SDK 2.12.1 - RT1052 SAI (MQS): proper init/de-init flow w/ FreeRTOS?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-2-12-1-RT1052-SAI-MQS-proper-init-de-init-flow-w-FreeRTOS/m-p/1586787#M4153</link>
      <description>&lt;P&gt;The SAI demo shows how to init the SAI, but not de-init.&lt;/P&gt;&lt;P&gt;I'm wondering if how I'm initializing (or deinitializing) is leading to some system instability, as when the SAI has completed playing a sound clip, and i run my deinit code, the system somehow gets stuck in the `SAI3_TX_IRQHandler` perhaps once in a few hours of use here (so not easy to reproduce) WHILE the code is actually running the deinit routine (EDMA_Deinit), as per:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-01-23 at 1.20.36 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208180iB8A5C7E5D25D2530/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-01-23 at 1.20.36 PM.png" alt="Screen Shot 2023-01-23 at 1.20.36 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only run the deinit routine once my clip has completed playing (and this works fine 99.9% of the time...), but it still seems to create instability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the base source code for my SAI control.&lt;/P&gt;&lt;P&gt;I was deinit'ing the Mclk as well as everything else, but made it only so I would init that once @ system startup in hopes that it'd fix my issue. (It didn't).&lt;/P&gt;&lt;P&gt;Another option is to never de-init, but I thought that I should force the SAI to abort any existing DMA's when I'm done w/ a sound clip, right?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 19:25:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-2-12-1-RT1052-SAI-MQS-proper-init-de-init-flow-w-FreeRTOS/m-p/1586787#M4153</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2023-01-23T19:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 2.12.1 - RT1052 SAI (MQS): proper init/de-init flow w/ FreeRTOS?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-2-12-1-RT1052-SAI-MQS-proper-init-de-init-flow-w-FreeRTOS/m-p/1589001#M4159</link>
      <description>&lt;P&gt;bumping this thread up for help / ideas&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 16:57:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-2-12-1-RT1052-SAI-MQS-proper-init-de-init-flow-w-FreeRTOS/m-p/1589001#M4159</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2023-01-27T16:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 2.12.1 - RT1052 SAI (MQS): proper init/de-init flow w/ FreeRTOS?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-2-12-1-RT1052-SAI-MQS-proper-init-de-init-flow-w-FreeRTOS/m-p/1595036#M4174</link>
      <description>&lt;P&gt;any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 21:20:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-2-12-1-RT1052-SAI-MQS-proper-init-de-init-flow-w-FreeRTOS/m-p/1595036#M4174</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2023-02-07T21:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 2.12.1 - RT1052 SAI (MQS): proper init/de-init flow w/ FreeRTOS?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-2-12-1-RT1052-SAI-MQS-proper-init-de-init-flow-w-FreeRTOS/m-p/1598264#M4192</link>
      <description>&lt;P&gt;anything?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 15:19:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/SDK-2-12-1-RT1052-SAI-MQS-proper-init-de-init-flow-w-FreeRTOS/m-p/1598264#M4192</guid>
      <dc:creator>variable_andrew</dc:creator>
      <dc:date>2023-02-13T15:19:17Z</dc:date>
    </item>
  </channel>
</rss>

