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.

SIMPLELINK-CC13X2-26X2-SDK: How to enable GapBondMgr in host_test from sdk_4_40_00_44?

Part Number: SIMPLELINK-CC13X2-26X2-SDK
Other Parts Discussed in Thread: SYSCONFIG

Up to now I could enable it with just 2 defines: 

  • -DGAP_BOND_MGR
  • OSAL_SNV=2

Like from the guide below...

1. Configure the stack to include GAPBondMgr functionality by defining the following in build_config.opt in the stack project:

  • -DGAP_BOND_MGR

2. The stack must also be configured to use 1 or 2 SNV pages, by defining OSAL_SNV=1 or OSAL_SNV=2 as a preprocessor-defined symbol in the stack project.

In the new sdk_4_40_00_44 it seems to be different. Can someone please point in the right direction?

This is what I get when I call any GAPBondMgr function if I manually define in my app DGAP_BOND_MGR and OSAL_SNV=2

  • Hi,

    I managed to properly build the host_test project with the GAPBondMgr by doing the following:

    1- Add the 2 defines mentioned to build_config.opt (stored in the folder TOOLS of your project):

    -DGAP_BOND_MGR
    -DOSAL_SNV=2

    2- Open Project Properties > Build > Arm Linker. Remove the include of the libraries

    ${WORKSPACE_LOC}/Stack_Wrapper/Stack_Wrapper/Stack_Wrapper.lib
    ${SRC_BLE_DIR}/libraries/cc26x2r1/ble_r2.symbols
    ${SRC_BLE_DIR}/libraries/cc26x2r1/OneLib.a

    And add the following:

    ti/ble5stack/libraries/cc26x2r1/OneLib.a
    ti/ble5stack/libraries/cc26x2r1/StackWrapper.a
    ti/ble5stack/libraries/cc26x2r1/ble_r2.symbols

    You should get the following include library:

    Let us know if it works for you.

    Best regards,

  • Thank you for your complete and detailed answer.

    I can confirm it works now. I have added also L2CAP_CoC and that one works as well.

    In the past I found it helpful that the defines below were all listed in build_config.opt of the stack project and I had only to comment / uncomment what I needed.

    /* Include GAP Bond Manager */
    -DGAP_BOND_MGR
    
    -DOSAL_SNV=2
    
    /* BLE v4.1 Features */
    -DV41_FEATURES=L2CAP_COC_CFG
    
    /* GATT Database being off chip */
    /* -DxGATT_DB_OFF_CHIP*/
  • Hi,

    Thank you for confirming it is working.

    krs said:
    In the past I found it helpful that the defines below were all listed in build_config.opt of the stack project and I had only to comment / uncomment what I needed.

    Thank you for this piece of feedback. I guess these defines are not anymore in build_config.opt because for all the BLE project except host_test this file is now generated by SysConfig. That being said I will discuss this with our R&D team to see if we can do something more user friendly.

    Best regards,