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.

TMS320F28335: Using the flash memory as an EEPROM on the TMS320C28335 chipset

Part Number: TMS320F28335

Hi Everybody

I encountered a problem in using the flash memory as an EEPROM on the TMS320C28335 chipset[1]. The subject is that when writing EEPROM, sometimes the execution time of the EEPROM_Write() function takes about 1.5 seconds and, given that we have used an external watchdog with a time of 0.8 seconds, the DSP is reset, when the DSP is restarted, the EEPROM has been erased. Of course, I removed the Watchdog chipset from the circuit, and I saw that in those cases, the execution time of the EEPROM_Write() function takes about 1.5 seconds, and eventually, the writing process hasn’t done and the EEPROM hasn’t erased. It seems to me that the EEPROM corruption arises from resetting the DSP while working with the flash memory, but I do not understand the cause of the tacking the execution time of the EEPROM_Write() function about 1.5 seconds, as this process typically takes about 10 milliseconds. If possible, please help me to solve this problem.

With Regards



[1] According to “Application Report SPRAB69–September 2009”

  • Hi Ali,

    Can you go one more level into the EEPROM_Write() to check which fuction is taking more time?

    Can you please clarify what do you meant by "as this process typically takes about 10 milliseconds". Are you comparing with EEPROM_Write on a different device or a general programing flash memory?

    Thanks,
    Katta
  • Hi Katta,

    I went two more level into EEPROM_Write() and found EEPROM_Erase() function is executing and taking more time, while usually, this function doesn't execute.

    "Can you please clarify what do you meant by "as this process typically takes about 10 milliseconds". Are you comparing with EEPROM_Write on a different device or a general programing flash memory?" In my project, I update the EEPROM Memory by a serial connection from my laptop, I have tested the execution time of the EEPROM_Write(), it usually takes about 10 milliseconds, but sometimes when I want to change the memory, I see the DSP is reset and my serial connection is disconnected. In these situations, the execution time of the EEPROM_Write() takes about 1.5 seconds.

    thanks,

    Ali

  • Ali,

    Typical Flash erase time of F28335 flash sector is 2secs. In some case it may be even more than that. So, it is not unusual to see 1.5 secs of EEPROM_Erase time.

    processors.wiki.ti.com/.../FAQs

    Regards,
    Manoj