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.

[FAQ] F05 Flash: Can I program one sector while running code from another sector?

Q: Can I program one flash sector while executing code from another sector?

  • A:

    This answer refers to C2000 devices which have F05 flash technology (Which devices include F05 Flash?)

    The architecture of the flash is such that you cannot program F05 based C2000 devices while running from flash. You must run the Flash API programming code from single wait state non-flash memory (RAM). When programming the flash, code cannot also read the flash. The F05 flash is divided into sectors and it doesn't matter if you're reading a different sector than you are writing to. It all looks like one big flash so far as programming goes.

    The F05 Flash API library implements a callback function that periodically calls application code at non time critical points of programming. The callback function in the API does not put the Flash back into a readable state. Therefore, although the ability to run application code while programming flash is there, it is limited to what you can run out of RAM.