Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By willfly
#29740
penatenjoe wrote:I tried the WebUpdate sketch but cannot make it work even once. I do see the webpage from the ESP and can select a file and push the upload-button. But I keep getting "lmac.c 662" in the terminal and then the chip reboots. In my tests I used the stable version (July 23) and tried to upload the Blink sketch. Does someone have a suggestion what I do wrong?
For the DNS_SD_Arduino_OTA sketch it appears I have to have a telnet server which is beyond my skills... any suggestions on how to get started?
Here's the terminal output:
Booting Sketch...
Ready! Open http://esp8266-webupdate.local in your browser
Update: BlinkWithoutDelay.cpp.bin
lmac.c 662

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

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld


I was getting the same thing with OTA update and investigation revealed that new Espressif SDK throw that exception if interrupts are disabled for more then 10uS (weird). I commented out the
Code: Select allnoInterrupts()
statements from Updater.cpp method
Code: Select allbool UpdaterClass::_writeBuffer(){
in Arduino15\packages\esp8266\hardware\esp8266\**\cores\esp8266 directory, and it has been working without issues since.
User avatar
By penatenjoe
#29834 Works for me too - thanks a lot! After you pointed me at the solution in Github there's something along those lines as well https://github.com/esp8266/Arduino/issues/548 . Also I had a quick look at the most recent version of Updater.cpp in github and that file apparently does not disable interrupts anymore.