Embedded Flash memory
Option byte programming
The option bytes are programmed differently from normal user addresses. The number of
option bytes is limited to 8 (4 for write protection, 1 for readout protection, 1 for hardware
configuration, and 2 for data storage). After unlocking the FPEC, the user has to authorize
the programming of the option bytes by writing the same set of KEYS (KEY1 and KEY2) to
the FLASH_OPTKEYR register (refer to
the OPTWRE bit in the FLASH_CR register will be set by hardware and the user has to set
the OPTPG bit in the FLASH_CR register and perform a half-word write operation at the
desired Flash address.
65/1080
Figure 6. Flash memory Mass Erase procedure
Unlocking the Flash memory
DocID025202 Rev 7
RM0365
for key values). Then,
Need help?
Do you have a question about the RM0365 and is the answer not in the manual?