T-vK / ESP32-BLE-Keyboard

Bluetooth LE Keyboard library for the ESP32 (Arduino IDE compatible)
2.28k stars 379 forks source link

ESP32-S3 errors when running the example code in README #228

Open dejavu1987 opened 1 year ago

dejavu1987 commented 1 year ago

I used the example code in README file. The advertising works successfully, but when I try connecting to it, the following error is logged. Guru Meditation Error: Core 0 panic'ed (Unhandled debug exception). Debug exception reason: Stack canary watchpoint triggered (BTC_TASK)

[ 23715][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23725][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
[ 23733][V][BLEServer.cpp:280] handleGATTServerEvent(): << handleGATTServerEvent
[ 23740][D][BLEDevice.cpp:102] gattServerEventHandler(): gattServerEventHandler [esp_gatt_if: 3] ... ESP_GATTS_SET_ATTR_VAL_EVT
[ 23751][V][BLEUtils.cpp:1530] dumpGattServerEvent(): GATT ServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23760][V][BLEUtils.cpp:1720] dumpGattServerEvent(): dumpGattServerEvent: *** NOT CODED ***
[ 23768][V][BLEServer.cpp:144] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23778][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23788][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
[ 23796][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23806][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
[ 23814][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23824][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
[ 23832][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23842][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
[ 23850][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23860][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
[ 23868][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23878][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
[ 23886][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23896][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
[ 23904][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23914][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
[ 23922][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23932][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
[ 23940][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_SET_ATTR_VAL_EVT
[ 23950][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
[ 23958][V][BLEServer.cpp:280] handleGATTServerEvent(): << handleGATTServerEvent
[ 23966][D][BLEDevice.cpp:102] gattServerEventHandler(): gattServerEventHandler [esp_gatt_if: 3] ... ESP_GATTS_RESPONSE_EVT
[ 23976][V][BLEUtils.cpp:1530] dumpGattServerEvent(): GATT ServerEvent: ESP_GATTS_RESPONSE_EVT
[ 23984][V][BLEUtils.cpp:1666] dumpGattServerEvent(): [status: ESP_GATT_OK, handle: 0x2c]
[ 23992][V][BLEServer.cpp:144] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_RESPONSE_EVT
[ 24002][V][BLECharacteristic.cpp:205] handleGATTServerEvent(): >> handleGATTServerEvent: ESP_GATTS_RESPONSE_EVT
[ 24011][V][BLECharacteristic.cpp:465] handleGATTServerEvent(): << handleGATTServerEvent
Guru Meditation Error: Core  0 panic'ed (Unhandled debug exception). 
Debug exception reason: Stack canary watchpoint triggered (BTC_TASK) 
Core  0 register dump:
PC      : 0x4037e500  PS      : 0x00060736  A0      : 0x4037806d  A1      : 0x3fca3c70  
A2      : 0x00000000  A3      : 0x00005dd3  A4      : 0x3fca3f23  A5      : 0x00000000  
A6      : 0x00000000  A7      : 0x00000000  A8      : 0x8208564d  A9      : 0x3fca3d10  
A10     : 0x00000961  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x00000000  
A14     : 0x00000075  A15     : 0xff000000  SAR     : 0x00000004  EXCCAUSE: 0x00000001  
EXCVADDR: 0x00000000  LBEG    : 0x400556d5  LEND    : 0x400556e5  LCOUNT  : 0xfffffff3  

Backtrace: 0x4037e4fd:0x3fca3c70 0x4037806a:0x3fca4040 0x4208be4a:0x3fca40d0 0x42010675:0x3fca4110 0x42068978:0x3fca4150 0x42005ae5:0x3fca41d0 0x42006b65:0x3fca4490 0x4200beb5:0x3fca44b0 0x4200c7f1:0x3fca4510 0x4200b84e:0x3fca4530 0x42007de5:0x3fca4590 0x4201e1b6:0x3fca45f0 0x4201e73d:0x3fca4610 0x4203ecf5:0x3fca4910 0x420432bf:0x3fca4930

ELF file SHA256: 08a7864263170994

Rebooting...
�ESP-ROM:esp32s3-20210327