Page 1 of 1

ESP32-C5 NimBLE crashes

Posted: Thu Feb 19, 2026 11:17 pm
by ashesman
After being connected for a while with an android phone, when the phone is put to sleep, after a period of time, NimBLE reports the following error message. After that, the BLE device can not be found again (i.e. it can not return to advertising).

I think HCI errors are an internal ESP32-NimBLE port problem?

I (182108) NimBLE: GATT procedure initiated: notify;
I (182108) NimBLE: att_handle=5
I (242118) NimBLE: GAP procedure initiated: terminate connection; conn_handle=0 hci_reason=0
I (242118) NimBLE: ogf=0x01, ocf=0x0006, hci_err=0x212 : BLE_ERR_INV_HCI_CMD_PARMS (Invalid HCI Command Parameters)

Please let me know if you need further information.