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.

TMS320F28388D: add relative path to projectspec file

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE, TMS320F280025C

in our projectspec file,  <pathVariable name="C2000WARE_DLIB_ROOT" path="../../../../../../driverlib/f2838x/driverlib/" scope="project" />
this means we have to put our project files in example directory.

but I want to put any directory, I tried:
  <pathVariable name="C2000WARE_DLIB_ROOT" path="${COM_TI_C2000WARE_SOFTWARE_PACKAGE_INSTALL_DIR}/driverlib/f2838x/driverlib/" scope="project" />

but it does not work, ccs does not know COM_TI_C2000WARE_SOFTWARE_PACKAGE_INSTALL_DIR.

I have to add a pathVariable which path is absolute path, then it works.

  <pathVariable name="c200ware_dir" path="/opt/ti/c2000/C2000Ware_3_04_00_00" scope="project" />

  <pathVariable name="C2000WARE_DLIB_ROOT" path="${c200ware_dir}/driverlib/f2838x/driverlib/" scope="project" />

however, our group members use linux or windows ccs, so ccs and c2000ware have different path, and we may use different c2000ware version. so we can not use absolute path.

I wonder why I can not use internal environment variables.

do I have another way to do this?

  • Does the projectspec specify C2000Ware as a product like this:

    <projectSpec>
    <project
    name="fsi_daisy_epwmsync_lead"
    device="TMS320F280025C"
    cgtVersion="21.6.0.LTS"
    products="c2000ware_software_package"

    The variable COM_TI_C2000WARE_SOFTWARE_PACKAGE_INSTALL_DIR gets populated by CCS when the project is using the "c2000ware_software_package" product AND CCS knows where C2000Ware is installed.

    If this is for helping people set up a new environment then CCS is likely not aware of where C2000Ware is installed.  What you could do is run a script to have CCS discover the package.  In the FAQ section of this document it says how you can have CCS discover a product from a command line script: https://software-dl.ti.com/ccs/esd/documents/ccs_projects-command-line.html

    I suppose you could also use this package to import the projects as well.  I.e. have a script that gets CCS to discover C2000Ware in /opt/ti/c2000/C2000Ware_3_04_00_00 and then imports the projects.

    Regards,

    John