-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
[TW#28297] IDF 3.2 app with older bootloader compatability issues #2927
Comments
Hi @jakkra. I try to figure out what is wrong here. As I understand you have:
You gave the steps to reproduce it:
I tried to reproduce it but I can not get the same result as you described. Which a reset do you see in the console?
Could you give more information about it logs or a bit of code? |
Hi thanks for looking into this @KonstantinKondrashov let me clarify:
In our bootloader straight after start we do below, just like in your bootloader pre
Now we are in the bootoader, we won't start the application as we now are going to do a FW upgrade through the bootloader. But very soon the esp32 is reset which looks like the rtc WD resets the device. Which I assume is because REG_CLR_BIT( RTC_CNTL_WDTCONFIG0_REG, RTC_CNTL_WDT_FLASHBOOT_MOD_EN ); is not enough to counter the new additions in esp_restart_noos.
For reproducing this my guess is that if you use your bootloader from esp-idf 2.1 (I think any bootloader pre the commit mentioned before will work).
If we revert the changes in esp_restart_noos we do no longer get the WD reset in the bootloader |
Thanks, @jakkra for reporting. I have created MR in our internal gitlab. It will be reviewed and merged as soon as possible. You can use this path to resolve this issue. fix_wdt_settings_in_esp_reset_noos.zip. |
@KonstantinKondrashov Thanks for fixing the issue! I can confirm that the patch solved our problems. |
Hi @KonstantinKondrashov, please close this issue when this has been merged into GitHub, so I know when it's officially fixed. |
Fixed compatibility the new apps with the old bootloaders. Closes: #2927
Fixed compatibility the new apps with the old bootloaders. Closes: espressif/esp-idf#2927
Environment
Problem Description
Commit a8e4677 breaks backwards compatibility for our bootloader.
In our bootloader based on your esp-idf 2.1 bootloader, but with some additions, for example FW upgrade. We are facing problems with below code. As
REG_CLR_BIT( RTC_CNTL_WDTCONFIG0_REG, RTC_CNTL_WDT_FLASHBOOT_MOD_EN );
is not equivalent withrtc_wdt_disable();
causing us to get a WD reset when we do FW upgrade through our bootloader.This happens after esp_restart is called and we enter the bootloader for FW upgrade.
As only
REG_CLR_BIT( RTC_CNTL_WDTCONFIG0_REG, RTC_CNTL_WDT_FLASHBOOT_MOD_EN );
is called in the bootloader is not enough to stop the WD from timeout.How would you suggest we solve this issue?
I would guess that we are not the only one which will stumble onto this issue.
Thank you.
Steps to repropduce
Other items if possible
sdkconfig.zip
The text was updated successfully, but these errors were encountered: