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.

CCS/CC2650MODA: CC2650MODA GAP_BONDINGS_MAX

Part Number: CC2650MODA

Tool/software: Code Composer Studio

Hello
We use CC2650MODA
How many maximum bonding keys can be stored?

In the gapbondmgr.h file
#define GAP_BONDINGS_MAX 10
If I change the value to 15 or 20, is it possible to store more than 10 bonding keys?

Thank you

  • Hi SoonJae,

    You can change GAP_BONDINGS_MAX, but you must then also redistribute the bond record ID's used by SNV.

    See src/inc/bcomdef.h, and find BLE_NVID_GAP_BOND_START + END, also BLE_NVID_GATT_CFG_START + END.

    _GAP_BOND needs 6 "id"'s per bond, and _GATT_CFG needs 1 "id" per bond. The ID is a record identifier in the simple NV storage. If you are not using SNV in your own application, you may move BLE_NVID_CUST_START up to say 0xF0 to 0xFF and then expand the two others mentioned.

    This should be somewhat explained in gapbondmgr.c in the comment section named GAP Bond Manager NV layout, and in bcomdef.h.

    That being said, we don't test this so we can't support it, and there may possibly be timing implications if you have a lot of entries and the bond manager needs to spend more time finding the correct bond record.

    Best regards,
    Aslak