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.

Flash_Program() time



Hello,

I'm using the Flash_Program function, from the 2803x_FlashAPI, and the time it takes is not very consistent.

I understand that the time depends on the actual flash hardware, but I don't know how long this function can take in worst case.

Is there any specification of the typical and maximum time this function can take to write a flash block?

If there is no formal spec, is there any number I can use to a time-out of this function?

Thanks,

Max

  • Max

    You can refer to the Flash timing section in the data sheet for typical flash program time.

    -Vaish

  • Hi Max,

    I posted a similar question in the forum some time ago. TI said by this time that it is better not to use any timeouts during FLASH operations, as the times are strongly dependent from Temperature, and FLASH ageing. Instead they recommend to use the internal FLASH API timeout.
    In practive I realized, that these times vary vastly between every target, and within the targets even the flash sectors dont have similar program/erase times. Sad but true...

    BR Andreas

  • Andreas,

    Thanks for the answer.

    That's exactly what I'm seeing. Big variations even within the same DSP.

    I still would like to know how much is the maximum... for example, based on the datasheet, the typical time for a 16-bit word is supposed to be 50us. How much is the maximum? 500us? 5ms?

    Thanks,

    Max

  • Hi,

    I am in a similar situation where I need to know the maximum time the Flash_Program() operation can take.
    Is there an absolute timeout value defined in the API or does it depend entirely on the state of the flash memory?

    I would also like to know the maximum time the Flash_Erase() function can take because I have a requirement
    regarding max boot time and calls this function during boot.

    Hope someone can answer these questions.

    Regards,
    Anders