<?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: MC9S12 PFLASH problem</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781251#M15519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You&amp;nbsp; should mention exact S12 derivative. There are a lot of differences among S12C / S12P / etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your derivative has&amp;nbsp;ECC equipped flash, then what you observe is expected. Whole flash phrase&amp;nbsp;has to programmed at once. Flash phrase ECC bits are programmed along with phrase data. You can't update ECC properly without erase step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2018 10:01:32 GMT</pubDate>
    <dc:creator>kef2</dc:creator>
    <dc:date>2018-07-25T10:01:32Z</dc:date>
    <item>
      <title>MC9S12 PFLASH problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781250#M15518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I do the updated firmware function in&lt;SPAN&gt;&amp;nbsp;MC9S12 CPU I encountered a problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I receive the firmware data from CAN port and write the data to P-FLASH.&lt;/P&gt;&lt;P&gt;When writing to the address of 0x7F7FE6, first I write:&lt;/P&gt;&lt;P&gt;65&lt;SPAN class=""&gt; &lt;/SPAN&gt;6D&lt;SPAN class=""&gt; &lt;/SPAN&gt;FF&lt;SPAN class=""&gt; &lt;/SPAN&gt;FF&lt;SPAN class=""&gt; &lt;/SPAN&gt;FF&lt;SPAN class=""&gt; &lt;/SPAN&gt;FF&lt;SPAN class=""&gt; &lt;/SPAN&gt;FF&lt;SPAN class=""&gt; &lt;/SPAN&gt;FF&lt;/P&gt;&lt;P&gt;Then write the same address:&lt;/P&gt;&lt;P&gt;FF&lt;SPAN class=""&gt; &lt;/SPAN&gt;FF&lt;SPAN class=""&gt; &lt;/SPAN&gt;FF&lt;SPAN class=""&gt; &lt;/SPAN&gt;FF&lt;SPAN class=""&gt; &lt;/SPAN&gt;FF&lt;SPAN class=""&gt; &lt;/SPAN&gt;FF&lt;SPAN class=""&gt; &lt;/SPAN&gt;66&lt;SPAN class=""&gt; &lt;/SPAN&gt;49&lt;/P&gt;&lt;P&gt;And I read back the data from &lt;SPAN&gt;0x7F7FE6, I found the data read back are not equal to the data I write to it before.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I read back the data:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;65&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6D&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF 66&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;4D&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;It should be&amp;nbsp;65&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6D&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF 66&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN&gt;49&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Can anyone give me some suggest? Thank you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 07:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781250#M15518</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2018-07-25T07:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12 PFLASH problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781251#M15519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You&amp;nbsp; should mention exact S12 derivative. There are a lot of differences among S12C / S12P / etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your derivative has&amp;nbsp;ECC equipped flash, then what you observe is expected. Whole flash phrase&amp;nbsp;has to programmed at once. Flash phrase ECC bits are programmed along with phrase data. You can't update ECC properly without erase step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 10:01:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781251#M15519</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2018-07-25T10:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12 PFLASH problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781252#M15520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know which exact MCU do you use, but a&amp;nbsp;Flash word or phrase must be in the erased state before being&lt;BR /&gt;programmed. Cumulative programming of bits within a Flash word or phrase is not allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 10:08:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781252#M15520</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2018-07-25T10:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12 PFLASH problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781253#M15521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All.&lt;/P&gt;&lt;P&gt;The address I write is&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x7F7FE0, not&amp;nbsp;&lt;SPAN&gt;0x7F7FE6.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 10:57:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781253#M15521</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2018-07-25T10:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12 PFLASH problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781254#M15522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used MC9S12XEP100.&lt;/P&gt;&lt;P&gt;The true is that if I write to&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x7F7FE0 with&amp;nbsp;&lt;SPAN&gt;65&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;6D&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;then write:&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;66&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;49&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;the read back result is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;65&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;6D&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;FF 66&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;4D&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-size: 14px;"&gt;If I&amp;nbsp;&lt;/SPAN&gt;write to&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0x7F7FE0 with&amp;nbsp;&lt;SPAN&gt;65&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt;B5&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;then write:&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;66&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt;&amp;nbsp;91&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;the read back result is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;65&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt;&amp;nbsp;B5&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;FF 66&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;91&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-size: 14px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;The result is OK. I don't know why.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 11:01:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781254#M15522</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2018-07-25T11:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12 PFLASH problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781255#M15523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;MC9S12XEP100.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I don't programe the same word.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;First I program 65 6D in the first 2 bytes.(Others are 0xFF)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Second I program 66 49 in the last 2 bytes.&lt;SPAN&gt;(Others are 0xFF)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I don't know what is error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The true is that if I program others contend to the same address, like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;If I&amp;nbsp;&lt;/SPAN&gt;write to&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;0x7F7FE0 with&amp;nbsp;65&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;B5&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;FF&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;FF&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;FF&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;FF&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;FF&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;FF&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;then write:&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;66&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;91&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;the read back result is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;65&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;B5&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF 66&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;91&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;The result is OK. I don't know why.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 11:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781255#M15523</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2018-07-25T11:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12 PFLASH problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781256#M15524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Let me explain:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;The P-Flash at S12XE is written by phrases.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black;"&gt;Phrase&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;—An aligned &lt;STRONG&gt;group of four 16-bit words&lt;/STRONG&gt; within the P-Flash memory. Each phrase includes eight ECC bits for single bit fault correction and double bit fault detection within the phrase.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;So, if you write a phrase once, the ECC checksum for aligned 64bit is stored together with your data. When you write the same phrase again without sector (1024 bytes) erase, new ECC checksum is calculated and it rewrite already written value (only log1-&amp;gt;log0 is possible during flash write). So, the &lt;STRONG&gt;ECC checksum is now damaged&lt;/STRONG&gt; and you will probably able to detect single or double bit checksum error during the P-Flash read. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;In your first case, the P-Flash detected single bit ECC checksum error and automatically repair the bit error (add one log1 at a most probable place). Therefore, you read different value than you write.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;In your second case, the P-Flash didn’t detect ECC checksum or rather detected double bit ECC checksum error. Such an error cannot be fixed automatically. Therefore, you read data what you wrote into P-Flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;You may check detected errors by DFDIF and SFDIF flags in FERSTAT register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black;"&gt;The cumulative write within a phrase is not allowed.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 12:59:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781256#M15524</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2018-07-25T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12 PFLASH problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781257#M15525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my second case. Is the data written to the P-Flash&amp;nbsp;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;65&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;B5&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF 66&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;91?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;I am worry about I want to write 65&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;B5&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF 66&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;91 and read back is also&amp;nbsp;65&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;B5&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF 66&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;91, But infact this is not the true. Just because the P-Flash didn't detect.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 06:35:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781257#M15525</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2018-07-27T06:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12 PFLASH problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781258#M15526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;If you write 0x &lt;SPAN style="background: white;"&gt;65&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0in;"&gt;&lt;SPAN style="font-weight: inherit;"&gt;&amp;nbsp;B5&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;FF&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;FF&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;FF&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;FF 66&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;91&lt;/SPAN&gt;&lt;/SPAN&gt;, you will read 0x &lt;/SPAN&gt;65&lt;/SPAN&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0in;"&gt;&lt;SPAN style="font-weight: inherit;"&gt;&amp;nbsp;B5&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;FF&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;FF&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;FF&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit;"&gt;FF 66&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;91&lt;/SPAN&gt;&lt;/SPAN&gt;. That isn’t the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; border: none windowtext 1.0pt; padding: 0in; background: white;"&gt;You just simply cannot write it in two steps as you described above. Otherwise, you will damage ECC memory protection checksum and the result of ECC error detection will be hardly predicted (no error/single bit error/double bit error). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; border: none windowtext 1.0pt; padding: 0in; background: white;"&gt;This phrase must be written by a single Flash command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; border: none windowtext 1.0pt; padding: 0in; background: white;"&gt;In your first case, you wrote 0x &lt;/SPAN&gt;&lt;SPAN style="color: black; border: none windowtext 1.0pt; padding: 0in;"&gt;65&lt;/SPAN&gt;&amp;nbsp;6D&amp;nbsp;FF&amp;nbsp;FF&amp;nbsp;FF&amp;nbsp;FF 66&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;49 in two steps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; border: none windowtext 1.0pt; padding: 0in;"&gt;Since the ECC checksum is damaged and the flash reading mechanism detected the single bit ECC error, you simply read 0x 65&lt;/SPAN&gt;&amp;nbsp;6D&amp;nbsp;FF&amp;nbsp;FF&amp;nbsp;FF&amp;nbsp;FF 66&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;4D&lt;/SPAN&gt; instead of 65&amp;nbsp;6D&amp;nbsp;FF&amp;nbsp;FF&amp;nbsp;FF&amp;nbsp;FF 66&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;49 what is really written in Flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;The ECC mechanism is able to fix only single bit errors and to detect double (=two or more) bit errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 08:22:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781258#M15526</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2018-07-27T08:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12 PFLASH problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781259#M15527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radek,&lt;/P&gt;&lt;P&gt;What I want to know is:&lt;/P&gt;&lt;P&gt;I write&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;65&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;B5&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FF then write&amp;nbsp;&lt;SPAN style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;66&lt;/SPAN&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;91 on the same address.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;And read back is&amp;nbsp;65&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;B5&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FF&lt;/SPAN&gt;&lt;SPAN class="" style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;FF&amp;nbsp;&lt;SPAN style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;66&lt;/SPAN&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;91.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Can I say the data is safe?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Or the data saved in P-Flash is right?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #3d3d3d; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 11:47:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781259#M15527</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2018-07-27T11:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12 PFLASH problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781260#M15528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;No, you cannot say that the data is safe.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;It is forbidden to program the same phrase more than once without erasing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;It is not healthy for Flash and you may potentially read incorrect data (as you already detected).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Only allowed way how to modify data inside the same phase is reading the whole sector, modify data in RAM, erase Flash sector, and write back the whole sector.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;If you need often change a small amount of data, you should choose EEPROM (emulated EEPROM at S12XE) as storage instead of P-Flash module.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 12:14:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12-PFLASH-problem/m-p/781260#M15528</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2018-07-27T12:14:56Z</dc:date>
    </item>
  </channel>
</rss>

