You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
Release 5.4
Espressif SoC revision.
ESP32-C3 (QFN32) (version v0.4)
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Custom board with ESP32-C3-WROOM-02 module
Power Supply used.
USB
What is the expected behavior?
ESP32C3 device acting as ble central is bonded with a Silab BG22 peripheral. On one restart of the ESP32C3 device, the ble central app crashed during device service discovery.
What is the actual behavior?
The one crash we saw was traced to Peer.c Line 328 assert.
Steps to reproduce.
Not repeatable, happened randomly 2 times in a month on esp32c3 device startup.
github-actionsbot
changed the title
Peer.c line 328 assert fail in a blecentral application
Peer.c line 328 assert fail in a blecentral application (IDFGH-14698)
Feb 20, 2025
Looking at the logs, it seems that the server is sending incorrect information.
The svc_start_handle provided to peer_chr_add might not match any existing service in the list. A wrong start handle could be used due to incorrect parsing.
Please check this on the server side. However, since the server provides incorrect values, it is causing an assert.
Please provide sdkconfig and debug logs.
To prevent this, I have modified the code and attached a patch file below, which should help avoid the issue.
Additionally, please try with NimBLE examples and verify the behavior.
Answers checklist.
IDF version.
Release 5.4
Espressif SoC revision.
ESP32-C3 (QFN32) (version v0.4)
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Custom board with ESP32-C3-WROOM-02 module
Power Supply used.
USB
What is the expected behavior?
ESP32C3 device acting as ble central is bonded with a Silab BG22 peripheral. On one restart of the ESP32C3 device, the ble central app crashed during device service discovery.
What is the actual behavior?
The one crash we saw was traced to Peer.c Line 328 assert.
Steps to reproduce.
Not repeatable, happened randomly 2 times in a month on esp32c3 device startup.
Debug Logs.
More Information.
No response
The text was updated successfully, but these errors were encountered: