<?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>i.MX RT Crossover MCUsのトピックRe: How to put a big array in OCRAM?</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-put-a-big-array-in-OCRAM/m-p/2001988#M32718</link>
    <description>&lt;P&gt;Ok, I found it out.&lt;BR /&gt;So here is how I did it, in case other people may want to know:&lt;/P&gt;&lt;P&gt;In the Properties of the project, under C/C++ Build -&amp;gt; MCU settings, I could see that the OCRAM section has the alias 'RAM3'. (here you also can change the sizes of the RAM sections)&lt;BR /&gt;&lt;BR /&gt;Then in the code you can do:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;__DATA(RAM3) uint16_t buffer[BUFSIZE];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2024 12:19:16 GMT</pubDate>
    <dc:creator>simmania</dc:creator>
    <dc:date>2024-11-26T12:19:16Z</dc:date>
    <item>
      <title>How to put a big array in OCRAM?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-put-a-big-array-in-OCRAM/m-p/2001975#M32717</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm usingMCUXpresso with&amp;nbsp; MIMXRT1010-EVK hardware.&lt;/P&gt;&lt;P&gt;In my program I need a big array. The linker tries to put this in the &lt;SPAN&gt;SRAM_DTC&lt;/SPAN&gt; (which I assume is the DTCM). But there is not enough room. While the &lt;SPAN&gt;SRAM_OC&lt;/SPAN&gt; (which I assume is the OCRAM) is completely empty.&lt;BR /&gt;So, how to instruct the linker to put my big array in SRAM_OC?&lt;/P&gt;&lt;P&gt;Is there some tutorial about this kind of memory management stuff?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 11:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-put-a-big-array-in-OCRAM/m-p/2001975#M32717</guid>
      <dc:creator>simmania</dc:creator>
      <dc:date>2024-11-26T11:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to put a big array in OCRAM?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-put-a-big-array-in-OCRAM/m-p/2001988#M32718</link>
      <description>&lt;P&gt;Ok, I found it out.&lt;BR /&gt;So here is how I did it, in case other people may want to know:&lt;/P&gt;&lt;P&gt;In the Properties of the project, under C/C++ Build -&amp;gt; MCU settings, I could see that the OCRAM section has the alias 'RAM3'. (here you also can change the sizes of the RAM sections)&lt;BR /&gt;&lt;BR /&gt;Then in the code you can do:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;__DATA(RAM3) uint16_t buffer[BUFSIZE];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 12:19:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-put-a-big-array-in-OCRAM/m-p/2001988#M32718</guid>
      <dc:creator>simmania</dc:creator>
      <dc:date>2024-11-26T12:19:16Z</dc:date>
    </item>
  </channel>
</rss>

