<?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>8-bit MicrocontrollersのトピックRe: QY4 Flash Memory Content Corrupted</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136664#M4444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;The datasheet&amp;nbsp;only requires the rising ramp rate which was easily fulfilled not the falling ramp?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2006 05:58:10 GMT</pubDate>
    <dc:creator>wheelmonitor</dc:creator>
    <dc:date>2006-11-15T05:58:10Z</dc:date>
    <item>
      <title>QY4 Flash Memory Content Corrupted</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136658#M4438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;I am using MC68HC908QY4CDW in my products( the date code is XAB0526). I experienced field return units problems. The return units failed&amp;nbsp;start up. It will resume work properly after I reprogram them. Obviously, the content of flash memory has been corrupted, but the user code never call the ROM-resided code to either erase, or write any contents of the flash memory.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I contacted at &lt;A class="jive-link-email-small" href="mailto:support@freescale.com"&gt;support@freescale.com&lt;/A&gt; a few month ago. I was advised with below suggestions, (1) protect the whole flash memory by programming FLBPR with all zeros. (2) shielding the MCU.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;After I programmed the FLBPR with all 0s, some units still failed after a few thousands time of power ON and Off cycles. (Due to the physical constraint of the PCB board, we didn’t employ the shielding solution)&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In my application, no external reset and brown out circuit are used and the LVI reset function was DISABLED so that the MCU can poll the LVI to implement other functions.&amp;nbsp; After I enable the LVI reset function and programmed the same failed units, I&amp;nbsp;have not witnessed &amp;nbsp;the units fail by cycling the power for more than 10,000 times.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My question is if this problem can be eliminated by enabling the LVI reset, is there any possible reasons that may cause the flash corrupted?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Any thoughts or suggestions are welcome.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Tony&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 01:01:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136658#M4438</guid>
      <dc:creator>wheelmonitor</dc:creator>
      <dc:date>2006-11-15T01:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: QY4 Flash Memory Content Corrupted</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136659#M4439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello Tony,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Your post is quite similar to the following.&lt;/DIV&gt;&lt;DIV&gt;So similar that the search engine of this Forum returns a 100% match...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Have you read it&amp;nbsp;and all the solutions provided ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="1" class="main_table" id="main_table" style="WIDTH: 78%" width="78%"&gt;&lt;TBODY&gt;&lt;TR id="search_results"&gt;&lt;TD class="headingbar"&gt;SCORE&amp;nbsp;&lt;IMG alt="" border="0" src="http://forums.freescale.com/freescale/i/skins/freescale/button_sort_descending.gif" title="" /&gt;&lt;/TD&gt;&lt;TD class="headingbar" colspan="2"&gt;SUBJECT / MESSAGE BOARD&lt;/TD&gt;&lt;TD class="headingbar"&gt;AUTHOR&lt;/TD&gt;&lt;TD class="headingbar"&gt;&lt;A class="headingbar_text" href="http://forums.freescale.com/freescale/search?q=qt4+flash+erased&amp;amp;board_id=8BITCOMM&amp;amp;submitted=true&amp;amp;sort_by=-rating" target="_blank"&gt;&lt;FONT color="#51626F"&gt;RATING&lt;/FONT&gt;&lt;/A&gt;&lt;/TD&gt;&lt;TD class="headingbar"&gt;&lt;A class="headingbar_text" href="http://forums.freescale.com/freescale/search?q=qt4+flash+erased&amp;amp;board_id=8BITCOMM&amp;amp;submitted=true&amp;amp;sort_by=-replies" target="_blank"&gt;&lt;FONT color="#51626F"&gt;REPLIES&lt;/FONT&gt;&lt;/A&gt;&lt;/TD&gt;&lt;TD class="headingbar"&gt;&lt;A class="headingbar_text" href="http://forums.freescale.com/freescale/search?q=qt4+flash+erased&amp;amp;board_id=8BITCOMM&amp;amp;submitted=true&amp;amp;sort_by=-views" target="_blank"&gt;&lt;FONT color="#51626F"&gt;VIEWS&lt;/FONT&gt;&lt;/A&gt;&lt;/TD&gt;&lt;TD class="headingbar"&gt;&lt;A class="headingbar_text" href="http://forums.freescale.com/freescale/search?q=qt4+flash+erased&amp;amp;board_id=8BITCOMM&amp;amp;submitted=true&amp;amp;sort_by=-date" target="_blank"&gt;&lt;FONT color="#51626F"&gt;DATE/TIME&lt;/FONT&gt;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="middle" class="cell_1"&gt;100%&lt;/TD&gt;&lt;TD align="middle" class="cell_1"&gt;&lt;IMG alt="" border="0" src="http://forums.freescale.com/freescale/i/skins/freescale/icon_thread.gif" title="" /&gt;&lt;/TD&gt;&lt;TD class="cell_1"&gt;&lt;A class="SUBJECT_STYLE" href="http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=198&amp;amp;query.id=2872#M198" target="_blank"&gt;&lt;FONT color="#0189B3"&gt;&lt;SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 110%; FONT-STYLE: italic; BACKGROUND-COLOR: #ffffff"&gt;&lt;FONT size="2"&gt;QT4&lt;/FONT&gt;&lt;/SPAN&gt; security bytes being &lt;SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 110%; FONT-STYLE: italic; BACKGROUND-COLOR: #ffffff"&gt;&lt;FONT size="2"&gt;erased&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/A&gt; &lt;IMG alt="" border="0" src="http://forums.freescale.com/freescale/i/skins/freescale/subject_has_url.gif" title="" /&gt; &lt;SPAN class="time_text" style="FONT-SIZE: 8pt"&gt;/ &lt;A class="time_text" href="http://forums.freescale.com/freescale/board?board.id=8BITCOMM" target="_blank"&gt;&lt;FONT color="#51626F"&gt;8-Bit Microcontrollers&lt;/FONT&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="cell_1" nowrap=""&gt;&lt;A class="auth_text" href="http://forums.freescale.com/freescale/view_profile?user.id=662" target="_blank"&gt;&lt;SPAN style="COLOR: #3a660f"&gt;&lt;STRONG&gt;irob&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/TD&gt;&lt;TD align="middle" class="cell_1" nowrap=""&gt;&lt;STRONG&gt;&lt;IMG alt="3 ratings - 5.0 average" border="0" src="http://forums.freescale.com/freescale/i/skins/freescale/icon_rating_5.gif" title="3 ratings - 5.0 average" /&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="middle" class="cell_1" nowrap=""&gt;28&lt;/TD&gt;&lt;TD align="middle" class="cell_1" nowrap=""&gt;3077&lt;/TD&gt;&lt;TD class="cell_small_1" nowrap=""&gt;&lt;SPAN class="date_text"&gt;2006-02-15&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:48 PM&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 01:20:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136659#M4439</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-11-15T01:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: QY4 Flash Memory Content Corrupted</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136660#M4440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks Alban,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There is a difference between mine and the attached.&lt;/DIV&gt;&lt;DIV&gt;I never call any ROM-resided code to erase or write any location of the flash.&lt;/DIV&gt;&lt;DIV&gt;The only possible reason for me is the disabling the LVI reset. After I enabled the LVI reset, it seems ok.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 04:44:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136660#M4440</guid>
      <dc:creator>wheelmonitor</dc:creator>
      <dc:date>2006-11-15T04:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: QY4 Flash Memory Content Corrupted</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136661#M4441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Tony,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Well now you have proved that you were running your MPU with an out of spec power supply.&lt;/DIV&gt;&lt;DIV&gt;Running when the PS is not in range can cause all sorts of issues.&lt;/DIV&gt;&lt;DIV&gt;Protecting the FLASH may provide some level of protection angainst this.&lt;/DIV&gt;&lt;DIV&gt;If you don't want to use the internal LVI then fit an external one.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 05:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136661#M4441</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-11-15T05:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: QY4 Flash Memory Content Corrupted</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136662#M4442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi David,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Did you mean that my +5V power supply dropped too solwly when the power is off?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Tony&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 05:30:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136662#M4442</guid>
      <dc:creator>wheelmonitor</dc:creator>
      <dc:date>2006-11-15T05:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: QY4 Flash Memory Content Corrupted</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136663#M4443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yes, or rose too slowly when you turned it on!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 05:33:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136663#M4443</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-11-15T05:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: QY4 Flash Memory Content Corrupted</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136664#M4444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;The datasheet&amp;nbsp;only requires the rising ramp rate which was easily fulfilled not the falling ramp?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 05:58:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136664#M4444</guid>
      <dc:creator>wheelmonitor</dc:creator>
      <dc:date>2006-11-15T05:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: QY4 Flash Memory Content Corrupted</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136665#M4445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The ramp rate to which you refer is to allow the internal LVI to function properly. If you are not using it, it is irrelevant. The important thing here is to&amp;nbsp;only allow the processor to run while its power supply is in spec.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 06:22:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136665#M4445</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-11-15T06:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: QY4 Flash Memory Content Corrupted</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136666#M4446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Tony,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I concur with Peg about always enabling the LVI reset.&amp;nbsp; If you also need to sense an intermediate "low battery" condition you will need to connect an external voltage reference to one of the ADC channels.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;It appears you may be experiencing a "code runaway" situation, quite possibly during power down, that the LVI reset eliminates.&amp;nbsp; I guess it is also possible that the FLBPR setting may sometimes be ineffective under these abnormal conditions.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I would also be wary about using an external reset device with the QY4 since the PTA3 pin is a shared pin that depends on the CONFIG2 setting, and its default state is as a port pin.&amp;nbsp; I have no idea at what&amp;nbsp;supply voltage the CONFIG2 value could become corrupted, &amp;nbsp;and the external reset device would&amp;nbsp;cease to&amp;nbsp;cause reset.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 12:07:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136666#M4446</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-11-15T12:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: QY4 Flash Memory Content Corrupted</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136667#M4447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;Our company has experienced the same loss of Vector Flash Memory (erased to $FF) while the main program memory remains intact. Probably 1 to 2% of units sent out. I'm planning to enable the LVI as per the recommendations in the thread here.&lt;BR /&gt;&lt;BR /&gt;I also tried to set the FLBPR register to 0x00 with the following code:&lt;BR /&gt;&lt;BR /&gt;const byte FLBPR_INIT @0xFFBE = 0x00;&lt;BR /&gt;&lt;BR /&gt;It's located in the main user module just before the program code. It gives no errors in compiling, however, the expected line doesn't show up in the s19 file. Based on what I've read in this forum and elsewhere, I should be able to include this statement to make the setting of FLBPR automatic when programming the device, is that correct?&lt;BR /&gt;&lt;BR /&gt;On another note, when enabling the "Initialize Trim Value" in the CPU bean of processor expert, I get random internal clock frequencies everytime I power up. Instead I've added the following code just prior to the main program:&lt;BR /&gt;&lt;BR /&gt;asm LDA $FFC0&lt;BR /&gt;asm STA OSCTRIM&lt;BR /&gt;&lt;BR /&gt;It seems to be working just fine.&lt;BR /&gt;&lt;BR /&gt;Any help you can provide on how to include the initialization of FLBPR in my code would be much appreciated.&lt;BR /&gt;&lt;BR /&gt;Gordon&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2007 05:58:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QY4-Flash-Memory-Content-Corrupted/m-p/136667#M4447</guid>
      <dc:creator>quickdraw88</dc:creator>
      <dc:date>2007-03-23T05:58:53Z</dc:date>
    </item>
  </channel>
</rss>

