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.

TMS320F280039C: flash used as EEPROM to store calibration data

Part Number: TMS320F280039C
Other Parts Discussed in Thread: UCD3138

Customer would like to use flash to emulate EEPROM to store the calibration data of PSU in F280039. 

In the actual applications, the calibration data is required to changed in the manufacture process. They are concerned the minimum erase size is a sector of 8KB, so if they need to update the data, they need to erase all the calibration data and then write once again. Considering the potential interference during the programing, they need to use 2 same flash space for the calibration data. If so, they need to use 2 8KB sectors for this purpose, right? Could you please help share any idea to optimize it? Thank you.

  • Hi Aki,

    Yes, your understanding is correct. They will have to use 2 flash sectors to store calibration data and keep swapping every time they update the calibration data. They can optimize this by copying the data into RAM before erasing the Flash sector, and then program the Flash with updated calibration data, but like you said in this process if something goes wrong, their is a potential risk of loosing the data, as RAM is volatile memory.

    Also copying Vamsi who is our Flash expert, in case he has any better ideas.

    Best Regards,

    Nirav

  • Nirav,

    Thank you for the explanation. With that, it will be better to provide smaller sector size like 4KB, or the best way is to create sth like data flash as UCD3138 did. Could we consider this in the future devices?

  • Hi Aki,

    Yes, we did consider this and our newer devices will have 2KB of Flash Sector.

    Best Regards,

    Nirav