Postby nver » Wed Oct 14, 2015 10:51 pm
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.
Please have a try with the attachment, replace the corresponding libs in esp_iot_sdk_v1.4.0
Thanks for your interest in ESP8266 !
- (139.87 KiB) Downloaded 248 times
Postby nver » Fri Oct 16, 2015 1:28 pm
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.
Who is online
Users browsing this forum: No registered users and 4 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!