How to activate Data retention in Sleep or Standby mode AMB82 mini

Hello
I used arduino 2.3.3 and lastest sdk arduino. (board AMB82 mini)

I need to do i program that periodically wake up execute some tasks and then go back to sleep (to save energy).
I tried the function “PowerMode.begin” with DEEPSLEEP_MODE et STANDBY_MODE but it seems like there is no data retention at wake up. Variables reset to init values. Which is a problem, for example if I configure the RTC or another peripheral, i don’t want to re-init it at wakeup.

Question : When using one of the sleep mode, how to you do or activate the retention of data/variables?

Thank you

Hi @tail,

One possible way I could think of is to store the data in flash and read from the flash when wake up.

Thank you.

Thank Kelvin
Yes, this can be a solution. Just need to be careful with the wear out of the flash.

Cheers

1 Like