<?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: MPC5744P - Emulated eeprom driver - Blankspace pointer not initialized properly in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1375731#M19692</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;which return code did you get when calling EEE_DRV_InitEeprom()?&lt;BR /&gt;And what do you mean by "warm reboot" and "soft reboot"? Is that software reset? Or are you jumping between the bootloader and application directly without reset?&lt;BR /&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
    <pubDate>Tue, 23 Nov 2021 15:25:20 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2021-11-23T15:25:20Z</dc:date>
    <item>
      <title>MPC5744P - Emulated eeprom driver - Blankspace pointer not initialized properly</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1373782#M19651</link>
      <description>&lt;P&gt;We are using S32 Design Studio for Power Architecture v2.1.7 with S32 SDK For Power Architecture Version 3.0.0 RTM version 2.1.0&lt;/P&gt;&lt;P&gt;We are using Emulated EEprom driver to perform non volatile data storage on MPC5744P.&lt;/P&gt;&lt;P&gt;We configured 2 blocks of 16KB (located at addresses 0x00800000 and 0x00804000).&lt;/P&gt;&lt;P&gt;The data that is saved is 16 bytes long, which make the record saved to the flash 32 bytes long.&lt;/P&gt;&lt;P&gt;The EEPROM is used to share info between bootloader and application.&lt;/P&gt;&lt;P&gt;Write to EEPROM is performed whenever a warm reboot request is made.&lt;/P&gt;&lt;P&gt;After some event on our device after which a soft reboot was performed, the device was hung up, unresponsive.&lt;/P&gt;&lt;P&gt;After performing some investigations, we found out that it hung up because a write access to EEPROM was performed after bootup and the write access caused an hardware exception by accessing a Null pointer. The pointer was the blankSpace pointer of the block configuration structure, which contains the pointer where to write the data record in flash.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We found out that when block 0 is completely erased (where not even erase counter is saved at the beginning of the block) and the block 1 is completely full, blankSpace is set to 0 after calling EEE_DRV_InitEeprom().&lt;/P&gt;&lt;P&gt;I attached a binary file in which were saved the flash content (from address 0x00800000 to 0x00808000) where the 2 emulated EEPROM blocks are located.&lt;/P&gt;&lt;P&gt;We determined that an issue occurred when block0 was full and got erased. For some reason, the erase counter never got saved.&lt;/P&gt;&lt;P&gt;We verified that eeprom initialization was not having the same behavior (uninitialized blankSpace pointer) under the following conditions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;block 0 full and block 1 completely erased&lt;/LI&gt;&lt;LI&gt;block 0 and 1 completely erased&lt;/LI&gt;&lt;LI&gt;block 0 active (not full) and block 1 completely erased&lt;/LI&gt;&lt;LI&gt;block 0 completely erased and block 1 active (not full)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Are you aware of this issue ? Is there any mitigation strategy we could use to prevent this to happen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 18:39:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1373782#M19651</guid>
      <dc:creator>nlarose</dc:creator>
      <dc:date>2021-11-18T18:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P - Emulated eeprom driver - Blankspace pointer not initialized properly</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1375731#M19692</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;which return code did you get when calling EEE_DRV_InitEeprom()?&lt;BR /&gt;And what do you mean by "warm reboot" and "soft reboot"? Is that software reset? Or are you jumping between the bootloader and application directly without reset?&lt;BR /&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 15:25:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1375731#M19692</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2021-11-23T15:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P - Emulated eeprom driver - Blankspace pointer not initialized properly</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1375820#M19694</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EEE_DRV_InitEeprom() was returning&amp;nbsp;&lt;/SPAN&gt;STATUS_SUCCESS.&lt;/P&gt;&lt;P&gt;By warm reboot, I meant software reset.&lt;/P&gt;&lt;P&gt;There is always a reset involved (power on or soft reset).&lt;/P&gt;&lt;P&gt;Below is an illustration of two typical use of our bootloader.&lt;/P&gt;&lt;P&gt;Case 1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Case 1" style="width: 717px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163007i53938F6344434B04/image-size/large?v=v2&amp;amp;px=999" role="button" title="bootloader_case1.png" alt="Case 1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Case 1&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Case 2:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Case 2" style="width: 720px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163008iD402433F0A5188C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="bootloader_case2.png" alt="Case 2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Case 2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 21:20:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1375820#M19694</guid>
      <dc:creator>nlarose</dc:creator>
      <dc:date>2021-11-23T21:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P - Emulated eeprom driver - Blankspace pointer not initialized properly</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1379769#M19755</link>
      <description>&lt;P&gt;Hi Nicolas,&lt;/P&gt;
&lt;P&gt;sorry for delayed response, I was out of office a couple of days.&lt;/P&gt;
&lt;P&gt;I was playing with my project, trying to delete the blocks at different situations but InitEeprom was always able to do the recovery and blankSpace was initialized accordingly.&lt;/P&gt;
&lt;P&gt;I could see described behavior only when I loaded your binary to the blocks. However, I expect I do not have exactly the same configuration as you have. Could you send me a screenshot of your configuration of eee? Is it exactly the same in the app and bootloader?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 14:19:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1379769#M19755</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2021-12-01T14:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P - Emulated eeprom driver - Blankspace pointer not initialized properly</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1379884#M19759</link>
      <description>&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Your findings are very interesting.&lt;/P&gt;&lt;P&gt;For your information, the eeprom code is the same in the application and the bootloader.&lt;/P&gt;&lt;P&gt;I supposed by screenshot you meant the processor expert configuration of emulated eeprom.&lt;/P&gt;&lt;P&gt;I attached the screenshot, the generated c and h files that were generated by processor expert.&lt;/P&gt;&lt;P&gt;Let me know if you need more information.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 16:03:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1379884#M19759</guid>
      <dc:creator>nlarose</dc:creator>
      <dc:date>2021-12-01T16:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P - Emulated eeprom driver - Blankspace pointer not initialized properly</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1380642#M19779</link>
      <description>&lt;P&gt;Ok, I'm able to reproduce it on my side too. I will discuss this with driver owner. I'm afraid it will take some time. I will let you know.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 13:03:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1380642#M19779</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2021-12-02T13:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P - Emulated eeprom driver - Blankspace pointer not initialized properly</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1380724#M19780</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm glad you could reproduce the issue.&lt;/P&gt;&lt;P&gt;I am eager to hear the conclusion of the driver owner.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 14:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-Emulated-eeprom-driver-Blankspace-pointer-not/m-p/1380724#M19780</guid>
      <dc:creator>nlarose</dc:creator>
      <dc:date>2021-12-02T14:59:08Z</dc:date>
    </item>
  </channel>
</rss>

