BLE crashing on connect
Posted: Thu Oct 29, 2020 9:09 am
i am facing an issue that is a blocker for my delivery.
i just upgraded the IDF from ESP-IDF v4.0.1-dirty to v4.2-beta1-227-gf0e87c933-dirty
this upgrade was necessary to overcome an issue with PPP that i was facing.
more on that: https://github.com/espressif/esp-idf/issues/6005
Now, i am facing a new issue.. that is crashing on BLE connect.
I (96864) NewEsp: ESP_GATTS_CONNECT_EVT1, conn_id 0, remote 68:d4:62:2c:0e:af:
I (96864) NewEsp: CONNECT_EVT2, conn_id 0, remote 68:d4:62:2c:0e:af:
I (96864) NewEsp: CONNECT_EVT3, conn_id 0, remote 68:d4:62:2c:0e:af:
I (96874) NewEsp: CONNECT_EVT4, conn_id 0, remote 68:d4:62:2c:0e:af:
I (96884) NewEsp: ESP_GATTS_CONNECT_EVT, conn_id 0, remote 68:d4:62:2c:0e:af:
I (96894) NewEsp: CONNECT_EVT5, conn_id 0, remote 68:d4:62:2c:0e:af:
W (96894) BT_L2CAP: l2cble_start_conn_update, the last connection update command still pending.
ASSERT_ERR(node->corrupt_check == KE_LIST_PATTERN), in ke_mem.c at line 275
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).
Core 0 register dump:
PC : 0x40083368 PS : 0x00060034 A0 : 0x80019f39 A1 : 0x3ffbf434
0x40083368: r_assert_err at ??:?
A2 : 0x00000001 A3 : 0x00000000 A4 : 0x60008048 A5 : 0x3ffbdbe4
A6 : 0x3ffbdbe4 A7 : 0x4008328c A8 : 0x80083368 A9 : 0x3ffbf414
0x4008328c: r_assert_err at ??:?
A10 : 0x0000004c A11 : 0x0000004c A12 : 0x00000010 A13 : 0xffffffff
A14 : 0x00000000 A15 : 0xfffffffc SAR : 0x00000004 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x40083310 LEND : 0x40083317 LCOUNT : 0x00000000
0x40083310: r_assert_err at ??:?
0x40083317: r_assert_err at ??:?
Core 0 was running in ISR context:
EPC1 : 0x4018ad9f EPC2 : 0x40188266 EPC3 : 0x00000000 EPC4 : 0x40083368
0x4018ad9f: uart_hal_write_txfifo at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/soc/src/hal/uart_hal_iram.c:35
0x40188266: esp_pm_impl_waiti at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/esp32/pm_esp32.c:486
0x40083368: r_assert_err at ??:?
Backtrace:0x40083365:0x3ffbf434 |<-CORRUPTED
0x40083365: r_assert_err at ??:?
Core 1 register dump:
PC : 0x40188266 PS : 0x00060634 A0 : 0x800d62b1 A1 : 0x3ffbd690
0x40188266: esp_pm_impl_waiti at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/esp32/pm_esp32.c:486
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000001 A5 : 0x80000001
A6 : 0x00000003 A7 : 0x00060023 A8 : 0x800d61b2 A9 : 0x3ffbd660
A10 : 0x00000000 A11 : 0x00000001 A12 : 0x00000014 A13 : 0x000000a5
A14 : 0x000000a5 A15 : 0x00000000 SAR : 0x00000000 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtrace:0x40188263:0x3ffbd690 0x400d62ae:0x3ffbd6b0 0x40090545:0x3ffbd6d0 0x4008fc29:0x3ffbd6f0
0x40188263: esp_pm_impl_waiti at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/esp32/pm_esp32.c:484
0x400d62ae: esp_vApplicationIdleHook at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/esp_common/src/freertos_hooks.c:63
0x40090545: prvIdleTask at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/freertos/tasks.c:3386 (discriminator 1)
0x4008fc29: vPortTaskWrapper at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/freertos/xtensa/port.c:143
i just upgraded the IDF from ESP-IDF v4.0.1-dirty to v4.2-beta1-227-gf0e87c933-dirty
this upgrade was necessary to overcome an issue with PPP that i was facing.
more on that: https://github.com/espressif/esp-idf/issues/6005
Now, i am facing a new issue.. that is crashing on BLE connect.
I (96864) NewEsp: ESP_GATTS_CONNECT_EVT1, conn_id 0, remote 68:d4:62:2c:0e:af:
I (96864) NewEsp: CONNECT_EVT2, conn_id 0, remote 68:d4:62:2c:0e:af:
I (96864) NewEsp: CONNECT_EVT3, conn_id 0, remote 68:d4:62:2c:0e:af:
I (96874) NewEsp: CONNECT_EVT4, conn_id 0, remote 68:d4:62:2c:0e:af:
I (96884) NewEsp: ESP_GATTS_CONNECT_EVT, conn_id 0, remote 68:d4:62:2c:0e:af:
I (96894) NewEsp: CONNECT_EVT5, conn_id 0, remote 68:d4:62:2c:0e:af:
W (96894) BT_L2CAP: l2cble_start_conn_update, the last connection update command still pending.
ASSERT_ERR(node->corrupt_check == KE_LIST_PATTERN), in ke_mem.c at line 275
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).
Core 0 register dump:
PC : 0x40083368 PS : 0x00060034 A0 : 0x80019f39 A1 : 0x3ffbf434
0x40083368: r_assert_err at ??:?
A2 : 0x00000001 A3 : 0x00000000 A4 : 0x60008048 A5 : 0x3ffbdbe4
A6 : 0x3ffbdbe4 A7 : 0x4008328c A8 : 0x80083368 A9 : 0x3ffbf414
0x4008328c: r_assert_err at ??:?
A10 : 0x0000004c A11 : 0x0000004c A12 : 0x00000010 A13 : 0xffffffff
A14 : 0x00000000 A15 : 0xfffffffc SAR : 0x00000004 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x40083310 LEND : 0x40083317 LCOUNT : 0x00000000
0x40083310: r_assert_err at ??:?
0x40083317: r_assert_err at ??:?
Core 0 was running in ISR context:
EPC1 : 0x4018ad9f EPC2 : 0x40188266 EPC3 : 0x00000000 EPC4 : 0x40083368
0x4018ad9f: uart_hal_write_txfifo at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/soc/src/hal/uart_hal_iram.c:35
0x40188266: esp_pm_impl_waiti at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/esp32/pm_esp32.c:486
0x40083368: r_assert_err at ??:?
Backtrace:0x40083365:0x3ffbf434 |<-CORRUPTED
0x40083365: r_assert_err at ??:?
Core 1 register dump:
PC : 0x40188266 PS : 0x00060634 A0 : 0x800d62b1 A1 : 0x3ffbd690
0x40188266: esp_pm_impl_waiti at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/esp32/pm_esp32.c:486
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000001 A5 : 0x80000001
A6 : 0x00000003 A7 : 0x00060023 A8 : 0x800d61b2 A9 : 0x3ffbd660
A10 : 0x00000000 A11 : 0x00000001 A12 : 0x00000014 A13 : 0x000000a5
A14 : 0x000000a5 A15 : 0x00000000 SAR : 0x00000000 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtrace:0x40188263:0x3ffbd690 0x400d62ae:0x3ffbd6b0 0x40090545:0x3ffbd6d0 0x4008fc29:0x3ffbd6f0
0x40188263: esp_pm_impl_waiti at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/esp32/pm_esp32.c:484
0x400d62ae: esp_vApplicationIdleHook at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/esp_common/src/freertos_hooks.c:63
0x40090545: prvIdleTask at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/freertos/tasks.c:3386 (discriminator 1)
0x4008fc29: vPortTaskWrapper at C:/OLF/Development/Firmware/ESP-IDF/esp-idf_4_2/components/freertos/xtensa/port.c:143