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.

Problem adding custom service files to CC2650 simpleBLEPeripheral project virtual folder

Hello,

I am trying to add my own ADCservice.c and ADCservice.h files into virtual folder of simpleBLEPeripheral project.

Basically those included in ADCservice.h file are the proto-types of the 4 functions, and ADCservice.c file includes detailed codes for each of those.

ADCservice_AddService

ADCservice_RegisterAppCBs

ADCservice_SetParameter

ADCservice_GetParameter

For the source file: ADCservice.c and header file: ADCservice.h, I tried either linking them (use either relative path or absolute path) to the project, or copying them and adding them into the “include options”.

However, I always run into the same problem, once I tried to compile the project:

I called those four functions in source file simpleBLEPeripheral.c, and adds #include "ADCService.h" at the beginning as well.

*******************************************************************************

However, once I tried to compile the project, I got following messages:

Description      Resource         Path     Location          Type

#10010 errors encountered during linking; "SimpleBLEPeripheral.out" not built            SimpleBLEPeripheral                         C/C++ Problem

<a href="file:/c:/ti/ccsv6/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain           SimpleBLEPeripheral                         C/C++ Problem

unresolved symbol ADCService_SetParameter, first referenced in <whole-program>            SimpleBLEPeripheral                         C/C++ Problem

*******************************************************************************

The problems are from the two functions: ADCservice_SetParameter and ADCservice_GetParameter.

Based on what I observed, once I press F3 (open declarations) on functions: ADCservice_AddService and ADCservice_RegisterAppCBs, CCS will pop up window of ADCservice.c. However, once I press F3 (open declarations) on functions: ADCservice_SetParameter and ADCservice_GetParameter, CCS will only pop up window of ADCservice.h.

It seems to me that, CCS is not able to configure functions: ADCservice_SetParameter and ADCservice_GetParameter, while it is able to configure functions: ADCservice_AddService and ADCservice_RegisterAppCBs.

Could anyone give me some hints about how to solve this problem? Thanks in advance! Much appreciated!

Best,

Xiaoxiao