This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS0332: Cannot read the erase the data of EEPROM

Part Number: TMS570LS0332
Other Parts Discussed in Thread: HALCOGEN, TMS570LS3137

Tool/software:

Hi experts,

My customer is using the eeprom function on the TMS570LS0032.

They found that serval chips cannot read and erase the eeprom. They use TI's SDK function to read and erase the eeprom, and the function will feedback the fail status.

For more details, if they export the bin file of eeprom in error chip and load the bin file to a normal chip eeprom. The eeprom on normal chip also cannot be read and erased.

The bin files can be found on the follow links:

tidrive.itg.ti.com/.../7f6b1053-e8ed-4866-97b5-184e9e5cbb19

tidrive.itg.ti.com/.../6afb88a4-de8f-46d2-8704-c192cd451dc4

tidrive.itg.ti.com/.../885da4e0-6098-477b-b783-7e0ea4ed83a6

The details of code and eeprom configuration are as follows:

The ID of error chip is as follow:

Any suggestions for this issue?

Thanks,

Leo

  • Hi Leo,

    According to TRM the size of one EEPROM sector is 4KB:

    And according to FEE user manual the size of all data blocks should not exceed the virtual sector length.

    If i calculate the size of all the data blocks in your FEE configuration it becomes ~5830 bytes, so which is exceeding the one virtual sector size.

    So, my suggestion would be can you please combine two physical sectors into one virtual sector and use it?

    I mean something as below:

    --
    Thanks & regards,
    Jagadish.

  • Hi Jagadish,

    Thank you for your support.

    My customer want to know is this the reason that the eeprom cannot be read and erased?

    And I notice that the user's guide says that "When a Data Packet write exceeds the available space of the current Virtual Sector, the Data Block structure is duplicated in the next Virtual Sector to be made active." So it that means even if the total bytes of the data block exceed one sector, the eeprom should be able to be read and erased normally?

    Thanks,

    Leo

  • Hi Jagadish,

    Please check the .bin file from the customer.

    tidrive.itg.ti.com/.../7f6b1053-e8ed-4866-97b5-184e9e5cbb19

    https://tidrive.itg.ti.com/a/F-zavR3s2uEF7Nr5/6afb88a4-de8f-46d2-8704-c192cd451dc4?l

    https://tidrive.itg.ti.com/a/OFjMQzJYzB4qWMwH/885da4e0-6098-477b-b783-7e0ea4ed83a6?l

    Thanks,

    Leo

  • Hi Leo,

    My customer want to know is this the reason that the eeprom cannot be read and erased?

    I can't guarantee 100%, but this configuration could lead to the errors because,

    consider a situation that you have filled entire virtual sector with different individual block data (i mean entire virtual sector have valid data), now if we try to write any new data to the virtual sector then the FEE will try to push all the active data of previous sector to the new virtual sector and it should also try to fill the new data in this new sector, how can it fill it as all the data is more than virtual sector size? The FEE should be able to accommodate all the valid data and new block data in one single sector otherwise it might keep on write same data again and again to all the sectors and can't take any new data.

    --
    Thanks & regards,
    Jagadish.

  • Hi Jagadish

    For example, if users divide the eeprom to 4KB * 4, and try to store the 5KB data block. The eeprom controller will try to store the data block to sector1(4 KB), it found the the space is not enough to store data block. And than it try to store it to sector2(4KB), and it fail. And than sector3, sector4, secotr1.....so that the users cannot read any data from eeprom. It is right?

    If so, how can the user erase the whole eeprom.

    Thanks,

    Leo

  • And in this page, it has been divide into 2 EEP

    Each of data block will not exceed the sector range?

  • Hi Leo,

    And than it try to store it to sector2(4KB), and it fail. And than sector3, sector4, secotr1.....so that the users cannot read any data from eeprom. It is right?

    You are correct and my understanding is also same (however i never tested in practical but this could happen). 

    If so, how can the user erase the whole eeprom.

    First of all, customer should need to make correct configuration, i mean he should need to make sure virtual sector size greater than all the sum of all data blocks size.

    Without correcting this configuration, it is difficult to guide on what to do.

    So, my suggestion would be better to do configuration related modifications and then reprogram the complete code into the flash.

    --
    Thanks & regards,
    Jagadish.

  • Each of data block will not exceed the sector range?

    I never tried this configuration. Let me check on this.

  • Hi Jagadish,

    First of all, customer should need to make correct configuration, i mean he should need to make sure virtual sector size greater than all the sum of all data blocks size.

    The customer feedback that they cannot do the change you sent. They must set the No of EEPS to zero and then they can combine the virtual sector, but it do not match their application.

    Could you please show your configuration on FEE Global?

    Thanks,

    Leo

  • Hi Leo,

    And in this page, it has been divide into 2 EEP

    Sorry i missed this, 

    If they are using 2 EEP's then its fine. The configurations look fine, and in this case the total data block size not more than the virtual sector size.

    I also tested the customer configuration on my end.

    And i found that EEP1 using first two virtual sectors (VS1 and VS2) and EEP2 using next two virtual sectors (VS3 and VS4).

    So, in this case i don't see any configuration related errors. Maybe the issue is not related to the configuration.

    Is it possible to share the customer FEE dump which have the issue?

    --
    Thanks & regards,
    Jagadish.

  • Hi Jagadish,

    Is it possible to share the customer FEE dump which have the issue?

    FEE dump is FEE configuration file? How to export it by HALCoGen?

    Maybe you can try this eeprom bin file I reply before.

    Our customer say this is their eeprom data file. They load the eeprom data to the TMS570's eeprom, after that, they cannot access eeprom.

    Thanks,

    Leo

  • Hi Leo,

    FEE dump is FEE configuration file? How to export it by HALCoGen?

    Not FEE configuration.

    I am asking about the data in the flash bank-7 for analysis. Can you please ask customer to export the data and provide it?

    --
    Thanks & regards,
    Jagadish.

  • Hi Jagadish,

    The data in flash7 is as follows (stored in bin file):

    tidrive.itg.ti.com/.../6afb88a4-de8f-46d2-8704-c192cd451dc4

    https://tidrive.itg.ti.com/a/OFjMQzJYzB4qWMwH/885da4e0-6098-477b-b783-7e0ea4ed83a6?l

    Thanks,
    Leo

  • another two file:

    https://tidrive.itg.ti.com/a/K2i5_iFouaA5aLm6/7f6b1053-e8ed-4866-97b5-184e9e5cbb19?l

    https://tidrive.itg.ti.com/a/F-zavR3s2uEF7Nr5/6afb88a4-de8f-46d2-8704-c192cd451dc4?l

    Any of these three bin files is FLASH7 data. The customer make many test and find out the three group of error data in FLASH7

  • HI Leo,

    The data in flash7 is as follows (stored in bin file):

    tidrive.itg.ti.com/.../6afb88a4-de8f-46d2-8704-c192cd451dc4

    tidrive.itg.ti.com/.../885da4e0-6098-477b-b783-7e0ea4ed83a6

    After analyzing this data i found this:

    I could see 3 active virtual sectors. This is unusual, because for one EEPROM there should be only one active virtual sector. Here we declared two EEPROMS, EEP1 with first two virtual sectors and EEP2 with 3rd and 4th virtual sectors. That means there should be only two active sectors one in the first two virtual sectors and other one in 3rd and 4th virtual sectors.

    I don't understand how customer end up with this scenario,  i tried with customer configurations and i tried to reset the board at different scenarios but nothing working and all i could see is only two virtual sectors at any point of time. I don't have LS0332 board i did this on my TMS570LS3137. Please let me know If customer have any suggestions to trigger this issue.

    --
    Thanks & regards,
    Jagadish.