-
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
[ESP32S3] No reboot after panic on Core 1 (Core 0 works fine) (IDFGH-8902) #10320
Comments
@esp-wzh |
The bug affected ESP32-S3 only. (CONFIG_IDF_TARGET_ESP32 was defined for ESP32, but not defined for ESP32-S3; changing that to !CONFIG_FREERTOS_UNICORE fixed the issue.) |
Because the change is not just changing CONFIG_IDF_TARGET_ESP32 to !CONFIG_FREERTOS_UNICORE. |
@AxelLin Because so far, the chips of the esp32 series have at most two main cores, so the two writing methods are equivalent at present. Unstall other cores is to correspond to the core that is stalled at panic_handler.c#L157. In fact, it is true that all cores should be unstalled before reset to ensure that all cores are in the running state during re-enter the first stage bootloader in ROM. |
@esp-wzh I am on v5.0.1, that include thix fix, but I still get a full freeze (no reboot) when there is a crash on Core 1 :
I reproduced by passing a badly formed URL to esp_http_client_perform |
Could you please attach your sdkconfig @QuentinFarizon? |
Sorry @igrr , it was a misconfigured CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT 👍 |
Is it possible to configure CONFIG_ESP_SYSTEM_PANIC_PRINT_REBOOT using Arduino IDE? |
Answers checklist.
IDF version.
v5.0
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32S3
Power Supply used.
External 3.3V
What is the expected behavior?
Clean Reboot after Crash
What is the actual behavior?
ESP32S3 Core 1 -> ❌ freezes / hangs after "Rebooting..." , no reboot
ESP32S3 Core 0 -> ✅works fine
ESP32 Core 1 -> ✅works fine
ESP32 Core 0 -> ✅works fine
Steps to reproduce.
Run this code, to provoke panic.
If it runs on core 1 it freezes / hangs, on core 0 it works fine.
Debug Logs.
More Information.
Never recovers after "Rebooting..."
The text was updated successfully, but these errors were encountered: