10.3.2.3.7 EEPROM Multi-Byte Erase Mode

The EEPROM Multi-Byte Erase (EEMBERn) mode allows erasing several bytes in one operation. You can select between erasing 2, 4, 8, 16, or 32 bytes in one operation when enabling the EEMBERn mode.

The LSbs of the address are ignored when defining which EEPROM locations are erased. For example, while doing an 8-byte erase, addressing any byte in the 0x18 - 0x1F range will erase the entire range of bytes.

Table 10-5. EEPROM Multi-Byte Erase
CMDBytes ErasedDescription(1)
EEMBER22Addresses matching ADDR[N:1] are erased. The value in ADDR[0] is ignored.
EEMBER44Addresses matching ADDR[N:2] are erased. The value in ADDR[1:0] is ignored.
EEMBER88Addresses matching ADDR[N:3] are erased. The value in ADDR[2:0] is ignored.
EEMBER1616Addresses matching ADDR[N:4] are erased. The value in ADDR[3:0] is ignored.
EEMBER3232Addresses matching ADDR[N:5] are erased. The value in ADDR[4:0] is ignored.
Note: ADDR is the address written when doing an EEPROM erase.

The CPU can continue executing instructions from the Flash while erasing the EEPROM. If the CPU starts an erase or write operation while the EEPROM is busy, the NVMCTRL module will give a wait on the bus, and the CPU will halt until the current operation is finished.