<?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: S32 Design Studio &amp; Flash Mass erase  in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826471#M3875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so when I erase all the flash content, SEC field secures the chip but the MEEN field leaves the mass erase operation enabled (thus, the example provided with the SDK maybe only wants to show how the flash configuration fields can be written). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about question 2, 3 and 4? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2018 12:55:18 GMT</pubDate>
    <dc:creator>alternativeunof</dc:creator>
    <dc:date>2018-07-26T12:55:18Z</dc:date>
    <item>
      <title>S32 Design Studio &amp; Flash Mass erase</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826467#M3871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I perform a FLASH mass erase operation with s32k144 and s32 design studio? Can you describe me the precise steps to do that, without risking to brick my board as happened for other people, like &lt;A _jive_internal="true" href="https://community.nxp.com/thread/451670"&gt;here&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 16:27:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826467#M3871</guid>
      <dc:creator>alternativeunof</dc:creator>
      <dc:date>2018-07-18T16:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Design Studio &amp; Flash Mass erase</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826468#M3872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mass erase is performed prior new flash image write operation. You can also use Emergency kinetis device recovery in debug configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65866i593C7E3165812B6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are using FLASH operations by MCU - make sure that you aren't modify flash config on address 0x400-0x410. Erase of that area is okay, but make sure that you don't write there data which disable mass erase and secure the chip.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 08:27:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826468#M3872</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-07-19T08:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Design Studio &amp; Flash Mass erase</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826469#M3873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I understood that whenever I want to program/erase my s32k board, I must pay attention to not secure it, otherwise I could not be anymore able to re-program/re-erase it, if I do not have a backdoor key. The fields that I must pay attention to are in the following figure:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66542i1DDE2966022DF7EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.PNG" alt="image.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The Backdoor Compartison Key is something similar to a password, that if known permits to unsecure the flash&lt;/LI&gt;&lt;LI&gt;FPROT0-3 must be at 0xFF in order to not secure the P-Flash&lt;/LI&gt;&lt;LI&gt;FDPROT must be at 0xFF in order to not secure the D-Flash&lt;/LI&gt;&lt;LI&gt;FEPROT must be at 0xFF in order to not secure the E-Flash (i.e., the EEPROM backup memory)&lt;/LI&gt;&lt;LI&gt;FOPT must be at 0xFF in order to not customize the boot options&lt;/LI&gt;&lt;LI&gt;FSEC is composed as following:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image3.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66543i124DD102731DE09A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image3.PNG" alt="image3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I highlighted in yellow what I want and in red what should happen when I perform a mass erase command (&lt;STRONG&gt;is it true that an erase command will put all flash bits at 1?&lt;/STRONG&gt;). You said that an erase of this area is ok (i.e., the erase will not secure the device), even if the mass erase will write &lt;STRONG&gt;SEC = 11b (device is secure). &lt;BR /&gt;&lt;/STRONG&gt;In the example provided with the SDK, after the erase of all flash blocks, the application will program the Flash Configuration Fields writing the following thing:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;uint8_t unsecure_key[FTFx_PHRASE_SIZE] = {0xFFu, 0xFFu, 0xFFu, 0xFFu, &lt;STRONG&gt;0xFEu&lt;/STRONG&gt;, 0xFFu, 0xFFu, 0xFFu}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Where all bits are at 1, except for the FSEC[SEC] field that is at 10b. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;How is it possible that when I upload a new application inside the S32K, even if it performs a mass erase operation, it will not secure the device? &lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Does the mass erase operation remove the partitions of the FLASH memory resetting it to the "default" configuration? If yes, which is the default configuration? &lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;If the application residing in the P-Flash performs a mass erase operation, is the P-Flash not erased?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;I do not know how to use the Emergency Kinetis Device Recovery. What is it needed for? Why should I use it instead to perform my mass erase operation from inside the application?&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 11:29:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826469#M3873</guid>
      <dc:creator>alternativeunof</dc:creator>
      <dc:date>2018-07-26T11:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Design Studio &amp; Flash Mass erase</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826470#M3874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually you need to take special care to MEEN bit, when mass erase is disabled, chip is secured and backdoor key disabled - there is no way back. Secured chip with mass erase enabled is okay.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 11:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826470#M3874</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-07-26T11:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Design Studio &amp; Flash Mass erase</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826471#M3875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so when I erase all the flash content, SEC field secures the chip but the MEEN field leaves the mass erase operation enabled (thus, the example provided with the SDK maybe only wants to show how the flash configuration fields can be written). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about question 2, 3 and 4? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 12:55:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826471#M3875</guid>
      <dc:creator>alternativeunof</dc:creator>
      <dc:date>2018-07-26T12:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Design Studio &amp; Flash Mass erase</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826472#M3876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. the default config is using FlexNVM as Dflash&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. If app performs mass erase - the app erases itself too (at least partly - the program probably ends in some exception).&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. It is part of debug session with PE Micro debugger. I'm not 100% sure what this option does, but it can erase secured device with key access (jf MEEN is enabled).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 13:37:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826472#M3876</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-07-26T13:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Design Studio &amp; Flash Mass erase</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826473#M3877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on the procedure of demo in AN12323.pdf,&amp;nbsp; I don't think mass erase is able to remove partition. The only way to remove EEPROM partition is to do the partition again with suitable parameters. Otherwise, the SIM register for flash config will not be changed. Am I correct??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2019 09:51:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-Flash-Mass-erase/m-p/826473#M3877</guid>
      <dc:creator>jimmylee0407</dc:creator>
      <dc:date>2019-12-24T09:51:14Z</dc:date>
    </item>
  </channel>
</rss>

