-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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: System freeze when interrupt is triggered after WiFi enabled #83271
Comments
Hi @Yanok35! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
@Yanok35 We have already fixed. Will submmit soon. Thanks for reporting. |
Hi @sylvioalves . We slightly adapt the fix you mentioned in zephyrproject-rtos/hal_espressif#383 to match the "esp32s3" SoC using this : https://gist.github.com/Yanok35/96add12bd4d311aa4015b93cf257211a We checked on esp32s3 devkitC1. Whereas this seems to fix the behavior for "wifi scan", this unfortunately does not for "wifi connect -s [ap] -p [psk] -k 1" command. (reproduced on v4.0.0 & main top branch). |
I think you missed applying the full change. You have got to add both lines as in the below: esp_intr_alloc(0, 0, f, arg, NULL);
esp_intr_alloc(2, 0, f, arg, NULL); Can you give it a check? |
Sorry, we have been confused with the "review" display of Github and missed a part of your initial patchset. We have just retried with the both lines and confirmed this is now Ok for "wifi scan" and "wifi connect" on the DevkitC1. |
@sylvioalves - could you explain the issue and fix a bit more? Any chance this is related to the nested interrupt issue I was seeing on v3.5 that involved the CAN interrupt? |
Sounds it could indeed be related, I guess only testing to make sure. It seems a new issue though. |
Describe the bug
Using the wifi_shell application sample enhanced by a basic button interrupt handler (source code attached), it is observed the Wifi activation can break the interrupt handler in app.
Application freeze after WiFi has started and interrupt handler is triggered.
This has been reproduced on 4.0.0 tag release and also on "main" branch as of today when those lines are written ( 2cea407 ).
Environment
Apply the patch ( 0001-sample-combine-wifi-shell-and-basic-button-apps.patch ) to enhance wifi_shell app with button interrupt handler.
Build & Flash the sample app on the DevkitC:
To Reproduce
Steps to reproduce the behavior:
Issue
Note: this has been reproduced using other gpio than gpio0 and BOOT0 button (at least: gpio0, gpio3, gpio5),
This can also be reproduced using "wifi connect" operation and is not related to scan itself.
Expected behavior
Impact
Logs and console output
The text was updated successfully, but these errors were encountered: