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: Issue with Importing TI .projectspec Example via Command Line

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

Tool/software:

I attempted to import a TI .projectspec example using the following command:

cmd = '"C:\ti\ccs1270\ccs\ccs_base\SCRIPT~1\..\..\eclipse\eclipsec.exe" -noSplash -data "C:\Aditya\CCS_Workspace" -application com.ti.ccstudio.apps.importProject -ccs.location "C:\ti\c2000\C2000Ware_5_02_00_00\driverlib\f28p55x\examples\dac\CCS" -ccs.overwrite full'

Upon execution:
[status, result] = system(cmd)

The output was:

Status: 1
Result:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See www.slf4j.org/codes.html for further details.

--------------------------------------------------------------------------------
Importing project from 'C:/ti/c2000/C2000Ware_5_02_00_00/driverlib/f28p55x/examples/dac/CCS'...

!ERROR: No valid Eclipse project can be found at location 'C:/ti/c2000/C2000Ware_5_02_00_00/driverlib/f28p55x/examples/dac/CCS'!

The error suggests that no valid Eclipse project is found at the specified location. I suspect there might be an issue with the command line import process for CCS projects, particularly regarding the handling of .projectspec files.


I found a document here in section 6.2.1.1 which does not list .projectspec among the supported formats.
6.1. Creating and Managing Projects — Code Composer Studio Theia 1.5.0 Documentation

Query : Could you please verify if the command is correct, or if there are known limitations with importing .projectspec files via command line in CCS?

  • Hi Aditya,

    Are you using CCS Eclipse or CCS Theia to do this? If you're using CCS Eclipse which I am assuming you are based on your CMD line.

    cmd = '"C:\ti\ccs1270\ccs\ccs_base\SCRIPT~1\..\..\eclipse\eclipsec.exe" -noSplash -data "C:\Aditya\CCS_Workspace" -application com.ti.ccstudio.apps.importProject -ccs.location "C:\ti\c2000\C2000Ware_5_02_00_00\driverlib\f28p55x\examples\dac\CCS" -ccs.overwrite full'

    Please refer to this FAQ on how to do this: https://software-dl.ti.com/ccs/esd/documents/ccs_projects-command-line.html

    eclipsec -noSplash -data "<workspace_dir>" -application com.ti.ccstudio.apps.projectImport -ccs.location <path> [<options>]

    Best regards,

    Ryan Ma

  • Thank you for your response.
    I am using CCS Eclipse .
    I am reaching out to request further assistance with the command used for importing a project in Code Composer Studio (CCS).

    I have tried using both `importProject` and `projectImport` as per the guidance for different CCS versions,
     but neither seems to work. Below is a detailed account of my attempts and the results:
    
    ### Command I Used:

    "C:\ti\ccs1270\ccs\ccs_base\SCRIPT~1....\eclipse\eclipsec.exe" -noSplash -data "C:\CCS_Workspace" -application com.ti.ccstudio.apps.importProject -ccs.location "C:\CCS_Project" -ccs.overwrite full

    ### Command Mentioned on the Web Page:

    eclipsec -noSplash -data "<workspace_dir>" -application com.ti.ccstudio.apps.projectImport -ccs.location <path> [<options>]

    ### Detailed Mapping:
    
    1. **Executable Path:**
       - **My Command:** 
         - **Path:** `"C:\ti\ccs1270\ccs\ccs_base\SCRIPT~1\..\..\eclipse\eclipsec.exe"`
         - **Details:** Full path to the `eclipsec.exe` executable.
       - **Web Page Command:**
         - **Path:** `eclipsec`
         - **Details:** Placeholder for the executable name.
    
    2. **No Splash Option:**
       - **My Command:** `-noSplash`
       - **Web Page Command:** `-noSplash`
       - **Details:** Used to suppress the splash screen during startup.
    
    3. **Workspace Directory:**
       - **My Command:** 
         - **Option:** `-data`
         - **Value:** `"C:\CCS_Workspace"`
         - **Details:** Specifies the directory for the workspace.
       - **Web Page Command:**
         - **Option:** `-data`
         - **Value:** `"<workspace_dir>"`
         - **Details:** Placeholder for the workspace directory path.
    
    4. **Application:**
       - **My Command:** 
         - **Option:** `-application`
         - **Value:** `com.ti.ccstudio.apps.importProject`
         - **Details:** Indicates the application to run, as per CCS 12 manual.
       - **Web Page Command:**
         - **Option:** `-application`
         - **Value:** `com.ti.ccstudio.apps.projectImport`  ( as per CCS 11 , But I have tried both (CCS 11 :projectImport and CCS 12  :importProject ), same issue)
    - **Details:** Suggested application for CCS 11 on the webpage.

    5. **Project Location:**
       - **My Command:** 
         - **Option:** `-ccs.location`
         - **Value:** `"C:\CCS_Project"`
         - **Details:** Path to the project to be imported.
       - **Web Page Command:**
         - **Option:** `-ccs.location`
         - **Value:** `<path>`
         - **Details:** Placeholder for the project location path.
    
    6. **Options:**
       - **My Command:** 
         - **Option:** `-ccs.overwrite`
         - **Value:** `full`
         - **Details:** Specifies an option to overwrite existing project settings.
       - **Web Page Command:**
         - **Option:** `[<options>]`
         - **Details:** Placeholder for additional options.
    
    ### Results:
    When executing the command, I receive the following error message:

    Importing project from 'C:/CCS_Project'...

    !ERROR: No valid Eclipse project can be found at location 'C:/CCS_Project'!



    I am encountering an issue when attempting to import a .projectspec file via the command line. Interestingly, the same command works seamlessly for the older CCS project format, .cproject. Could you please verify if you can successfully import a CCS project in the .projectspec format using the command line on your end?

  • Hi Aditya,

    Please ensure you're pointing to the correct workspace and projectspec file. The "C:\CCS_Project " following the apps.importProject -ccs.location seems to be pointing to incorrect location. 

    "C:\ti\ccs1270\ccs\ccs_base\SCRIPT~1....\eclipse\eclipsec.exe" -noSplash -data "C:\CCS_Workspace" -application com.ti.ccstudio.apps.importProject -ccs.location "C:\CCS_Project" -ccs.overwrite full

    Example Command:

    C:\ti\ccs1270\ccs\eclipse>eclipsec.exe -noSplash -data ..\..\..\..\Users\a0503118\workspace_2024\ -application com.ti.ccstudio.apps.projectImport -ccs.location ..\..\..\c2000\C2000Ware_5_03_00_00\driverlib\f280013x\examples\empty_projects\CCS\empty_driverlib_project.projectspec

    Best,

    Ryan Ma

  • Hi Ryan , 

    In the above issue : specifying the ".projectspec" helped 

    Now I am trying to add the CCS_Workspace to CCS_THEIA by the command line 

    would you like to look at this thread ?
    TMS320F28388D: CCS_Workspace is not being added in CCS_THEIA through the command line - C2000 microcontrollers forum - C2000Tm︎ microcontrollers - TI E2E support forums


  • Hi Aditya,

    Can you set this thread as resolved if the previous answered helped the originla problem?

    Then you can open a new thread on the new problem you're trying to do.

    Best,

    Ryan Ma