EEPROM emulation Fails after constant Read and Write operation.
Hi,
I am currently working on a project which requires to save 127 bytes of configuration parameters to EEprom. Micro controller is stm32l552x series.
We have emulated eeprom from flash using X-CUBE-EEPROM_V3.0.0 software package to store configuration parameters. it was working fine most of the time. I could read and write to EEPROM whenever I needed to change the parameters.
But problem occurs from time to time, without knowing exactly what is the cause.. sometimes program stucks at eeprom read cycle(EE_ReadVariable8bits ). some times it stucks at EE_Init() function itself and returns page write error status.
Is this a problem associated with flash endurance ?. For firmware testing, we were updating the parameters constantly.
This is the Configuration of eeprom emulation in flash.
#define START_PAGE_ADDRESS 0x08020000U
#define CYCLES_NUMBER 1U
/
#define GUARD_PAGES_NUMBER 2U
#define CRC_POLYNOMIAL_LENGTH LL_CRC_POLYLENGTH_16B
#define CRC_POLYNOMIAL_VALUE 0x8005U
#define NB_OF_VARIABLES 160U
Thank you.
