ESP8266 crashes

Discussion of issues related to writing ZBasic applications for targets other than ZX devices, i.e. generic targets.
Post Reply
FFMan
Posts: 502
Joined: 09 January 2010, 12:52 PM

ESP8266 crashes

Post by FFMan »

I've made a couple of project on the esp8266 but the most recent polls a POP3 server every couple of minutes and displays appropriate message on a matrix display.

The matrix display part i think is ok as it runs for days on end in a clock project, and polls an NTP server once every 24 hours

The addition of a send/receive etc every 5 minutes brings about random crashes which present them seleves as garbage output on the debug port.

I'm not sure if this is a watchdog reset (though it doesn't restart) or a crash.

Are there any tools for monitoring memory/stack usage as on standard zbasic platforms so i can see if something is causing a resource exhaustion ?

is there any way from zbasic code i can reset the watchdog. I have Yield in various places and the whole project is event driven so this shouldn't be an issue.

Have others found this platform to be stable long term ?
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: ESP8266 crashes

Post by dkinzer »

FFMan wrote:Are there any tools for monitoring memory/stack usage as on standard zbasic platforms so i can see if something is causing a resource exhaustion ?
I haven't seen any such tools. You might search on the official ESP8266 forum.

http://www.esp8266.com
FFMan wrote:is there any way from zbasic code i can reset the watchdog
There is no API in ZBasic itself. I don't recall seeing anything in the ESP8266 API but there may be something.
FFMan wrote:Have others found this platform to be stable long term ?
I have seen comments on the ESP8266 forum and elsewhere about intability but it's not clear if it is the user code or the system itself.
- Don Kinzer
FFMan
Posts: 502
Joined: 09 January 2010, 12:52 PM

Post by FFMan »

I've given up on the esp8266 as a platform to run code on. Still useful as a wifi module but as a precaution i always implement the ability for a zbasic cpu to reset the esp8266 if it becomes unresponsive.

The only matrix display clock project running on the esp8266 calls ResetProcessor at 3am and that seems to work OK, but frequent use of the wifi causes random crashes.
Post Reply