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.

Is the 280x Flash Byte-Writable?

I was wondering if the flash on the 280x and Piccolo devices is byte-writable?  This question often comes from customers wanting to emulate EEPROM.  I've seen other posts here that discuss this, and I understand the limitation of the sector erasure make this unlikely for most people to implement, but as a stand-alone question of can a single byte be written to the flash, can it be done?  If not, what is the minimum number of bytes that can written to the flash?

  • The flash is word writable (word = 2 bytes).  There is no byte data on C2000.  It is always 16-bit word data.

    Actually, it there is more to it than this.  You can clear a bit from a 1 to a 0 at any time.  But, you cannot set a bit from a 0 to a 1 without erasing the entire sector.  What this means is once you erase a sector, you can write to the words at your leisure (or you could flip bits from 1 to 0 in the same word multiple times, e.g., 0xFFFE, then 0xF8FE, then 0x78FE, and so on).  But, to change any bit from a 0 to a 1, you need to erase the entire sector.

    Regards,

    David

  • Thanks Dave, I figured this is the way it worked, since our other flash devices work this way also, but just wanted to be sure.