Ivan Grokhotkov 6dae5b206f reset_reason: fix setting wake stub entry point to 0x80000000
esp_reset_reason_init would check for reset reason hint, and
unconditionally set RTC_RESET_CAUSE_REG (which is also
RTC_ENTRY_ADDR_REG) to hint value 0, i.e. 0x80000000. However the ROM
code treats this value as valid deep sleep wake stub entry point, and
tries to jump to it.

Clear RTC_RESET_CAUSE_REG only if it contained a valid reset reason
hint, and simply set the register value to 0 when doing so. Also add
a check to esp_get_deep_sleep_wake_stub function that deep sleep wake
stub entry address must be in IRAM.

Reported in https://esp32.com/viewtopic.php?f=13&t=6919.
2018-08-27 19:01:03 +08:00
..
2018-05-14 17:54:57 +05:00
2018-08-20 16:49:20 +08:00
2018-07-09 14:36:06 +08:00
2018-04-04 22:57:45 +08:00
2017-10-18 14:19:19 +08:00
2018-07-02 09:05:00 +00:00
2017-10-18 14:19:16 +08:00
2018-08-20 16:49:20 +08:00