<?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: Kinetis sections definitios (ICF?) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249275#M6945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the __root for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2013 18:24:20 GMT</pubDate>
    <dc:creator>sebasira</dc:creator>
    <dc:date>2013-05-21T18:24:20Z</dc:date>
    <item>
      <title>Kinetis sections definitios (ICF?)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249268#M6938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to Kinetis family, and I can not find where the sections are defined. On ColdFire MCUs this was done inside the LCF file. Now, I've seen a ICF file, and I was guessing it would be it. But it starts with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/*###ICF### Section handled by ICF editor, don't touch! ****/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'll ask before I touch it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with IAR Workbench and the TWRK60 (K60N512). What I'd like is to define:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;CODE&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;0x00000000&lt;/SPAN&gt; to &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;0x0007F7FF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;EM&gt;NVM_data&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;0x0007F800 to 0x0007FFFF&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;How/Where can I do that?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 14:31:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249268#M6938</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-05-21T14:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis sections definitios (ICF?)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249269#M6939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, if you could pelase provide an example on how to declare a constant 'variable' within this segment in the IAR IDE. (maybe using somekind of pragma).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 15:44:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249269#M6939</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-05-21T15:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis sections definitios (ICF?)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249270#M6940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SebaS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this using the define this using the "define region" directive in the ICF (see the IAR help files - search for Define region directive).&amp;nbsp; An example of this would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define region ROM_region&amp;nbsp;&amp;nbsp; = mem:[from __ICFEDIT_region_ROM_start__&amp;nbsp;&amp;nbsp; to __ICFEDIT_region_ROM_end__]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The __ICFEDIT_region... text in this statement are simply symbols that were defined and they are the memory locations of with ROM begins and ends.&amp;nbsp; You can see more examples in the linker files in our Kinetis sample code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your second question, you're just wanting to know how you make sure a variable will be stored in this section that you just created?&amp;nbsp; Yes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 16:09:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249270#M6940</guid>
      <dc:creator>chris_brown</dc:creator>
      <dc:date>2013-05-21T16:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis sections definitios (ICF?)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249271#M6941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris, thanks for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 1 is now solve! About the other one, yes, you're right. That's what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that in ICF I've got:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;define region NVM_DATA_region&amp;nbsp;&amp;nbsp; = mem:[from __ICFEDIT_region_&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;NVM_DATA&lt;/SPAN&gt;_start__&amp;nbsp;&amp;nbsp; to __ICFEDIT_region_&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;NVM_DATA&lt;/SPAN&gt;_end__]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;How can I put a variable (constant) inside &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;NVM_DATA&lt;/SPAN&gt;_region?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 16:24:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249271#M6941</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-05-21T16:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis sections definitios (ICF?)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249272#M6942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&amp;nbsp; So to put a variable in that section you now have to do a couple of other items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) In the linker, add this:&amp;nbsp;&amp;nbsp; place in NVM_DATA_region {section NVM_DATA_section};&lt;/P&gt;&lt;P&gt;2) In your code, add this line immediately before (this line before) you declare your variable:&amp;nbsp; #pragma location = "NVM_DATA_section"&lt;/P&gt;&lt;P&gt;3) In your code, add __root just in front of your variable declaration, like this:&amp;nbsp; __root uint16 YourVariable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should get that variable in your section. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 18:19:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249272#M6942</guid>
      <dc:creator>chris_brown</dc:creator>
      <dc:date>2013-05-21T18:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis sections definitios (ICF?)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249273#M6943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For those who would need the answer to the second question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ICF file:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;place in &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;NVM_DATA_region&amp;nbsp; &lt;/SPAN&gt;{readonly section NVM_DATA_section};&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then before &lt;STRONG&gt;any&lt;/STRONG&gt; variable you want you must:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#pragma location="NVM_DATA_section"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;const int var;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then &lt;STRONG&gt;var&lt;/STRONG&gt; would be in &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;NVM_DATA_region&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 18:21:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249273#M6943</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-05-21T18:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis sections definitios (ICF?)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249274#M6944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Chris!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have figure it out reading the IAR documentation... We must have posted at the same time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 18:23:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249274#M6944</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-05-21T18:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis sections definitios (ICF?)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249275#M6945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the __root for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 18:24:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249275#M6945</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-05-21T18:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis sections definitios (ICF?)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249276#M6946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm really not exactly sure what __root is for.&amp;nbsp; I was following an example from an IAR tech note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://supp.iar.com/Support/?note=36121" title="http://supp.iar.com/Support/?note=36121"&gt;Absolute placement (EWARM v.5.x and 6.x) (in C source) (Technical Note 36121)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 15:28:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-sections-definitios-ICF/m-p/249276#M6946</guid>
      <dc:creator>chris_brown</dc:creator>
      <dc:date>2013-05-22T15:28:53Z</dc:date>
    </item>
  </channel>
</rss>

