I am reading the reference manual page 75 that shows the flash memory organization of STM32F4 MCUs. There is an OTP area of 528 Bytes in it as shown in the image:
Is it possible to write on this OTP area at run-time under user program control or is it writable at the chip-flash time only? I have tried to search this detail in the document but i cannot find it.
Best Answer
Yes. There are some details in section 3.8 (page 97) of the reference manual.
In brief, the OTP area behaves similarly to other parts of flash memory, except that it cannot be erased, and it contains a set of fine-grained lock bytes which can be used to prevent further writes.