Comments (2)
I accidentally updated couple of devices with 1mb memory using esp12e board configuration in esphome it flashed but then It made all of them throw same error you showed here when i try to update them again i fixedthe files to use esp01-1m . Real 1m ide 4mb
I just compiled this ota only with arduino ide but cant flash it getting the same error. What was the trick?
I see esptool in your screenshot, were you able to fix memory error via ota update or you had to do serial flash. I'm trying to avoid removing 20swiches from wall and soldering pins again
from esp-webota.
If I remember correctly I had to erase memory before I could go any further. If this doesn't help, let me know and I will dig deeper.
I did have to hook my devices back up to esptool in order to re-flash. Mine wasn't to bad because when I solder my connectors on I leave them on. The fit inside my SonOff cases. I used the following code to clear memory. If you use it make sure you select the correct memory size.
`/*
EEPROM Clear
Sets all of the bytes of the EEPROM to 0.
This example code is in the public domain.
*/
#include <EEPROM.h>
#include <WebOTA.h>
const char* host = "ESP-OTA"; // Used for MDNS resolution
const char* ssid = "Starwars_N";
const char* password = "5d1ae1c3eb";
void setup() {
init_wifi(ssid, password, host);
EEPROM.begin(512);
// write a 0 to all 512 bytes of the EEPROM
for (int i = 0; i < 1024; i++) {
EEPROM.write(i, 0X0);
}
// turn the LED on when we're done
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
EEPROM.end();
}
//ESP.restart();
void loop() {
webota.handle();
}
`
from esp-webota.
Related Issues (18)
- Suggestion : Check the right firmware HOT 2
- Cannot easily distinguish between WebOTA installations HOT 2
- Crash when request "GET /webota" HOT 6
- Connection reset by peer HOT 1
- question about updating via curl - terminal HOT 7
- Use WebOTA in FreeRTOS ? HOT 2
- ethernet HOT 2
- Use with WiFiManager.h HOT 7
- Identifier on web page HOT 1
- Examples won't compile properly with Arduino IDE 2.1.1 HOT 1
- Interrupt block update? HOT 10
- ESP-01 ? HOT 5
- A couple of warnings HOT 3
- Error updating thru webota (2 different boards tested) HOT 2
- Is there a way to auto-reset? HOT 1
- Error in math using millis & delay HOT 6
- Having trouble compiling this HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-webota.