<?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>MPC5xxxのトピックRe: S32R274 Program and erase flash error</title>
    <link>https://community.nxp.com/t5/MPC5xxx/S32R274-Program-and-erase-flash-error/m-p/1017591#M15249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;most likely, program or erase operation was terminated by unexpected reset or power down. The flash is left in undetermined state in this case (not whole flash, only the flash which was modified at that moment). Such flash usually contains a lot of double bit ECC errors. When you read corrupted flash, IVOR1 exception is triggered. IVOR1 should be handled appropriately in your project.&lt;/P&gt;&lt;P&gt;The solution to recover is to erase affected blocks.&lt;/P&gt;&lt;P&gt;There's an application note written for MPC55xx/56xx devices but it could help also for MPC57xx/S32R to some level:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN5200.pdf" title="https://www.nxp.com/docs/en/application-note/AN5200.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN5200.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note-software/AN5200SW.zip" title="https://www.nxp.com/docs/en/application-note-software/AN5200SW.zip"&gt;https://www.nxp.com/docs/en/application-note-software/AN5200SW.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2020 05:43:52 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2020-03-12T05:43:52Z</dc:date>
    <item>
      <title>S32R274 Program and erase flash error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/S32R274-Program-and-erase-flash-error/m-p/1017590#M15248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN class="" data-group="0-0" data-v-4c8ee738="" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14.000000953674316px;"&gt;I wrote a bootloader program that erased and wrote normally.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" data-v-4c8ee738="" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14.000000953674316px;"&gt;These days suddenly found a MCU in the write failure, can not start again, even if the power up and down.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-2" data-v-4c8ee738="" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14.000000953674316px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;From the view of RAM_DEBUG mode of PE, the flash code of the bootloader program exists and is correct, but the code area of the APP is 0x00 instead of 0xFF. &lt;SPAN style="color: #4a90e2; font-weight: normal; font-size: 14.000000953674316px;"&gt;and it cannot be started with lauterbach to track the problem. &lt;/SPAN&gt;I don't know why this happens.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-3" data-v-4c8ee738="" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14.000000953674316px;"&gt;Is the electricity lost in the process of writing or erasing?&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-4" data-v-4c8ee738="" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14.000000953674316px;"&gt;How can I recover it using software?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-4" data-v-4c8ee738="" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14.000000953674316px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="font-weight: normal; font-size: 14.000000953674316px;"&gt;As the task is very urgent, please help as soon as possible, thank you very much!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:10:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/S32R274-Program-and-erase-flash-error/m-p/1017590#M15248</guid>
      <dc:creator>jjr_net</dc:creator>
      <dc:date>2020-03-11T15:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32R274 Program and erase flash error</title>
      <link>https://community.nxp.com/t5/MPC5xxx/S32R274-Program-and-erase-flash-error/m-p/1017591#M15249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;most likely, program or erase operation was terminated by unexpected reset or power down. The flash is left in undetermined state in this case (not whole flash, only the flash which was modified at that moment). Such flash usually contains a lot of double bit ECC errors. When you read corrupted flash, IVOR1 exception is triggered. IVOR1 should be handled appropriately in your project.&lt;/P&gt;&lt;P&gt;The solution to recover is to erase affected blocks.&lt;/P&gt;&lt;P&gt;There's an application note written for MPC55xx/56xx devices but it could help also for MPC57xx/S32R to some level:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN5200.pdf" title="https://www.nxp.com/docs/en/application-note/AN5200.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN5200.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note-software/AN5200SW.zip" title="https://www.nxp.com/docs/en/application-note-software/AN5200SW.zip"&gt;https://www.nxp.com/docs/en/application-note-software/AN5200SW.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 05:43:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/S32R274-Program-and-erase-flash-error/m-p/1017591#M15249</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-03-12T05:43:52Z</dc:date>
    </item>
  </channel>
</rss>

