Hello,
I'm running into Bond Manager issues on my project. This particular issue is cropping up in our CC2640R2F build. We're running as a peripheral (-DHOST_CONFIG=PERIPHERAL_CFG) only with simplelink_cc2640r2_sdk_1_50_00_58.
I'll be trying to capture things on a BLE sniffer later this week, but for now I was hoping to get some insight into the error code I'm seeing. Here's an excerpt from our debug log shortly after the connection is established:
60.342 0x20002660: *****BLE Connected*****
60.346 0x20002660: Peer Address: 0x98BB1E021001, Addr Type: 0
60.352 0x20002660: Good Peer addr; resetting DTC buffs
60.439 0x20002660: HCI_BLE_DATA_LENGTH_CHANGE_EVENT received
60.445 0x20002660: Tx size: 135, Rx size: 64
60.530 0x20002e4c: ******bondMgrCB(): connHandle=0, state=0, status=0******
60.538 0x20002e4c: ******bondMgrCB(): connHandle=0, state=1, status=8******
60.546 0x20002660: HCI_COMMAND_STATUS event received
60.551 0x20002660: OpCode: 0x2025, Status: 0x0, numHciCmdPkt: 0x1
60.557 0x20002660: 1192 bytes of heap free, largest chunk: 648 bytes
The last bond manager callback reports:
GAPBOND_PAIRING_STATE_COMPLETE --> SMP_PAIRING_FAILED_UNSPECIFIED : encryption failed to start
It looks like the HCI_COMMAND_STATUS event that gets printed right after the bondMgrCB() is reporting the successful generation a DHKey...so that seems good. I also periodically print the heap metrics, and there's over 1 kB free so I dont' think that's the issue either.
Any ideas on what trips this "unspecified" error?