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 flash or OTP be programmed incrementally? Can I program one word, or one bit, at a time?

Q: Can a flash or OTP location be programmed incrementally? Can I program one word, or one bit, at a time?

  • A:

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

    To understand the fundamentals of F05 flash programming, refer to the Flash API documentation for your specific device: 

    • C2000Ware_<version>\libraries\flash_api\<device>\docs\

    Yes. You can program F05 flash and OTP incrementally one word at a time or one bit at a time. For example, you can program bit 0, and then later program bit 1 within single word. 

    In order to protect the flash, the algorithm will not attempt to program a bit that is already programmed. For example, you can program 0xFFFE (program bit 0) and later program 0xFFFC (program bit 1). In the latter case the algorithm will recognize that bit 0 is already programmed and only program bit 1. Just remember, the program operation can never bring a 0 back to a 1 and that the OTP cannot be erased.

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