ESP8266 reset while running code

annanmig
Posts: 1
Joined: Thu Apr 13, 2017 8:25 pm

ESP8266 reset while running code

Postby annanmig » Thu Apr 13, 2017 8:30 pm

I have an ESP8266 running Micropython. The code processes the following:
- Read a DHT22 sensor every 2 seconds
- Send sensor data to ThingSpeak's cloud service after each sensor read
- Send an SMS request to Twilio's cloud service (if sensor reading exceeds a limit)

After three requests to ThingSpeak and a request to Twilio the device gets reset.
And sometimes the Twilio request succeeds, but then the devices gets reset during the next request to Thingspeak.

After many hours of searching the Net and debugging the code, I have still not been able to solve this problem.

Any advice?

Firmware (Micropython): esp8266-20170108-v1.8.7.bin
Device output:

Code: Select all

ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 32028, room 16
tail 12
chksum 0x40
ho 0 tail 12 room 4
load 0x3ffe8000, len 1092, room 12
tail 8
chksum 0x17
load 0x3ffe8450, len 3000, room 0
tail 8
chksum 0x56
csum 0x56

MicroPython v1.8.7-7-gb5a1a20a3 on 2017-01-09; ESP module with ESP8266

User avatar
pratik
Posts: 386
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: ESP8266 reset while running code

Postby pratik » Wed Apr 26, 2017 1:47 pm

This would be a pain to debug. Not sure if microPython is the issue or your code is.
If you are using secure connection - there is a fair chance that your memory leakage is causing the reset!
Sorry, but no way to help with just this log. The startup log seems just fine. For all you know, this might even be a loose connection on the power rails!
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

Who is online

Users browsing this forum: No registered users and 2 guests