Open droidprova opened 3 years ago
1mb limit? You need 2x memory
Thank you so much Tabla, so a card like this should solve my problems:
true?
What are you using now?
Wemos D1 mini Lite : https://www.wemos.cc/en/latest/d1/d1_mini_lite.html
ohh yeah , get a 4mb chip, esp12, nodemcu, or get your sketch down below 512k for ota
my file .bin is 546 kb, if i don't cut it, what i do?
you can also upgrade the flash ic on your board, i would just buy some nodemcu modules, they are really good
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?
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
thanks a lot for your support.
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
Debug Messages