Question
STM32L1 not writing to EEPROM after exiting STOP
Posted on March 29, 2014 at 02:21
Hi,
I'm entering in STOP mode with the command:PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);
But, when it resume from STOP, I cannot write to EEPROM anymore.
I'm unlocking EEPROM with the command:
DATA_EEPROM_Unlock();
And writing to EEPROM:
DATA_EEPROM_ProgramByte(address++, *s);
If I remove only the line to enter in STOP mode, it works as well.
Am I missing something?
Thank you.