ESP32S3 BLE.end() crash

source2k
Posts: 2
Joined: Wed Jun 12, 2024 3:47 pm

ESP32S3 BLE.end() crash

Postby source2k » Wed Jun 12, 2024 5:07 pm

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 45 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 41 times
Does somebody knows the reason?

source2k
Posts: 2
Joined: Wed Jun 12, 2024 3:47 pm

Re: ESP32S3 BLE.end() crash

Postby source2k » Mon Jun 17, 2024 12:08 pm

I created an example which stops and restarts BLE.
testBLEESP32S3_240617_1_crashing_on_esp32s3.ino.zip
(924 Bytes) Downloaded 41 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?

Who is online

Users browsing this forum: BerndN and 55 guests