<?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>S32KのトピックRe: Issue with EEPROM Emulation for S32K144</title>
    <link>https://community.nxp.com/t5/S32K/Issue-with-EEPROM-Emulation-for-S32K144/m-p/777741#M2400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;Since you set FCCOB3 = 0, FlexRAM is loaded with valid EEPROM during reset sequence.&lt;BR /&gt;Do you poll EEERDY bit after POR? If set, the data should be ready. AN11983, 3.4 S32K1xx EEE startup&lt;/P&gt;&lt;P&gt;How are you stopping the execution after POR. You can check FCFG1_DEPART bitfield to see if the MCU has been partitioned already.&lt;BR /&gt;See the EEE initialization flow chart, Figure 10, AN11983.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2018 13:43:14 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2018-05-28T13:43:14Z</dc:date>
    <item>
      <title>Issue with EEPROM Emulation for S32K144</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-EEPROM-Emulation-for-S32K144/m-p/777740#M2399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We want to do use the EEPROM Emulation feature of&amp;nbsp;S32K144 to save data in Non Volatile Memory in our application.&lt;BR /&gt;I have read the EEPROM emulation application notes&amp;nbsp; and as per this application notes I have wrote few command to check the EEPROM functionality.&lt;BR /&gt;&lt;BR /&gt;I have wrote 3&amp;nbsp; string in flexNVM(at address&amp;nbsp;0x14000000). I have done power cycle to check the content but its not showing any data in memory. After Reset I have kept the break point before the Partition command executes again to avoid the data loss.Also I have used the below Memory Preservation options.&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/25502iE2B5C9B3299BCBFA/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;please find the below code. I have wrote below routines.Is there any command has to execute after every Software Reset ? or Memory controller will dump the backup data to FlexRAM Automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or Can I get example or sample code for EEPROM Emulation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void EEPROM_Emulation(void)&lt;BR /&gt;{&lt;BR /&gt; /*********SET UP THE FLASH CLOCK REGISTER********/&lt;/P&gt;&lt;P&gt;//EEE_Test_code();&lt;/P&gt;&lt;P&gt;/* FTFC clock has to enabled in SW */&lt;BR /&gt; PCC-&amp;gt;PCCn[PCC_FTFC_INDEX] |= PCC_PCCn_CGC_MASK;&lt;/P&gt;&lt;P&gt;while ((FTFC-&amp;gt;FSTAT &amp;amp; FTFC_FSTAT_CCIF_MASK) == 0x00); /* Bit Polling for Command Completion Check */&lt;/P&gt;&lt;P&gt;if(((FTFC-&amp;gt;FSTAT &amp;amp; FTFC_FSTAT_ACCERR_MASK) == 0x20) || ((FTFC-&amp;gt;FSTAT &amp;amp; FTFC_FSTAT_FPVIOL_MASK) == 0x10))&lt;BR /&gt; {&lt;BR /&gt; FTFC-&amp;gt;FSTAT = Clear_old_errors; /* Clear the old errors */&lt;BR /&gt; }&lt;BR /&gt; /* Program partition command */&lt;BR /&gt; FTFC-&amp;gt; FCCOB [3] = 0x80; /* FCCOB0: Selects the PGMPART command */&lt;BR /&gt; FTFC-&amp;gt; FCCOB [2] = 0x00; /* FCCOB1: No CSEc operation */&lt;BR /&gt; FTFC-&amp;gt; FCCOB [1] = 0x00; /* FCCOB2: No CSEc operation */&lt;BR /&gt; FTFC-&amp;gt; FCCOB [0] = 0x00; /* FCCOB3: FlexRAM loaded with valid EEPROM during reset sequence */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTFC-&amp;gt; FCCOB [7] = 0x02; /* FCCOB4: EEPROM data set size code: EEESIZE = 2 (4 kB) */&lt;BR /&gt; FTFC-&amp;gt; FCCOB [6] = 0x04; /* FCCOB5: FlexNVM Partition code: DEPART = 4 (Data flash: 0 kB, EEPROM&lt;BR /&gt; backup: 64 kB) */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; FTFC-&amp;gt;FSTAT = Flash_launch_command; /* flash launch Command */&lt;BR /&gt; while ((FTFC-&amp;gt;FSTAT &amp;amp; FTFC_FSTAT_CCIF_MASK) == 0x00); /* Bit Polling for Command Completion Check */&lt;/P&gt;&lt;P&gt;if(((FTFC-&amp;gt;FSTAT &amp;amp; FTFC_FSTAT_ACCERR_MASK) == 0x20) || ((FTFC-&amp;gt;FSTAT &amp;amp; FTFC_FSTAT_FPVIOL_MASK) == 0x10))&lt;BR /&gt; {&lt;BR /&gt; FTFC-&amp;gt;FSTAT = Clear_old_errors; /* Clear the old errors */&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTFC-&amp;gt; FCCOB [3] = 0x81; /* FCCOB0: Selects the SETRAM command */&lt;BR /&gt; FTFC-&amp;gt; FCCOB [2] = 0x00; /* FCCOB1: Make FlexRAM available for emulated EEPROM */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTFC-&amp;gt;FSTAT = Flash_launch_command; /* flash launch Command */&lt;BR /&gt; while ((FTFC-&amp;gt;FSTAT &amp;amp; FTFC_FSTAT_CCIF_MASK) == 0x00); /* Bit Polling for Command Completion Check */&lt;/P&gt;&lt;P&gt;EEE_Test_code();&amp;nbsp; &amp;nbsp; /* Writes 3 strings at Flex RAM adddress &lt;SPAN&gt;0x14000000&lt;/SPAN&gt;*/&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 07:54:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-EEPROM-Emulation-for-S32K144/m-p/777740#M2399</guid>
      <dc:creator>dharmendrag</dc:creator>
      <dc:date>2018-05-23T07:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with EEPROM Emulation for S32K144</title>
      <link>https://community.nxp.com/t5/S32K/Issue-with-EEPROM-Emulation-for-S32K144/m-p/777741#M2400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;Since you set FCCOB3 = 0, FlexRAM is loaded with valid EEPROM during reset sequence.&lt;BR /&gt;Do you poll EEERDY bit after POR? If set, the data should be ready. AN11983, 3.4 S32K1xx EEE startup&lt;/P&gt;&lt;P&gt;How are you stopping the execution after POR. You can check FCFG1_DEPART bitfield to see if the MCU has been partitioned already.&lt;BR /&gt;See the EEE initialization flow chart, Figure 10, AN11983.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 13:43:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Issue-with-EEPROM-Emulation-for-S32K144/m-p/777741#M2400</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-05-28T13:43:14Z</dc:date>
    </item>
  </channel>
</rss>

