<?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: memory alignment issue when usb stack and vit demo used together in Voice Technology</title>
    <link>https://community.nxp.com/t5/Voice-Technology/memory-alignment-issue-when-usb-stack-and-vit-demo-used-together/m-p/1377365#M21</link>
    <description>&lt;P&gt;Hi ganzo:&lt;/P&gt;
&lt;P&gt;If you run USB stack on SDRAM,&amp;nbsp; some key structures should be put to non-cached memory.&amp;nbsp; Please refer to below link for more details.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Using-NonCached-Memory-on-i-MXRT/ta-p/1183369" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Using-NonCached-Memory-on-i-MXRT/ta-p/1183369&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Nov 2021 03:16:00 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2021-11-26T03:16:00Z</dc:date>
    <item>
      <title>memory alignment issue when usb stack and vit demo used together</title>
      <link>https://community.nxp.com/t5/Voice-Technology/memory-alignment-issue-when-usb-stack-and-vit-demo-used-together/m-p/1375778#M20</link>
      <description>&lt;P&gt;I'm facing memory alignment issue when VIT demo and USB msd stack used together on freertos with SDRAM as main memory. It is either one or another works depending on the memory configuration. Does anybody face same issue? I also couldn't find decription about USE_SDRAM definition.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 17:57:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Voice-Technology/memory-alignment-issue-when-usb-stack-and-vit-demo-used-together/m-p/1375778#M20</guid>
      <dc:creator>ganzo</dc:creator>
      <dc:date>2021-11-23T17:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: memory alignment issue when usb stack and vit demo used together</title>
      <link>https://community.nxp.com/t5/Voice-Technology/memory-alignment-issue-when-usb-stack-and-vit-demo-used-together/m-p/1377365#M21</link>
      <description>&lt;P&gt;Hi ganzo:&lt;/P&gt;
&lt;P&gt;If you run USB stack on SDRAM,&amp;nbsp; some key structures should be put to non-cached memory.&amp;nbsp; Please refer to below link for more details.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Using-NonCached-Memory-on-i-MXRT/ta-p/1183369" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Using-NonCached-Memory-on-i-MXRT/ta-p/1183369&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 03:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Voice-Technology/memory-alignment-issue-when-usb-stack-and-vit-demo-used-together/m-p/1377365#M21</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2021-11-26T03:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: memory alignment issue when usb stack and vit demo used together</title>
      <link>https://community.nxp.com/t5/Voice-Technology/memory-alignment-issue-when-usb-stack-and-vit-demo-used-together/m-p/1378464#M22</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/369"&gt;@danielchen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have tested with OCRAM with above suggestion. I have configured OCRAM like below. It is 750KB in size.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ganzo_1-1638235873605.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163490i3D0E38207A02D2DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ganzo_1-1638235873605.png" alt="ganzo_1-1638235873605.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ganzo_0-1638235581210.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163489i5D65021ACC45825E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ganzo_0-1638235581210.png" alt="ganzo_0-1638235581210.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Inside the board/board.c file. region 6 setting changed like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Region 6 setting: Memory with Normal type, not &lt;U&gt;shareable&lt;/U&gt;, outer/inner write back */&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; MPU-&amp;gt;RBAR = ARM_MPU_RBAR(6, 0x20200000U);&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_1MB);&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(6, 0x20240000U);&lt;/P&gt;&lt;P&gt;MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 1, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_1MB);&lt;/P&gt;&lt;P&gt;After that, USB stack is working. I can see the USB thumb drive is mounted. I have little concern about above code. OCRAM size is 750KB. Above code only possible in size of 256KB, 512KB, 1MB. Will that be okay?&lt;/P&gt;&lt;P&gt;Ganzo&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 01:31:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Voice-Technology/memory-alignment-issue-when-usb-stack-and-vit-demo-used-together/m-p/1378464#M22</guid>
      <dc:creator>ganzo</dc:creator>
      <dc:date>2021-11-30T01:31:49Z</dc:date>
    </item>
  </channel>
</rss>

