WDT reset cause incorrect for ESP8266EX
Posted: Wed Aug 21, 2019 8:03 am
Hi all, noticed this on a D1 mini with ESP8266EX - is it just me or is?
This sequence follows a hard reset (via RTS pin)
>>> machine.reset_cause()
6
>>> machine.HARD_RESET
6
>>> machine.reset()
MicroPython v1.11-8-g48dcbbe60 on 2019-05-29; ESP module with ESP8266
Type "help()" for more information.
>>> machine.reset_cause()
4
>>> machine.SOFT_RESET
4
>>> machine.WDT()
<WDT>
>>>
MicroPython v1.11-8-g48dcbbe60 on 2019-05-29; ESP module with ESP8266
Type "help()" for more information.
>>> machine.reset_cause()
3
>>> machine.WDT_RESET
1
It would seem that machine.WDT_RESET should be 3 - is it just my variant of this chip or a mistake in the library?
This sequence follows a hard reset (via RTS pin)
>>> machine.reset_cause()
6
>>> machine.HARD_RESET
6
>>> machine.reset()
MicroPython v1.11-8-g48dcbbe60 on 2019-05-29; ESP module with ESP8266
Type "help()" for more information.
>>> machine.reset_cause()
4
>>> machine.SOFT_RESET
4
>>> machine.WDT()
<WDT>
>>>
MicroPython v1.11-8-g48dcbbe60 on 2019-05-29; ESP module with ESP8266
Type "help()" for more information.
>>> machine.reset_cause()
3
>>> machine.WDT_RESET
1
It would seem that machine.WDT_RESET should be 3 - is it just my variant of this chip or a mistake in the library?