Open Littleislandbrewing opened 1 week ago
I have run into this same issue with the same board definition. I found that a sketch that is 2735465 bytes will upload via ota okay, but bumping the size to 3196224 bytes will fail. Logging the esp side, when it works, I see:
08:54:23 [D] [esphome.ota:117] Starting update from 192.168.1.xx...
08:54:32 [D] [esphome.ota:293] Progress: 0.0%
08:54:32 [D] [esphome.ota:...
When it fails, it shows:
08:58:11 [D] [esphome.ota:117] Starting update from 192.168.1.xx...
08:58:23 [W] [esphome.ota:370] Remote closed connection
08:58:23 [W] [esphome.ota:244] Reading binary MD5 checksum failed
08:58:23 [W] [esphome.ota:398] Failed to write 1 bytes of data, errno 104
08:58:23 [E] [component:164] Component esphome.ota set Error flag: unspecified
08:58:28 [E] [component:176] Component esphome.ota cleared Error flag
ssied on discord mentioned there may be an issue with it timing out, potentially in erasing the flash?
The problem
ERROR Error receiving acknowledge binary size: timed out while attempting to upload via OTA.
I have 8 units of 4" LVGL screens that have "progressively" shown this issue as I have updated the functionality in them via OTA.
Originally this issue started and would fail but give the option to "retry" which would work, but, possibly, as the memory allocation has increased, this issue has progressed to only being able to flash via USB on all of them except for one unit.
The sketch is approx 3500 lines (yes) and works without issue. (5119552 bytes) and they all have the same code on them except for the name and friendly name.
From what I can see in the logger, ESPHome creates the binary.
Is it possible that ESPHome cant upload a binary of that size via OTA???
Which version of ESPHome has the issue?
2024.9.1
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP32-IDF
Board
board: esp32-s3-devkitc-1
Component causing the issue
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response