-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
problem with OTA in Basic_rBoot #1520
Comments
@petrynchyn I see some problems in the areas that are allocated for the ROMS and the actual location where they are downloaded. Can you check with
And see if it works for you. The last command |
@slaff result is similar, I will try later on another ESP module |
Unfortunately I see the Basic_rBoot OTA also failing, even with the make flashconfig |
Problems begin at the stage of establishing a connection with WiFi. I can connect to WiFi only after flash sample Basic_WiFi and after connecting with WiFi i flash Basic_rBoot
|
Ive got the same problem. Did you found any fix for this? RBOOT_ENABLED ?= 1
|
Also interested in this, any update? |
I have the same problem with Basic_rBoot. before I used "make flashinit" system was able to connect to WiFi, but did not download and update on "ota" commans (it just out "Updating...." send request to rom0.bin and nothing more (did not hungs, just nothing more)) now I have the same situation like wrote another guys ... P.S. I can restore system for WiFi by flashing another sample (HttpServer_WebSocket for exapmle) and flash again rBoot and system gets ip, but Updating does not work :( |
I traced it down to spi_flash_erase_sector which hangs and makes the WDT fire. |
Hi, I have already traced it down to the rboot library. The issue is that during the update of the flash sectors (erase or write) the interrupts (except flash interrupt) should be disabled. Maybe the faulty ISR do not have ICACHE_RAM_ATTR set and will crash because the flash is not accessible. Updates to the file rboot-api.c (actually the patch files must be updated) somewhere in the top of he file add:
around line 70:
in begin of function rboot_write_flash add:
around line 160:
I have tested this and it makes my OTA rock solid. |
diff version:
|
@petrynchyn @andr2000 @Ph3r0x @Evgsurf Guys, can you check the suggested change and report if it is working for you? |
OTA seems to work, but problem remained with connection WiFi after make flashinit (SDK 3) |
I can confirm what @petrynchyn says. OTA does work, but WiFi is still an issue.
With the change above I effectively disable wifi_set_opmode and wifi_station_set_config both willing to write to flash (if I understood the SDK documentation correctly). |
guys at Arduino finally managed to "Remove interrupt disable around flash operations"
So, indeed, there is something trying to run from flash in some interrupt handler.... |
I have problem with OTA in sample Basic_rBoot, please check someone this example in yourself.
The text was updated successfully, but these errors were encountered: