<?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: About P-FLASH in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-P-FLASH/m-p/164674#M5327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;In this situation the data in 0x780002-0x780007 is correct?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I think it depeneds on the state of ECC bits. One time&amp;nbsp;you may get you bytes matching data you were trying to program. Another time you may get verify errors. When you command flash to write 8 bytes, more than 8 bytes are written to flash, since additional ECC correction bits&amp;nbsp;are written to the flash. When you write xx0-xx1 bytes, and others all FF, ECC correction pattern&amp;nbsp;is programed exactly for that old&amp;nbsp;xx0-xx7 byte pattern. It is obvious that when you later program xx2-xx7, ECC correction has almost no chances to be programmed properly. You need to erase all 8 bytes. Unfortunately you can erase only whole flash sector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If I fill 0x780000-0x780001 with their original data, will generate any errors?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Yes, it will. Old ECC correction has to be erased .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2012 13:47:12 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2012-05-21T13:47:12Z</dc:date>
    <item>
      <title>About P-FLASH</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-P-FLASH/m-p/164671#M5324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;I am using XET256,I have some problems about using P-Flash.&lt;/P&gt;&lt;P&gt;If I want to program P-Flash from 0x780002 to 0x780007, and P-Flash in address 0x780000 and 0x780001 have been programed, so I &amp;nbsp;fill 0x780000 as 0xffff ,like that:&amp;nbsp;&lt;/P&gt;&lt;P&gt;FCCOBIX=0;&lt;/P&gt;&lt;P&gt;FCCOB=0X0678;&lt;/P&gt;&lt;P&gt;FCCOBIX=1;&lt;/P&gt;&lt;P&gt;FCCOB=0X0000;&lt;/P&gt;&lt;P&gt;FCCOBIX=2;&lt;/P&gt;&lt;P&gt;FCCOB=0XFFFF;&lt;/P&gt;&lt;P&gt;FCCOBIX=3;&lt;/P&gt;&lt;P&gt;FCCOB=value1&lt;/P&gt;&lt;P&gt;FCCOBIX=4&lt;/P&gt;&lt;P&gt;FCCOB=value2&lt;/P&gt;&lt;P&gt;FCCOBIX=5&lt;/P&gt;&lt;P&gt;FCCOB=value3&lt;/P&gt;&lt;P&gt;FSTAT=0X80;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Whether this&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;will generate a&amp;nbsp;P-Flash Command Error? If it will set ACCERR FPVIOL MGSTAT1 or MGSTAT2?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 14:30:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-P-FLASH/m-p/164671#M5324</guid>
      <dc:creator>zy</dc:creator>
      <dc:date>2012-05-19T14:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: About P-FLASH</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-P-FLASH/m-p/164672#M5325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will get ECC error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2012 01:42:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-P-FLASH/m-p/164672#M5325</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-05-20T01:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: About P-FLASH</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-P-FLASH/m-p/164673#M5326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response. In this situation the data in 0x780002-0x780007 is correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I fill 0x780000-0x780001 with their original data, will generate any errors?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 11:13:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-P-FLASH/m-p/164673#M5326</guid>
      <dc:creator>zy</dc:creator>
      <dc:date>2012-05-21T11:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: About P-FLASH</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-P-FLASH/m-p/164674#M5327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;In this situation the data in 0x780002-0x780007 is correct?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I think it depeneds on the state of ECC bits. One time&amp;nbsp;you may get you bytes matching data you were trying to program. Another time you may get verify errors. When you command flash to write 8 bytes, more than 8 bytes are written to flash, since additional ECC correction bits&amp;nbsp;are written to the flash. When you write xx0-xx1 bytes, and others all FF, ECC correction pattern&amp;nbsp;is programed exactly for that old&amp;nbsp;xx0-xx7 byte pattern. It is obvious that when you later program xx2-xx7, ECC correction has almost no chances to be programmed properly. You need to erase all 8 bytes. Unfortunately you can erase only whole flash sector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If I fill 0x780000-0x780001 with their original data, will generate any errors?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Yes, it will. Old ECC correction has to be erased .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 13:47:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-P-FLASH/m-p/164674#M5327</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-05-21T13:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: About P-FLASH</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-P-FLASH/m-p/164675#M5328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! So I must restrict the program start address, to be sure it's bit[0:2] is zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 09:16:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-P-FLASH/m-p/164675#M5328</guid>
      <dc:creator>zy</dc:creator>
      <dc:date>2012-05-22T09:16:37Z</dc:date>
    </item>
  </channel>
</rss>

