<?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 - MBDT - Runtime data store &amp;amp; retention during power cycle. in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K146-MBDT-Runtime-data-store-amp-retention-during-power-cycle/m-p/2140954#M10362</link>
    <description>&lt;P&gt;Dear NXP Support Team,&lt;/P&gt;&lt;P&gt;I hope this message finds you well.&lt;/P&gt;&lt;P&gt;I’m currently working on a project involving the S32K146 MCU, and I’m using Simulink to handle EEPROM operations. I’ve encountered some issues with data retention that I haven’t been able to resolve, and I’d really appreciate your guidance.&lt;/P&gt;&lt;P&gt;In my setup, I’m trying to store values to EEPROM using the "Flash_EEEWrite"&amp;nbsp;block. I’m rotating values from a Repeating Sequence block and writing them after initializing the "Flash_Config". To ensure proper initialization, I’ve also added a 100ms delay before performing any write operations.&lt;/P&gt;&lt;P&gt;However, after a power cycle, the values I’ve written are not retained. Here’s what I’ve observed:&lt;/P&gt;&lt;P&gt;When the data type of the FLASH_EEEWrite block is set to&amp;nbsp; uint32_t, the value read back is consistently 7fff(Hex)&lt;/P&gt;&lt;P&gt;When set to uint8_t, the value returned is 82(hex).&lt;/P&gt;&lt;P&gt;These values are constant regardless of the input, and do not reflect the values I’m writing.&lt;/P&gt;&lt;P&gt;I’m not sure if the issue lies in the configuration of EEPROM, the way I’m using the Simulink blocks, or perhaps a misunderstanding of how the FLASH_EEEWrite block works in this context.&lt;/P&gt;&lt;P&gt;I’ve attached the Simulink model I’m working with, in case it helps illustrate the setup more clearly.&lt;/P&gt;&lt;P&gt;Would you be able to provide any insight into what might be going wrong, or any recommended steps I should follow to ensure reliable EEPROM writes and retention across power cycles?&lt;/P&gt;&lt;P&gt;Thank you very much in advance for your time and support. I really appreciate any help or suggestions you can provide.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jul 2025 13:57:14 GMT</pubDate>
    <dc:creator>Rohit_Shivappa_Jigan</dc:creator>
    <dc:date>2025-07-25T13:57:14Z</dc:date>
    <item>
      <title>S32K146 - MBDT - Runtime data store &amp; retention during power cycle.</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K146-MBDT-Runtime-data-store-amp-retention-during-power-cycle/m-p/2140954#M10362</link>
      <description>&lt;P&gt;Dear NXP Support Team,&lt;/P&gt;&lt;P&gt;I hope this message finds you well.&lt;/P&gt;&lt;P&gt;I’m currently working on a project involving the S32K146 MCU, and I’m using Simulink to handle EEPROM operations. I’ve encountered some issues with data retention that I haven’t been able to resolve, and I’d really appreciate your guidance.&lt;/P&gt;&lt;P&gt;In my setup, I’m trying to store values to EEPROM using the "Flash_EEEWrite"&amp;nbsp;block. I’m rotating values from a Repeating Sequence block and writing them after initializing the "Flash_Config". To ensure proper initialization, I’ve also added a 100ms delay before performing any write operations.&lt;/P&gt;&lt;P&gt;However, after a power cycle, the values I’ve written are not retained. Here’s what I’ve observed:&lt;/P&gt;&lt;P&gt;When the data type of the FLASH_EEEWrite block is set to&amp;nbsp; uint32_t, the value read back is consistently 7fff(Hex)&lt;/P&gt;&lt;P&gt;When set to uint8_t, the value returned is 82(hex).&lt;/P&gt;&lt;P&gt;These values are constant regardless of the input, and do not reflect the values I’m writing.&lt;/P&gt;&lt;P&gt;I’m not sure if the issue lies in the configuration of EEPROM, the way I’m using the Simulink blocks, or perhaps a misunderstanding of how the FLASH_EEEWrite block works in this context.&lt;/P&gt;&lt;P&gt;I’ve attached the Simulink model I’m working with, in case it helps illustrate the setup more clearly.&lt;/P&gt;&lt;P&gt;Would you be able to provide any insight into what might be going wrong, or any recommended steps I should follow to ensure reliable EEPROM writes and retention across power cycles?&lt;/P&gt;&lt;P&gt;Thank you very much in advance for your time and support. I really appreciate any help or suggestions you can provide.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 13:57:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K146-MBDT-Runtime-data-store-amp-retention-during-power-cycle/m-p/2140954#M10362</guid>
      <dc:creator>Rohit_Shivappa_Jigan</dc:creator>
      <dc:date>2025-07-25T13:57:14Z</dc:date>
    </item>
  </channel>
</rss>

