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: What do the operations erase and program do?

Other Parts Discussed in Thread: C2000WARE

Q: What do the operations erase and program do?

  • A:

    Note: This answer applies to devices with F05 flash.  Refer to:  [FAQ] F05 Flash: Which C2000 devices have "F05 flash"?

    These operations are described in detail in the Flash API documentation for a specific device: C2000Ware_\libraries\flash_api\\docs\

    In summary:

    Erase:

    • Flash comes from the factory in an erased state.
    • The erase algorithm sets all bits to a "1"
    • The minimum amount of memory that can be erased is a sector.
    • Erase operates on the F05 flash bank and not on the OTP (one-time programmable memory)

    Program:

    • Program loads application code and/or data into flash by clearing bits in the memory to "0"
    • Program cannot move a bit from 0 to 1. 
    • Program operates on both the flash bank and the OTP
    • Program can operate on a single bit within a 16-bit word.

    For more F05 related FAQs refer to [FAQ] F05 Flash: Frequently Asked Questions