<?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>Kinetis Microcontrollersのトピックlinker control file for RAM partition</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/linker-control-file-for-RAM-partition/m-p/230879#M4980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My target is a K10DX128 with 32K of RAM splits evenly into two 16K sections (SRAM_L and SRAM_H). My latest code build utilizes more than 16K of global variables. The linking process failed due to SRAM_L overflow and the linker dont seem to know to put excessive variables into SRAM_H. So I attempted to modify .ld (linker control file) by specifying a certain file and its variables to be included in SRAM_U space. I added the following block into the linker control file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .extra_data : &lt;/P&gt;&lt;P&gt; { &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; file1.o (.bss) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4); &lt;/P&gt;&lt;P&gt;&amp;nbsp; } &amp;gt; m_data_20000000 /* this section refers to SRAM_U starting at 0x2000000 */&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Tms Rmn;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I re-built my project again. This time the linker generated "can't find file1.o" error. And yet file1.c was complied and the corresponding obj file (file1.o) was created under project/Flash folder. Any ideal what went wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 19:19:46 GMT</pubDate>
    <dc:creator>Ming</dc:creator>
    <dc:date>2013-10-24T19:19:46Z</dc:date>
    <item>
      <title>linker control file for RAM partition</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/linker-control-file-for-RAM-partition/m-p/230879#M4980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My target is a K10DX128 with 32K of RAM splits evenly into two 16K sections (SRAM_L and SRAM_H). My latest code build utilizes more than 16K of global variables. The linking process failed due to SRAM_L overflow and the linker dont seem to know to put excessive variables into SRAM_H. So I attempted to modify .ld (linker control file) by specifying a certain file and its variables to be included in SRAM_U space. I added the following block into the linker control file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .extra_data : &lt;/P&gt;&lt;P&gt; { &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; file1.o (.bss) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN(4); &lt;/P&gt;&lt;P&gt;&amp;nbsp; } &amp;gt; m_data_20000000 /* this section refers to SRAM_U starting at 0x2000000 */&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Tms Rmn;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I re-built my project again. This time the linker generated "can't find file1.o" error. And yet file1.c was complied and the corresponding obj file (file1.o) was created under project/Flash folder. Any ideal what went wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 19:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/linker-control-file-for-RAM-partition/m-p/230879#M4980</guid>
      <dc:creator>Ming</dc:creator>
      <dc:date>2013-10-24T19:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: linker control file for RAM partition</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/linker-control-file-for-RAM-partition/m-p/230880#M4981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ming,&lt;/P&gt;&lt;P&gt; Use this in front declaration of any variable or routine you want to place in the memory section .extra_data&lt;/P&gt;&lt;P&gt; __attribute__((section(".extra_data"))) char str[10] = " hello world";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see you .map file to check if the contents indeed have been placed in SRAM location 0x2000000.&lt;/P&gt;&lt;P&gt;No changes required to linker file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 04:17:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/linker-control-file-for-RAM-partition/m-p/230880#M4981</guid>
      <dc:creator>nasreenshaikh</dc:creator>
      <dc:date>2013-11-12T04:17:23Z</dc:date>
    </item>
  </channel>
</rss>

