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.

TMS470MF06607: During Flash memory Erase/Program, does the normal code execution stall?

Part Number: TMS470MF06607

Once the function "Flash_Erase_B" is called to erase the flash memory is called, Does the code execution stall until Erase is completed?

Does ISR get hit during this Erase?

During testing, i noticed ISR also does not get hit until the execution is completed.

Erase of each sector nominal time is 1.5s to max 15s. How to perform other functions if the entire time is blocked?

I read in few documents that the watchdog needs to be disabled before Erase/Program. and enabled once completed. Why is this recomended?

Is there a way to service my watchdog during Erase also?

  • Yes, while programming or erasing a sector of flash, none of the flash locations in that bank can be read. This will stall the CPU until the erase has completed. When erasing a sector in the main flash (bank 0) the only way to keep executing is to copy instructions to the RAM and execute there or to execute code exclusively from bank 1.