ESP8266 Developer Zone The Official ESP8266 Forum 2017-10-19T20:30:24+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1184 2017-10-19T20:30:24+08:00 2017-10-19T20:30:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1184&p=16530#p16530 <![CDATA[Re: Why is RTC timer lost during deep sleep?]]>
In the datasheet, section 3.6:

"ESP8266EX consumes about 20 μA of power in Deep-sleep mode (with RTC clock still running)".


This is wrong, the clock is running, but the register of the RTC timer counts from zero.
I came with this conclusion, by testing and reading the RTOS SDK programming guide, section 3.2.10:


"When software restart (system_restart) is executed, the system time will return to zero,
while the RTC timer will continue. However, if the chip is woken up (including being
periodically woken up from Deep-sleep mode
) via external hardware (including EXT_RST
pin or CHIP_EN pin), the RTC timer will be restarted.
• external reset (EXT_RST): the RTC memory does not change; the register of the RTC
timer counts from zero
."

Statistics: Posted by mpamplona — Thu Oct 19, 2017 8:30 pm


]]>
2015-12-14T16:56:08+08:00 2015-12-14T16:56:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1184&p=5036#p5036 <![CDATA[Re: Why is RTC timer lost during deep sleep?]]> Statistics: Posted by SpenZerX — Mon Dec 14, 2015 4:56 pm


]]>
2015-12-05T19:32:05+08:00 2015-12-05T19:32:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1184&p=4915#p4915 <![CDATA[Re: Why is RTC timer lost during deep sleep?]]> Statistics: Posted by eriksl — Sat Dec 05, 2015 7:32 pm


]]>
2015-12-03T01:31:36+08:00 2015-12-03T01:31:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1184&p=4870#p4870 <![CDATA[Re: Why is RTC timer lost during deep sleep?]]> Statistics: Posted by Dmytro — Thu Dec 03, 2015 1:31 am


]]>
2015-10-15T15:50:43+08:00 2015-10-15T15:50:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1184&p=4113#p4113 <![CDATA[Re: Why is RTC timer lost during deep sleep?]]> Statistics: Posted by eriksl — Thu Oct 15, 2015 3:50 pm


]]>
2015-10-13T09:47:13+08:00 2015-10-13T09:47:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1184&p=4082#p4082 <![CDATA[Re: Why is RTC timer lost during deep sleep?]]>
Sorry for the inconvenience.

ESP8266 designed like this, wake up from deep-sleep, the RTC timer will be reset, but the data stored in RTC memory will not.

You could call system_get_rtc_time before deep-sleep and write the value into RTC memory by system_rtc_mem_write.

Statistics: Posted by ESP_Faye — Tue Oct 13, 2015 9:47 am


]]>
2015-10-08T14:35:20+08:00 2015-10-08T14:35:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1184&p=4007#p4007 <![CDATA[Re: Why is RTC timer lost during deep sleep?]]>
When the chip awaken, the RTC clock (system_get_rtc_time) is reset to 0

It would be really useful if there was a way to prevent that happening.

Statistics: Posted by torntrousers — Thu Oct 08, 2015 2:35 pm


]]>
2015-10-04T02:12:46+08:00 2015-10-04T02:12:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1184&p=3978#p3978 <![CDATA[Re: Why is RTC timer lost during deep sleep?]]>
The fact that the RTC clock is reset is still a puzzle.

Statistics: Posted by tve — Sun Oct 04, 2015 2:12 am


]]>
2015-10-03T23:16:23+08:00 2015-10-03T23:16:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1184&p=3977#p3977 <![CDATA[Re: Why is RTC timer lost during deep sleep?]]>
tve wrote:
is it expected that after a deep sleep system_get_rst_info->reason == REASON_EXT_SYS_RST and not REASON_DEEP_SLEEP_AWAKE ?
That is a bug in v1.3.0 (and probably earlier) of the SDK. It was fixed in a special build of v1.3.0 but I haven't checked to see if the correction made it into v1.4.0.

Statistics: Posted by dkinzer — Sat Oct 03, 2015 11:16 pm


]]>
2015-10-03T15:01:13+08:00 2015-10-03T15:01:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1184&p=3976#p3976 <![CDATA[Re: Why is RTC timer lost during deep sleep?]]> Statistics: Posted by tve — Sat Oct 03, 2015 3:01 pm


]]>
2015-10-03T14:44:52+08:00 2015-10-03T14:44:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1184&p=3974#p3974 <![CDATA[Why is RTC timer lost during deep sleep?]]>
    The chip is awakened from deep sleep after a timer expiration using a gpio16->ext_rst connection
    The RTC memory (system_rtc_mem_read/write) is preserved during deep sleep
    The RTC clock must be running during deep sleep since it awakens the chip
    When the chip awaken, the RTC clock (system_get_rtc_time) is reset to 0
Why?

Statistics: Posted by tve — Sat Oct 03, 2015 2:44 pm


]]>