<?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: How to use NVM and EEPROM partition in S32k146? in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1605132#M2936</link>
    <description>&lt;P&gt;When using the EEPROM of S32K1xx, user does not need to write to the EPROM backup address. It is recommended that you read &lt;A href="https://www.nxp.com/docs/en/application-note/AN11983.pdf" target="_self"&gt;AN11983 Using the S32K1xx EEPROM Functionality&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AN11983.png" style="width: 616px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212251i72FBCC83B53F503C/image-size/large?v=v2&amp;amp;px=999" role="button" title="AN11983.png" alt="AN11983.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 09:18:14 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2023-02-24T09:18:14Z</dc:date>
    <item>
      <title>How to use NVM and EEPROM partition in S32k146?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1603284#M2927</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using S32K146.&lt;/P&gt;&lt;P&gt;I want to use 4Kb EEPROM and 64Kb NVM partition in my project, i tried running code example&amp;nbsp;flash_partitioning_s32k146, which helped me use EEPROM partition.&lt;/P&gt;&lt;P&gt;But i am unable to Write or erase in NVM, The D_Flash size is 0 [ data flash 0 kb emulated eeprom backup 64kb ]as per the flex nvm partition, so the operation is failed.&lt;/P&gt;&lt;P&gt;How to configure the flex nvm partition ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 05:33:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1603284#M2927</guid>
      <dc:creator>s32k146_ige</dc:creator>
      <dc:date>2023-02-22T05:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use NVM and EEPROM partition in S32k146?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1603493#M2928</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That example configure FlexNVM for maximum E-Flash size 64K&lt;/P&gt;
