-
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
FreeRTOS stuck after NVS write after BLE connection error on ESP32S2 (not on ESP32) (IDFGH-9454) #10821
Comments
Hi @QuentinFarizon , Is it possible for you to please share the sample code where nvs related operations are done (mostly sequence and usage of nvs related APIs inside the store_connect_log function )? We can use the same at our end to reproduce this . |
Sure, here is the implementation, it's a bit complicated because I use ArduinoJson to serialize the stored log.
|
Hi @QuentinFarizon,
|
Hi @QuentinFarizon, |
Hi @QuentinFarizon , Closing this issue, feel free to open if you have any updates. |
Answers checklist.
IDF version.
v5.0
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32S3-DevkitM1
Power Supply used.
USB
What is the expected behavior?
Here is my scenario :
In the main, I start by connecting to a BLE peripheral
I am using a standard Nimble stack, after connection it starts service discovery.
I am shutting down my peripheral after connection but before service discovery finished, so I am called in blecent_on_disc_complete with an error status, on which I call ble_gap_terminate and write a log on NVS.
I agree that storing on NVS on a Nimble callstack can be considered dangerous, but I am expecting either :
Instead, the system is completely frozen, nothing output, and doesn't restart. In particular I have a simple task that just display a log each second, that should print indefinitely, and here it doesn't print anything.
What is the actual behavior?
Steps to reproduce.
Debug Logs.
No response
More Information.
I do not reproduce on ESP32 chip.
I do not reproduce if I comment out the writing to NVS
The text was updated successfully, but these errors were encountered: