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.

F28035 Flash API erase

Hi,

I'm working on a module to configure some parameters of a F28035 in certain Flash sector. I was wondering if it's possible to launch a flash erase of a sector and continue to execute the program code. It would poll some bits and when erase is done, it programs what need to be programmed...

I'm looking for a way to continue the execution of my program while I erase a sector...

Thanks for any help

  • Mosin,

    You cannot access the flash at any point during a flash erase or program operation.  Any code or data stored in a different flash sector is fully unavailable for the duration.  There is a user assignable callback function that is periodically executed during the erase process, but this function must be located in RAM.  It is typically very very difficult to keep your application running while operating on the flash.  Everything would need to fit in RAM, which is not the usual situation.  Even then, the flash API execution would likely be intrusive to realtime operation of your application.

    Regards,

    David