ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By wolvie
#2675 Firstly, fantastic work Sprite_tm. Thanks a lot!

Pretty much everything is working brilliantly, but I am having some weird behaviour if I try to view any debug from the UART.

The webserver will be working fine until I try to connect to the UART (e.g. screen /dev/ttyUSB0 115200), then it will crash the board immediately. No output at all and all of the wifi stack appears to be dead too. The even weirder thing is that at that point resetting / powercycling the board will not bring it back and I need to re-flash it. Just re-flashing the webserver FS partition seems to be sufficient though.

It's as if the output is overwriting something on the flash rather than outputting to the UART. Does anyone have any ideas? I'm really stuck with this one. Thanks.
User avatar
By wolvie
#2676 ... and ignore me. The UART is working fine. I'm using RTS connected to reset for firmware uploading, this was causing the unit to reset when connecting the terminal. Sorry, one of those cases of looking too long and hard at something and seeing problems that aren't there ;)
User avatar
By stb
#2735
tyleroderkirk wrote:I've uploaded the three firmware binaries to this Google Drive folder

Don't forget the flash the "webpages" binary as per the makefile or else you'll get "Magic mismatch. EspFS image broken."
-Tyler


I managed to flash it to my module, and I can access it as SoftAP (and blink an LED), but trying to scan wifi or associate to my network fails with a watchdog reset:

Code: Select allCon req, conn=0x3fff3eb0, pool slot 0
URL = /wifi/wifi.tpl
Is url index 8
Heatshrink compressed file; decode parms = b4
Con req, conn=0x3fff40a8, pool slot 1
URL = /wifi/style.css
Is url index 10
Heatshrink compressed file; decode parms = b4
Conn 0x3fff40a8 is done. Closing.
Con req, conn=0x3fff42c0, pool slot 1
URL = /wifi/140medley.min.js
Is url index 10
Heatshrink compressed file; decode parms = b4
Conn 0x3fff42c0 is done. Closing.
Con req, conn=0x3fff4250, pool slot 1
URL = /wifi/wifiscan.cgi
Is url index 7
Fatal exception (28):
epc1=0x402411a9, epc2=0x00000000, epc3=0x00000000, excvaddr=0x000000aa, depc=0x00000000

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

wdt reset
load 0x40100000, len 25492, room 16
tail 4
chksum 0xea
load 0x3ffe8000, len 2784, room 4
tail 12
chksum 0xa7
ho 0 tail 12 room 4
load 0x3ffe8ae0, len 5188, room 12
tail 8
chksum 0x7d
csum 0x7d
Httpd init, conn=0x3ffea198

Ready
mode : softAP(1a:fe:34:98:dd:8a)
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
add 1
aid 1
pm close 0 0 0/9495578


I also create an HTML form to directly invoke /wifi/connect.cgi, but that seems to redirect quickly to /wifi/wifi.tpl and run into the same problem.

I'm running the module off 5V off the USB bus, though a step-down converter rated at 10A, and have added 2x 1000µF plus one 100nF to the 3.3V line, so I think the supply should be sufficient.

Any suggestions?

EDIT: with the Electrodragon firmware V0.925, I can scan for APs and join without problems, so I'm pretty sure it's not the power supply.
Last edited by stb on Sun Nov 16, 2014 11:08 am, edited 1 time in total.