<?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: RT1021 MCUXpresso Whether the compilation environment is faulty? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1662577#M206999</link>
    <description>&lt;P&gt;Hi&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;你好！&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; SDRAM使用没有问题，不过对于stack这些，我建议还是用内部的比较好点。&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; DTCM，ITCM不会受cache影响，而且速度快。 SDRAM是从SEMC接口走的，没有内部的快。&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;你还要做数据处理，而且DTCM也够用，我建议你用DTCM。&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1685698144640.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/226031i6EC581B84746FF87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1685698144640.png" alt="kerryzhou_0-1685698144640.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;这个图比较清楚，你看到内核和DTCM, ITCM直接交互。但是OCRAM, SDRAM要走interconnect bus fabrics.用不好，会有冲突。&lt;/P&gt;
&lt;P&gt;不过，用SDRAM了，你就把相关stack放到noncache区域中去，实在不行，关闭cache，具体你可以查看我们的AN12042。&lt;/P&gt;
&lt;P&gt;你先使用DTCM改大看看，如果还是有问题，你更新后的工程再发我，我再复现你的问题。&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 09:32:06 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2023-06-02T09:32:06Z</dc:date>
    <item>
      <title>RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1652959#M206092</link>
      <description>&lt;P&gt;MCUXpresso IDE v11.5.1&amp;nbsp;&lt;SPAN&gt;Compile SAI exception,See the code description&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1.Loop assignment and individual assignment&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 949px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/223763iA0D560A5504B8050/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.Adds a print, but does not execute it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/223764i9834AEF453731A2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDK_2_11_0_EVK-MIMXRT1020&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 08:26:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1652959#M206092</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-05-18T08:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1653587#M206154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;You MCUXpresso IDE and the SDK are all too old, please try the new MCUXpress IDE version, and the SDK version again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If you still have issues, kindly let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; IDE:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE" target="_blank"&gt;https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;SDK:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/" target="_blank"&gt;https://mcuxpresso.nxp.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 07:10:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1653587#M206154</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-19T07:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1653642#M206158</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528" target="_blank" rel="noopener"&gt;@&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am currently the latest IDE and SDK also have the same problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I suspect it is caused by the length of EDMA sending and receiving requests. My current audio is TDM 48KHz, 32bit, 4 channels, and the 4ms data length of each request is 48*4*4*4=3072 bytes, which will lead to various anomalies, including the ones I mentioned above.&lt;/SPAN&gt;&lt;SPAN class=""&gt; However, if the EDMA request length is a little smaller,such as 2ms data request. it is normal. Is there a BUG in the EDMA transceiver interface?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Jarman&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 08:05:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1653642#M206158</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-05-19T08:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1653648#M206159</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks for your effort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Can you reproduce the issues on the MIMXRT1020-EVK board?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If yes, please share your test project, with the DMA length which meet issues, and the smaller length which is normal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I will find time to test it on my side.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 08:13:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1653648#M206159</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-19T08:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1653661#M206163</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528" target="_blank" rel="noopener"&gt;@&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I did an experiment on the MIMXRT1020-EVK board. I changed the format of TDM data to 48kHz, 32bit and 2 channels, and then there would be an audio anomaly every time I requested 16ms data. Please refer to the modification in the attachment&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Jarman&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 08:27:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1653661#M206163</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-05-19T08:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1655195#M206302</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528" target="_blank" rel="noopener"&gt;@&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm sorry to bother you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have you tested this problem again?&amp;nbsp;Is there a solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Jarman&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 04:02:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1655195#M206302</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-05-23T04:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1655263#M206311</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Please keep patient, these two days, I am on the annual leave.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Will back to work tomorrow, after testing, I will give you the updated information, thanks.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 05:28:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1655263#M206311</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-23T05:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1657486#M206542</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I test your project on my MIMXRT1020-EVK, it meet the assert issue:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1685003896790.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/224825iCD24C8F1B8C4D6C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1685003896790.png" alt="kerryzhou_0-1685003896790.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Do you have this issue?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 08:38:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1657486#M206542</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-25T08:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1657499#M206543</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528" target="_blank" rel="noopener"&gt;@&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It works fine on my board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Jarman&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 08:52:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1657499#M206543</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-05-25T08:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1657502#M206544</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528" target="_blank" rel="noopener"&gt;@&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If my project runs incorrectly on your board, you can try to import the project directly from your local SDK and modify it against the project I provided.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Jarman&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 08:53:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1657502#M206544</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-05-25T08:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1657517#M206546</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Ok, I can test it based on the SDK directly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;One question, how do you know the data is incorrect, as you mentioned the sound is wrong with your related code, do you play the music?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 09:08:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1657517#M206546</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-25T09:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1657525#M206547</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528" target="_blank" rel="noopener"&gt;@&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This project is a recording - play mode, the microphone on the board can be given to the headphone output. I could hear my voice passing through the microphone&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Jarman&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 09:12:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1657525#M206547</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-05-25T09:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1658332#M206633</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 我们可以直接用中文交流。&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;我先说下对你问题的理解，目前你是发现在DMA传输的过程重，添加了一些其他的操作，比如：&lt;/P&gt;
