ESP8266 Developer Zone The Official ESP8266 Forum 2015-08-25T23:24:24+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=992 2015-08-25T23:24:24+08:00 2015-08-25T23:24:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=992&p=3431#p3431 <![CDATA[Re: system_get_rst_info() reason value with deep sleep wakeup]]>
Espressif_Faye wrote:
Please have a try with this new lib based on esp_iot_sdk_v1.3.0.
That works, thanks. However, there is much more output on UART0 using this libmain.a. Upon calling system_deep_sleep, I see this:

bcn 0
del if1
usl
sul 0 0
deep sleep 5s

Then, upon awakening, there a lot of "garbage" emitted, more than normal. The terminal program monitoring UART0 output is set to 230400 baud. I can eliminate the legible part quoted above by installing a do-nothing print output function (using os_install_putc1()) but, of course, the unintelligible part remains. Does this libmain.a have extra debugging output enabled?

Statistics: Posted by dkinzer — Tue Aug 25, 2015 11:24 pm


]]>
2015-08-25T12:00:53+08:00 2015-08-25T12:00:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=992&p=3417#p3417 <![CDATA[Re: system_get_rst_info() reason value with deep sleep wakeup]]>
Thanks for your valuable advice !

We will optimize the SDK to get a reason value of 5 while using the XPD output to wake up from deep-sleep.

Please have a try with this new lib based on esp_iot_sdk_v1.3.0.
libmain_1.3.0_deepsleep_reason.zip

Statistics: Posted by ESP_Faye — Tue Aug 25, 2015 12:00 pm


]]>
2015-08-23T07:11:54+08:00 2015-08-23T07:11:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=992&p=3372#p3372 <![CDATA[system_get_rst_info() reason value with deep sleep wakeup]]>
As a side note, I get a reason value of 0 on power-up and a reason value of 3 if I put the code in a tight loop. These are both expected and demonstrate that I'm calling system_get_rst_info() correctly.

Statistics: Posted by dkinzer — Sun Aug 23, 2015 7:11 am


]]>