<?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: Receive sai multichannel data into multiple buffs using sdma in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1869439#M223989</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219146"&gt;@tongt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;你的这个想法已经在SDK里集成了，但是用法不对。smda script里有针对SAI multi-fifo的脚本，详细参数请看手册的 &lt;SPAN class="fontstyle0"&gt;A.3.2.8 mcu_2_sai&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_0-1716268355591.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279762i1FA441625C162E56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_0-1716268355591.png" alt="Zhiming_Liu_0-1716268355591.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_1-1716268459452.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279763i881C6D0BAADFE2FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_1-1716268459452.png" alt="Zhiming_Liu_1-1716268459452.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;SDK里的&lt;SPAN&gt;SAI_TransferSendSDMA&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;API也支持script里的这个功能，如果配置的通道数大于1，&lt;SPAN&gt;SAI_TransferSendSDMA 里会使用milti-fifo这个功能读取数据，然后返回第一个buffer，对于其余的buffer，是在这个buffer基础上＋offset（默认是4U）。callback应该是一个就行，然后指定通道的时候用或逻辑试试。然后设置&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;saiConfig里的&lt;/SPAN&gt;&lt;SPAN&gt;channelNums和&lt;/SPAN&gt;&lt;SPAN&gt;channelMask&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_2-1716269676812.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279764i48E178DA049DE9B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_2-1716269676812.png" alt="Zhiming_Liu_2-1716269676812.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_3-1716270334737.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279767i21446D234091CB5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_3-1716270334737.png" alt="Zhiming_Liu_3-1716270334737.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 06:59:34 GMT</pubDate>
    <dc:creator>Zhiming_Liu</dc:creator>
    <dc:date>2024-05-21T06:59:34Z</dc:date>
    <item>
      <title>Receive sai multichannel data into multiple buffs using sdma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1867768#M223856</link>
      <description>&lt;P&gt;使用sdma接收sai多通道数据到多个buff中&lt;/P&gt;&lt;P&gt;Receive sai multichannel data into multiple buffs using sdma&lt;/P&gt;&lt;P&gt;在使用sai及sdma接收数据的时候，如果使用multififo等机制，接收到的数据会在一个buff中，能不能使用sdma的多通道功能，使接收到的数据按照通道分散到各执的buff中？&lt;/P&gt;&lt;P&gt;When using sai and sdma to receive data, if you use such as multififo, the received data will be in a buff, can you use the multi-channel function of sdma so that the received data is dispersed according to the channel in the buff of each execution?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_1-1715928528878.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279308i84F4FBCEC71C3D4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_1-1715928528878.png" alt="_1-1715928528878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;以上图为例子，第一组4字节为第一个通道，连续的第二组4字节为第二个通道，总共4个通道，实际使用的时候需要对某一个通道的数据进行拷贝，拷贝出一个完整通道的数据&lt;BR /&gt;The above figure as an example, the first group of 4 bytes for the first channel, the second consecutive group of 4 bytes for the second channel, a total of 4 channels, the actual use of the time you need to copy the data of a channel, copy out a complete channel data&lt;/P&gt;&lt;P&gt;我尝试使用如下代码，但是回调函数总是不能被调用&lt;/P&gt;&lt;P&gt;I tried to use the following code, but the callback function always fails to be called&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_0-1715927543295.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279303iE1455EC5A29B4937/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_0-1715927543295.png" alt="_0-1715927543295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;这种方案有没有问题，能不能实现，如果要实现需要关注哪些呢？&lt;/P&gt;&lt;P&gt;Are there any problems with this option, can it be achieved, and what needs to be focused on if it is to be achieved?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 06:53:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1867768#M223856</guid>
      <dc:creator>tongt</dc:creator>
      <dc:date>2024-05-17T06:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Receive sai multichannel data into multiple buffs using sdma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1868828#M223940</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219146"&gt;@tongt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;你用的是哪颗芯片？&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 10:59:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1868828#M223940</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-05-20T10:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Receive sai multichannel data into multiple buffs using sdma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1869268#M223969</link>
      <description>imx8mp</description>
      <pubDate>Tue, 21 May 2024 02:47:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1869268#M223969</guid>
      <dc:creator>tongt</dc:creator>
      <dc:date>2024-05-21T02:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Receive sai multichannel data into multiple buffs using sdma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1869302#M223972</link>
      <description>&lt;P&gt;另外我还修改了&amp;nbsp;&lt;SPAN&gt;SAI_TransferRxCreateHandleSDMA以及&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/*&amp;lt;! Private handle only used for internally. */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;static&lt;/SPAN&gt; &lt;SPAN&gt;sai_sdma_private_handle_t&lt;/SPAN&gt; &lt;SPAN&gt;s_sdmaPrivateHandle&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;ARRAY_SIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;s_saiBases&lt;/SPAN&gt;&lt;SPAN&gt;)][&lt;/SPAN&gt;&lt;SPAN&gt;16&lt;/SPAN&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tongt_0-1716261721673.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279746i5D73A028505B723D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tongt_0-1716261721673.png" alt="tongt_0-1716261721673.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;感谢回复&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 03:22:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1869302#M223972</guid>
      <dc:creator>tongt</dc:creator>
      <dc:date>2024-05-21T03:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Receive sai multichannel data into multiple buffs using sdma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1869439#M223989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219146"&gt;@tongt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;你的这个想法已经在SDK里集成了，但是用法不对。smda script里有针对SAI multi-fifo的脚本，详细参数请看手册的 &lt;SPAN class="fontstyle0"&gt;A.3.2.8 mcu_2_sai&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_0-1716268355591.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279762i1FA441625C162E56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_0-1716268355591.png" alt="Zhiming_Liu_0-1716268355591.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_1-1716268459452.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279763i881C6D0BAADFE2FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_1-1716268459452.png" alt="Zhiming_Liu_1-1716268459452.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;SDK里的&lt;SPAN&gt;SAI_TransferSendSDMA&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;API也支持script里的这个功能，如果配置的通道数大于1，&lt;SPAN&gt;SAI_TransferSendSDMA 里会使用milti-fifo这个功能读取数据，然后返回第一个buffer，对于其余的buffer，是在这个buffer基础上＋offset（默认是4U）。callback应该是一个就行，然后指定通道的时候用或逻辑试试。然后设置&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;saiConfig里的&lt;/SPAN&gt;&lt;SPAN&gt;channelNums和&lt;/SPAN&gt;&lt;SPAN&gt;channelMask&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_2-1716269676812.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279764i48E178DA049DE9B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_2-1716269676812.png" alt="Zhiming_Liu_2-1716269676812.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zhiming_Liu_3-1716270334737.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/279767i21446D234091CB5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zhiming_Liu_3-1716270334737.png" alt="Zhiming_Liu_3-1716270334737.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 06:59:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1869439#M223989</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-05-21T06:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Receive sai multichannel data into multiple buffs using sdma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1876083#M224238</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/151788"&gt;@Zhiming_Liu&lt;/a&gt;&amp;nbsp;下午好&lt;/P&gt;&lt;P&gt;目前接收是使用了multi fifo的。offset的类型为&lt;SPAN&gt;uint8_t，也就是最大为255，如果需要buff的偏移更大，有没有办法呢（目前每次接收64K数据，包含4个通道，每4个字节交错），如果不使用offset，如之前说的，4个通道能不能对应到sdma的4个通道上，这4个sdma的通道对应4个不同的buff地址，能不能实现呢&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 08:03:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1876083#M224238</guid>
      <dc:creator>tongt</dc:creator>
      <dc:date>2024-05-28T08:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Receive sai multichannel data into multiple buffs using sdma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1877718#M224317</link>
      <description>&lt;P&gt;在未对SDK大幅改动的情况下，不行，而且目前的sdma脚本只支持交错存储，不支持自定义的多个buffer地址。&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 01:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1877718#M224317</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2024-05-30T01:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Receive sai multichannel data into multiple buffs using sdma</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1877883#M224336</link>
      <description>谢谢</description>
      <pubDate>Thu, 30 May 2024 05:45:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Receive-sai-multichannel-data-into-multiple-buffs-using-sdma/m-p/1877883#M224336</guid>
      <dc:creator>tongt</dc:creator>
      <dc:date>2024-05-30T05:45:47Z</dc:date>
    </item>
  </channel>
</rss>

