GithubHelp home page GithubHelp logo

Comments (2)

Stef-90 avatar Stef-90 commented on June 9, 2024

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.

BozoTClown avatar BozoTClown commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.