-
Notifications
You must be signed in to change notification settings - Fork 7.6k
OTA fails with ESP32-S2 (ESP.partitionRead) #6093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi I seem to have the same/identical problem. I am using the board Just performed several uploads using Serial port with success. when using OTA (I use it for long time for ESP8266 and ESP32), the upload runs fine up to the point when it is checking, and fails
...
....
so seems it is waiting for some info from the board that never arrives. What Mysery is saying above would justify this same behaviour. |
Hello, can you please retest this on v2.0.3-rc1? |
@VojtechBartoska Seems to work for me now. :-) Thanks! |
Closing as solved, thanks for testing @misery. If needed you can reopen the issue. |
Uh oh!
There was an error while loading. Please reload this page.
Board
ESP32-S2 / ESP12k from AI Thinker
Device Description
I'm using a naked ESP12k dev board from AI Thinker.
Hardware Configuration
Nothing connected
Version
v2.0.1
IDE Name
esphome
Operating System
Linux
Flash frequency
40MHz
PSRAM enabled
no
Upload speed
460800
Description
ESP.partitionRead won't read that data that was written with ESP.partitionWrite.
I'm using esphome and the OTA fails (flashing over USB works). So I digged into the code and saw that the binary of esphome is correct. Even the md5 check of the Updater.cpp works and is valid.
The data
buf
is wrong and the check for the magic byte in line 47 fails. So the whole OTA fails.https://github.com/espressif/arduino-esp32/blob/2.0.2/libraries/Update/src/Updater.cpp#L43
I can see that in UpdateClass::_verifyHeader the magic byte is correct and also the buffer contains the correct magic byte
0xE9
for ESP.partitionWrite. But if ESP.partitionRead reads it, it contains something like this.Sketch
Debug Message
I get Read Failed as errorString. If I skip the magic header check in
_partitionIsBootable
I getCould Not Activate The Firmware
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: