cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L05 + backup registers in standby mode

SMila
Associate

Hi,

I am triying to use the standby mode and save some data into EEPROM memory, but when i start the erase eeprom process before to save data, my program is blocked. I think that my code have a 89% of flash size and eeprom area have a program code.

I need save 3-4 32bits variables when i go to standby mode, so maybe i can use the backup registers but i don´t know how i can use it. Could anyone help me or give me some indicantions or example about this? or maybe other options to save the data.

My last option will be used a stop mode instead of standby mode and in this case i have RAM retention.

Thanks.

Regards,

1 REPLY 1
SMila
Associate

I forget say, when i run the code with only eeprom operations, i have not problem and all work fine.

The program is blocked when the code try to erase the eeprom memory.

Regards,