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/CC2640: ccsv9 Project Copy/Paste leaves something behind

Part Number: CC2640
Other Parts Discussed in Thread: CC2650,

Tool/software: Code Composer Studio

I imported spp_BLE_server_cc2650lp_app from GitHub Example 2.2 into ccsv9 with both boxes checked for "Automatically import referenced projects found in the same directory" and "Copy projects into workspace". There are no issues building spp_BLE_server_cc2650lp_app.

I used copy/paste on project spp_BLE_server_cc2650lp_app and renamed the project GENII_spp_ble_server_cc2640genII_app. I used copy/paste on the CC2650_LAUNCHPADXL folder to create a new CC2640_GENII folder so that I could modify the board files. I changed a Predefined Symbol from CC2650_LAUNCHXL to xCC2650_LAUNCHXL and added CC2640_GENII. The only other changes I made are to pin assignments in the board files.

When I build GENII_spp_ble_server_cc2640genII_app, I get one error "#20 identifier UARTCC26XX_HWAttrsV2 is undefined." I have verified that my CC2640_GENII.c file is identical to the CC2650_LAUNCHXL.c except for the filename.

I put my modified board files into the CC2650_LAUNCHPADXL folder and I get the same error.

I'll be darned if I can't figure out why this one constant is undefined in my copied project but not the original. Maybe there's a path somewhere that I need to update, but where?

  • Hi Dennis,

    In general I would not recommend re-naming CC2650 projects in CCS. If you want to change just the name of the project you can change it directly in the .cproject file.
  • Unfortunately, this did not resolve my issue.

    Is this a bug in ccsv9? I didn't have any problems renaming projects in ccsv7.

    Anyway, I am still looking for a solution.
  • I have some more information to share. I attached 2 notepad.txt files. One is a copy of the console output after building two virtually identical projects spp_ble_server_cc2650lp_app" and "GENII_spp_ble_server_cc2640genII_app." The projects are identical except for the names and board files. The board files are identical except for names and some pin assignments.

    I notice that "spp_ble_server_cc2650lp_app" builds sdi_tl_uart.c and ccfg_app_ble.c before building board.c. "GENII_spp_ble_server_cc2640genII_app" attempts to build board.c before sdi_tl_uart.c and ccfg_app_ble.c, resulting in compilation failure.

    The error message is the same as before, "#20 identifier "UARTCC26XX_HWAttrsV2" is undefined.

    Where else should I look to resolve the error?

    Build of configuration Debug for project GENII_spp_ble_server_cc2640genII_app.txtBuild of configuration Debug for project spp_ble_server_cc2650lp_app.txt

  • My issue is resolved.

    Apparently I copied board files from ble_sdk_2_02_02_25 and pasted into my project in ble_sdk_2_02_01_18. I traced my compilation errors to this mistake.

    The files in ble_sdk_2_02_02_25 define UARTCC26XX_HWAttrsV2 and ble_sdk_2_02_01_18 files do not.

    I have not confirmed any issues with copy/paste in my ccsv9 projects. I understand that other users have had issues, so it's something I will keep in mind.

    I regret my error. It was a personal problem having nothing to do with Example 2.2 and ccsv9.

    Thanks!