So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By TobyEggitt
#67769 Hi all,

I'm essentially new to modern embedded systems, though I worked a lot with the technology of the day 30 years ago (256 bytes of RAM and 3K of page addressable along with a 4K EPROM, ooh, luxury! :)

Anyway, I have a little program I wrote in C++ using the Arduino tools, and it runs nicely on my ESP-12E board. It lights a bunch of LEDs at intervals, monitors the ADC, and does some timing. There's a little serial output from time to time.

I also tinkered with the ESP8266WiFi and WiFiManager and successfully am sending UDP messages back and to with software running on a laptop.

Unfortunately, the instant I attempt to so much as start the WiFi subsystem my code runs through setup, connects to my wifi, runs into the loop at least once, and then shortly thereafter dies with a wdt reset of some kind that I don't understand.

I'm fairly sure it's not a power issue, since I ensured that the same LEDs are on in the working WiFi version, and in the failing combination, I don't actually even attempt to send or receive any messages (other than those that actually attatch to my local network, and those are successfully completed before the crash).

So, I guess the first question I have is: where do I find docs on the watchdog timer, and therefore on the things that might be triggering it?

And the second question is what suggestions anyone has for why this might be happening. The two thoughts I've been entertaining to this point were 1) bad power and 2) taking too long in setup, but I think those are both unlikely in view of the evidence above.

Thanks for any input!
User avatar
By TobyEggitt
#67816
urbanze wrote:http://portal.vidadesilicio.com.br/watchdog-esp8266/ Translate from PT, it's a nice tutorial :lol:



Thanks, Google seems to speak this language (Portuges?) well, and as a result, this is a most helpful tutorial. Thank you again!
User avatar
By urbanze
#67828
TobyEggitt wrote:
urbanze wrote:http://portal.vidadesilicio.com.br/watchdog-esp8266/ Translate from PT, it's a nice tutorial :lol:



Thanks, Google seems to speak this language (Portuges?) well, and as a result, this is a most helpful tutorial. Thank you again!


I see this tutorial yesterday, and has a new video to show watchdog working, you see ?