I am using cc26x2_sdk_2_20_00_36 with BDS 1.1.3139 and Ti BDS plugin 1.0.10.
Info - Packaging Profile data for the plugin - Texas Instruments CC26xx BLE SDK v2.1 GATT Server plugin
The generated code has missing includes and defines when trying to compile with IAR 8.30.1.17148
Error[Pe020]: identifier "linkDBNumConns" is undefined my_service.c 327
Can be fixed by adding:
#Include <icall_ble_apimsg.h>
and
Error[Pe020]: identifier "INVALID_CONNHANDLE" is undefined my_service.c 334
This should be LL_CONNHANDLE_INVALID as per simplelink_cc26x2_sdk_2_20_00_36/docs/ble5stack/ble_user_guide/html/ble-stack-5.x-guide/ble5stack1.00.01-to-ble5stack1.01.00.html?highlight=invalid_connhandle#undefined