Tool/software:
Hi,
according to the TRM the flash content is not deterministic (ch. 6.3.4 ERASE Command):
Note
After erasure, the memory contents of a sector are not deterministic until programmed. Erased bits do
not always read as 1 after an erase. A memory location must be successfully programmed using the
PROGRAM command before the memory location can be considered deterministic.
But according to a forum post regarding a similar uC (https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1429418/mspm0g3107-blank-check-on-uninitialized-memory-not-working/5481370) one "expect a value of 0xFF every time you erase a location in flash".
What's true now? Also, can I repogram an already programmed page? Of course only bits will flip from 1 to 0. 0 bits will remain 0.
I'm asking because I want to use the flash idiom where you have some kind of header, let's say 0xff followed by some data. To invalidate the data you just write the header byte to 0, for example.
Thanks,
-michael