Figure 6. Flash Memory Mass Erase Procedure - STMicroelectronics RM0365 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

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,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RM0365 and is the answer not in the manual?

Table of Contents