Open tilatrivia opened 2 years ago
I am also seeing this problem, but am still debugging. I feel like I need to setup partitions or something. Still learning the esp32c3
I've encountered the same issue on a _lolin_c3mini.
What solved it was flashing the factory bin with esptool v3.3 using the following command:
.\esptool.exe --chip esp32c3 --port COM13 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_size detect 0x0 ble-gateway05-factory.bin
.
Adjust the port and firmware name accordingly.
I have this same issue with a switchbot bulb. Even compiling manually and uploading via the web server fails (using both modern and legacy formats)
Same issue on a Switchbot Plug Mini. Had been working well on esp-idf including OTA updates. I tried arduino (to get the web server component) which seemingly works well but now I can't seem to update it at all.
I also have a Switchbot Plug that I can no longer OTA after flashing with onto arduino. @apnar were you able to fix your plugs with OTA?
Any updates regarding this problem? I have the same on my S3-Zero
I too am having problems updating via OTA with my Switchbot Plugs. Previously I had Tasmota on them and could not do an OTA switch to ESPHome. I had to pop them open and flash with a serial port. Could that have anything to do with this problem? First time I saw this problem was with ESPHome 6.4. I've since updated to 7.0 and still have the problem. I tried removing the captive portal and web server and using the esp-idf framework. No success.
I never got my switch on ardunio to OTA update. I have a handful of other ones on esp-idf though and they OTA update perfectly from within ESPHome.
The problem
OTA updates to an ESP32-C3-mini-1 are failing with the error "ERROR Error Update end: Error: Finishing update failed. See the MQTT/USB logs for more information." and the said device logs output "Error ending OTA!, error_code: 132" No other details about the error can be obtained other than it is something to do with the end of the upload process, and it may have to do with the MD5 hash not matching.
Which version of ESPHome has the issue?
2022.10.0
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
N/A
What platform are you using?
ESP32
Board
esp32-c3-mini-1
Component causing the issue
ota
Example YAML snippet
Anything in the logs that might be useful for us?
Upload Logs
Device Log
Device Statistics
Additional information
The error is being returned by [ota_backend_arduino_esp32.cpp:36] ArduinoESP32OTABackend::end() when [Updater.cpp:278] UpdateClass::end() returns false. The UpdateClass::end() function could return false because of an existing error, premature end, MD5 mismatch, or [Updater.cpp:249] UpdateClass::_verifyEnd() returning false. UpdateClass::_verifyEnd() could return false because of a partitioning issue. I cannot determine which issue it actually is because this code is part of the Arduino package and its actual error value is ignored.
I have tried newer versions of the Arduino platform (version: 2.0.3, platform_version: 4.4.0) but this is the only combo that successfully compiles, all others giving a variety of errors. The esp-idf platform won't compile as the web server and captive portal require Arduino.