<?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: How to configure OCRAM into non-cacheable in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387225#M17586</link>
    <description>&lt;P&gt;Thanks for reply, Kerry&lt;/P&gt;&lt;P&gt;I followed the first link and changed OCRAM to 64K on my RT1024. and it seems working, but in&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;BOARD_ConfigMPU(void)&amp;nbsp;, memory region ITC, DTC, and OCRAM are configured same except size, how can I tell OCRAM is cacheable or not? May i simply change the value as above to make it non-cacheable?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ping&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 09:55:51 GMT</pubDate>
    <dc:creator>ping1</dc:creator>
    <dc:date>2021-12-15T09:55:51Z</dc:date>
    <item>
      <title>How to configure OCRAM into non-cacheable</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1386459#M17555</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;I use RT1024, and configured OCRAM to 64K, I understand it is cacheable by default and would like to configure it to be non-cacheable by modify void BOARD_ConfigMPU(void) function as below:&lt;/P&gt;&lt;P&gt;/* Region 7 setting: Memory with Normal type, not shareable, outer/inner write back */&lt;/P&gt;&lt;P&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(7, 0x20200000U);&lt;/P&gt;&lt;P&gt;MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 0, 1, 0, ARM_MPU_REGION_SIZE_64KB);&lt;/P&gt;&lt;P&gt;But it ends up a hard fault, what else do I need to do in addition to this please? Or does it need to leave some area as cacheable?&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Ping&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 13:16:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1386459#M17555</guid>
      <dc:creator>ping1</dc:creator>
      <dc:date>2021-12-14T13:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure OCRAM into non-cacheable</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387220#M17584</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/64110"&gt;@ping1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; About the flexRAM recofiguration, please check this link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Reallocating-the-FlexRAM/ta-p/1117649" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Reallocating-the-FlexRAM/ta-p/1117649&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Make sure you configure it correctly.&lt;/P&gt;
&lt;P&gt;Debug, without issues.&lt;/P&gt;
&lt;P&gt;Then, you can modify the noncache modification.&lt;/P&gt;
&lt;P&gt;About the cache, please check this application note:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12042.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12042.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still have issues about it, please kindly let me know.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 09:46:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387220#M17584</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-12-15T09:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure OCRAM into non-cacheable</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387221#M17585</link>
      <description>&lt;P&gt;hI&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/64110"&gt;@ping1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, in our SDK also have a lot of SDK contains the non cache code, you also can refer to it.&lt;/P&gt;
&lt;P&gt;Eg, some USB code, helloworld should also have it.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 09:47:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387221#M17585</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-12-15T09:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure OCRAM into non-cacheable</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387225#M17586</link>
      <description>&lt;P&gt;Thanks for reply, Kerry&lt;/P&gt;&lt;P&gt;I followed the first link and changed OCRAM to 64K on my RT1024. and it seems working, but in&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;BOARD_ConfigMPU(void)&amp;nbsp;, memory region ITC, DTC, and OCRAM are configured same except size, how can I tell OCRAM is cacheable or not? May i simply change the value as above to make it non-cacheable?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ping&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 09:55:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387225#M17586</guid>
      <dc:creator>ping1</dc:creator>
      <dc:date>2021-12-15T09:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure OCRAM into non-cacheable</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387248#M17587</link>
      <description>&lt;P&gt;I have Helloworld example open, but OCRAM there is like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* Region 7 setting: Memory with Normal type, not shareable, outer/inner write back */&lt;BR /&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(7, 0x20200000U);&lt;BR /&gt;MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_128KB);&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything here I can do to change it to non-cacheable? sorry, I am new to cache. My target board doesn't have external RAM, I need to use OCRAM as data RAM, but doesn't want it to change any values randomly for me.&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Ping&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 10:22:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387248#M17587</guid>
      <dc:creator>ping1</dc:creator>
      <dc:date>2021-12-15T10:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure OCRAM into non-cacheable</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387872#M17598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/64110"&gt;@ping1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Helloworld&amp;nbsp; or the USB code, the SDRAM area is the noncache&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1639636332679.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/165393iF1D198BA370733BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1639636332679.png" alt="kerryzhou_0-1639636332679.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can check this area related configuration, in the ld and related code.&lt;/P&gt;
&lt;P&gt;If you still have issues, just kindly let me know.&lt;/P&gt;
&lt;P&gt;BTW, if your ITCM, DTCM is enough, it is the noncache area ,can you directly.&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, 16 Dec 2021 06:34:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387872#M17598</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-12-16T06:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure OCRAM into non-cacheable</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387974#M17603</link>
      <description>&lt;P&gt;Thank you for reply, Kerry&lt;/P&gt;&lt;P&gt;My target doesn't have external RAM, and my DTC and ITC are not enough for my project, so I have to use OCRAM, my goal is to configure all OCRAM into non-cacheable, but when I change the memory configuration flags in the functions, it ends up in hard fault.&amp;nbsp; Is this possible or not?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Ping&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 08:45:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1387974#M17603</guid>
      <dc:creator>ping1</dc:creator>
      <dc:date>2021-12-16T08:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure OCRAM into non-cacheable</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1388766#M17633</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/64110"&gt;@ping1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Seems your modification is wrong:&lt;/P&gt;
&lt;P&gt;/* Region 7 setting: Memory with Normal type, not shareable, outer/inner write back */&lt;/P&gt;
&lt;P&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(7, 0x20200000U);&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_64KB);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this one, and test it again.&lt;/P&gt;
&lt;P&gt;If you still have issues about it, please kindly let me know.&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>Fri, 17 Dec 2021 10:21:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1388766#M17633</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-12-17T10:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure OCRAM into non-cacheable</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1388774#M17635</link>
      <description>&lt;P&gt;Dear Kelly&lt;/P&gt;&lt;P&gt;Thanks you for looking at my modification finally! It doesn't end up with hard fault now.&lt;/P&gt;&lt;P&gt;One more question please -&amp;nbsp; how can I tell it is non-cacheable now? The original configuration code has no difference between ITC, DTC and OCRAM.&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Ping&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 10:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1388774#M17635</guid>
      <dc:creator>ping1</dc:creator>
      <dc:date>2021-12-17T10:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure OCRAM into non-cacheable</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1389155#M17643</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/64110"&gt;@ping1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks for your updated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; After you set it, your OCRAM is the noncacheable area, you can use it directly, even you enable the cache, the MPU will not consider the OCRAM as cacheable area. You just take it as the normal memory to use, no other special to process.&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>Mon, 20 Dec 2021 02:11:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-configure-OCRAM-into-non-cacheable/m-p/1389155#M17643</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-12-20T02:11:09Z</dc:date>
    </item>
  </channel>
</rss>

