I can devise some simple server code for the esp to consume.
Come to think of it, the esp doesn't need to ask for the update. It can be pushed to it. So think about that also. Ask the esp for version, push if you need to might be easier.
Explore... Chat... Share...
Moderator: igrr
Samighi11 wrote:lmac.c 662
willfly wrote:Samighi11 wrote:lmac.c 662
I pointed to this in another thread. Espressif libraries throw this exception when interrupts are disabled for more then 10us. Presumably it is fixed in the beta version of IDE. If you want to fix it manually, comment out noInterrupts() line in bool UpdaterClass::_writeBuffer(){ in file Arduino15\packages\esp8266\hardware\esp8266\**\cores\esp8266\Updater.cpp. OTA will start working after this.
bool UpdaterClass::_writeBuffer(){
// noInterrupts();
int rc = SPIEraseSector(_currentAddress/FLASH_SECTOR_SIZE);
interrupts();
yield();
if(!rc){
// noInterrupts();
rc = SPIWrite(_currentAddress, _buffer, _bufferLen);
interrupts();
}
interrupts();
if (rc) {
_error = UPDATE_ERROR_WRITE;
_currentAddress = (_startAddress + _size);
#ifdef DEBUG_UPDATER
printError(DEBUG_UPDATER);
#endif
return false;
}
_currentAddress += _bufferLen;
_bufferLen = 0;
return true;
}
Booting Sketch...
Ready! Open http://esp8266-webupdate.local in your browser v1.0
Update: Webupdate.cpp.bin
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
Booting Sketch...
Ready! Open http://esp8266-webupdate.local in your browser v1.0
Samighi11 wrote:Come to think of it, the esp doesn't need to ask for the update. It can be pushed to it. So think about that also. Ask the esp for version, push if you need to might be easier.
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]