&lt;P&gt;&amp;nbsp;* - EEEDataSizeCode = 0x02u: EEPROM size = 4 Kbytes&lt;BR /&gt;* - DEPartitionCode = &lt;STRONG&gt;0x08u&lt;/STRONG&gt;: EEPROM backup size = 64 Kbytes */&lt;BR /&gt;ret = FLASH_DRV_DEFlashPartition(&amp;amp;flashSSDConfig, 0x02u, &lt;STRONG&gt;0x08u&lt;/STRONG&gt;, 0x0u, false, true);&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flash_partitioning_s32k146.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/211930i726C2DBE993BEEAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="flash_partitioning_s32k146.png" alt="flash_partitioning_s32k146.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table 4. FlexNVM partition codes for 64 kB FlexNVM devices (S32K142, S32K144, S32K146).png" style="width: 697px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/211931iAE9C5C80144CD0FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table 4. FlexNVM partition codes for 64 kB FlexNVM devices (S32K142, S32K144, S32K146).png" alt="Table 4. FlexNVM partition codes for 64 kB FlexNVM devices (S32K142, S32K144, S32K146).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can&amp;nbsp;Split FlexNVM for D-Flash(32Kbytes) and E-Flash(32Kbytes):&lt;BR /&gt;ret = FLASH_DRV_DEFlashPartition(&amp;amp;flashSSDConfig, 0x02u, &lt;STRONG&gt;0x03u&lt;/STRONG&gt;, 0x0u, false, true);&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Split FlexNVM for D-Flash and E-Flash.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/211932i834C0EA22BC1781E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Split FlexNVM for D-Flash and E-Flash.png" alt="Split FlexNVM for D-Flash and E-Flash.png" /&gt;&lt;/span&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 07:29:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1603493#M2928</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-02-22T07:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use NVM and EEPROM partition in S32k146?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1603650#M2929</link>
      <description>&lt;P&gt;Hey Robin thanks for reply,&lt;/P&gt;&lt;P&gt;So going by current configuration, my MCU is configured for 64Kb + 4Kb of EERPOM ? is that right ?&lt;/P&gt;&lt;P&gt;Also how do i access the 64Kb of EEPROM ? as i have checked i can write on 4Kb of EEPROM only&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;        /* Configure FlexRAM as EEPROM and FlexNVM as EEPROM backup region,
         * DEFlashPartition will be failed if the IFR region isn't blank.
         * Refer to the device document for valid EEPROM Data Size Code
         * and FlexNVM Partition Code. For example on S32K146:
         * - EEEDataSizeCode = 0x02u: EEPROM size = 4 Kbytes
         * - DEPartitionCode = 0x08u: EEPROM backup size = 64 Kbytes */
        ret = FLASH_DRV_DEFlashPartition(&amp;amp;flashSSDConfig, 0x02u, 0x08u, 0x0u, false, true);
        DEV_ASSERT(STATUS_SUCCESS == ret);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per mentioned by You, i also tried doing following changes&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ret = FLASH_DRV_DEFlashPartition(&amp;amp;flashSSDConfig, 0x02u,&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;0x03u&lt;/STRONG&gt;&lt;SPAN&gt;, 0x0u, false, true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but this function return Error (0x1) and code is stuck in assert condition. i have attached screenshot of flashSSDConfig variable data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 10:56:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1603650#M2929</guid>
      <dc:creator>s32k146_ige</dc:creator>
      <dc:date>2023-02-22T10:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use NVM and EEPROM partition in S32k146?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1604461#M2931</link>
      <description>&lt;P&gt;That example configure all 64 kB FlexNVM as&amp;nbsp;&lt;STRONG&gt;EEPROM backup&lt;/STRONG&gt;. But you want to configure 32 kB&amp;nbsp;FlexNVM as &lt;STRONG&gt;Data Flash&lt;/STRONG&gt; and 32kB as&amp;nbsp;&lt;STRONG&gt;EEPROM backup&lt;/STRONG&gt;? so:&lt;BR /&gt;ret = FLASH_DRV_DEFlashPartition(&amp;amp;flashSSDConfig, 0x02u, &lt;STRONG&gt;0x03u&lt;/STRONG&gt;, 0x0u, false, true);&lt;/P&gt;
&lt;P&gt;Please notice the NOTE of that example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FLASH Partitioning S32K146 RTM 4.0.3.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212101iD9106870CEDB4BCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="FLASH Partitioning S32K146 RTM 4.0.3.png" alt="FLASH Partitioning S32K146 RTM 4.0.3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flash_partitioning_s32k146 Debug_RAM.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212104i13D498DF570F89FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="flash_partitioning_s32k146 Debug_RAM.png" alt="flash_partitioning_s32k146 Debug_RAM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flash_partitioning_s32k146 Debug.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212105iDF508B034FB51DE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="flash_partitioning_s32k146 Debug.png" alt="flash_partitioning_s32k146 Debug.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 09:10:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1604461#M2931</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-02-23T09:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use NVM and EEPROM partition in S32k146?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1604475#M2932</link>
      <description>&lt;P&gt;Hey Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, This worked, I have one more question?&lt;/P&gt;&lt;P&gt;How to write in 32kB backup eeprom like what should be address ? and how to read back data from NVM(DFlash) or EEPROM ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 09:28:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1604475#M2932</guid>
      <dc:creator>s32k146_ige</dc:creator>
      <dc:date>2023-02-23T09:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use NVM and EEPROM partition in S32k146?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1605132#M2936</link>
      <description>&lt;P&gt;When using the EEPROM of S32K1xx, user does not need to write to the EPROM backup address. It is recommended that you read &lt;A href="https://www.nxp.com/docs/en/application-note/AN11983.pdf" target="_self"&gt;AN11983 Using the S32K1xx EEPROM Functionality&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AN11983.png" style="width: 616px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212251i72FBCC83B53F503C/image-size/large?v=v2&amp;amp;px=999" role="button" title="AN11983.png" alt="AN11983.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 09:18:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1605132#M2936</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-02-24T09:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use NVM and EEPROM partition in S32k146?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1605789#M2938</link>
      <description>Dear &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&lt;BR /&gt;i am unable to understand here concept of backup EEPROM, i did read the said application note, but failed to grasp if i am using partition setting as 32KB EEPROM and 32kb NVM (DFlash), what actually happens to 32KB EEPROM, as i am going to use bootloader 16KB of NVM is going to be used as Bootloader, so i am left with 16KB of DFlash, but what happens to 32KB backup EEPROM ?</description>
      <pubDate>Mon, 27 Feb 2023 05:32:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1605789#M2938</guid>
      <dc:creator>s32k146_ige</dc:creator>
      <dc:date>2023-02-27T05:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use NVM and EEPROM partition in S32k146?</title>
      <link>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1606463#M2941</link>
      <description>&lt;P&gt;The training video&amp;nbsp;&lt;A href="https://www.nxp.com/pages/benefit-from-flexnvm-flash-block-memory-in-s32k-mcus:TIP-S32K-FLEXNVM" target="_self"&gt; Benefit from FlexNVM Flash Block Memory in S32K MCUs&lt;/A&gt; introduces &lt;STRONG&gt;Emulated EEPROM&lt;/STRONG&gt; from 10:08&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 01:50:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/How-to-use-NVM-and-EEPROM-partition-in-S32k146/m-p/1606463#M2941</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-02-28T01:50:51Z</dc:date>
    </item>
  </channel>
</rss>

