<?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: SAI1 dma events pending but SDMA didn't get scheduled in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588894#M200712</link>
    <description>I found AIPSTZ base addresses.</description>
    <pubDate>Fri, 27 Jan 2023 13:32:32 GMT</pubDate>
    <dc:creator>vitaly_a</dc:creator>
    <dc:date>2023-01-27T13:32:32Z</dc:date>
    <item>
      <title>SAI1 dma events pending but SDMA didn't get scheduled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588538#M200672</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a custom board built on IMX6UL with Audio codec connected to SAI1. Application works on vxworks. The BSP has its own SDMA and SAI drivers. When vxworks kernel is booted from uboot the Audio application works perfectly using SDMA engine. The problem is that I need to boot vxworks from a custom bootloader. When the kernel is booted from the custom bootloader the Audio application doesn't work. Debugging the issue I compared practically all registers in the both cases (booting from uboot and from custom bootloader) and couldn't find any differences (which I believe may affect the DMA. But when I boot from the custom bootloader I do see the pending events on 2 channels (SDMAARM_EVTPEND = 0x6) and tx and rx errors on SAI1 FIFO. Looks like SDMA scheduler doesn't see the events and doesn't drain/fill FIFOs. If Audio application just polls SAI FIFOs (doesn't use DMA) everything works.&lt;/P&gt;&lt;P&gt;Does anyone has an idea what I can miss to configure in the custom bootloader to make SDMA happy?&lt;/P&gt;&lt;P&gt;I appreciate any help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vitaly Andrianov&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 20:41:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588538#M200672</guid>
      <dc:creator>vitaly_a</dc:creator>
      <dc:date>2023-01-26T20:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAI1 dma events pending but SDMA didn't get scheduled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588831#M200700</link>
      <description>&lt;P&gt;Hi Vitaly,&lt;/P&gt;&lt;P&gt;beside the SAI and SDMA registers, you should also check the CCM and AIPSTZ registers.&lt;/P&gt;&lt;P&gt;Maybe the SDMA is stuck due to problems accessing specific memory / peripheral regions. You may check the SDMAARM_ONCE_STAT.PST bits for the current state of the SDMA engine.&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;Christian&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 11:41:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588831#M200700</guid>
      <dc:creator>ceggers1</dc:creator>
      <dc:date>2023-01-27T11:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAI1 dma events pending but SDMA didn't get scheduled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588887#M200710</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Christian,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks very much for the reply. I did check CMM registers and they are the same. From reference manual I read&amp;nbsp;AIPSTZ bas address is 0x0. But when I read those addresses from u-boot it gave me some strange values. I don't believe I read the AIPSTZ. Could you confirm the 0x0 is correct address.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another info. vxworks has Memory-to-Memory SDMA test witch works perfectly in both cases: booting from u-boot and from custom bootloader. Does that prove that SDMA has required privileges?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Vitaly&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:14:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588887#M200710</guid>
      <dc:creator>vitaly_a</dc:creator>
      <dc:date>2023-01-27T13:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAI1 dma events pending but SDMA didn't get scheduled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588894#M200712</link>
      <description>I found AIPSTZ base addresses.</description>
      <pubDate>Fri, 27 Jan 2023 13:32:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588894#M200712</guid>
      <dc:creator>vitaly_a</dc:creator>
      <dc:date>2023-01-27T13:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAI1 dma events pending but SDMA didn't get scheduled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588895#M200713</link>
      <description>&lt;P&gt;I found the correct AIPS base addresses: 0x200_0000 and 0x210_0000.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:36:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588895#M200713</guid>
      <dc:creator>vitaly_a</dc:creator>
      <dc:date>2023-01-27T13:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAI1 dma events pending but SDMA didn't get scheduled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588938#M200720</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Another info. vxworks has Memory-to-Memory SDMA test witch works perfectly in both cases: booting from u-boot and from custom bootloader. Does that prove that SDMA has required privileges?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think this means that the SDMA has privileges to access the RAM. But maybe the SDMA cannot access several peripherals. Most often this happens if a peripheral clock is disabled. But maybe this can also happen due to wrong AIPSTZ settings.&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;Christian&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 15:17:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588938#M200720</guid>
      <dc:creator>ceggers1</dc:creator>
      <dc:date>2023-01-27T15:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAI1 dma events pending but SDMA didn't get scheduled</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588991#M200723</link>
      <description>&lt;P&gt;Christian,&lt;/P&gt;&lt;P&gt;I implemented the correct AIPS register configuration and it solved my problem.&lt;/P&gt;&lt;P&gt;Thank you very much for the help!!!!&lt;/P&gt;&lt;P&gt;-Vitaly&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 16:34:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI1-dma-events-pending-but-SDMA-didn-t-get-scheduled/m-p/1588991#M200723</guid>
      <dc:creator>vitaly_a</dc:creator>
      <dc:date>2023-01-27T16:34:09Z</dc:date>
    </item>
  </channel>
</rss>

