tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.53k stars 1.96k forks source link

problems with ota update #1181

Open droidprova opened 3 years ago

droidprova commented 3 years ago

PLEASE TRY DEVELOPMENT BRANCH before submitting bugs on release or master, in case they were already fixed.

POST SERIAL OUTPUT !

.ERROR[4]: Not Enough Space WM: [3] -> 192.168.4.1 .ERROR[4]: Not Enough Space WM: [3] -> 192.168.4.1 .ERROR[4]: Not Enough Space WM: [3] -> 192.168.4.1 ERROR[4]: Not Enough Space WM: [2] <- Handle update done WM: [3] -> 192.168.4.1 WM: [1] [OTA] update failed WM: [3] -> www.msftconnecttest.com WM: [2] <- Request redirected to captive portal WM: [3] -> www.msftconnecttest.com WM: [2] <- Request redirected to captive portal

Issues without basic info will be ignored or closed!

Please fill the info fields, it helps to get you faster support ;)

if you have a stack dump decode it: https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst

for better debug messages: https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst

----------------------------- Remove above -----------------------------

Basic Infos

Hardware

WiFimanager Branch/Release:

Esp8266/Esp32:

Hardware: ESP-12e, esp01, esp25

ESP Core Version: 2.4.0, staging

Description

Problem description

Hi everyone, I need help:

I am using the new example for the OTA update. To test this function I am trying to flash the same sketch that is in use in my wemos d1 lite (1MB) through the UPDATE function of the captive portal. When I try to update a 546 kb file.bin the operation fails and I get the following error on the serial monitor:

.ERROR [4]: ​​Not Enough Space

but then if I load another 256kb .bin file the operation is successful and the captive portal returns: Update OK! Device Rebooting now ...

Why does this happen? How is it possible that there are space problems if the sketch in question is normally loaded into the wemos through the arduino IDE? Can someone help me ?

Settings in IDE

Module: Wemos D1 mini lite

Additional libraries:

Sketch


#include <Arduino.h>

void setup() {

}

void loop() {

}

Debug Messages

tablatronix commented 3 years ago

1mb limit? You need 2x memory

droidprova commented 3 years ago

Thank you so much Tabla, so a card like this should solve my problems:

https://it.aliexpress.com/item/32909297583.html?spm=a2g0o.productlist.0.0.3a575491uhqcu4&algo_pvid=a81d9378-4db0-4aa6-9de7-c9aaebd3d0ee&algo_expid=a81d9378-4db0-4aa6-9de7-c9aaebd3d0ee-5&btsid=2100bdf016092305702604169e23fd&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_

true?

tablatronix commented 3 years ago

What are you using now?

droidprova commented 3 years ago

Wemos D1 mini Lite : https://www.wemos.cc/en/latest/d1/d1_mini_lite.html

tablatronix commented 3 years ago

ohh yeah , get a 4mb chip, esp12, nodemcu, or get your sketch down below 512k for ota

droidprova commented 3 years ago

my file .bin is 546 kb, if i don't cut it, what i do?

tablatronix commented 3 years ago

you can also upgrade the flash ic on your board, i would just buy some nodemcu modules, they are really good image

droidprova commented 3 years ago

ok thanks a lot for your support. What I did not understand is: but regardless of the board you have, the maximum limit of a sketch that can be flashed via ota is always 512kb?

tablatronix commented 3 years ago

No, that is your limit, you need to have 2x the amount of storage for OTA, since you are storing 2 copies at the same time, you are trying to save more than 1mb to your flash, thats how ota works. You can get around this BTW, if you flash a basic tiny OTA sketch first, then ota again to the new one

droidprova commented 3 years ago

thanks a lot for your support.