Hi,
We have tried to reproduce your issue without success.
1. Save data in the first block in EEPROM
2. Use and corrupt second block artificially. Reset. DAVE_Init returns E_EEPROM_XMC4_STATUS_ERROR_OLD_DATA
3. Save data in the third block in EEPROM. Reset. DAVE_Init returns no error.
The error should vanish after the next valid data being stored in FLASH.
What do you mean by "but after an unexpected power off and a restart"? Did this happen during the update of the flash contents?
In this sentence, "The operation is carried out without mistakes and a new call to E_EEPROM_XMC4_Init returns no error.".
Did you do a reset after the call to E_EEPROM_XMC4_UpdateFlashContents(); or did you just call the E_EEPROM_XMC4_Init()?
Best regards,
Jesus
We have tried to reproduce your issue without success.
1. Save data in the first block in EEPROM
2. Use and corrupt second block artificially. Reset. DAVE_Init returns E_EEPROM_XMC4_STATUS_ERROR_OLD_DATA
3. Save data in the third block in EEPROM. Reset. DAVE_Init returns no error.
The error should vanish after the next valid data being stored in FLASH.
What do you mean by "but after an unexpected power off and a restart"? Did this happen during the update of the flash contents?
In this sentence, "The operation is carried out without mistakes and a new call to E_EEPROM_XMC4_Init returns no error.".
Did you do a reset after the call to E_EEPROM_XMC4_UpdateFlashContents(); or did you just call the E_EEPROM_XMC4_Init()?
Best regards,
Jesus