&lt;DIV&gt;#if 1&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memcpy(pTemp, xfer.data, BUFFER_SIZE);&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(int i=0; i&amp;lt;64; i++)&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; for(int j=0; j&amp;lt;2; j++)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pMic[j*64 + i] = pTemp[2*i+j];&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(int i=0; i&amp;lt;64; i++)&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; for(int j=0; j&amp;lt;2; j++)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; //pMic[j*64 + i] = pMic[j*64 + i]&amp;gt;&amp;gt;2;//(1) Shift one bit to the right&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pMic[j*64 + i] = pMic[j*64 + i]&amp;lt;&amp;lt;1;//(2) Shift one bit to the left&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pMic[j*64 + i] = pMic[j*64 + i];&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(int i=0; i&amp;lt;64; i++)&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; for(int j=0; j&amp;lt;2; j++)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pTemp[2*i+j] = pMic[j*64 + i];&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memcpy(xfer.data, (void *)pTemp, BUFFER_SIZE);&lt;/DIV&gt;
&lt;DIV&gt;#endif&lt;/DIV&gt;
&lt;DIV&gt;实际上也不影响真实的SAI MIC到播放数据，只是你发现一旦你对数据处理了，然后听到的声音就不对了，是吗？&lt;/DIV&gt;
&lt;DIV&gt;你添加相关数据处理代码，也是为了麦的数据处理，但是不希望影响到同步传输播放这层，是这个道理吧?&lt;/DIV&gt;
&lt;DIV&gt;如果是这个情况，通常是会用多buffer去做DMA传输，避开处理对传输buffer的影响。&lt;/DIV&gt;
&lt;DIV&gt;请帮我确认下，我对你问题的理解是否有偏差，这样便于我测试，谢谢理解。&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Best Regards,&lt;/DIV&gt;
&lt;DIV&gt;Kerry&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 May 2023 10:19:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1658332#M206633</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-26T10:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1658778#M206694</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528" target="_blank" rel="noopener"&gt;@&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;是的，你理解的是对的，因为我的需求每次处理4通道/4ms的TDM，总长度是3072，这样只要我对数据任何1bit进行改变，声音都会不正常。但是我尝试改变这个长度，比如请求2通道，或者请求1ms就不会有问题，所以我判断是请求的长度影响到了程序的正常运行。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Jarman&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 01:12:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1658778#M206694</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-05-29T01:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1659787#M206786</link>
      <description>&lt;P&gt;你现在是跑下面这段main出问题吗？我看你代码里两个main：&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;	int main(void)
	{
	    sai_transfer_t xfer, send_xfer;
	    edma_config_t dmaConfig = {0};
	    sai_transceiver_t saiConfig;

	    BOARD_ConfigMPU();
	    BOARD_InitBootPins();
	    BOARD_InitBootClocks();
	    CLOCK_InitAudioPll(&amp;amp;audioPllConfig);
	    BOARD_InitDebugConsole();

	    /*Clock setting for LPI2C*/
	    CLOCK_SetMux(kCLOCK_Lpi2cMux, DEMO_LPI2C_CLOCK_SOURCE_SELECT);
	    CLOCK_SetDiv(kCLOCK_Lpi2cDiv, DEMO_LPI2C_CLOCK_SOURCE_DIVIDER);

	    /*Clock setting for SAI1*/
	    CLOCK_SetMux(kCLOCK_Sai1Mux, DEMO_SAI1_CLOCK_SOURCE_SELECT);
	    CLOCK_SetDiv(kCLOCK_Sai1PreDiv, DEMO_SAI1_CLOCK_SOURCE_PRE_DIVIDER);
	    CLOCK_SetDiv(kCLOCK_Sai1Div, DEMO_SAI1_CLOCK_SOURCE_DIVIDER);

	    /*Enable MCLK clock*/
	    BOARD_EnableSaiMclkOutput(true);

	    /* Init DMAMUX */
	    DMAMUX_Init(DEMO_DMAMUX);
	    DMAMUX_SetSource(DEMO_DMAMUX, DEMO_TX_EDMA_CHANNEL, (uint8_t)DEMO_SAI_TX_SOURCE);
	    DMAMUX_EnableChannel(DEMO_DMAMUX, DEMO_TX_EDMA_CHANNEL);
	    DMAMUX_SetSource(DEMO_DMAMUX, DEMO_RX_EDMA_CHANNEL, (uint8_t)DEMO_SAI_RX_SOURCE);
	    DMAMUX_EnableChannel(DEMO_DMAMUX, DEMO_RX_EDMA_CHANNEL);

	    PRINTF("SAI example started!\n\r");

	    /* Init DMA and create handle for DMA */
	    EDMA_GetDefaultConfig(&amp;amp;dmaConfig);
	    EDMA_Init(DEMO_DMA, &amp;amp;dmaConfig);
	    EDMA_CreateHandle(&amp;amp;dmaTxHandle, DEMO_DMA, DEMO_TX_EDMA_CHANNEL);
	    EDMA_CreateHandle(&amp;amp;dmaRxHandle, DEMO_DMA, DEMO_RX_EDMA_CHANNEL);
	#if defined(FSL_FEATURE_EDMA_HAS_CHANNEL_MUX) &amp;amp;&amp;amp; FSL_FEATURE_EDMA_HAS_CHANNEL_MUX
	    EDMA_SetChannelMux(DEMO_DMA, DEMO_TX_EDMA_CHANNEL, DEMO_SAI_TX_EDMA_CHANNEL);
	    EDMA_SetChannelMux(DEMO_DMA, DEMO_RX_EDMA_CHANNEL, DEMO_SAI_RX_EDMA_CHANNEL);
	#endif

	    /* SAI init */
	    SAI_Init(DEMO_SAI);

	    SAI_TransferTxCreateHandleEDMA(DEMO_SAI, &amp;amp;txHandle, tx_callback, NULL, &amp;amp;dmaTxHandle);
	    SAI_TransferRxCreateHandleEDMA(DEMO_SAI, &amp;amp;rxHandle, rx_callback, NULL, &amp;amp;dmaRxHandle);

	    /* I2S mode configurations */
	    //SAI_GetClassicI2SConfig(&amp;amp;saiConfig, DEMO_AUDIO_BIT_WIDTH, kSAI_Stereo, 1U &amp;lt;&amp;lt; DEMO_SAI_CHANNEL);
	    SAI_GetTDMConfig(&amp;amp;saiConfig, kSAI_FrameSyncLenOneBitClk, DEMO_AUDIO_BIT_WIDTH, DEMO_AUDIO_DATA_CHANNEL, 1U &amp;lt;&amp;lt; DEMO_SAI_CHANNEL);
	    saiConfig.frameSync.frameSyncEarly = true;
	    saiConfig.syncMode              = DEMO_SAI_TX_SYNC_MODE;
	    //saiConfig.bitClock.bclkPolarity = DEMO_SAI_TX_BIT_CLOCK_POLARITY;
	    //saiConfig.masterSlave           = DEMO_SAI_MASTER_SLAVE;
	    SAI_TransferTxSetConfigEDMA(DEMO_SAI, &amp;amp;txHandle, &amp;amp;saiConfig);
	    saiConfig.syncMode = DEMO_SAI_RX_SYNC_MODE;
	    SAI_TransferRxSetConfigEDMA(DEMO_SAI, &amp;amp;rxHandle, &amp;amp;saiConfig);

	    /* set bit clock divider */
	    SAI_TxSetBitClockRate(DEMO_SAI, DEMO_AUDIO_MASTER_CLOCK, DEMO_AUDIO_SAMPLE_RATE, DEMO_AUDIO_BIT_WIDTH,
	                          DEMO_AUDIO_DATA_CHANNEL);
	    SAI_RxSetBitClockRate(DEMO_SAI, DEMO_AUDIO_MASTER_CLOCK, DEMO_AUDIO_SAMPLE_RATE, DEMO_AUDIO_BIT_WIDTH,
	                          DEMO_AUDIO_DATA_CHANNEL);

	    /* master clock configurations */
	    BOARD_MASTER_CLOCK_CONFIG();

	    /* Use default setting to init codec */
	    if (CODEC_Init(&amp;amp;codecHandle, &amp;amp;boardCodecConfig) != kStatus_Success)
	    {
	        assert(false);
	    }
	    if (CODEC_SetVolume(&amp;amp;codecHandle, kCODEC_PlayChannelHeadphoneLeft | kCODEC_PlayChannelHeadphoneRight,
	                        DEMO_CODEC_VOLUME) != kStatus_Success)
	    {
	        assert(false);
	    }

	    int pTemp[BUFFER_SIZE/sizeof(int)] = {0};
	    int pMic[BUFFER_SIZE/sizeof(int)] = {0};
	    int pSendXfer[BUFFER_SIZE/sizeof(int)] = {0};

	    send_xfer.data     = pSendXfer;
	    send_xfer.dataSize = BUFFER_SIZE;
	    while (1)
	    {
	        if (rx_callback_finished)
	        {
	        	rx_callback_finished = false;
	        	//PRINTF("emptyBlock1=%d\r\n",emptyBlock);
	        	xfer.data     = Buffer + rx_index * BUFFER_SIZE;
	        	xfer.dataSize = BUFFER_SIZE;
	            if (kStatus_Success == SAI_TransferReceiveEDMA(DEMO_SAI, &amp;amp;rxHandle, &amp;amp;xfer))
	            {
	            	rx_index++;
	            }
	            if (rx_index == BUFFER_NUMBER)
	            {
	                rx_index = 0U;
	            }
	        }
	        if (tx_callback_finished)
	        {
	        	tx_callback_finished = false;
	        	xfer.data     = Buffer + tx_index * BUFFER_SIZE;
	        	xfer.dataSize = BUFFER_SIZE;
#if 1
				memcpy(pTemp, xfer.data, BUFFER_SIZE);

				for(int i=0; i&amp;lt;SIGLE_SAMPLE; i++)
				{
					for(int j=0; j&amp;lt;DEMO_AUDIO_DATA_CHANNEL; j++)
					{
						pMic[j*SIGLE_SAMPLE + i] = pTemp[DEMO_AUDIO_DATA_CHANNEL*i+j];
					}
				}

				for(int i=0; i&amp;lt;SIGLE_SAMPLE; i++)
				{
					for(int j=0; j&amp;lt;DEMO_AUDIO_DATA_CHANNEL; j++)
					{
						//pMic[j*SIGLE_SAMPLE + i] = pMic[j*SIGLE_SAMPLE + i]&amp;lt;&amp;lt;1;//(1) Shift one bit to the right
						//pMic[j*64 + i] = pMic[j*64 + i]&amp;lt;&amp;lt;1;//(2) Shift one bit to the left
						//pMic[j*64 + i] = pMic[j*64 + i];
					}
				}

				for(int i=0; i&amp;lt;SIGLE_SAMPLE; i++)
				{
					for(int j=0; j&amp;lt;DEMO_AUDIO_DATA_CHANNEL; j++)
					{
						pTemp[DEMO_AUDIO_DATA_CHANNEL*i+j] = pMic[j*SIGLE_SAMPLE + i];
					}
				}

				memcpy(send_xfer.data, (void *)pTemp, BUFFER_SIZE);
	#endif
	            if (kStatus_Success == SAI_TransferSendEDMA(DEMO_SAI, &amp;amp;txHandle, &amp;amp;send_xfer))
	            {
	                tx_index++;
	            }
	            if (tx_index == BUFFER_NUMBER)
	            {
	                tx_index = 0U;
	            }
	        }
	    }

	}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;最关键是这个代码加了出问题吗？&lt;/P&gt;
