Open guille-gv opened 1 year ago
have the same issue here. could not understand why cause this issue.
Hi what do you mean caused by BLE writing into characteristic multiple times?
You are blowing out the stack somewhere (you haven't decoded the backtrace, so I can't know where). Try calling SET_LOOP_TASK_STACK_SIZE at the top of your program first. If that doesn't work, the place to set the stack size for BLE is at https://github.com/espressif/arduino-esp32/blob/master/libraries/ESP32/examples/ArduinoStackSize/ArduinoStackSize.ino#L20. It seems like there ought to be a way to set that programmatically rather than editing the source code, but I am not a BLE expert.
Board
ESP32-S3-WROOM-1 module
Device Description
Custom board with ESP32-S3-WROOM-1 module
Hardware Configuration
I have a custom board, making use of:
Version
v2.0.4
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
QIO 80MHz
PSRAM enabled
yes
Upload speed
921600
Description
When trying to write into a BLE characteristic multiple times with the BLE_write example of ESP32 BLE Arduino, the module suddenly restarts.
Log console shows a guru meditation error.
Sketch
Debug Message
Other Steps to Reproduce
I also tried in a M1 mac with the same outcome.
I have checked existing issues, online documentation and the Troubleshooting Guide