<?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: EEPROM corrupted data after power down</title>
    <link>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1375692#M12886</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/111612"&gt;@danielreinwald&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you please implement the EEE initialization flow chart from AN11983, Figure 12.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN11983.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN11983.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It is important to make sure the FlexRAM data match the FlexNVM data.&lt;/P&gt;
&lt;P&gt;Also, how do you connect the debugger exactly?&lt;/P&gt;
&lt;P&gt;What debugger do you use and what is the configuration of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&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;</description>
    <pubDate>Tue, 23 Nov 2021 13:59:32 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2021-11-23T13:59:32Z</dc:date>
    <item>
      <title>EEPROM corrupted data after power down</title>
      <link>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1369971#M12740</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;i'm trying to save some data to the EEPROM of the S32K146. Regarding to the documentation given (AN11983) and community posts, code is working and storing data into the intended address space (0x1400 0000).&lt;/P&gt;&lt;P&gt;After disconnecting the debugger, switch off the power supply and vice versa, stored data in the address space is corrupted. My understand of the app note is that the data remains correct after power switching. Now i'm searching for the problem data gets corrupted.&lt;/P&gt;&lt;P&gt;Maybe someone can help me out finding the solution? Below my test code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielreinwald_4-1636637131706.png" style="width: 595px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161960i33744BF97EA52CA0/image-dimensions/595x171?v=v2" width="595" height="171" role="button" title="danielreinwald_4-1636637131706.png" alt="danielreinwald_4-1636637131706.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielreinwald_1-1636637025668.png" style="width: 494px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161957i152A5D93DF1CDE5B/image-dimensions/494x423?v=v2" width="494" height="423" role="button" title="danielreinwald_1-1636637025668.png" alt="danielreinwald_1-1636637025668.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielreinwald_2-1636637043035.png" style="width: 508px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161958i2D1B6AB61FAFA8E9/image-dimensions/508x322?v=v2" width="508" height="322" role="button" title="danielreinwald_2-1636637043035.png" alt="danielreinwald_2-1636637043035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielreinwald_3-1636637068182.png" style="width: 516px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161959i1F8EEDB7079825B3/image-dimensions/516x495?v=v2" width="516" height="495" role="button" title="danielreinwald_3-1636637068182.png" alt="danielreinwald_3-1636637068182.png" /&gt;&lt;/span&gt;&lt;/P&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 13:25:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1369971#M12740</guid>
      <dc:creator>danielreinwald</dc:creator>
      <dc:date>2021-11-11T13:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM corrupted data after power down</title>
      <link>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1370558#M12747</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/111612"&gt;@danielreinwald&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems like the application is writing the EEPROM in an endless loop.&lt;/P&gt;
&lt;P&gt;Are you sure the power is lost when the FTFC controller is idle?&lt;/P&gt;
&lt;P&gt;Can you please share the project so that I can test it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 09:18:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1370558#M12747</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-11-12T09:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM corrupted data after power down</title>
      <link>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1374826#M12872</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for replying and sorry for my delayed answer i was on vacation.&lt;/P&gt;&lt;P&gt;The FTFC Controller should be idle. I've added "i = 0" into the while loop to sure this condition.&lt;BR /&gt;So the endless loop now shouldn't rewrite the eeprom after i = 50.000.000, as you have mentioned it.&lt;/P&gt;&lt;P&gt;My test sequence is described below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1.&lt;/STRONG&gt; Program S32K146 over S32DS and J-Link Debugger (Jtag)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2.&lt;/STRONG&gt; Start Software with S32DS and wait until "while (i &amp;lt;= 50.000.000)" is ready, so that data gets written to the eeprom (delay takes round about 16 seconds)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3.&lt;/STRONG&gt; Turn off the voltage power supply directly after Step 2. and disconnect Debugger&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 4. &lt;/STRONG&gt;Turn on the voltage power supply and connecting the Debugger ("while (i &amp;lt;= 50.000.000)" now prevents rewriting of the eeprom between turning on the voltage power supply and connecting the debugger)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 5. &lt;/STRONG&gt;Check if data is correct or not (below pictures of the data space)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielreinwald_0-1637564930252.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162778i1F3050C6F75ECC00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielreinwald_0-1637564930252.png" alt="danielreinwald_0-1637564930252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Correct Data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielreinwald_1-1637565842325.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162784iD8D43C69FA411DF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielreinwald_1-1637565842325.png" alt="danielreinwald_1-1637565842325.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Corrupted Data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a background information the same phenomenon also happens on my other application projects.&lt;/P&gt;&lt;P&gt;I shared the project. Thanks for your support.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 07:38:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1374826#M12872</guid>
      <dc:creator>danielreinwald</dc:creator>
      <dc:date>2021-11-22T07:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM corrupted data after power down</title>
      <link>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1375692#M12886</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/111612"&gt;@danielreinwald&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you please implement the EEE initialization flow chart from AN11983, Figure 12.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN11983.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN11983.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It is important to make sure the FlexRAM data match the FlexNVM data.&lt;/P&gt;
&lt;P&gt;Also, how do you connect the debugger exactly?&lt;/P&gt;
&lt;P&gt;What debugger do you use and what is the configuration of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&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;</description>
      <pubDate>Tue, 23 Nov 2021 13:59:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1375692#M12886</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-11-23T13:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM corrupted data after power down</title>
      <link>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1376416#M12906</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;i rewrite my software by using the flow chart and NXP example project. There were errors in the initialization and the flexram write mode initialization was completely missing.&lt;/P&gt;&lt;P&gt;Now it works without data loss at power switching.&lt;/P&gt;&lt;P&gt;Only for understanding, the quick write status query is only useful if the power lost happens during a write access to the eeprom?&lt;/P&gt;&lt;P&gt;Thank you for helping me out with this issue.&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 15:48:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1376416#M12906</guid>
      <dc:creator>danielreinwald</dc:creator>
      <dc:date>2021-11-24T15:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM corrupted data after power down</title>
      <link>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1376419#M12907</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/111612"&gt;@danielreinwald&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm glad it works now.&lt;/P&gt;
&lt;P&gt;The quick write status query also reports the sector erase count.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1637769287764.png" style="width: 621px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163115i89BBDFB245739B19/image-dimensions/621x194?v=v2" width="621" height="194" role="button" title="danielmartynek_0-1637769287764.png" alt="danielmartynek_0-1637769287764.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 15:56:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/EEPROM-corrupted-data-after-power-down/m-p/1376419#M12907</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-11-24T15:56:36Z</dc:date>
    </item>
  </channel>
</rss>

