<?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 S32K146 Program Partition in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K146-Program-Partition/m-p/1685781#M25002</link>
    <description>&lt;P&gt;I want to change the DEPART value in my s32k146 .&lt;/P&gt;&lt;P&gt;1.Is it possible to change its value without mass erase ? If yes what command can be used ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.If No How can we check if cse is enabled&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.Do we have to completely mass erase and repartition to change the value of DEPART&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. After mass erase can we reset and continue partition by running the code or is there anything that we have to do prior to it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2023 12:32:08 GMT</pubDate>
    <dc:creator>ikarkala</dc:creator>
    <dc:date>2023-07-11T12:32:08Z</dc:date>
    <item>
      <title>S32K146 Program Partition</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-Program-Partition/m-p/1685781#M25002</link>
      <description>&lt;P&gt;I want to change the DEPART value in my s32k146 .&lt;/P&gt;&lt;P&gt;1.Is it possible to change its value without mass erase ? If yes what command can be used ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.If No How can we check if cse is enabled&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.Do we have to completely mass erase and repartition to change the value of DEPART&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. After mass erase can we reset and continue partition by running the code or is there anything that we have to do prior to it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 12:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-Program-Partition/m-p/1685781#M25002</guid>
      <dc:creator>ikarkala</dc:creator>
      <dc:date>2023-07-11T12:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 Program Partition</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-Program-Partition/m-p/1686579#M25054</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/94625"&gt;@ikarkala&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Changing the DEPART value on the S32K146 involves manipulating the flash memory partitioning. Here are the answers to your questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. No, it's not possible to change the DEPART value without a mass erase. The DEPART value is stored in the Flash Configuration Field (FCF) which is a part of the flash memory. Changing this value requires erasing and reprogramming the FCF, which is a part of the mass erase operation.&lt;/P&gt;&lt;P&gt;2. To check if the CSE (Cryptographic Security Engine) is enabled, you can read the CSE_PRAM register. If the CSE is enabled, the CSE_PRAM[0] bit will be set to 1. Here is a code snippet to check this:&lt;/P&gt;&lt;PRE&gt; if ((CSE-&amp;gt;CSE_PRAM &amp;amp; CSE_PRAM_CSE_EN_MASK) == CSE_PRAM_CSE_EN_MASK) {     // CSE is enabled } else {     // CSE is not enabled } &lt;/PRE&gt;&lt;P&gt;3. Yes, to change the DEPART value, you have to perform a mass erase and then repartition the flash memory. This is because the DEPART value is stored in the FCF which is a part of the flash memory.&lt;/P&gt;&lt;P&gt;4. After a mass erase, you can reset and continue partitioning by running the code. However, you have to ensure that the new DEPART value is correctly set in the FCF. Here is a code snippet to set the DEPART value:&lt;/P&gt;&lt;PRE&gt; // Set the DEPART value FTFC-&amp;gt;FCCOB3 = FTFC_FCCOB3_CCOBn(0x80); // Program Partition command FTFC-&amp;gt;FCCOB4 = FTFC_FCCOB4_CCOBn(DEPART_VALUE); // DEPART value // Execute the command FTFC-&amp;gt;FSTAT = FTFC_FSTAT_CCIF_MASK; &lt;/PRE&gt;&lt;P&gt;Please refer to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Flash-Partitioning-on-S32K1xx/ta-p/1106714" target="_blank"&gt;Flash Partitioning on S32K1xx&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;article for more details about flash partitioning on the S32K146.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Prakash&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 11:12:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-Program-Partition/m-p/1686579#M25054</guid>
      <dc:creator>prakashram72</dc:creator>
      <dc:date>2023-07-12T11:12:49Z</dc:date>
    </item>
  </channel>
</rss>

