However, it somehow resets itself at times (fairly repeatably.)
I'm either stuck in an infinite loop, or I'm smashing memory somewhere, but I can't find where it is by simple code inspection.
I'm using the ESP8266-01 module, so I'm really low on GPIOs to do something like drive a little LCD display.
What's the best way to debug this problem? Is there some "reset cause" register I can read that tells me why it booted? (Then I can spit it out on the serial port.)
I'm using the Arduino-based download toolchain/IDE.