Flash program memory and data EEPROM (FLASH) RM0367
86/1043 RM0367 Rev 7
Erase data EEPROM
• Purpose
Delete one row in data EEPROM. This operation performs the same function as Write a
word which size is null to data EEPROM. It is available for compatibility purpose only.
• Size
Erase only by word.
• Address
Select one valid address in the data EEPROM.
• Protocol
Single programming operation.
• Requests
PELOCK = 0, ERASE = 1 (optional DATA = 1).
• Errors
WRPERR is set to 1 if PELOCK = 1 or if the memory is read-out protected.
SIZERR is set to 1 if the size is not a word.
• Description
This operation aims at deleting the content of a row in the data EEPROM. A row
contains only 1 word. The user must write a value at the right address with a word size.
The data is not important: only an erase is executed (also with data different from zero).
• Duration
Tprog (3.2 ms).
For code example, refer to A.3.6: Erase to data EEPROM code example.
Write Option bytes
• Purpose
Write one word in the Option bytes area with a specific value.
• Size
Write only by word.
• Address
Select a valid address in the Option bytes area.
• Protocol
Single programming operation.
• Requests
PELOCK = 0, OPTLOCK = 0, ERASE = 0.
• Errors
WRPERR is set to 1 if PELOCK = 1 or OPTLOCK = 1.
WRPERR is set to 1 if the actual read-out protection level is 2 (the Option bytes area
cannot be written at Level 2).
SIZERR is set to 1 if the size is not the word
• Description