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/LAUNCHXL-CC26X2R1: Compilation error when enabling bond manager

Part Number: LAUNCHXL-CC26X2R1
Other Parts Discussed in Thread: SYSCONFIG

Tool/software: Code Composer Studio

I use cc 10.1.1 and sysconfig. on a host_test project.

When I enable bond manager via sys config I get the following errors, even though in host_test.sysconfig file, the 2 defines are present and correct.

>> Compilation failure
Startup/subdir_rules.mk:9: recipe for target 'Startup/osal_icall_ble.obj' failed
"../Startup/osal_icall_ble.c", line 231: error #20: identifier "GAP_BONDINGS_MAX" is undefined
"../Startup/osal_icall_ble.c", line 231: error #20: identifier "GAP_CHAR_CFG_MAX" is undefined
2 errors detected in the compilation of "../Startup/osal_icall_ble.c".
gmake: *** [Startup/osal_icall_ble.obj] Error 1
gmake: Target 'all' not remade because of errors.

below the line that generates the error.

#if defined ( GAP_BOND_MGR )
  /* Bond Manager Task */
  GAPBondMgr_Init( taskID++, GAP_BONDINGS_MAX, GAP_CHAR_CFG_MAX, cfg_gapBond_gatt_no_client, cfg_gapBond_gatt_no_service_changed);
#endif /* GAP_BOND_MGR */

  • Hi,

    What version of the SDK are you using?

    Best Regards,
    Alec

  • Hello,

    I am using simplelink_cc13x2_26x2_sdk_4_30_00_54.

    ...This SDK... should be made a mandatory field for BLE questions :D

  • Hi,

    Trust me, I often wish it was as well. In regards to your question, how are you enabling it in sysconfig? When I tried to do this on my local version, I see that we use a "Custom" RF stack in sysconfig rather than the normal BLE one, which means I don't have the bond manager available. Do you see something different on your end, or am I misunderstanding?

    Best Regards,
    Alec

  • I forgot to mention this. I have unchecked Custom and Checked BLE.

    There I have bond manager ticked by default! I have no control over that setting. (but it does not bother me because I need it enabled).

    An then I get the compilation error mentioned above.

  • In the BLE configuration I just found a warning that this BLE section works only with simple_central, peripheral, multi_role. There is no mention of host_test... could this be the issue that host_test is not supported?

  • Hi,

    Yes, I believe host_test is set up using the custom section rather than the BLE one to support some of the specific dependencies of the example, so changing it will very likely break the example. Since host test uses HCI commands to make most of its decisions, certain decisions that are normally passed to the application would then be determined instead by the HCI commands that the device receives. Let me know if this clears things up.

    Best Regards,
    Alec

  • Ok understood. I will use Custom and not BLE for my host_test project.