Stack overflow in task ble
Posted: Mon Apr 24, 2023 12:45 pm
Hi,
I use a ESP32 WROVER and run IDF 4.4.3.
The device is setup as BLE central and peripheral.
If the device connects to a peripheral and the peripheral sends more than 150 bytes in a notification (frame will be fragmented)
the device crashes with this crashlog:
***ERROR*** A stack overflow in task ble has been detected.
Backtrace: 0x4008207a:0x3ffe6d00 0x40092995:0x3ffe6d20 0x40095ebe:0x3ffe6d40 0x400944f1:0x3ffe6dc0 0x40092a90:0x3ffe6df0 0x40092a42:0xa5a5a5a5 |<-CORRUPTED
0x4008207a: panic_abort at C:/repo/esp_4_4_3/components/esp_system/panic.c:402
0x40092995: esp_system_abort at C:/repo/esp_4_4_3/components/esp_system/esp_system.c:128
0x40095ebe: vApplicationStackOverflowHook at C:/repo/esp_4_4_3/components/freertos/port/xtensa/port.c:394
0x400944f1: vTaskSwitchContext at C:/repo/esp_4_4_3/components/freertos/tasks.c:3505
0x40092a90: _frxt_dispatch at C:/repo/esp_4_4_3/components/freertos/port/xtensa/portasm.S:436
0x40092a42: _frxt_int_exit at C:/repo/esp_4_4_3/components/freertos/port/xtensa/portasm.S:231
I've tested to increase the BLE task stack with 2000 bytes in the config menu but I get same error.
How can I solve this?
I use a ESP32 WROVER and run IDF 4.4.3.
The device is setup as BLE central and peripheral.
If the device connects to a peripheral and the peripheral sends more than 150 bytes in a notification (frame will be fragmented)
the device crashes with this crashlog:
***ERROR*** A stack overflow in task ble has been detected.
Backtrace: 0x4008207a:0x3ffe6d00 0x40092995:0x3ffe6d20 0x40095ebe:0x3ffe6d40 0x400944f1:0x3ffe6dc0 0x40092a90:0x3ffe6df0 0x40092a42:0xa5a5a5a5 |<-CORRUPTED
0x4008207a: panic_abort at C:/repo/esp_4_4_3/components/esp_system/panic.c:402
0x40092995: esp_system_abort at C:/repo/esp_4_4_3/components/esp_system/esp_system.c:128
0x40095ebe: vApplicationStackOverflowHook at C:/repo/esp_4_4_3/components/freertos/port/xtensa/port.c:394
0x400944f1: vTaskSwitchContext at C:/repo/esp_4_4_3/components/freertos/tasks.c:3505
0x40092a90: _frxt_dispatch at C:/repo/esp_4_4_3/components/freertos/port/xtensa/portasm.S:436
0x40092a42: _frxt_int_exit at C:/repo/esp_4_4_3/components/freertos/port/xtensa/portasm.S:231
I've tested to increase the BLE task stack with 2000 bytes in the config menu but I get same error.
How can I solve this?