Flash program memory and data EEPROM (FLASH) RM0367
92/1043 RM0367 Rev 7
Erase a page in Flash program memory
• Purpose
Delete one page (32 words) in the Flash program memory.
• Size
Erase only by word (it deletes a page of the Flash program memory writing with a word
size)
• Address
Select a valid address in the Flash program memory.
• Protocol
Single programming operation.
• Requests
PELOCK = 0, PRGLOCK = 0, ERASE = 1, PRG = 1.
• Errors
WRPERR is set to 1 if PELOCK = 1 or PRGLOCK = 1.
WRPERR is set to 1 if the row is in a protected sector (see PcROP (Proprietary Code
Read-Out Protection)).
SIZERR is set to 1 if the size is not the word.
• Description
This operation aims at deleting the content of a row in the Flash program memory. The
user must write a value in the right address with a word size. The data is not important:
only an erase is executed (also with data not at zero). The address does not need to be
aligned to the page: the memory interface will delete the page which contents the
address.
• Duration
Tprog (3.2 ms).
For code example, refer to A.3.11: Erase a page in Flash program memory code example.