<?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 writes unreliably - 9S08PT32 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/EEprom-writes-unreliably-9S08PT32/m-p/304642#M20659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem turned out to be the WDT timing out in the middle of saving default values in the first-time-power-up routine.&amp;nbsp; Upon restart, the software thought all the default settings were filled and bypassed the EEprom routine, leaving blank addresses. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2014 13:50:39 GMT</pubDate>
    <dc:creator>larrymitschke</dc:creator>
    <dc:date>2014-07-25T13:50:39Z</dc:date>
    <item>
      <title>EEprom writes unreliably - 9S08PT32</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/EEprom-writes-unreliably-9S08PT32/m-p/304639#M20656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting some bytes that do not write correctly in eeprom (some left blank at FF and some 00) when setting default values on first powerup.&amp;nbsp; I suspected the eeprom clock running too fast, but the FCLKDIV register is set per the data sheet:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Crystal&amp;nbsp; 4Mhz&lt;/P&gt;&lt;P&gt;Bus Clk 2Mhz&lt;/P&gt;&lt;P&gt;NVM_FCLKDIV = 0X01&amp;nbsp;&amp;nbsp; // for fclk of 1Mhz&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because it acts as if the clk is too fast, I set the FCLKDIV to 0X02 to slow it down.&amp;nbsp; Now it programs the eeprom all correctly, but I don't see this as a solution because I am worried about overstressing the eeprom over time.&amp;nbsp; Am I missing something that I have overlooked?&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the Cosmic compiler and their library routines, and they have verified that the routines work correctly on their test setup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2014 13:24:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/EEprom-writes-unreliably-9S08PT32/m-p/304639#M20656</guid>
      <dc:creator>larrymitschke</dc:creator>
      <dc:date>2014-04-26T13:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: EEprom writes unreliably - 9S08PT32</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/EEprom-writes-unreliably-9S08PT32/m-p/304640#M20657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Larry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An obvious question is how are you setting up the Processor Clock.&amp;nbsp; Are you sure it's operating with a bus frequency of 2MHz (FBE/FBELP with a BDIV of 1)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2014 13:59:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/EEprom-writes-unreliably-9S08PT32/m-p/304640#M20657</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2014-04-26T13:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: EEprom writes unreliably - 9S08PT32</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/EEprom-writes-unreliably-9S08PT32/m-p/304641#M20658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely.&amp;nbsp; I even ran the bus clk out to a pin to double check, and it is at 2Mhz.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2014 14:26:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/EEprom-writes-unreliably-9S08PT32/m-p/304641#M20658</guid>
      <dc:creator>larrymitschke</dc:creator>
      <dc:date>2014-04-26T14:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: EEprom writes unreliably - 9S08PT32</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/EEprom-writes-unreliably-9S08PT32/m-p/304642#M20659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem turned out to be the WDT timing out in the middle of saving default values in the first-time-power-up routine.&amp;nbsp; Upon restart, the software thought all the default settings were filled and bypassed the EEprom routine, leaving blank addresses. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 13:50:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/EEprom-writes-unreliably-9S08PT32/m-p/304642#M20659</guid>
      <dc:creator>larrymitschke</dc:creator>
      <dc:date>2014-07-25T13:50:39Z</dc:date>
    </item>
  </channel>
</rss>

