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.

TMS320F28069: flash API callback function

Part Number: TMS320F28069


Hi Champ,

The  Flash API document  has below description:

The erase function will invoke the callback function every 3-4ms. This is the longest duration between
callback function invocations, except for the ToggleTest function.

But when i test the callback interval use I/O toggle method  , i found the callback function  invoke interval varying when erased one flash sector, the range is around 15us  to 3ms.and the total invoke time when erase one flash sector around 90000 times (MyCallbackCounter around 90000).

Can any one explain the reason?

  • Chen,

    Flash_Erase function available in Flash API function is composed of other internal flash API functions which are called in the following order.

    1. Fl28x_CompactSector
    2. Fl28x_ClearSector
    3. Fl28x_EraseSector
    4. Fl28x_CompactSector

    Each of these functions have the ability to call FlashCallBack function. Due to the nature of different flash algorithms executed, the timing of each of these functions vary significantly and hence you see timing variation to call FlashCallBack function. Also, the time taken for each of flash words to be programmed, erased (or) compacted vary because of analog nature of flash erase / program. This also adds to the timing variation of Flashcallback function.

    Regards,

    Manoj

  • Hi Manoj,

    Got it,

    Thanks a lot!