Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By gerardwr
#13327
Ovaltineo wrote:Has anyone got WifiClient and WifWebServer examples working? I can compile and upload them but the ESP crashes/locks up during startup.


Yes, the examples are working OK here, so the crashing is probably caused by the ESP.

Are you sure that the power supply to the ESP is OK. Programming does not require a lot of power, but when the ESP connects to Wifi it consumes a lot of power.

Powering from an USB-serial adapter causes many troubles, better use a separate 3.3V power supply. Or 2 AA batteries.
User avatar
By Ovaltineo
#13410 Thanks. You are exactly right! I don't know why HelloServer works with built-in FTDI power, but WifiClient and WifiWebServer needs external power -- the Wifi library is probably more complicated and uses more CPU power.
User avatar
By Ovaltineo
#13497 OK, so I hook up a 3A 3.3V supply and got WifiClient working. But the ESP reboots with a WDT timer reset at least once every 3 minutes. Is this a bug in the SDK?
User avatar
By Ovaltineo
#13507 Hmm, it may not be a WDT reset. Here's what I get:

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

wdt reset
load 0x40100000, len 30000, room 16
tail 0
chksum 0x7f
load 0x3ffe8000, len 2556, room 8
tail 4
chksum 0x07
load 0x3ffe8a00, len 2476, room 4
tail 8
chksum 0x1a
csum 0x1a
r