-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
[Bug]: ASSERT failure in rwbt.c #137
Comments
I'm guessing the cause is somewhere a stack overflow. |
Thanks for reporting the bug. The best way for me to work on a bug is when I have:
A good starting point would be to use the example provided in the Bluepad32 repo with some minimal changes. |
Hi Ricardo, thanks for the swift reaction. |
try to get the stacktrace if possible. https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/core_dump.html |
|
AT reboot
|
Ok, it seems that my use of platformio makes also use of another sdkconfig file, when copying this pio file to the sdkconfig , I got a step further
|
Finally, found something that works. I guess the tools don´t take into account the platformio locations
|
I got additional coredumps, but it seems that the task that crashes hasn 't any stack trace. In all different cases.
|
See also : espressif/esp-idf#15190 |
so yeah, better to keep the discussion on the Espressif bug. VERY IMPORTANT: ONLY call Bluepad32 / btstack from thread "thread 11" (ps4). NEVER call it from another thread. If you need to use this tip: |
Thanks for your assistance, I close the issue here. |
@ricardoquesada seen the feedback from Espressif on the version, I start to suspect a version issue. The bluepad32 doc : https://bluepad32.readthedocs.io/en/latest/plat_esp32/ specifies to execute a script from 'btstack' which replaces the btstack of espressif with another one . https://github.com/bluekitchen/btstack/blob/5d4d8cc7b1d35a90bbd6d5ffd2d3050b2bfc861c/port/esp32/integrate_btstack.py -- 3 years old. |
yes, but do it the "bp32" way. Explained here: |
What happened?
Bluepad32 on espidf is working fine for several minutes , no noticeable memory leak. The connection and reception of data with a PS4 controller works fine.
Then it crashes
Bluepad32 Version
I don't know
Bluepad32 version custom
The github main branch.
Bluepad32 Platform
ESP-IDF
Platform version
ESP-IDF 5.3.0
Controller
A PS4 clone controller
Microcontroller
ESP32
Microcontroller board
ESP32 Devkit V1
Purpose is to catch PS4 events / commands and send them via Wifi to the Zenoh middleware.
OS
None
Relevant log output
Relevant sketch
https://github.com/vortex314/zenoh-projects/tree/main/zenoh-esp32 The main PS4 code is in the ps4_actor.cpp
The text was updated successfully, but these errors were encountered: