Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
3 years, 8 months ago.
best way to preserve state through deep sleep?
i am using the mdot with deep sleep for longest battery life:
dot->sleep(sleep_time_seconds, mDot::RTC_ALARM_OR_INTERRUPT, true);
now i am wondering what the best way is to preserve some state (couple of bytes) through the wake-up/restart?
there seem to be backup registers (writeUserBackupRegister, 10x 32 bit?) and user files in flash (saveUserFile) and maybe other ways?. for things like counters and stuff that change all the time: is it a concern to keep writing to flash?
1 year, 12 months ago.
I've been trying to get this to work:
But no luck yet.
Did you ever have any luck?
It's amazing that, almost 2 years later, nobody has shared this solution.