<?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: Program size &amp;gt; 4Mb</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1202596#M11796</link>
    <description>&lt;P&gt;As you say you are new to Embedded development: Which optimization level have you used? Have you played with different levels?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you fixed to the 1064? With the 1062 - which is basically the same controller without integrated flash - you can use bigger flashes.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2020 17:40:16 GMT</pubDate>
    <dc:creator>Masmiseim</dc:creator>
    <dc:date>2020-12-21T17:40:16Z</dc:date>
    <item>
      <title>Program size &gt; 4Mb</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1202569#M11795</link>
      <description>&lt;P&gt;I'm using the MIMXRT1064.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a big header file (model.h), that is my TFlite model of about 22MB.&lt;/P&gt;&lt;P&gt;When I compile my project I get the following table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alberto_isorna_0-1608566450791.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133192iD6EDC05AC1FF1DF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alberto_isorna_0-1608566450791.png" alt="Alberto_isorna_0-1608566450791.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see I can't fit the code in the board flash.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are the solutions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I place my code or just the .h in the external flash or Sd card in order to run my project?&lt;/P&gt;&lt;P&gt;I think is a basic question but I'm new in Embedded development, if you could share any documents, tutorials, etc&amp;nbsp; it could be helpful&lt;/P&gt;&lt;P&gt;Regards &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 16:04:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1202569#M11795</guid>
      <dc:creator>Alberto_isorna</dc:creator>
      <dc:date>2020-12-21T16:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Program size &gt; 4Mb</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1202596#M11796</link>
      <description>&lt;P&gt;As you say you are new to Embedded development: Which optimization level have you used? Have you played with different levels?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you fixed to the 1064? With the 1062 - which is basically the same controller without integrated flash - you can use bigger flashes.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 17:40:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1202596#M11796</guid>
      <dc:creator>Masmiseim</dc:creator>
      <dc:date>2020-12-21T17:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Program size &gt; 4Mb</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1202602#M11797</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your reply, actually no, I'm with the default OL -O0, I just tried with -Os but almost same size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For the moment yes, I'm fixed with this board&lt;/P&gt;&lt;P&gt;How could I compile the project in the external flash?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 17:53:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1202602#M11797</guid>
      <dc:creator>Alberto_isorna</dc:creator>
      <dc:date>2020-12-21T17:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Program size &gt; 4Mb</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1202618#M11798</link>
      <description>&lt;P&gt;You must have many read only Data if using Os Optimization Level hasn’t changed much, you could also try O3, but this should also not have a big effect.&lt;/P&gt;&lt;P&gt;I have to say I’m by far not an expert in MCUExpresso which you seem to use, therefore I can not give you a complete answer. However, if your external flash is connected to flexSPI1 like it is done on the evaluation-Board, you can add the second flash to your project, like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Masmiseim_0-1608575669244.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133198i18F4870E45BB5278/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Masmiseim_0-1608575669244.png" alt="Masmiseim_0-1608575669244.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I’m not completely sure if the 1060 driver is working here, but this is the best option MCUExpresso offers. If this is not working, you have to write your own driver for loading your code to the flash.&lt;/P&gt;&lt;P&gt;This creates a bunch of new sections in the linker file which you can use:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Masmiseim_1-1608575669247.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133197i4FC1F1077AF03F3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Masmiseim_1-1608575669247.png" alt="Masmiseim_1-1608575669247.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I’m also stuck. I’m not aware of a way to define that a file, or folder should be placed to a special section via a GUI option.&lt;/P&gt;&lt;P&gt;So either you edit the linker file or you move code via __attribute__((section("name"))).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone else has a better idea&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 18:36:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1202618#M11798</guid>
      <dc:creator>Masmiseim</dc:creator>
      <dc:date>2020-12-21T18:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Program size &gt; 4Mb</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1203139#M11809</link>
      <description>&lt;P&gt;Thanks for your info, I've been playing with spliting some parts of the code, etc but is not a good alternative.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is not possible to use the external QSPI flash (8MB) to load the program?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have any others sugestions it could help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alberto.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 15:54:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1203139#M11809</guid>
      <dc:creator>Alberto_isorna</dc:creator>
      <dc:date>2020-12-22T15:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Program size &gt; 4Mb</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1203250#M11814</link>
      <description>&lt;P&gt;Hello Alberto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Couldn’t you move code and data to the external flash? This should work via __attribute__((section(".text_Flash2"))) for code and __attribute__((section(".rodata.$Flash2"))) for read only data.&lt;/P&gt;&lt;P&gt;Here is a small guide how to edit the linker-script:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2014/10/06/putting-code-of-files-into-special-section-with-the-gnu-linker/" target="_blank"&gt;https://mcuoneclipse.com/2014/10/06/putting-code-of-files-into-special-section-with-the-gnu-linker/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is rather old, but the information should still be valid. With this you should be able to move whole files. As I said, I’m not an expert for MCUXpresso as I use a different tool, therefore there may be a more straight forward way I’m not aware of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your Program is bigger than the integrated Flash, there is in my opinion not much sense in using the 1064, you should check the possibility to use the 1062 with an external flash that fits your needs.&lt;/P&gt;&lt;P&gt;If you are using the evaluation board you could use the SD-RAM to run your application. This is of course not a final solution, but you can start to check if your application is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 22:30:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1203250#M11814</guid>
      <dc:creator>Masmiseim</dc:creator>
      <dc:date>2020-12-22T22:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Program size &gt; 4Mb</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1203707#M11825</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all thanks for your help, I have things more clear now.&lt;/P&gt;&lt;P&gt;I can place some code in external flash with the __atributes__ and linker script and compile OK but when I run the program It seems like the data is not there actually.&lt;/P&gt;&lt;P&gt;Maybe they are some restrictions to load data to external flash directly like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway I'll keep looking solutions.&lt;/P&gt;&lt;P&gt;The RAM execution was a good idea, it works well, thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 14:18:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1203707#M11825</guid>
      <dc:creator>Alberto_isorna</dc:creator>
      <dc:date>2020-12-23T14:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Program size &gt; 4Mb</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1203750#M11829</link>
      <description>&lt;P&gt;Hello Alberto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;good to hear that you make some progress.&lt;/P&gt;&lt;P&gt;After loading your Application to the Controller, do you see the Code in the external flash while debugging? Just check the memory view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 17:17:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Program-size-gt-4Mb/m-p/1203750#M11829</guid>
      <dc:creator>Masmiseim</dc:creator>
      <dc:date>2020-12-23T17:17:33Z</dc:date>
    </item>
  </channel>
</rss>

