<?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>LPC MicrocontrollersのトピックRe: RAM Address of variables in LPC1517</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-Address-of-variables-in-LPC1517/m-p/821511#M32889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Variables define in main() (or any other function) will be stack-based local variable and so will occupy an address on the stack. Variables defined globally are allocated to a fixed (non-changing) location in RAM&lt;/P&gt;&lt;P&gt;2. It can't. You must make sure that you select the exact MCU type for your project, otherwise the memory configuration will be incorrect.&lt;/P&gt;&lt;P&gt;3. Yes. See above. I do not understand the question about EEPROM&lt;/P&gt;&lt;P&gt;4. See above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2018 16:32:04 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2018-10-03T16:32:04Z</dc:date>
    <item>
      <title>RAM Address of variables in LPC1517</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-Address-of-variables-in-LPC1517/m-p/821510#M32888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Controller&amp;nbsp; : &lt;STRONG&gt;LPC1517&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IDE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: &lt;STRONG&gt;MCUXpresso&lt;/STRONG&gt; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a variable is declared in&amp;nbsp;&lt;STRONG&gt;main()&lt;/STRONG&gt; of LPC1517, the address goes beyond 0x02003000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;LPC1517 12kB RAM, address starting from 0x02000000 till 0x02003000&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But when the same variable is made to declare in global header-file, the address of the variable will begin from around 0x02000020.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q1. Why does the address of the variable in main and global change?&lt;/P&gt;&lt;P&gt;Q2. How can a processor of 12kB RAM store variable in address range of above 0x02003000?&lt;/P&gt;&lt;P&gt;Q3. Is there anyway to avoid this out of range RAM address? so there wont be any problem in storing variable value in &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; EEPROM(when a variable data,with RAM address &amp;gt; 0x02003000, is stored in EEPROM result will return 14) ?&lt;/P&gt;&lt;P&gt;Q4. Even when there are no other variables, the address of variables in main file will be greater than 0x02003000. Why is it so?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 13:01:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-Address-of-variables-in-LPC1517/m-p/821510#M32888</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2018-10-03T13:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: RAM Address of variables in LPC1517</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-Address-of-variables-in-LPC1517/m-p/821511#M32889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Variables define in main() (or any other function) will be stack-based local variable and so will occupy an address on the stack. Variables defined globally are allocated to a fixed (non-changing) location in RAM&lt;/P&gt;&lt;P&gt;2. It can't. You must make sure that you select the exact MCU type for your project, otherwise the memory configuration will be incorrect.&lt;/P&gt;&lt;P&gt;3. Yes. See above. I do not understand the question about EEPROM&lt;/P&gt;&lt;P&gt;4. See above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 16:32:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-Address-of-variables-in-LPC1517/m-p/821511#M32889</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2018-10-03T16:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: RAM Address of variables in LPC1517</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-Address-of-variables-in-LPC1517/m-p/821512#M32890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/converse"&gt;converse&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked MCU settings in Project Explorer-&amp;gt;Project-&amp;gt;Project Settings-&amp;gt; MCU -&amp;gt;(Right-click) Edit MCU.&lt;/P&gt;&lt;P&gt;I found that for LPC1517, they have allocated extra space for RAM. I corrected the size to 0x3000. Now the issue have been solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2018 04:48:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RAM-Address-of-variables-in-LPC1517/m-p/821512#M32890</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2018-10-04T04:48:13Z</dc:date>
    </item>
  </channel>
</rss>

