[GH-ISSUE #1181] problems with ota update #1011

Open
opened 2026-02-28 01:28:06 +03:00 by kerem · 10 comments
Owner

Originally created by @droidprova on GitHub (Dec 28, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1181

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:

  • Master
  • Development

Esp8266/Esp32:

  • ESP8266
  • ESP32

Hardware: ESP-12e, esp01, esp25

  • ESP01
  • ESP12 E/F/S (nodemcu, wemos, feather)
  • Other

ESP Core Version: 2.4.0, staging

  • 2.3.0
  • 2.4.0
  • staging (master/dev)

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

  • 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

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


Originally created by @droidprova on GitHub (Dec 28, 2020). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1181 ## 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:** - [ ] Master - [x] Development **Esp8266/Esp32:** - [x] ESP8266 - [ ] ESP32 **Hardware: ESP-12e, esp01, esp25** - [ ] ESP01 - [ ] ESP12 E/F/S (nodemcu, wemos, feather) - [x] Other **ESP Core Version: 2.4.0, staging** - [ ] 2.3.0 - [x] 2.4.0 - [ ] staging (master/dev) ### 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 * 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 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 ```cpp #include <Arduino.h> void setup() { } void loop() { } ``` ### Debug Messages ``` ```
Author
Owner

@tablatronix commented on GitHub (Dec 28, 2020):

1mb limit? You need 2x memory

<!-- gh-comment-id:751854939 --> @tablatronix commented on GitHub (Dec 28, 2020): 1mb limit? You need 2x memory
Author
Owner
<!-- gh-comment-id:751994673 --> @droidprova commented on GitHub (Dec 29, 2020): 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?
Author
Owner

@tablatronix commented on GitHub (Dec 29, 2020):

What are you using now?

<!-- gh-comment-id:752139062 --> @tablatronix commented on GitHub (Dec 29, 2020): What are you using now?
Author
Owner

@droidprova commented on GitHub (Dec 29, 2020):

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

<!-- gh-comment-id:752142430 --> @droidprova commented on GitHub (Dec 29, 2020): Wemos D1 mini Lite : https://www.wemos.cc/en/latest/d1/d1_mini_lite.html
Author
Owner

@tablatronix commented on GitHub (Dec 29, 2020):

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

<!-- gh-comment-id:752147170 --> @tablatronix commented on GitHub (Dec 29, 2020): ohh yeah , get a 4mb chip, esp12, nodemcu, or get your sketch down below 512k for ota
Author
Owner

@droidprova commented on GitHub (Dec 29, 2020):

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

<!-- gh-comment-id:752148193 --> @droidprova commented on GitHub (Dec 29, 2020): my file .bin is 546 kb, if i don't cut it, what i do?
Author
Owner

@tablatronix commented on GitHub (Dec 29, 2020):

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

<!-- gh-comment-id:752148999 --> @tablatronix commented on GitHub (Dec 29, 2020): you can also upgrade the flash ic on your board, i would just buy some nodemcu modules, they are really good ![image](https://user-images.githubusercontent.com/807787/103299136-7b3c5780-49c1-11eb-80d0-b88037541132.png)
Author
Owner

@droidprova commented on GitHub (Dec 29, 2020):

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?

<!-- gh-comment-id:752191363 --> @droidprova commented on GitHub (Dec 29, 2020): 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?
Author
Owner

@tablatronix commented on GitHub (Dec 29, 2020):

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

<!-- gh-comment-id:752214969 --> @tablatronix commented on GitHub (Dec 29, 2020): 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
Author
Owner

@droidprova commented on GitHub (Dec 30, 2020):

thanks a lot for your support.

<!-- gh-comment-id:752366548 --> @droidprova commented on GitHub (Dec 30, 2020): thanks a lot for your support.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1011
No description provided.