<?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のトピックIs it possible to compile const array data into flash, not on SRAM?</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Is-it-possible-to-compile-const-array-data-into-flash-not-on/m-p/1484025#M20406</link>
    <description>&lt;P&gt;I am using RT1060 EVKB.&lt;/P&gt;&lt;P&gt;I have some mp3 files which transformed to c header file.&lt;/P&gt;&lt;P&gt;Here is the example:&lt;/P&gt;&lt;P&gt;static unsigned char __20_mp3[] = {&lt;BR /&gt;0x49, 0x44, 0x33, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x23, 0x54, 0x53,&lt;BR /&gt;0x53, 0x45, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x03, 0x4c, 0x61, 0x76,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;and I build it with MCUXpresso,&lt;/P&gt;&lt;P&gt;looks like the data array is on SRAM memory and it is out of SRAM size.&lt;/P&gt;&lt;P&gt;Memory region Used Size Region Size %age Used&lt;BR /&gt;BOARD_FLASH: 1683764 B 8 MB 20.07%&lt;BR /&gt;SRAM_DTC: 235296 B 128 KB 179.52%&lt;BR /&gt;SRAM_ITC: 29568 B 128 KB 22.56%&lt;BR /&gt;SRAM_OC: 751648 B 768 KB 95.58%&lt;BR /&gt;BOARD_SDRAM: 0 GB 30 MB 0.00%&lt;BR /&gt;NCACHE_REGION: 0 GB 2 MB 0.00%&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;How can I put the mp3 .h files into flash, not on the SRAM?&lt;/P&gt;&lt;P&gt;Which is the easy way to implement it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Via compiler or need to use flash tool to bun in mp3 files into flash and load in code ?&lt;/P&gt;&lt;P&gt;Thanks you.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 10:57:11 GMT</pubDate>
    <dc:creator>antoniohsu888</dc:creator>
    <dc:date>2022-07-04T10:57:11Z</dc:date>
    <item>
      <title>Is it possible to compile const array data into flash, not on SRAM?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Is-it-possible-to-compile-const-array-data-into-flash-not-on/m-p/1484025#M20406</link>
      <description>&lt;P&gt;I am using RT1060 EVKB.&lt;/P&gt;&lt;P&gt;I have some mp3 files which transformed to c header file.&lt;/P&gt;&lt;P&gt;Here is the example:&lt;/P&gt;&lt;P&gt;static unsigned char __20_mp3[] = {&lt;BR /&gt;0x49, 0x44, 0x33, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x23, 0x54, 0x53,&lt;BR /&gt;0x53, 0x45, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x03, 0x4c, 0x61, 0x76,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;and I build it with MCUXpresso,&lt;/P&gt;&lt;P&gt;looks like the data array is on SRAM memory and it is out of SRAM size.&lt;/P&gt;&lt;P&gt;Memory region Used Size Region Size %age Used&lt;BR /&gt;BOARD_FLASH: 1683764 B 8 MB 20.07%&lt;BR /&gt;SRAM_DTC: 235296 B 128 KB 179.52%&lt;BR /&gt;SRAM_ITC: 29568 B 128 KB 22.56%&lt;BR /&gt;SRAM_OC: 751648 B 768 KB 95.58%&lt;BR /&gt;BOARD_SDRAM: 0 GB 30 MB 0.00%&lt;BR /&gt;NCACHE_REGION: 0 GB 2 MB 0.00%&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;How can I put the mp3 .h files into flash, not on the SRAM?&lt;/P&gt;&lt;P&gt;Which is the easy way to implement it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Via compiler or need to use flash tool to bun in mp3 files into flash and load in code ?&lt;/P&gt;&lt;P&gt;Thanks you.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:57:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Is-it-possible-to-compile-const-array-data-into-flash-not-on/m-p/1484025#M20406</guid>
      <dc:creator>antoniohsu888</dc:creator>
      <dc:date>2022-07-04T10:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to compile const array data into flash, not on SRAM?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Is-it-possible-to-compile-const-array-data-into-flash-not-on/m-p/1484112#M20410</link>
      <description>&lt;P&gt;looks like add const is OK.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;const unsigned char __20_mp3[]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 14:23:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Is-it-possible-to-compile-const-array-data-into-flash-not-on/m-p/1484112#M20410</guid>
      <dc:creator>antoniohsu888</dc:creator>
      <dc:date>2022-07-04T14:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to compile const array data into flash, not on SRAM?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Is-it-possible-to-compile-const-array-data-into-flash-not-on/m-p/1484299#M20421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201333"&gt;@antoniohsu888&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Yes, you are right, just use the constant, it will help you to assign to the flash range directly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So, you can use your const array.&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>Tue, 05 Jul 2022 03:09:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Is-it-possible-to-compile-const-array-data-into-flash-not-on/m-p/1484299#M20421</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2022-07-05T03:09:25Z</dc:date>
    </item>
  </channel>
</rss>

