<?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: RT595 FreeRTOS DMIC recording: FIFO/DMA buffer only first sample non-zero (bare-metal works fine in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT595-FreeRTOS-DMIC-recording-FIFO-DMA-buffer-only-first-sample/m-p/2175566#M35291</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I don't think this issue is from FreeRTOS, it seems like a sw bug from my side.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please double check the functions running on both bare-metal or RTOS are 100% same?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Sep 2025 07:42:40 GMT</pubDate>
    <dc:creator>Sam_Gao</dc:creator>
    <dc:date>2025-09-25T07:42:40Z</dc:date>
    <item>
      <title>RT595 FreeRTOS DMIC recording: FIFO/DMA buffer only first sample non-zero (bare-metal works fine)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT595-FreeRTOS-DMIC-recording-FIFO-DMA-buffer-only-first-sample/m-p/2175428#M35285</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I am working on &lt;STRONG&gt;audio recording with DMIC + DMA on RT595 under FreeRTOS&lt;/STRONG&gt;, but I ran into an issue:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;When I read from &lt;STRONG&gt;FIFO_DATA&lt;/STRONG&gt;, only the very first value may be non-zero. All following values are always 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Similarly, in the &lt;STRONG&gt;DMA buffer&lt;/STRONG&gt;, only the first sample sometimes has a non-zero value, but all other samples are always 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Environment: RT595 EVK, FreeRTOS&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Interrupt priority follows configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;DMIC clock and PDM_DATA signals are toggling, so input seems valid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Important note:&lt;/STRONG&gt;&lt;BR /&gt;With the &lt;STRONG&gt;same configuration and same function call sequence&lt;/STRONG&gt;, the DMIC + DMA works correctly on &lt;STRONG&gt;bare-metal (no RTOS)&lt;/STRONG&gt;. In that case, both FIFO_DATA and DMA buffer contain valid non-zero audio samples. The issue only happens under FreeRTOS.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Has anyone faced a similar issue with DMIC recording under FreeRTOS on RT595?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Could this be related to DMA configuration, cache/memory section, or DMIC FIFO handling in an RTOS context?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any suggestions, hints, or working references would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 04:04:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT595-FreeRTOS-DMIC-recording-FIFO-DMA-buffer-only-first-sample/m-p/2175428#M35285</guid>
      <dc:creator>Weitin</dc:creator>
      <dc:date>2025-09-25T04:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: RT595 FreeRTOS DMIC recording: FIFO/DMA buffer only first sample non-zero (bare-metal works fine</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT595-FreeRTOS-DMIC-recording-FIFO-DMA-buffer-only-first-sample/m-p/2175566#M35291</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I don't think this issue is from FreeRTOS, it seems like a sw bug from my side.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please double check the functions running on both bare-metal or RTOS are 100% same?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 07:42:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT595-FreeRTOS-DMIC-recording-FIFO-DMA-buffer-only-first-sample/m-p/2175566#M35291</guid>
      <dc:creator>Sam_Gao</dc:creator>
      <dc:date>2025-09-25T07:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: RT595 FreeRTOS DMIC recording: FIFO/DMA buffer only first sample non-zero (bare-metal works fine</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT595-FreeRTOS-DMIC-recording-FIFO-DMA-buffer-only-first-sample/m-p/2176492#M35312</link>
      <description>&lt;P&gt;Hi Sam,&lt;BR /&gt;&lt;BR /&gt;Thanks for your feedback.&lt;BR /&gt;I have already double-checked, and I can confirm that the functions running on both bare-metal and RTOS are 100% the same.&lt;BR /&gt;The same call flow works correctly in the bare-metal project, but in the FreeRTOS project the buffer data is always 0x00000000.&lt;/P&gt;&lt;P&gt;Do you think there could be any other project settings (for example in MCUXpresso IDE, such as linker script, memory regions, or compiler options) that might cause this kind of difference?&lt;/P&gt;&lt;P&gt;Thanks again for your suggestions.&lt;BR /&gt;&lt;BR /&gt;Weitin&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 09:12:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT595-FreeRTOS-DMIC-recording-FIFO-DMA-buffer-only-first-sample/m-p/2176492#M35312</guid>
      <dc:creator>Weitin</dc:creator>
      <dc:date>2025-09-26T09:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: RT595 FreeRTOS DMIC recording: FIFO/DMA buffer only first sample non-zero (bare-metal works fine</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT595-FreeRTOS-DMIC-recording-FIFO-DMA-buffer-only-first-sample/m-p/2177857#M35334</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If the logic code is the same, it seems only involves the RTOS scheduling configuration, you can try to modify the priority of RTOS.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 03:54:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT595-FreeRTOS-DMIC-recording-FIFO-DMA-buffer-only-first-sample/m-p/2177857#M35334</guid>
      <dc:creator>Sam_Gao</dc:creator>
      <dc:date>2025-09-30T03:54:19Z</dc:date>
    </item>
  </channel>
</rss>

