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.

How to link a resource to TI-RTOS install folder

Other Parts Discussed in Thread: CC2650

How is it possible to link a resource to the current TI-RTOS installation folder? I want to link to a board file folder or include board files into a project without copying everything.

I noticed that the TI-RTOS plugin provides a special variable "COM_TI_RTSC_TIRTOSCC13XX_CC26XX_INSTALL_DIR", but it is only available in the build configuration and can not be used as path variable in the project explorer.

Thanks

  • Richard W. said:
    I noticed that the TI-RTOS plugin provides a special variable "COM_TI_RTSC_TIRTOSCC13XX_CC26XX_INSTALL_DIR", but it is only available in the build configuration and can not be used as path variable in the project explorer.

    These variables should also be available as path variables, so you can link files relative to these variables.

    I created an empty project from the Driver Examples for CC2650 LaunchPad, for example, and see all these variables under Path Variables.

  • Hi AartiG,

    who sets those COM_TI_RTSC_TIRTOSCC13XX_CC26XX__XXX variables in your case? The TIRTOS eclipse plugin? Do they change when you switch the TI-RTOS version for an existing project? Are they documented somewhere?

    I use CCS 6.1.2 + TIRTOS 2.16.1 (separate installation) and they are not listed in my projects. Neither in the current TIRTOS engineering release. But the variable COM_TI_RTSC_TIRTOSCC13XX_CC26XX_INSTALL_DIR is "magically" there during the build process, although not present in "Path Variables". Also all other TI-RTOS sub-product folders are "magically" set as include paths, but not the one for CC13XXWARE.

    I ran a quick "grep" on my TI-RTOS installation and found many references for COM_TI_RTSC_TIRTOSCC13XX_CC26XX_INSTALL_DIR all over, but none for COM_TI_RTSC_TIRTOSCC13XX_CC26XX__ (notice the double underscore).

    To sum it up, two problems here:

    • COM_TI_RTSC_TIRTOSCC13XX_CC26XX_INSTALL_DIR is not set as path variable, but only available during build. I can not link resources based upon that variable.
    • The include and linker search path for CC13XXWARE is hardcoded based on the invisible COM_TI_RTSC_TIRTOSCC13XX_CC26XX_INSTALL_DIR variable. That makes switching between TI-RTOS versions in a project really painful.

  • Richard W. said:
    I use CCS 6.1.2 + TIRTOS 2.16.1 (separate installation) and they are not listed in my projects.

    I see those variables in CCS 6.1.3 but not in CCS 6.1.2. And yes they do change when I switch the TI-RTOS version for a project. Can you try installing 6.1.3 to see if they are visible to you?

    Richard W. said:

    To sum it up, two problems here:

    • COM_TI_RTSC_TIRTOSCC13XX_CC26XX_INSTALL_DIR is not set as path variable, but only available during build. I can not link resources based upon that variable.
    • The include and linker search path for CC13XXWARE is hardcoded based on the invisible COM_TI_RTSC_TIRTOSCC13XX_CC26XX_INSTALL_DIR variable. That makes switching between TI-RTOS versions in a project really painful.

    For the first problem I think you should be able to manually create that path variable if it is not picked up by default. But based on what I see,CCS 6.1.3 solves these issues. If you still find that it not working as expected with CCS 6.1.3, please start a new post in the TI-RTOS forum as the experts there may be able to provide additional comments.