Hello Daniel,
one more related question.
Is it possible to set only one bit in flash?
I am picturing following scenario: FPROT are unlocked and at some point of the development I want to protect some sectors without re-flashing the uC (e.g switching from development to production and then protect sectors).
In my understanding the minumum writable size in P/D-Flash with FCCOB0..BB is 64 bit (8 data byte), but the RM states that "In NVM Normal mode: The protection can only be increased, meaning that currently unprotected memory can be protected but currently protected memory cannot be unprotected. Since unprotected regions are marked with a 1 and protected regions use a 0, only writes changing 1s to 0s are accepted. This 1-to-0 transition check is performed on a bit-by-bit basis. Those FDPROT bits with 1-to-0 transitions are accepted while all bits with 0-to-1 transitions are ignored. "
How can we change only one bit in the NVM?