Part Number: TMS320F28069
Hello,
Could you please advise how to add a time out mechanism to the API Flash2806x_Erase() ?
Reading (Flash2806x_API_Quickstart.pdf), my idea would be counting timer interrupts, but it would not useful. The API sometimes disable the interrupt. It would be harmful for the flash memory cells to abort the flash memory operation.
Let me share the backgound.
My customer experienced a phenomenon that the flash API Flash2806x_Erase() didn't return when its arguments were not correct.
Now they are doing a workarounds.
Of course they will correct ther arguments. At the same time, they asked me ideas to add a time out mechanism for the API Flash2806x_Erase().
Notes:
- The customer arguments were no good for their application code, but in-range for the F28069 hardeware.
- They called the Flash2806x_Erase() from RAM.