taribo wrote:
It is not clear what the system_get_rst_info() function returns on this type of reset:
- reset by pin EXT_RST (there is no info in the SDK guide about the returned reason on this type of reset)
From my tests, in both these cases: "hardware watch dog reset" and "reset by pin EXT_RST", the reason is 1.
So how can I distinguish these 2 causes of reset: hardware watch dog reset or reset by pin EXT_RST ?
I need to know what caused the reset, because there is a difference between these 2 causes of reset, on internal RTC:
- in case of reset by pin EXT_RST - RTC timer returns to zero
- in case of watch dog reset - RTC timer won't change
Hi,
1: reset by power on, including by chip_en pin
2: reset by EXT_RST reset pin
4: reset by software watch dog internally
It seems a bitmap definition as below:
- bit 0 for power on reset
- bit 1 for reset pin reset, and
- bit 2 for software watch dog.
Depends on how you control a reset, you may get different values of reset casue. e.g. if your external hardware wdt output to chip_en, or your deep_sleep wakeup output to chip_en pin, you will always get reset cause = 1.
Hope it will be helpful.Statistics: Posted by Guest — Mon Jul 20, 2015 3:15 am
]]>