mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1240] OTA fails with 1MB ESP8266 #1062
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1062
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BernhardSchlegel on GitHub (Apr 12, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1240
Basic Infos
OTA update fails (out of memory?) with
WRITE ERROR 4.Hardware
WiFimanager Branch/Release: Master (pulled as of today)
Esp8266:
Hardware: Sonoff TH 16 (which is why I cant go for more Flash)
Core Version: 2.4.0, staging
esptool.py --port /dev/ttyUSB0 flash_idyields (probably good practice for the issue template?)Description
OTA update fails
Settings in IDE
platformio.ini
Sketch
To big to print, but it breaks down to:
Program size output
Build ouput
Project inspect
Top 5 files
Problem
I don't know why all programm size numbers are different (at least I dont get them aligned). What I do know: The 139.7kB seem to be inevitable, as well as the 139.7kB from the WiFiManager - thus reducing bin size is not really an option. Is there a way I can tweak the partition scheme using
board_build.partitions? It would be absolutely awesome to get OTA to work!@tablatronix commented on GitHub (Apr 12, 2021):
I have been trying to reduce the size of wm back down , its just a little too big for ota on 1M ( you need double the size for ota )
62.3% is 12% too much
I will work on it some more, but you can remove the help strings and turn debug off that will help.
@BernhardSchlegel commented on GitHub (Apr 13, 2021):
Hi tablatronix, thanks so much for the reply ! Your efforts are really appreciated (I couldn't find a buy me a coffee link...). I was aware of the 50% rule, that's why I tried to generate the binary and library size metrics. I was just hoping, that the latter (48% (494.8kB)) was the correct one..
Adding
#define WM_NODEBUGon top of my main.cpp resulted into the same size (only the build output, since that seems to be the relevant)Questions:
strings_en.hseemed necessary.@tablatronix commented on GitHub (Apr 13, 2021):
hmm there is another issue discussing the same issue #1154 ?
@BernhardSchlegel commented on GitHub (Apr 14, 2021):
I came across this issue before I opened this. I'm maybe lacking oversight, but I was not able to find to find concrete instructions that will get me near to saving 12% flash anywhere.
@tablatronix commented on GitHub (Nov 3, 2021):
Yeah not sure, I hope to revisit this at some point, but just have not had time to see how to slim it down