ST STM32F101xx series Programming Manual page 15

Stm32f10xxx flash memory microcontrollers
Hide thumbs Also See for STM32F101xx series:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents