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.

TMS320F28035: Using Flash

Part Number: TMS320F28035

Building a unit that tied to vehicle ignition so we don't know when it will be powered down but need to store at most 5 values to be retreated on power up.  Since flash is limited to 20,000 to 50,000 flashes, we will limit our saves based on change in value, time or something else ingenious.  The question is, if we are writing to flash when the power go down is there an issue beside just losing that save and possibly what was saved earlier?  I saw an earlier post that said writing during a power down can destroy the flash.  If there is no way around using the flash safely, any other suggestions?  I've considered I2C EEPROM, SPI EEPROM, etc.  Anybody else solved this type of problem before?

  • James,

    Losing device power supply during flash programming (just programming memory location without flash erase) WILL NOT damage flash. As you said, you might lose that write cycle, might have corrupted memory location (This doesn't mean damaged flash), lost power just after successful write cycle.

    But, if the device loses power during flash erase operation, it can possibly put the device in depletion which has the possibility of damaging the device. In some cases, we can use depletion recovery algorithm to bring the device out of depletion. But, if depletion recovery fails, the part is permanently damaged and the only option is to throw the device and replace it.

    Regards,

    Manoj

  • Hi Manoj,

    Thanks for your answer. 

    I have another question for you. If I losing device power supply during flash programming (no erase) of sector B for example, is it possible that another sector is corrupted (not damaged) ?

    Best regards,

    Martial

  • Martial,

    Sorry for replying late.

    Losing power supply during flash programming (ie without flash erase) of a particular sector shouldn't corrupt another sector.

    Please close this thread if your questions are answered.

    Regards,
    Manoj