BLE IRQ crash when thread is disabled #17350
Unanswered
shariltumin
asked this question in
ESP32
Replies: 2 comments
-
Interesting! Are you able to pinpoint where the crash comes from, and a proposal for how to fix it? |
Beta Was this translation helpful? Give feedback.
0 replies
-
For the ESP32, MICROPY_NLR_SETJMP is enabled in the mpconfigport.h file.
This flag is used by py/nlr.h and py/nlrsetjmp.c, but I don't know how disabling or enabling threads affects the runtime IRQ for BLE. Perhaps others have a better understanding of how MicroPython works. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There is a BLE problem on ESP32 when it is compiled with THREAD and THREAD_GIL disabled in mpconfigport.h.
The test firmware, MicroPython v1.26.0-preview.82.gae6062a45, was compiled with esp-idf-541
Test script (test.py):
resulted in a crash:
The test was successful when run with the thread-enabled firmware.
Beta Was this translation helpful? Give feedback.
All reactions