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.

TMS320F28027F: V2.01 Flash API taking 1.2 seconds to erase a sector

Part Number: TMS320F28027F
Other Parts Discussed in Thread: C2000WARE

Hi,

As the title suggests flash API V2.01 is taking around 1.2 seconds to erase a single sector of Flash when used on the TMS320f2807f. Upgrading to the latest version of C200ware (3.14) didnt appear to make any difference to this speed.

We currently have an issue whereby there is an external watchdog that we cannot change the period of nor disable and the reset is around 800ms, so we are looking to try and speed up the erase so that the watchdog can be serviced before it resets itself.

Is it possible to do this? is there newer libraries that are faster?

Any advice welcomed!

Chris

  • Chris,

    Thanks for reaching out to the TI E2E.  The erase time of the flash sectors are dependent on the charteristics of the silicon itself, and won't change with different versions of C2000 Ware.  Per the datasheet, each sector can typically take 2s for erase with a max of 10s.

    With that said, the erase function is interruptable at certain intervals, the max time that it can't be interrupted is only 4ms, so that would leave plenty of time to service your external WD.

    Here is the link to the API documentation, please see sections 13 and 15 for information on the callback function; this will be called automatically at the min duration.  This is also included in the flash API example in C2000Ware for the F28027.  You could place whatever GPIO toggle to the external WD in this function.

    Best,

    Matthew

  • Thank you for pointing me to this, it was really helpful and has solved our problem. Much appreciated.