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.

CC2340R5: error: use of undeclared identifier 'CONNHANDLE_ALL'

Part Number: CC2340R5
Other Parts Discussed in Thread: CC2640R2F, CC2640

Hi TI members,

Below is my building environment:

Software

Version

Code Composer Studio

12.3.0.00005 

SimpleLink SDK

7.10.00.35

XDCtools

3.62.1.16_core

We are working on migrating an old project from CC2640R2F to CC2340R5.

I tried to use the same function from CC2640R2F in our new CC2340R5 project which is based on  the basic_ble example project.

But I got following errors:

error: use of undeclared identifier 'CONNHANDLE_ALL'
GAP_CB_REGISTER, CONNHANDLE_ALL);

I could find the "CONNHANDLE_ALL" defined under INCLUDE/linkdb.h like below:

But I had no idea where did this file come from?

And where should I define the same item in CC2340R5 project while I currently use basic_ble sample project and there's no INCLUDE/linkdb.h by default.

Shall I manually copied the file to CC2340R5 project or shall I create a header file to put those missing definitions?

Thanks.

BR,