ESP8266 Developer Zone The Official ESP8266 Forum 2015-10-16T13:28:06+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1230 2015-10-16T13:28:06+08:00 2015-10-16T13:28:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1230&p=4131#p4131 <![CDATA[[RESOLVED] system_get_rst_info() odd behaviour in SDK1.4]]> Many thanks. the patch fixed the issue. So far I have only tested the patch for restart reason, 0, 4 and 6 and works as expected.

Thanks again :)

Statistics: Posted by Guest — Fri Oct 16, 2015 1:28 pm


]]>
2015-10-16T09:58:00+08:00 2015-10-16T09:58:00+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1230&p=4125#p4125 <![CDATA[Re: system_get_rst_info() odd behaviour in SDK1.4]]>
Please have a try with the attachment, replace the corresponding libs in esp_iot_sdk_v1.4.0

Thanks for your interest in ESP8266 !
system_get_rst_info_patch.zip

Statistics: Posted by ESP_Faye — Fri Oct 16, 2015 9:58 am


]]>
2015-10-14T23:32:51+08:00 2015-10-14T23:32:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1230&p=4111#p4111 <![CDATA[Re: system_get_rst_info() odd behaviour in SDK1.4]]> Statistics: Posted by kolban — Wed Oct 14, 2015 11:32 pm


]]>
2015-10-14T22:51:59+08:00 2015-10-14T22:51:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1230&p=4109#p4109 <![CDATA[[RESOLVED]system_get_rst_info() odd behaviour in SDK1.4]]>
I am using SDK1.4 and trying "struct rst_info *restart_info = system_get_rst_info()" in my code and have noticed a potential bug in getting the correct restart reason.

Below was my sequence of reboots:

1.Apply power to the module : restart_info->reason = 0 (as expected)
2. then call system_restart() : restart_info->reason = 4 (as expected)
3. then do external reset i.e. pin EXT_RSTB to GND : restart_info->reason = 6 (as expected)
4. all subsequent calls to system_restart() returns restart_info->reason = 6 (NOT as expected, must return 4)

Looks like restart_info->reason gets stuck once it is 6 until the module is power cycled.

Can you please investigate this. its 100% reproducible on my Olimex MOD-WIFI-ESP8266-DEV module.

Thanks

Statistics: Posted by Guest — Wed Oct 14, 2015 10:51 pm


]]>