<?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>S12 / MagniV MicrocontrollersのトピックRe: Saving variables to eeprom - mc9s12c32</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Saving-variables-to-eeprom-mc9s12c32/m-p/170710#M5707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at AN2548. This is Freescale's serial monitor code, but includes flash erasing, writing and "DoOnStack" which you could re-use in your application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 May 2009 18:50:24 GMT</pubDate>
    <dc:creator>jsmcortina</dc:creator>
    <dc:date>2009-05-10T18:50:24Z</dc:date>
    <item>
      <title>Saving variables to eeprom - mc9s12c32</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Saving-variables-to-eeprom-mc9s12c32/m-p/170708#M5705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the hsc12mc9s12c32 and am trying to save a variable to eeprom (or flash) in case of power outage. I have seen some forum posts looking for the same thing, but no one seems to be able to point to a good tutorial. I have read the manual, but cannot find FDATA or FADDR registers anywhere in the c definitions in codewarrior. The application notes (especially flash.c) seem to be trying to do what I want, but it looks like they are just using a pointer to point to the memory block they want. This causes my program to die and me to have to reprogram the circuit. Can anyone point to a good place to look because I'm just getting more questions than answers. Saving a variable should be simple I would think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added p/n to subject.&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by NLFSJ on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-04-09&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;09:34 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 07:31:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Saving-variables-to-eeprom-mc9s12c32/m-p/170708#M5705</guid>
      <dc:creator>Shugie14</dc:creator>
      <dc:date>2009-04-09T07:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Saving variables to eeprom - mc9s12c32</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Saving-variables-to-eeprom-mc9s12c32/m-p/170709#M5706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all use search box at the bottom of this page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FADDR and FDATA registers are of no use in normal chip modes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most probably your program dies because flash is not readable while being programmed,&amp;nbsp;and program routine should run from RAM. Also interrupts should be disabled while programming, because vectors also are sitting in flash and CPU won't read them properly while flash is being programmed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 19:51:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Saving-variables-to-eeprom-mc9s12c32/m-p/170709#M5706</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-04-10T19:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Saving variables to eeprom - mc9s12c32</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Saving-variables-to-eeprom-mc9s12c32/m-p/170710#M5707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at AN2548. This is Freescale's serial monitor code, but includes flash erasing, writing and "DoOnStack" which you could re-use in your application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2009 18:50:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Saving-variables-to-eeprom-mc9s12c32/m-p/170710#M5707</guid>
      <dc:creator>jsmcortina</dc:creator>
      <dc:date>2009-05-10T18:50:24Z</dc:date>
    </item>
  </channel>
</rss>

