SPRADL4 January 2025 F29H850TU , F29H859TU-Q1
The EEPROM_Erase() function provides functionality for erasing the sector(s) used for emulation and resetting the bank and page pointers. At least one entire sector must be erased, partial erase is not supported. Before erasing, ensure that stored data is no longer needed/valid. In the Single Unit implementation, this function is only called when all EEPROM Banks and Pages are full.
The function configures the Write/Erase Protection masks for the EEPROM unit, then calls the Erase_Bank function before resetting the pointers to the start of the bank.
Set_Protection_Masks();
Erase_Bank();
RESET_BANK_POINTER;
RESET_PAGE_POINTER;