10.3.2.3.7 EEPROM Multi-Byte Erase Mode

The EEPROM Multi-Byte Erase (EEMBERn) mode allows erasing several bytes in one operation. When enabling the EEMBERn mode, it is possible to select between erasing 2, 4, 8, 16, or 32 bytes in one operation.

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 result in erasing 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.

When erasing the EEPROM, the CPU can continue to execute instructions from the Flash. 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 be halted until the current operation is finished.