<?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: icf file for RAM pool allocation in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/icf-file-for-RAM-pool-allocation/m-p/956367#M54912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have community for Kinetis MCUs here -&amp;nbsp;&lt;A href="https://community.nxp.com/community/general-purpose-mcus/kinetis"&gt;https://community.nxp.com/community/general-purpose-mcus/kinetis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway - just define your custom section in linker file and place your variables there by #pragma...&amp;nbsp;&lt;A class="link-titled" href="https://www.iar.com/support/tech-notes/linker/how-do-i-place-a-group-of-functions-or-variables-in-a-specific-section/" title="https://www.iar.com/support/tech-notes/linker/how-do-i-place-a-group-of-functions-or-variables-in-a-specific-section/"&gt;https://www.iar.com/support/tech-notes/linker/how-do-i-place-a-group-of-functions-or-variables-in-a-specific-section/&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2019 06:31:33 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2019-07-09T06:31:33Z</dc:date>
    <item>
      <title>icf file for RAM pool allocation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/icf-file-for-RAM-pool-allocation/m-p/956366#M54911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: 200; font-size: 12.96px;"&gt;Hello, For MK22FN512VLL12 i wanted to allocate the RAM memory with certain bytes (e.g 1K Bytes). is there any sample code and .icf for the same.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-weight: 200; font-size: 12.96px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 05:29:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/icf-file-for-RAM-pool-allocation/m-p/956366#M54911</guid>
      <dc:creator>suhas_prabhu</dc:creator>
      <dc:date>2019-07-09T05:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: icf file for RAM pool allocation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/icf-file-for-RAM-pool-allocation/m-p/956367#M54912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have community for Kinetis MCUs here -&amp;nbsp;&lt;A href="https://community.nxp.com/community/general-purpose-mcus/kinetis"&gt;https://community.nxp.com/community/general-purpose-mcus/kinetis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway - just define your custom section in linker file and place your variables there by #pragma...&amp;nbsp;&lt;A class="link-titled" href="https://www.iar.com/support/tech-notes/linker/how-do-i-place-a-group-of-functions-or-variables-in-a-specific-section/" title="https://www.iar.com/support/tech-notes/linker/how-do-i-place-a-group-of-functions-or-variables-in-a-specific-section/"&gt;https://www.iar.com/support/tech-notes/linker/how-do-i-place-a-group-of-functions-or-variables-in-a-specific-section/&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 06:31:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/icf-file-for-RAM-pool-allocation/m-p/956367#M54912</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2019-07-09T06:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: icf file for RAM pool allocation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/icf-file-for-RAM-pool-allocation/m-p/956368#M54913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the RAM definition done as&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_region_RAM_start__ = 0x20007000;&lt;/P&gt;&lt;P&gt;define symbol __ICFEDIT_region_RAM_end__&amp;nbsp;&amp;nbsp; = 0x2000EFFF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define region RAM_region&amp;nbsp;&amp;nbsp; = mem:[from __ICFEDIT_region_RAM_start__&amp;nbsp;&amp;nbsp; to __ICFEDIT_region_RAM_end__];&lt;/P&gt;&lt;P&gt;define region _COS_DMAM_1ST_POOL = mem:[from 0x20009000 to 0x2000BFFF ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;place in _COS_DMAM_1ST_POOL { readwrite section COS_DMAM_1ST_POOL };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//In the code I am using&lt;/P&gt;&lt;P&gt;#pragma default_variable_attributes = @ "COS_DMAM_1ST_POOL"&lt;BR /&gt;int y3[1000];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am expecting the "y3" to present between 0x20009000 to 0x2000BFFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something? as I get following error if i allocate y3[1000]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error[Lp011]: section placement failed &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unable to allocate space for sections/blocks with a total estimated minimum size of 0x8d3c bytes (max align 0x8) in &amp;lt;[0x2000'7000-0x2000'efff]&amp;gt; (total uncommitted space 0x8000). &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Needed: &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [0x2000'7000-0x2000'efff]: 0x7d9c min, align 0x8 (size: 0x8000) &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [0x2000'9000-0x2000'bfff]:&amp;nbsp; 0xfa0 min, align 0x4 (size: 0x3000)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 09:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/icf-file-for-RAM-pool-allocation/m-p/956368#M54913</guid>
      <dc:creator>suhas_prabhu</dc:creator>
      <dc:date>2019-07-09T09:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: icf file for RAM pool allocation</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/icf-file-for-RAM-pool-allocation/m-p/956369#M54914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I mentioned above - this community space is for S32 Design studio. I'm not familiar with your MCU and IAR - this is correct place for your question -&amp;nbsp;&lt;A href="https://community.nxp.com/community/general-purpose-mcus/kinetis"&gt;https://community.nxp.com/community/general-purpose-mcus/kinetis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your error message it looks, that you are using memory which is already used for regular RAM. You need to shrink existing RAM and use empty space for your section.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 10:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/icf-file-for-RAM-pool-allocation/m-p/956369#M54914</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2019-07-09T10:31:54Z</dc:date>
    </item>
  </channel>
</rss>

