<?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中的主题 No Init variables inside an user section(IAR)</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Init-variables-inside-an-user-section-IAR/m-p/252736#M7248</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've learnt how to define a section and how to place variables inside it. Now I want a constant variable not to be initialized. I'm usign IAR workbench.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rigth now, I'm doing as follow&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;#pragma location="MY_SECTION"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;const int var1;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And var1 is indeed inside MY_SECTION wich is part of the PFLASH. But if I add the &lt;STRONG&gt;__no_init&lt;/STRONG&gt; modifier, then var1 is placed in RAM... So my question is how can I put a variable inside MY_SECTION so it is not initialized?&lt;/P&gt;&lt;P&gt;&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>Wed, 22 May 2013 17:32:34 GMT</pubDate>
    <dc:creator>sebasira</dc:creator>
    <dc:date>2013-05-22T17:32:34Z</dc:date>
    <item>
      <title>No Init variables inside an user section(IAR)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Init-variables-inside-an-user-section-IAR/m-p/252736#M7248</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've learnt how to define a section and how to place variables inside it. Now I want a constant variable not to be initialized. I'm usign IAR workbench.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rigth now, I'm doing as follow&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;#pragma location="MY_SECTION"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;const int var1;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And var1 is indeed inside MY_SECTION wich is part of the PFLASH. But if I add the &lt;STRONG&gt;__no_init&lt;/STRONG&gt; modifier, then var1 is placed in RAM... So my question is how can I put a variable inside MY_SECTION so it is not initialized?&lt;/P&gt;&lt;P&gt;&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>Wed, 22 May 2013 17:32:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/No-Init-variables-inside-an-user-section-IAR/m-p/252736#M7248</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-05-22T17:32:34Z</dc:date>
    </item>
  </channel>
</rss>

