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/CC2640R2F: BLE-Stack: Simple Serial Socket Server/Client

Part Number: CC2640R2F
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

HI,

I downloaded the zip file from :

And tried to import the projects into CCS  but got the following missing files error. I have my TI folder on the d drive

However, the ZIP file I extracted doesn’t come with these files anyways.. So I wont be able to build even if I solve the path issue.

How I download a complete project file including this missing files?

  • Hi Ozzy,

    Did you install the accompanying SimpleLink CC2640R2 SDK?

    You can read about how to use the examples here: 

  • Marie,

    I downloaded the zip file from Github and extracted into my D:\ti directory.

    Ozzy

  • No.. please send me link to the install executable.

    Thanks

    Ozzy

  • Ozzy,

    Here is the SDK installer location for that specific version. 

    http://www.ti.com/tool/download/SIMPLELINK-CC2640R2-SDK/3.30.00.20

    regards,

    Prasanna.

  • Thanks Prasanna,

    Downloading now....

    Ozzy

  • This helped some.  No I can at least build both the Client and Server Apps but they wont link due to error:

    Client:

     undefined                      first referenced
      symbol                            in file     
     ---------                      ----------------
     GAPCentralRole_CancelDiscovery <whole-program>
     GAPCentralRole_EstablishLink   <whole-program>
     GAPCentralRole_SetParameter    <whole-program>
     GAPCentralRole_StartDevice     <whole-program>
     GAPCentralRole_StartDiscovery  <whole-program>
     GAPCentralRole_createTask      <whole-program>
     Util_constructClock            <whole-program>
     Util_constructQueue            <whole-program>
     Util_dequeueMsg                <whole-program>
     Util_enqueueMsg                <whole-program>
     Util_startClock                <whole-program>
     
    error #10234-D: unresolved symbols remain
     
    error #10010: errors encountered during linking; "simple_serial_socket_client_cc2640r2lp_app.out" not built
    >> Compilation failure
    makefile:181: recipe for target 'simple_serial_socket_client_cc2640r2lp_app.out' failed
    gmake[1]: *** [simple_serial_socket_client_cc2640r2lp_app.out] Error 1
    gmake: *** [all] Error 2
    makefile:174: recipe for target 'all' failed

    **** Build Finished ****

    Server:

    undefined            first referenced
      symbol                  in file     
     ---------            ----------------
     GAPRole_GetParameter <whole-program>
     GAPRole_SetParameter <whole-program>
     GAPRole_StartDevice  <whole-program>
     GAPRole_createTask   <whole-program>
     Util_constructQueue  <whole-program>
     Util_dequeueMsg      <whole-program>
     Util_enqueueMsg      <whole-program>
     
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "simple_serial_socket_server_cc2640r2lp_app.out" not built
     
    >> Compilation failure
    makefile:181: recipe for target 'simple_serial_socket_server_cc2640r2lp_app.out' failed
    gmake[1]: *** [simple_serial_socket_server_cc2640r2lp_app.out] Error 1
    makefile:174: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

    The Stack libraries are building fine.

    Ozzy

  • Hi Ozzy,

    Are you running the 3.30 version of the git hub code together with the 3.30 SDK? Do you get any errors when importing the projects?

  • Yes.. I am.

    I got errors initially because I have everything on my D Drive.  I had to change the  path variables in pojects>Resource>Linked Resources.

    However Im still getting Link errors.

    Ozzy

  • What is your actual path to the project in question (to both the SDK and the github projects)? 

  • both are in D:\ti

    D:\ti>dir
     Volume in drive D is Data
     Volume Serial Number is C9D8-DBE0

     Directory of D:\ti

    03/06/2020  11:12 AM    <DIR>          .
    03/06/2020  11:12 AM    <DIR>          ..
    03/03/2020  04:16 PM    <DIR>          ble_examples-master
    03/03/2020  03:54 PM           371,722 ble_examples-master.zip
    03/03/2020  05:08 PM           375,682 ble_examples-simplelink_cc2640r2_sdk-3.30
    .zip
    03/05/2020  05:59 PM    <DIR>          ccsv8
    06/20/2018  12:47 PM             1,015 Code Composer Studio 8.1.0.lnk
    03/05/2020  05:58 PM             1,015 Code Composer Studio 8.3.1.lnk
    02/20/2020  03:51 PM    <DIR>          simplelink_audio_plugin_0_12_00_18_eng
    03/06/2020  12:00 PM    <DIR>          simplelink_cc2640r2_sdk_3_30_00_20
    03/04/2020  05:30 PM    <DIR>          simplelink_cc2640r2_sdk_3_30_00_20_github

    06/26/2018  02:59 PM    <DIR>          simplelink_cc32xx_sdk_1_50_00_06
    06/20/2018  01:54 PM    <DIR>          simplelink_cc32xx_sdk_2_10_00_04
    06/28/2019  07:23 PM    <DIR>          simplelink_cc32xx_sdk_3_20_00_06
    12/04/2019  02:55 PM    <DIR>          simplelink_cc32xx_sdk_3_30_01_02
    12/04/2019  02:56 PM    <DIR>          simplelink_sdk_ble_plugin_3_20_00_24
    10/25/2019  01:57 PM    <DIR>          uniflash_4.1
    07/24/2018  04:11 PM    <DIR>          uniflash_4.3.1
    06/18/2019  04:20 PM    <DIR>          uniflash_5.0.0
    06/20/2018  11:42 AM    <DIR>          xdctools_3_32_02_25_core
    06/20/2018  01:53 PM    <DIR>          xdctools_3_50_05_12_core
    10/24/2019  02:59 PM    <DIR>          xdctools_3_50_07_20_core
    10/24/2019  02:58 PM    <DIR>          xdctools_3_51_01_18_core
    06/28/2019  07:15 PM    <DIR>          xdctools_3_51_03_28_core
                   4 File(s)        749,434 bytes
                  20 Dir(s)  10,043,609,088 bytes free

    D:\ti>

    Ozzy

  • I have performed sanity checks of this myself and I do not have any issues. The fact that you get path issue to start with is concerning however.

    Also, some of the symbols like "Util_*" is something that should be compiled as part of the project. These not being found hints on some links being of. If you expand the "Application" folder in the project and look at the "util.c/h" files, is these working/present or is these marked as missing?

  • I dont see the util.c/h files in the applications folder..

    How can I include these?

    Thanks,

    Ozzy

  • You can manually include them from the github application source folders. These should however be imported when you load the projectspec in CCS. If they are not, I assume you get an "Error" pop-up when importing it, is this the case? If it is, what does it say?

  • How do I include?  Just add files to project?

    Here is the error message:

  • M-W,

    I copied the bleapps folders,  for client and server into from the github zip file download to the SDK download because of the errors above. 

    I was able to build the libraries but the linking is broken.

    The errors on missing files from my previous post are all in the SDK ,but some how the linker commands from the projects that I copied from the Github download cant find those Symbols.

    How can I make it find them?

    Thanks,

    Ozzy

  • They are not found in the the github application...

    Ozzy

  • Hi Ozzy,

    This seem to be related to your environment variables being of, did you install the SDK into the D drive or did you move it there yourself after installing?

    Your SDK environmental seems to think the SDK is installed under C:/ti and not D:/ti. This is why the projects do not import as expected. As you can see by the errors, multiple files are missing which is why you can not link the project.

  • I installed  this SDK in D:\   and I copied the Github project to D as well.

    However, I have and older C:\ installation.. 

    How do I change environment variables?

    Ozzy

  • It is a CCS variable that should be set as CCS detects the newly installed SDK. As long as you do not move it around i would assume it to be correct. Can't say for sure, but let's assume CCS might be confused by the old installation for some reason. I would recommend you remove the old version if possible and possible also CCS 8.*.

    You can then start over installing the CCS version recommended for the SDK (CCS-9.0.0.00013), as an alternative you could run with the latest CCS available, I would not expect it to be an issue, the recommended version is simply there as a "disclaimer" as it is the SDK used when testing that particular SDK.

    Hopefully, the new CCS installation would detect and "install" the SDK product as expected. 

  • M-W,

    I remove CCS8 and install CCS9.  To sum it all up , I am still getting the same linking errors.

    Here were my steps...

    1. Imported the Simple Serial Socket Client App  and got these errors:

    2. Changed the path variable to point to the the D: drive where my CCS9 installation is at:

    2. Built the stack_library... No issues.. built fine.

    3.  Built app and got these errors:

    4.  My workspace is on the C: Drive..

    Have you been able to get this project to build  on you CCS9?

    Thanks,

    Ozzy

  • Hi Ozzy,

    It is the "COM_TI_SIMPLELINK_CC2640R2_SDK_INSTALL_DIR" one that is the issue in your case, this is what is used when importing the projects. Based on your errors I assume you still have the import issue. Just to clarify, as long as you get errors when importing the project that it can't find files, then it wont build.

    Yes, I have no issues importing or compiling these project, but I know that by install dir variable is correct (and I conveniently has it under C:/ti per default as I only have one drive). 

    Unless you really care to fix this, you can find the .projectspec files in the examples directory (these files is the recipe used by CCS to import projects) and replace the use of "COM_TI_SIMPL....." with the actual path of each files.