Exception reset when going into deep sleep.
Posted: Sat Aug 26, 2017 10:14 pm
I develop a sensor with nodemcu kit. When my nodemcu goes into deep sleep, it occasionally resets.
Code to deep sleep.
The reason is exception reset.
Here reset cause number is 28, which means Access to invalid address(1. Access to Cache after it is turned off 2. Wild pointers) by ESP8266 Reset Causes and Common Fatal Exception Causes.pdf
I program with lua, no pointer used. I have no idea how these reset cause occurs.
Code to deep sleep.
Code: Select all
node.dsleep(15*60*1000*1e3, 4) --wake up after 15 minutes.
The reason is exception reset.
Code: Select all
=node.bootreason()
2 2 28 1073798959 0 0 51 0
Here reset cause number is 28, which means Access to invalid address(1. Access to Cache after it is turned off 2. Wild pointers) by ESP8266 Reset Causes and Common Fatal Exception Causes.pdf
I program with lua, no pointer used. I have no idea how these reset cause occurs.