Open chegewara opened 5 years ago
Hi @Weijian-Espressif i think i found something useful that can help track the cause of this issue:
esp_log_level_set("*", ESP_LOG_ERROR);
there is no longer crash,esp_log_level_set("*", ESP_LOG_WARN);
there is crash like described above,Hi @chegewara Were you able to solve this? I am experiencing a very similar problem when trying to use either the SPI flash API or OTA APIs in a separate task from an active BLE server.
I can stop the crash from happening by calling these APIs from my BLE server callback function, such that the callback does not return before the APIs are called.
Hi @mvonflotow like i described above, when i change log level then i dont see crashes anymore, also it takes 2 or 3 crashes on restart (only right after OTA update) and then runs normally.
Thanks for the input, @chegewara. Unfortunately my crash still occurs even with the log verbosity set to "error," as you suggested above.
This seems to be related to the coexistence of WiFi and BLE in my project. Can you tell me if you had both of these protocols active when your crashes occurred? What is your setting in menuconfig -> component config -> Wi-Fi -> Software controls WiFi/Bluetooth coexistence?
I was able to stop this bug from occurring by setting CONFIG_FREERTOS_UNICORE in make menuconfig ("Run Freertos only on first core").
Not a long-term solution, but certainly a work around.
Yes, i can confirm that unicore works as workaround.
@Alvin1Zhang
Why do you close this issue? The espressif-bot added "Resolution: Done", so what is the resolution? Note, CONFIG_FREERTOS_UNICORE=y is not a resolution at all, it's just a workaround with sacrifice of hw performance.
@Alvin1Zhang @blueMoodBHD How is the progress of this issue since it's marked as "In Progress" for 1 year?
The Bluetooth library was rebuilt based on IDF version(v4.0-dev-1443-g39f090a). You can replace the library and retest it. libbtdm_app.a.zip
@AxelLin I think this was closed since it was considered same as https://github.com/espressif/esp-idf/issues/7335, and closed by bot
@AxelLin I think this was closed since it was considered same as #7335, and closed by bot
https://github.com/espressif/esp-idf/issues/7335#issuecomment-1057536196 explictly mentioned BLE is not used in https://github.com/espressif/esp-idf/issues/7335, so I don't think it's the same issue.
In additional, a duplicated issue should be marked as "Resolution: Duplicate" rather than "Resolution: Done"
Hi, i am trying to write OTA over BLE example and it is working, but after restart i have multiple times app crash. Full story:
Environment:
Here are logs: