-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
esp_ota_begin() breaks wifi connection (IDFGH-3656) #5591
Comments
Thanks for reporting, we will look into. |
I'm having the exactly same issue but with 100% of fail rate. Here I'm using a webserver to upload the new .bin file to OTA, and it only happens in WiFi STA mode, when using WiFi AP or ethernet, the connection with WiFi STA still drops, but OTA works EDIT: some logs when OTAing from AP:
|
Hi @copercini @dreske, I'm enable to reproduce this issue. Is there anything specific change in configuration which causes this issue? Can you share sdkconfig file for the same? |
Hi, also with the OTA examples. |
@dreske Thanks for reporting, would you please help share if any updates for this issue? Thanks. |
@shubhamkulkarni97 @Alvin1Zhang it's happening with simple_ota_example too https://github.com/espressif/esp-idf/tree/master/examples/system/ota/simple_ota_example just changing Wifi credentials and OTA URL in IDF v4.2-dev-1856-g00148cd0c-dirty Here are the files including sdkconfig, I kept the OTA link with a hello_word bin, you can use it if you want simple_ota_example.zip Logs here:
note that right after |
EDIT: it's also happening in esp32 dev kit (ESP32D0WDQ6 revision 0), but somehow in the first run after an erase_flash it works, after that doesn't |
Hello @copercini, thanks for the update. I could reproduce the issue on mentioned IDF version, however it is fixed in 4761c40. @dreske @copercini, updating your branch with latest changes should fix the issue. Thanks, |
@dreske @copercini Any updates on the issue? |
Looks good after some quick tests. Thank you! |
Good to hear the issue fixed. Feel free to reopen. Thanks. |
Yikes, has this fix been backported to IDF v3? A new ESP32-WROVER-E product we are launching takes 14+ seconds for We are on IDF v3.3.4. |
@chrismerck Thanks for sharing the updates. After preliminary analysis, seems what you shared may be a new issue, would you please help create a new ticket per the issue template? Thanks. |
Environment
Problem Description
Calling esp_ota_begin() with OTA_SIZE_UNKNOWN randomly disconnects wifi.
Found this old issue #2083 with exactly the same behavior.
I've already set some 'aggressive' settings for spi flash I think (50 Ticks yield every 1ms):
Tested with different modules, same behavior.
Expected Behavior
Flash is erased successfully without wifi interruption
Actual Behavior
Wifi breaks in some (around 30%) cases
Steps to reproduce
Calling esp_ota_begin() in a loop and log output
Code to reproduce this issue
Debug Logs
The text was updated successfully, but these errors were encountered: