<?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: EEPROM Varible declarations in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEPROM-Varible-declarations/m-p/145116#M3858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Assuming that you are using Codewarrior C compiler. Might be wise to post such info.&lt;BR /&gt;&lt;BR /&gt;Make a read only segment in the .prm file at the address where you want the variable(s).&lt;BR /&gt;&lt;BR /&gt;Then put your variables inside&lt;BR /&gt;#pragma CONST_SEG SEGMENT_NAME&lt;BR /&gt;&lt;BR /&gt;And declare variables as global and constant. Set the init values as usual for constants in C.&lt;BR /&gt;&lt;BR /&gt;Depending on MCU, there might be lots of other things to concider as well.&lt;BR /&gt;Might be wise to post which MCU you are using.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2007 19:45:13 GMT</pubDate>
    <dc:creator>Lundin</dc:creator>
    <dc:date>2007-02-13T19:45:13Z</dc:date>
    <item>
      <title>EEPROM Varible declarations</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEPROM-Varible-declarations/m-p/145115#M3857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;How to declare variable to the specific eeprom address and initialize to&amp;nbsp;specific value at the same time&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Kantha&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 17:30:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEPROM-Varible-declarations/m-p/145115#M3857</guid>
      <dc:creator>Kantha</dc:creator>
      <dc:date>2007-02-13T17:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM Varible declarations</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEPROM-Varible-declarations/m-p/145116#M3858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Assuming that you are using Codewarrior C compiler. Might be wise to post such info.&lt;BR /&gt;&lt;BR /&gt;Make a read only segment in the .prm file at the address where you want the variable(s).&lt;BR /&gt;&lt;BR /&gt;Then put your variables inside&lt;BR /&gt;#pragma CONST_SEG SEGMENT_NAME&lt;BR /&gt;&lt;BR /&gt;And declare variables as global and constant. Set the init values as usual for constants in C.&lt;BR /&gt;&lt;BR /&gt;Depending on MCU, there might be lots of other things to concider as well.&lt;BR /&gt;Might be wise to post which MCU you are using.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 19:45:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEPROM-Varible-declarations/m-p/145116#M3858</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2007-02-13T19:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM Varible declarations</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEPROM-Varible-declarations/m-p/145117#M3859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I am using MC9S12DB128 and cosmic compiler&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Kantha&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 19:54:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEPROM-Varible-declarations/m-p/145117#M3859</guid>
      <dc:creator>Kantha</dc:creator>
      <dc:date>2007-02-13T19:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM Varible declarations</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEPROM-Varible-declarations/m-p/145118#M3860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ok, no idea in that case.&lt;BR /&gt;&lt;BR /&gt;As a sidenote, make sure to setup INITEE if you wish to use the whole eeprom, since it is located at address 0 out of reset, and therefore half-way hidden behind the cpu registers in the memory map.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 23:22:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEPROM-Varible-declarations/m-p/145118#M3860</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2007-02-13T23:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM Varible declarations</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEPROM-Varible-declarations/m-p/145119#M3861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;There are two ways may do this.&lt;BR /&gt;&lt;BR /&gt;1.&lt;BR /&gt;a)declare a EEPROM point&lt;BR /&gt;&lt;BR /&gt;@eeprom U8(or U16) *eeptr;&lt;BR /&gt;&lt;BR /&gt;b)give a address to point&lt;BR /&gt;&lt;BR /&gt;eeptr = (void*)0x880;&lt;BR /&gt;&lt;BR /&gt;c)give point a value&lt;BR /&gt;&lt;BR /&gt;*eeptr = 123;&lt;BR /&gt;&lt;BR /&gt;2.&lt;BR /&gt;a) allocate a section at *.lkf file&lt;BR /&gt;&lt;BR /&gt;+seg .eeprom -b0x0880 -m0x10 -n.eevalue&lt;BR /&gt;&lt;BR /&gt;b) use #pragma&lt;BR /&gt;&lt;BR /&gt;#pragma section @eeprom {eevalue}&lt;BR /&gt;@eeprom U8 EEmember1 = 0x80;&lt;BR /&gt;.....&lt;BR /&gt;.....&lt;BR /&gt;#pragma section {}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope these ways can help you.&lt;P&gt;Message Edited by Zeke on &lt;SPAN class="date_text"&gt;2007-02-14&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;01:33 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 09:15:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/EEPROM-Varible-declarations/m-p/145119#M3861</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2007-02-14T09:15:34Z</dc:date>
    </item>
  </channel>
</rss>

