Page 1 of 1

ESP32S3 BLE.end() crash

Posted: Wed Jun 12, 2024 5:07 pm
by source2k
I'm using the XIAO_ESP32S3 board with ArduinoIDE with installed ArduinoBLE. It currently uses ESP-IDF v5.1.
I created a test sketch for BLE which crashes after disconnecting from the XIAO board which calls "BLE.end()". I attached the sketch and log in
ESP_S32S3_BLE_crashing.zip
(1.76 KiB) Downloaded 44 times
After checking the “Backtrace: 0x403826fa:0x3fcebe00…” from the log I found that the crash originates from the "poll()" call.

So I crated another sketch trying to fix the problem but changing the variable “iBLEState = 2;” in function “bleOnDisconnected” has no effect, see
testBLEESP32S3_240611_2_no_BLEend.zip
(1.47 KiB) Downloaded 40 times
Does somebody knows the reason?

Re: ESP32S3 BLE.end() crash

Posted: Mon Jun 17, 2024 12:08 pm
by source2k
I created an example which stops and restarts BLE.
testBLEESP32S3_240617_1_crashing_on_esp32s3.ino.zip
(924 Bytes) Downloaded 40 times
The example works on a "SEED XIAO BLE - nRF52840" board but crashes on a "XIAO_ESP32S3" board.
Hence the problem should be somewhere in the ArduinoBLE library or in the esp-idf framework.

Where could I report the problem so somebody responsible will check it?