<?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: MC9S12DP256 - Root cause for Flash corruption in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DP256-Root-cause-for-Flash-corruption/m-p/133058#M1807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;If you have any code that can write to flash (bootloader, EEPROM emulation, etc.) then I would check&amp;nbsp;VERY carefully for any way it could be executed unintentionally. It would be wise to carefully design this function to prevent unintentional execution.&lt;/DIV&gt;&lt;P&gt;Did you set FPROT to protect flash?&lt;/P&gt;&lt;DIV&gt;If so, there should be no way for flash to be corrupted.&lt;/DIV&gt;&lt;DIV&gt;If you don't have a bootloader or any other reason to write to flash from your code, you can set this at address 0x7FFF0D to automatically load at powerup. If you have a requirement to write to flash, you can partition and protect code regions from data regions using FPROT, also.&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, 09 May 2007 00:14:58 GMT</pubDate>
    <dc:creator>dwhite</dc:creator>
    <dc:date>2007-05-09T00:14:58Z</dc:date>
    <item>
      <title>MC9S12DP256 - Root cause for Flash corruption</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DP256-Root-cause-for-Flash-corruption/m-p/133057#M1806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;DIV&gt;Hi ,&lt;/DIV&gt;&lt;DIV&gt;we are working for Aerospace&amp;nbsp;domain using the &lt;P align="left"&gt;&lt;SPAN style="font-family: AvantGarde-Demi+2;"&gt;&lt;STRONG style=": ; font-size: 3;"&gt;MC9S12DP256&lt;/STRONG&gt; &lt;SPAN style="font-size: 3;"&gt;controller&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;where we are loading software into flash once and in our code we are performing EEPROM and RAM related operations when fight is in air. at that time Flash corruption is happening. After doing the Root cause analysis what we found was due to code run away problems flash corruption is happening and we added some programs which can initialize the data before writing into flash. But its not exact solution for this problem. So i want to know what could be the reason for flash corruption if the aircraft is in air. How we can avoid them ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advace,&lt;/DIV&gt;&lt;DIV&gt;suvarna.&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by chinni on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-05-08&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:43 AM&lt;BR /&gt;--&lt;BR /&gt;Alban Edit: split thread: new question = new thread + renamed to show part number&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-05-08&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;12:54 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 15:42:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DP256-Root-cause-for-Flash-corruption/m-p/133057#M1806</guid>
      <dc:creator>chinni</dc:creator>
      <dc:date>2007-05-08T15:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DP256 - Root cause for Flash corruption</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DP256-Root-cause-for-Flash-corruption/m-p/133058#M1807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;If you have any code that can write to flash (bootloader, EEPROM emulation, etc.) then I would check&amp;nbsp;VERY carefully for any way it could be executed unintentionally. It would be wise to carefully design this function to prevent unintentional execution.&lt;/DIV&gt;&lt;P&gt;Did you set FPROT to protect flash?&lt;/P&gt;&lt;DIV&gt;If so, there should be no way for flash to be corrupted.&lt;/DIV&gt;&lt;DIV&gt;If you don't have a bootloader or any other reason to write to flash from your code, you can set this at address 0x7FFF0D to automatically load at powerup. If you have a requirement to write to flash, you can partition and protect code regions from data regions using FPROT, also.&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, 09 May 2007 00:14:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DP256-Root-cause-for-Flash-corruption/m-p/133058#M1807</guid>
      <dc:creator>dwhite</dc:creator>
      <dc:date>2007-05-09T00:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DP256 - Root cause for Flash corruption</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DP256-Root-cause-for-Flash-corruption/m-p/133059#M1808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I've recently had a similar problem with the 9S12A256B. I had a PCB back which was not booting up and&lt;BR /&gt;when I read back the device (using P&amp;amp;E BDM Multilink) - all the program code in block 2 (pages $34-$37) was set to 0xFF. The code in Block 3 was still there and all the other pages ($38-$3D) are unused.&lt;BR /&gt;&lt;BR /&gt;I have user config data at address 0x4000-0x6FFF (i.e. page $3E) which I could see was intact.&lt;BR /&gt;&lt;BR /&gt;I also have a bootloader (based on AN2153)&amp;nbsp; residing in the upper area of page $3F. This does make use of the Mass Erase feature and I haven't completely ruled out the possibility of the bootloader being the culprit.&lt;BR /&gt;&lt;BR /&gt;Did you lose all your code, a block or sector(s)?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;P.Pearson&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="3"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 00:56:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DP256-Root-cause-for-Flash-corruption/m-p/133059#M1808</guid>
      <dc:creator>pp</dc:creator>
      <dc:date>2007-05-10T00:56:06Z</dc:date>
    </item>
  </channel>
</rss>

