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.

Fixing Error compiling CC2650STK code of BLE2.2.0 on CCSTUDIO

Other Parts Discussed in Thread: CC2650STK, BLE-STACK, CCSTUDIO, CC2650

Hi,

I just want to share how I fix the error which I encountered when trying to compile the CC2650stk app project from BLE-Stack 2.2.0 on CCSTUDIO 6.3.

After importing the sensortag_cc2650_stk_app project as is with "Copy projects into workspace" option checked, and try to compile it, you might see the following error:

Description Resource Path Location Type
gmake: *** No rule to make target 'C:/src/examples/sensortag/cc26xx/app/sensortag_oad.c', needed by 'Application/sensortag_oad.obj'. sensortag_cc2650stk_app Unknown C/C++ Problem

in order to fix this problem, search for "sensortag_oad.c" and "sensortag_oad.h" in the project explorer under "Application folder". If you click both files you will see the warning that it is not properly linked to the CCS project.

To solve this, do right on each file, and select "Properties", then you will get a pop-up window like this:

click the "Edit" button, and change the location from:

PROJECT_LOC\..\..\..\..\..\src\examples\sensortag\cc26xx\app\sensortag_oad.*

to:

SRC_EX\examples\sensortag\cc26xx\app\sensortag_oad.*

You should be able to click both files without warning now. Then Voilà! the project can be compiled now without errors.

  • Thanks Leo. We'll have this fixed in a maintenance release.
  • Cool and Thanks for sharing this!!
  • Thanks, Leo. I added this post to the Known Issues / Workaround on the Porting wiki guide.

    Just to clarify, this build issue does not occur when "Copy projects into workspace" is unchecked (not selected).

    Best wishes
  • Leo - thanks, that was the solution to the 'missing rule' error (I don't see a Verify Answer button ...)

    However, when I build the project now I get the warning that my compiler (ARM 5.2.5) is different from the one used (5.2.6). When I try to upgrade/update it (using CCS App Center, See More ...) I get a highlighted TI ARM Compiler box, which I select, then after a few seconds a download progress bar which quickly stops and displays "Failed to install the selected add-ons. Please see the Error Log for more details." I have searched through \ti and its sub-folders but I can't find an error log (or anything that looks like it might be one) with a recent date (all are at least two weeks old).

    1 - where will I find the error log
    2 - is the 'wrong compiler' message significant?

    I'm still (trying) to build sesnsortag_cc2650stk_app and _stack.

    Thanks for your help!

    Versions etc:
    Windows 10 Home v1511 b10586.494 64 bit
    AMD A8-4500M Quad core, 2 GHz
    Code Composer Studio Version: 6.1.3.00034
    ARM Compiler Tools 5.2.5 com.ti.cgt.tms470.5.2.5.win32.feature.group Texas Instruments
  • Hi Caron,
    please try to update your compiler version as described here:
    processors.wiki.ti.com/.../Compiler_Updates
  • Leo

    I clicked on the link and found it took me to the same page where I had got the 'CCS App Center' update/upgrade procedure, which did not work. However I re-read your reply and realized you were wanting me to use the procedure just above that section, titled 'Install new features'. I followed your directions (very good - thanks) and was able to get ARM Compiler Tools version 5.2.7 installed successfully. Now when I build the sensortag_cc2650stk_ projects I do not get any build errors.

    Many thanks - problem solved.

    ((I still don't see a 'Verify Answer' button))

    My next task is to try and change some of the I/O functionality on the 2650. I want to assign a digital input pin, a digital output pin, and an analog input pin.

    Where do you suggest I start looking for information on what has to be done to make these changes? I know in principle I have to set up pin i/o function registers, and probably some analog routing, as well as setting up the A2D control registers. However all this is 'buried' in the RTOS, so I would appreciate your pointing me towards the relevant documentation. I assume there is a set of functions that control the hardware that I should be using?

    Thanks again!

  • Hi,

    i am having trouble to use CCS6.2 version 50 and BLE Stack 2.2 examples like sensortag_cc2650stk_app.
    I did not copy the project to my workspace and followed this workaround: processors.wiki.ti.com/.../CC2640_Porting_Projects
    Here is my post: e2e.ti.com/.../547224

    Regards,

    Michael
  • God Bless you!!!
    Thank you so much!!!