PM0075
Figure 2.
Mass Erase
The Mass Erase command can be used to completely erase the user pages of the Flash
memory. The information block is unaffected by this procedure. The following sequence is
recommended:
●
Check that no Flash memory operation is ongoing by checking the BSY bit in the
FLASH_SR register
●
Set the MER bit in the FLASH_CR register
●
Set the STRT bit in the FLASH_CR register
●
Wait for the BSY bit to be reset
●
Read all the pages and verify
Flash memory Page Erase procedure
Doc ID 17863 Rev 1
Reading/programming the embedded Flash memory
15/31
Need help?
Do you have a question about the STM32F101xx series and is the answer not in the manual?