Perfectly good webserver on WEMOS D1 R2 board causes watchdog reboot on D1 mini



  • All I can get is:

    HTTP server started

    Soft WDT reset

    ctx: cont
    sp: 3fff2d40 end: 3fff2f30 offset: 01b0

    stack>>>
    3fff2ef0: 00000000 00000000 3fff13b0 40204850
    3fff2f00: 3fffdad0 00000000 3fff13b0 4020831c
    3fff2f10: 3fffdad0 00000000 3fff1ef4 4020d450
    3fff2f20: feefeffe feefeffe 3fff1f10 40100718
    <<<stack<<<

    ets Jan 8 2013,rst cause:2, boot mode:(3,7)

    load 0x4010f000, len 1384, room 16
    tail 8
    chksum 0x2d
    csum 0x2d
    v60000318
    ~ld

    it looks like I need to 'poke' the watchdog but I can't seem to find out how I should do that.



  • watchdog work when your programm do not loop(ing).
    for example, a too long procedure {setup}



  • @pwdixon

    The ESP8266 only executes a single thread so while it's running your program, it's not taking care of any housekeeping related to wifi communication with the router or other devices.

    In the Arduino IDE, your code should execute a Yield() command at the most, every few seconds. This allows the ESP8266 framework to update buffers, and send/process messages. The watchdog 'cries foul' if you haven't transferred control in too long so insert Yield commands in loops or wherever you're code executes for long periods of time.



  • WHere is your code ? If you do it properly a webserver should work without concern...


Log in to reply
 

Looks like your connection to WEMOS Forum was lost, please wait while we try to reconnect.