<?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: Specifying the global address for a variable using the MC9S12XS128 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Specifying-the-global-address-for-a-variable-using-the/m-p/218750#M9164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The @ operator uses paged addresses, not global addresses.&lt;/P&gt;&lt;P&gt;So to use page EPAGE FF, use address 0xFF0800.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2009 21:34:14 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2009-09-29T21:34:14Z</dc:date>
    <item>
      <title>Specifying the global address for a variable using the MC9S12XS128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Specifying-the-global-address-for-a-variable-using-the/m-p/218749#M9163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to assign variables to specific global addresses in the MC9S12XS128 data flash memory structure.&amp;nbsp; So far, I've only been able to successfully do this using the local address space, such as the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uword EE_VERSION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @(0x0800);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This assignment works fine, and I can see the location in memory using both the logical and global memory views in the debugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I try to allocate the variable to the corresponding global address:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extern uword EE_VERSION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @(0x100000);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I receive the following message: "L4100: Failed to convert address 0x100000 of In debug info because of 'Register area (0..7FF) is not paged"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to correctly do this, or can I only assign variables to a local address and then do some type of conversion to the global address when manipulating the EEPROM?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would the compiler know which page I'm assigning the variable to if this is the case?&amp;nbsp; Does the EPAGE register need to be utilized in conjunction with assignments such as this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&amp;nbsp; Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 21:14:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Specifying-the-global-address-for-a-variable-using-the/m-p/218749#M9163</guid>
      <dc:creator>aceshigh99</dc:creator>
      <dc:date>2009-09-29T21:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying the global address for a variable using the MC9S12XS128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Specifying-the-global-address-for-a-variable-using-the/m-p/218750#M9164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The @ operator uses paged addresses, not global addresses.&lt;/P&gt;&lt;P&gt;So to use page EPAGE FF, use address 0xFF0800.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 21:34:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Specifying-the-global-address-for-a-variable-using-the/m-p/218750#M9164</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2009-09-29T21:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying the global address for a variable using the MC9S12XS128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Specifying-the-global-address-for-a-variable-using-the/m-p/218751#M9165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...or you can use C:\Program Files\Freescale\Codewarrior for HC12 V4.6\Prog\hcs12xadrmap.exe to get the equivalent global address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 19:32:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Specifying-the-global-address-for-a-variable-using-the/m-p/218751#M9165</guid>
      <dc:creator>Xbot</dc:creator>
      <dc:date>2009-10-02T19:32:47Z</dc:date>
    </item>
  </channel>
</rss>

