DevSecNinja / ESPHome-Zehnder-RF

0 stars 1 forks source link

Uploading firmware issues #11

Closed DevSecNinja closed 2 days ago

DevSecNinja commented 2 weeks ago

Keeping track of all the weird errors I'm getting when uploading a new firmware here. RAM & Flash are size-wise OK:

RAM:   [=====     ]  45.5% (used 37248 bytes from 81920 bytes)
Flash: [======    ]  55.1% (used 575605 bytes from 1044464 bytes)
DevSecNinja commented 2 weeks ago
INFO Uploading /data/build/zehnder-comfofan/.pioenvs/zehnder-comfofan/firmware.bin (579760 bytes)
INFO Compressed to 397105 bytes
ERROR Error binary size: Unknown error from ESP

Fixed by hitting the "Restart" button on the ESP Home device in Home Assistant, per: https://github.com/esphome/issues/issues/5823

DevSecNinja commented 2 weeks ago

Sometimes it takes ages to upload the firmware. I guess at least 5-10x slower. Not sure why. What I usually do is hit the EDIT button in ESPHome again, restart the board via Home Assistant and install again:

INFO Compressed to 397097 bytes
Uploading: [=                                                           ] 2% 
DevSecNinja commented 2 weeks ago

Previous mentioned errors all came while I was running 2024.7.3. I'm now running 2024.10.3 and any new errors mentioned are from that version or later.

DevSecNinja commented 2 weeks ago
INFO Compressed to 399156 bytes
Uploading: [===============================                             ] 51% ERROR Error receiving acknowledge chunk OK: [Errno 104] Connection reset by peer
DevSecNinja commented 2 weeks ago
INFO Compressed to 399156 bytes
Uploading: [==============================                              ] 49% ERROR Error receiving acknowledge chunk OK: [Errno 104] Connection reset by peer
DevSecNinja commented 2 weeks ago

Even a reboot didn't help. Instead, I just used a USB connection.

DevSecNinja commented 2 days ago

USB works great and I haven't seen this issue on ESP32 both wired and wireless. Could be a ESP8266 thing.