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.
ThanksStatistics: Posted by Guest — Wed Oct 14, 2015 10:51 pm
]]>