&lt;DIV&gt;#if 1&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; memcpy(pTemp, xfer.data, BUFFER_SIZE);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; for(int i=0; i&amp;lt;SIGLE_SAMPLE; i++)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; for(int j=0; j&amp;lt;DEMO_AUDIO_DATA_CHANNEL; j++)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pMic[j*SIGLE_SAMPLE + i] = pTemp[DEMO_AUDIO_DATA_CHANNEL*i+j];&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; for(int i=0; i&amp;lt;SIGLE_SAMPLE; i++)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; for(int j=0; j&amp;lt;DEMO_AUDIO_DATA_CHANNEL; j++)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; //pMic[j*SIGLE_SAMPLE + i] = pMic[j*SIGLE_SAMPLE + i]&amp;lt;&amp;lt;1;//(1) Shift one bit to the right&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; //pMic[j*64 + i] = pMic[j*64 + i]&amp;lt;&amp;lt;1;//(2) Shift one bit to the left&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; //pMic[j*64 + i] = pMic[j*64 + i];&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; for(int i=0; i&amp;lt;SIGLE_SAMPLE; i++)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; for(int j=0; j&amp;lt;DEMO_AUDIO_DATA_CHANNEL; j++)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pTemp[DEMO_AUDIO_DATA_CHANNEL*i+j] = pMic[j*SIGLE_SAMPLE + i];&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; memcpy(send_xfer.data, (void *)pTemp, BUFFER_SIZE);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; #endif&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;如果不处理，就可以正常，对吗？&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;我这边的MIMXRT1020-EVK 板子的codec出了问题，这也是为什么跑你代码进入assert，我要再找个板子测下。&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;看你的问题情况，应该还是和软件代码的处理有关，因为我们这边有处理8通道的SAI数据都能正常。&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;你现在的数据处理是想实现什么功能？音频数据变换之后，看上去已经改变了，如何保证播放的数据和采集数据的一致？&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 09:48:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1659787#M206786</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-30T09:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1659833#M206795</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528" target="_blank" rel="noopener"&gt;@&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;这个程序我是特意加大了EDMA的请求数据的大小&lt;/P&gt;&lt;P&gt;#define SIGLE_SAMPLE (DEMO_AUDIO_SAMPLE_RATE*16/1000)//16MS&lt;BR /&gt;#define BUFFER_SIZE (SIGLE_SAMPLE*DEMO_AUDIO_DATA_CHANNEL*sizeof(int))&lt;/P&gt;&lt;P&gt;这样经过处理之后就会有问题，如果将SIGLE_SAMPLE 改成8ms或者更小一点就正常。&lt;/P&gt;&lt;P&gt;处理数据，我只是简单的取出了每个通道的数据进行移位操作，相当于改变音量大小，并不会对数据正确性造成影响。后面音频正常后我会加入滤波器/EQ等算法。算法会处理多个通道的数据。&lt;/P&gt;&lt;P&gt;以上是EVK板上的情况。&lt;/P&gt;&lt;P&gt;事实上我调试自己的板子，只是采集数据直接给到播放时没有问题，但是一旦我加了如下的代码就会出现问题&lt;/P&gt;&lt;DIV&gt;#if 1&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;memcpy(pTemp, xfer.data, BUFFER_SIZE);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for(int i=0; i&amp;lt;SIGLE_SAMPLE; i++)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for(int j=0; j&amp;lt;DEMO_AUDIO_DATA_CHANNEL; j++)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pMic[j*SIGLE_SAMPLE + i] = pTemp[DEMO_AUDIO_DATA_CHANNEL*i+j];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for(int i=0; i&amp;lt;SIGLE_SAMPLE; i++)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for(int j=0; j&amp;lt;DEMO_AUDIO_DATA_CHANNEL; j++)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pMic[j*SIGLE_SAMPLE + i] = pMic[j*SIGLE_SAMPLE + i]&amp;gt;&amp;gt;1;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;//PRINTF("TEST\r\n");//比如这里加一句PRINTF，但是该条语句是屏蔽的&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for(int i=0; i&amp;lt;SIGLE_SAMPLE; i++)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for(int j=0; j&amp;lt;DEMO_AUDIO_DATA_CHANNEL; j++)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pTemp[DEMO_AUDIO_DATA_CHANNEL*i+j] = pMic[j*SIGLE_SAMPLE + i];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;memcpy(send_xfer.data, (void *)pTemp, BUFFER_SIZE);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;但是我修改xfer.dataSize的大小就会正常，感觉跟内存有关，比如我加了一个PRINTF的打印，并且屏蔽掉它，也会影响到音频&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 May 2023 10:17:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1659833#M206795</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-05-30T10:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1660330#M206833</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528"&gt;@jarman_zhou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;我看下来也是和内存有关，所以你看看把工程的stack size， heap size放大看看，有没有用？&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; 毕竟你的数组和你的长度直接有关，所以我想你把stack, heap都改大，在工程属性里面修改，这样linker file也会自动修改。&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 02:40:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1660330#M206833</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-31T02:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1660336#M206836</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528" target="_blank" rel="noopener"&gt;@&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;我尝试过修改stack和heap到最大，也是没有改善的。我还修改过编译器的优化等级，都没有解决。&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 02:46:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1660336#M206836</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-05-31T02:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1660339#M206837</link>
      <description>&lt;P&gt;你目前stack heap size是多大？&lt;/P&gt;
&lt;P&gt;你修改到最大是多大？&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 02:47:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1660339#M206837</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-05-31T02:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021 MCUXpresso Whether the compilation environment is faulty?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1660357#M206838</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207528" target="_blank" rel="noopener"&gt;@&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60336" target="_self"&gt;&lt;SPAN class=""&gt;kerryzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;我现在使用的是SDRAM，堆栈设置的是8M.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225541i9F9C496F404BEC06/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;我也使用过DTC，堆栈配置32k&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225542i1569780A33BD30FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 03:01:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-MCUXpresso-Whether-the-compilation-environment-is-faulty/m-p/1660357#M206838</guid>
      <dc:creator>jarman_zhou</dc:creator>
      <dc:date>2023-05-31T03:01:54Z</dc:date>
    </item>
  </channel>
</rss>

