Page 1 of 1

SNTP Sample RTC_DATA_ATTR variable get cleared

Posted: Wed Dec 28, 2016 5:08 pm
by Wurzbart
Hello,
i have compiled sample 06_sntp and flashed. On console output the "Boot count" after reset was 1 and after deep sleep it was always 0 and no valid time was available.

After inserting

Code: Select all

esp_deep_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_ON);
the "Boot count" increases correctly and the time was valid.

Is this intended behavior ?
If so, please fix the example.

Re: SNTP Sample RTC_DATA_ATTR variable get cleared

Posted: Wed Dec 28, 2016 9:55 pm
by ESP_Angus
Thanks for reporting this. This is a bug, and we'll fix it (either in the example or in the RTC memory storage behaviour) ASAP.