OTA uploading Fails

I tried to make some changes to my yaml code. After if complied the upload OTA failed with
This is esp-07 BTW.

Retrieving maximum program size .pioenvs/bathroom1/firmware.elf
Checking size .pioenvs/bathroom1/firmware.elf
Memory Usage → Redirecting...
DATA: [===== ] 53.5% (used 43816 bytes from 81920 bytes)
PROGRAM: [==== ] 37.0% (used 386952 bytes from 1044464 bytes)
========================= [SUCCESS] Took 6.36 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.0.90
INFO Uploading /config/esphomeyaml/bathroom1/.pioenvs/bathroom1/firmware.bin (391104 bytes)
ERROR Error binary size: Error: Couldn’t prepare flash memory for update. Is the binary too big? Please try restarting the ESP.Retrieving maximum program size .pioenvs/bathroom1/firmware.elf
Checking size .pioenvs/bathroom1/firmware.elf
Memory Usage → Redirecting...
DATA: [===== ] 53.5% (used 43816 bytes from 81920 bytes)
PROGRAM: [==== ] 37.0% (used 386952 bytes from 1044464 bytes)
========================= [SUCCESS] Took 6.36 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.0.90
INFO Uploading /config/esphomeyaml/bathroom1/.pioenvs/bathroom1/firmware.bin (391104 bytes)
ERROR Error binary size: Error: Couldn’t prepare flash memory for update. Is the binary too big? Please try restarting the ESP.

Any ideas?

In my case pressing Reset button solved it

I pulled them out of use. Was not able to get them working.

I ran in to this problem today after not upgrading for over 12 months. A reboot did not help.
I was fretting at the thought of having to climb in the roof and flash everything over USB.

I had success though by commenting out everything that wasn’t in sections esphome: wifi: ota:
I was then able to add the rest of my config back in after flashing the minimal config

Hope this helps someone else…

3 Likes