This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: Heap size required for LE Secure Connections pairing

Part Number: CC2640R2F
Other Parts Discussed in Thread: BLE-STACK

Hello,

Related to earlier posts on a similar theme, I'm running a BLE application using LE Secure Connections and I'm seeing the SMP_PAIRING_FAILED_UNSPECIFIED error being reported. I am using SimpleLink SDK version 3.20.00.21.

The error isn't consistent across all BLE central devices I'm testing with. Most central devices work, but one fails consistently with the same error.

I've read comments in other posts regarding increasing the heap memory available for BLE-Stack to use. I've tried this and it fixes the problem, but only if I increase the heap size by over 1.5KB by stripping out most of my application's functionality.

It would be really useful to understand what would trigger the extra heap allocation between different central devices. Can you offer any guidance?

For reference, some of my heap-related settings are:

MAX_NUM_BLE_CONNS: 1

MAX_NUM_PDU: 5

MAX_PDU_SIZE: 119

Thanks for your assistance.

John