I am doing a project with an AT90USB1287 (4K EEPROM).
I've been looking around but I could not find a method to clear the EEPROM from the application.
In "avr/eeprom.h" there is only a function to transfer bytes from sram to eeprom. However what I want is to erase the entire contents of the eeprom.
So why not using the chip erase from the AVR Studio? Well, I want to erase the eeprom contents when a user presses a button for example (i.e. I am not connected to any programming platform).
The solution I have so far is to erase the eeprom byte after byte but this will reduce the memory's life by 8 times as each byte will rewrite its page (8 bytes - Datasheet, pag. 372).
Any ideas on how should I do that?