-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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#27580] strange behavior on reset #2731
Comments
Hi @chegewara. This behavior is not right. I can assume that this is happening due to some kind of settings in sdkconfig.
Also, I have some question:
|
if i remember hello-world was compiled with release/v3.1 branch with default config https://gist.github.com/chegewara/9fed4a6fdc2678c4cd3f6a0bfba10093 |
Thank @chegewara for your report. I was able to reproduce your error. I will try to find a solution. The reason is different CPU frequency in two configurations.
It reproduced on master branch as well. |
Good catch, i wouldnt find it myself. |
In the situation when bootloader was compiled for 240MHz, and app was compiled for 160MHz, and the chip is a revision 0 chip, the bootloader will assume that the application has also been running at 240MHz. This will cause the chip to lock up later. Modify this to use a run time check of DPORT_CPUPERIOD_SEL, which indicates which of the PLL frequencies was used. Closes #2731.
In the situation when bootloader was compiled for 240MHz, and app was compiled for 160MHz, and the chip is a revision 0 chip, the bootloader will assume that the application has also been running at 240MHz. This will cause the chip to lock up later. Modify this to use a run time check of DPORT_CPUPERIOD_SEL, which indicates which of the PLL frequencies was used. Closes #2731.
In the situation when bootloader was compiled for 240MHz, and app was compiled for 160MHz, and the chip is a revision 0 chip, the bootloader will assume that the application has also been running at 240MHz. This will cause the chip to lock up later. Modify this to use a run time check of DPORT_CPUPERIOD_SEL, which indicates which of the PLL frequencies was used. Closes espressif/esp-idf#2731.
I just end with OTA over BLE example and it is running fine, but after ota flashing i have very strange behavior. As first app to ota flash i have hello-world from esp-idf examples. No modifications at all. After updating esp32 code is running fine and after 10 seconds loop esp32 restart but not always is starting again. Here is log:
Usually its only one "empty" restart and next time is running fine (no interaction from my side). In this log we can see 2 "empty"restarts, First
SW_CPU_RESET
and thenRTCWDT_RTC_RESET
.my esp32 is devKitC v2
The text was updated successfully, but these errors were encountered: