thanks for that. actually I intentionally write to some EEPROM sectors, while the other sectors are still erased as well. Here is my linker file:
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
EEPROM_APN (xrw) : ORIGIN = 0x80803E8, LENGTH = 1044 /* starting at eeprom adress 1000 which is 0x80803E8 */
}
/* Define output sections */
SECTIONS
{
.eepromAPN :
{
/*. = ALIGN(4);*/
KEEP(*(.eepromAPN.number)) /* numberofApns */
KEEP(*(.eepromAPN*)) /* APNs */
/*. = ALIGN(4);*/
} >EEPROM_APN
the sectors which should not be erased but still are: 0x8080000 to 0x80803E7. after that (starting at 0x80803E8) i need to write some stuff to EEPROM during flashing. How can that erasing be avoided?
Michael