<?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: Issue in data flash partitioning in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Issue-in-data-flash-partitioning/m-p/683319#M997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;Unfortunately, I don’t have an &lt;SPAN style="font-size: 11.5pt;"&gt;S32K148&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt; device here for testing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The potential root causes for &lt;SPAN style="font-size: 11.5pt;"&gt;Access Error result are listed in Table 33-45. Program Partition command error handling in RM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Since you use the flash driver, the most probable reason will be incorrect EEPROM Data Set Size Code or FlexNVM Partition Code (correct should be EEESIZE=0x02, DEPART=0x04). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;The second most probable reason is that FlexNVM module is already partitioned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Did you use FLASH_DRV_EraseAllBlock() for complete erase of all flash blocks include data flash IFR followed by reprogramming security byte?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;I am not sure with your sentence “We wanted to create partitions of 1.5 MB (Flash) and 512KB of data flash.”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;The S32K148 contains 1.5 MB Program Flash and 512kB of FlexNVM memory. The 64kB from FlexNVM area may be used for emulated EEPROM. In this case, the rest (448kB) will stay accessible as D-Flash (programmed by flash controller commands). The default state for new MCU is that emulated EEPROM feature is not used and the whole 512kB of FlexNVM memory is usable as data flash. For enabling emulated EEPROM feature, we must execute Program Partition command (once after EraseAllBlock).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;So, if you don’t need EEE or you need 512kB data flash, you don’t need to execute Program Partition command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;The Program Partition command does not affect Program Flash memory size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Tue, 13 Jun 2017 14:49:44 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2017-06-13T14:49:44Z</dc:date>
    <item>
      <title>Issue in data flash partitioning</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-data-flash-partitioning/m-p/683318#M996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Dear support team,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;We are using&amp;nbsp;&amp;nbsp;S32K148 device. We wanted to create partitions of 1.5 MB (Flash) and 512KB of data flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 15px;"&gt;We are unable to perform dataflash Partition using DEFlash Partition Command with S32K148.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 15px;"&gt;It throws Access Error when enters into Flash Command Sequence function.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 15px;"&gt;Flash Command Sequence function goes into code ram section as per requirement.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nitin verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 10:09:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-data-flash-partitioning/m-p/683318#M996</guid>
      <dc:creator>nitinverma</dc:creator>
      <dc:date>2017-06-12T10:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in data flash partitioning</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-data-flash-partitioning/m-p/683319#M997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;Unfortunately, I don’t have an &lt;SPAN style="font-size: 11.5pt;"&gt;S32K148&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt;"&gt; device here for testing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The potential root causes for &lt;SPAN style="font-size: 11.5pt;"&gt;Access Error result are listed in Table 33-45. Program Partition command error handling in RM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Since you use the flash driver, the most probable reason will be incorrect EEPROM Data Set Size Code or FlexNVM Partition Code (correct should be EEESIZE=0x02, DEPART=0x04). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;The second most probable reason is that FlexNVM module is already partitioned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;Did you use FLASH_DRV_EraseAllBlock() for complete erase of all flash blocks include data flash IFR followed by reprogramming security byte?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;I am not sure with your sentence “We wanted to create partitions of 1.5 MB (Flash) and 512KB of data flash.”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;The S32K148 contains 1.5 MB Program Flash and 512kB of FlexNVM memory. The 64kB from FlexNVM area may be used for emulated EEPROM. In this case, the rest (448kB) will stay accessible as D-Flash (programmed by flash controller commands). The default state for new MCU is that emulated EEPROM feature is not used and the whole 512kB of FlexNVM memory is usable as data flash. For enabling emulated EEPROM feature, we must execute Program Partition command (once after EraseAllBlock).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;So, if you don’t need EEE or you need 512kB data flash, you don’t need to execute Program Partition command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt;"&gt;The Program Partition command does not affect Program Flash memory size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Tue, 13 Jun 2017 14:49:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-data-flash-partitioning/m-p/683319#M997</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2017-06-13T14:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in data flash partitioning</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-data-flash-partitioning/m-p/683320#M998</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;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I have similar problem due to the second reason you have mentioned.&lt;/P&gt;&lt;P&gt;My intention is to setup the EEPROM with &lt;STRONG&gt;my configuration&lt;/STRONG&gt;&amp;nbsp;during the initial stage of my software even if it is already partitioned in some other configuration.&amp;nbsp;To&amp;nbsp;achieve that,&amp;nbsp;if I erase all blocks - my software will fail as the flash contents are erased. Can you suggest any alternate method through which I can achieve this?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please note that running the complete software from RAM is NOT AT ALL an option for me.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:52:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-data-flash-partitioning/m-p/683320#M998</guid>
      <dc:creator>ummerkunnummalk</dc:creator>
      <dc:date>2019-03-12T10:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in data flash partitioning</title>
      <link>https://community.nxp.com/t5/S32K/Issue-in-data-flash-partitioning/m-p/683321#M999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ummer,&lt;/P&gt;&lt;P&gt;unfortunately, the FlexNVM isn't designed for such a scenario.&amp;nbsp;&amp;nbsp;&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/72840i4267C8721F84A30E/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;The flash configuration with partitioning settings may be erased only by mass erase command - typically with a connected debugger.&amp;nbsp;&lt;BR /&gt;It is hard to imagine the use case where the dynamic change of EEPROM settings may be handled without potential security issues. Since EEPROM is also used for storing CSEc&amp;nbsp;keys, the dynamic change of EEPROM settings is even more difficult and critical.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the other main reasons, why such an operation isn't&amp;nbsp;allowed, is flash endurance.&lt;/P&gt;&lt;P&gt;The partition command initialize sector counters in FlexNVM and these counters are also used for flash aging (erase/write times slowly grow with a number of cycles for ensuring data reliability). When we do a mass erase very often, the reliability cannot be guaranteed according to values in S32K RM/DS.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I hope it helps you.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;Radek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 11:48:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-in-data-flash-partitioning/m-p/683321#M999</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2019-03-12T11:48:04Z</dc:date>
    </item>
  </channel>
</rss>

