<?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: Data structure memory allocation in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Data-structure-memory-allocation/m-p/1871356#M30548</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233065"&gt;@SelfMad_Man&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been cheking on my side, but unfortunately,&amp;nbsp; I do not know proper way to link your data type in Flash2. If you find, or already find&amp;nbsp; a way please share it.&lt;/P&gt;
&lt;P&gt;Maybe trying Linkerscripts could help. We have an example of how to use it in FlexSPI NOR polling demo on the SDK. Check for more info in the MCUXpresso IDE user guide.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if there is something I still could do to help.&lt;/P&gt;
&lt;P&gt;Diego&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 21:48:38 GMT</pubDate>
    <dc:creator>diego_charles</dc:creator>
    <dc:date>2024-05-22T21:48:38Z</dc:date>
    <item>
      <title>Data structure memory allocation</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Data-structure-memory-allocation/m-p/1858966#M30127</link>
      <description>&lt;P&gt;Hello NXP support team,&lt;/P&gt;&lt;P&gt;I’m using a imxrt1050evb (rev.b) and a modified example code of led blinking “evkbimrt1050_iled_blinky” provided by MCUXpresso for this evaluation board.&lt;/P&gt;&lt;P&gt;I've modified example code as regards:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Split flash memory in two partitions: Flash (@0x60000000) and Flash2 (@0x62000000);&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SelfMad_Man_0-1714744058948.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277051i2F0FB82803B1002F/image-size/large?v=v2&amp;amp;px=999" role="button" title="SelfMad_Man_0-1714744058948.png" alt="SelfMad_Man_0-1714744058948.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Added file “test.h” in source folder;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SelfMad_Man_1-1714744058970.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277053iEEB37283EB3C441E/image-size/large?v=v2&amp;amp;px=999" role="button" title="SelfMad_Man_1-1714744058970.png" alt="SelfMad_Man_1-1714744058970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Added file “test.c” in source folder;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SelfMad_Man_2-1714744058989.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277052i7D1F3D7D694BD445/image-size/large?v=v2&amp;amp;px=999" role="button" title="SelfMad_Man_2-1714744058989.png" alt="SelfMad_Man_2-1714744058989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Added instructions in “led_blinky.c” in order to compile “data_container” struct:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SelfMad_Man_3-1714744059002.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277055i636C86B53E2D0053/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SelfMad_Man_3-1714744059002.png" alt="SelfMad_Man_3-1714744059002.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;…&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SelfMad_Man_4-1714744059014.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277056iA6DCB0CC705B54CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="SelfMad_Man_4-1714744059014.png" alt="SelfMad_Man_4-1714744059014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;…&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SelfMad_Man_5-1714744059031.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277054i2BA62232C42F447C/image-size/large?v=v2&amp;amp;px=999" role="button" title="SelfMad_Man_5-1714744059031.png" alt="SelfMad_Man_5-1714744059031.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My purpose is to compile and store all fields of “data_container” in "Flash2" as by the instruction below:&lt;/P&gt;&lt;P&gt;__RODATA(Flash2) &lt;STRONG&gt;const&lt;/STRONG&gt; container_t data_container = …&lt;/P&gt;&lt;P&gt;In debug mode I’ve checked the position in memory of “data_container” and its fields:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;“data_container” &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@ 0x62000000 (OK as expected in Flash2 partition)&lt;/LI&gt;&lt;LI&gt;“data_container.length”&amp;nbsp; @ 0x62000008 (OK as expected in Flash2 partition)&lt;/LI&gt;&lt;LI&gt;“data_container.title”&amp;nbsp; &amp;nbsp; &amp;nbsp; @ 0x600054d8 (NOT OK it’s inside Flash partition)&lt;/LI&gt;&lt;LI&gt;“data_container.series”&amp;nbsp; @ 0x600054e4 (NOT OK it’s inside Flash partition)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SelfMad_Man_6-1714744059043.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277057i7B17ED082229A102/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SelfMad_Man_6-1714744059043.png" alt="SelfMad_Man_6-1714744059043.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you provide me instructions (pragma or other) to solve this question? If possible, avoiding struct of predefined fixed length.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 13:55:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Data-structure-memory-allocation/m-p/1858966#M30127</guid>
      <dc:creator>SelfMad_Man</dc:creator>
      <dc:date>2024-05-03T13:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data structure memory allocation</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Data-structure-memory-allocation/m-p/1871356#M30548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233065"&gt;@SelfMad_Man&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been cheking on my side, but unfortunately,&amp;nbsp; I do not know proper way to link your data type in Flash2. If you find, or already find&amp;nbsp; a way please share it.&lt;/P&gt;
&lt;P&gt;Maybe trying Linkerscripts could help. We have an example of how to use it in FlexSPI NOR polling demo on the SDK. Check for more info in the MCUXpresso IDE user guide.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if there is something I still could do to help.&lt;/P&gt;
&lt;P&gt;Diego&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 21:48:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Data-structure-memory-allocation/m-p/1871356#M30548</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2024-05-22T21:48:38Z</dc:date>
    </item>
  </channel>
</rss>

