<?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: code warrior load my .data at VMA instead of LMA in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/code-warrior-load-my-data-at-VMA-instead-of-LMA/m-p/242024#M110</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;.data section is always loaded by default in flash (LMA) and the it is copied in runtime to RAM (VMA). You must not keep this section in flash because you will not be able to write the variables, just read them. The correct way to do this is next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;.data : AT(__flashAddress)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;{ &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;*(.data); &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;} &amp;gt; ram&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;In this case the instruction 'AT' indicates that section .data is going to be loaded in the flash addres indicated by label '__flashAddress' (LMA) and '&amp;gt; ram' indicates that it is being linked in segment ram (VMA).&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Hope this helps,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Carlos&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2013 22:21:06 GMT</pubDate>
    <dc:creator>Carlos_Musich</dc:creator>
    <dc:date>2013-10-09T22:21:06Z</dc:date>
    <item>
      <title>code warrior load my .data at VMA instead of LMA</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/code-warrior-load-my-data-at-VMA-instead-of-LMA/m-p/242023#M109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="votecell" style=""&gt;&lt;/TD&gt;&lt;TD class="postcell" style=""&gt;&lt;P class="post-text" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to load my .data in flash instead of ram using code warrior eclipse IDE. here is the scenario.&lt;/P&gt;&lt;PRE class="jive-pre"&gt;&lt;CODE&gt;.data : { *(.data); } &amp;gt; ram AT&amp;gt; flash &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;now, all address are correctly generated (LMA and VMA) but code warrior load .data at VMA instead of LMA. how can i change this setting.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 06:33:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/code-warrior-load-my-data-at-VMA-instead-of-LMA/m-p/242023#M109</guid>
      <dc:creator>farozeibnejava</dc:creator>
      <dc:date>2013-09-20T06:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: code warrior load my .data at VMA instead of LMA</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/code-warrior-load-my-data-at-VMA-instead-of-LMA/m-p/242024#M110</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;.data section is always loaded by default in flash (LMA) and the it is copied in runtime to RAM (VMA). You must not keep this section in flash because you will not be able to write the variables, just read them. The correct way to do this is next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;.data : AT(__flashAddress)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;{ &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;*(.data); &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;} &amp;gt; ram&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;In this case the instruction 'AT' indicates that section .data is going to be loaded in the flash addres indicated by label '__flashAddress' (LMA) and '&amp;gt; ram' indicates that it is being linked in segment ram (VMA).&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Hope this helps,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Carlos&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 22:21:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/code-warrior-load-my-data-at-VMA-instead-of-LMA/m-p/242024#M110</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2013-10-09T22:21:06Z</dc:date>
    </item>
  </channel>
</rss>

