-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 is crashing when WiFi is connecting / BLE is initializing #6541
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
Comments
Not directly solving your issue, for Tasmota we use h2zero/NimBLE since the beginning of using BLE because it has a lower footprint for RAM and flash usage. It does work fine with latest core. |
@Jason2866 I tried this library and the results are a bit better.
|
You have to search the bug. This combination does work without issues for Tasmota.
|
Can you please retest this with 2.0.3 Version? Thanks! |
Closing as expired, if needed please reopen the issue. |
@umerm64 Did you ever resolve this issue? (running into the same problem) |
AsyncWebserver is outdated and not maintained. When used a lot of weird issues can happen. |
I see @Jason2866 . I was encountering this using the latest version of WLED. Are you saying that the error is caused by AsyncWebserver (I guess WLED is still using an old version https://github.com/Aircoookie/ESPAsyncWebServer) |
Not saying definitely ESPAsyncWebserver, observed weird issues when used in complex programs. Adding BLE to an already complex piece of code makes the situation worse. What i am saying trying to add another function to an currently working piece of code does not mean the error is always to search in the new added code part. To track down the issue it has to be analysed where the issues happens and what's causing it. Everything else than easy in a complex project. No easy and fast answers possible. |
@jacobk I used h2zero/NimBLE for adding support of BLE in my code since with BLE lib provided by sdk was crashing. |
Board
ESP32 DEVKIT C
Device Description
I am using simple ESP32 module and there is no external device attached to it.
Hardware Configuration
I don't have any external device connected to it.
I am using the WLED project from here: https://github.com/Aircoookie/WLED
Only the GPIO pins used by this project are used.
Version
v2.0.2
IDE Name
Platform IO
Operating System
Windows 10
Flash frequency
40MHz
PSRAM enabled
no
Upload speed
115200
Description
I am using the WLED project here: https://github.com/Aircoookie/WLED
I am trying to add BLE support to this project.
For that, I am using partitions based on the
huge_app.csv
fileCurrently, I am facing an exception at run time when using BLE as well as WiFi in this.
Basically when I am initializing BLE first then the exception occurs when connecting to the WiFi network.
Similarly when I am connecting to WiFi network then an exception occurs at the BLE initializing.
I am attaching the trace for both in this ticket.
I have also uploaded the code from the
usermod.cpp
file where I am initializing BLE server, its basically the code taken from BLE example given in the ESP32.Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: