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.

CCSTUDIO: Cannot build project from command-line using CCS Theia

Part Number: CCSTUDIO
Other Parts Discussed in Thread: MSPM0G3507

Tool/software:

I have CCS Theia 1.4.0 installed on Windows 10. When I follow the CCS Theia documentation to build my project from the command-line, I get the following error:

> C:\ti\ccstheia140\ccs\eclipse\ccs-server-cli -noSplash -data C:/Users/gordon.tyler/workspace_ccstheia -application com.ti.ccs.apps.buildProject -ccs.projects MotionLogicController
-ccs.configuration Debug
Common launcher for headless CCS Server applications

Usage:
node <path-to>/app-launcher.js -workspace <workspace-path> -application <application-id> <application-arguments>
node <path-to>/app-launcher.js -help

where:
<workspace-path> - the absolute path to the workspace directory

<application-id> - the headless application ID, e.g. 'com.ti.ccs.apps.projectBuild' or simply 'projectBuild'
currently supported applications:
1. com.ti.ccs.apps.initialize (or simply 'initialize')
2. com.ti.ccs.apps.projectCreate (or simply 'projectCreate' or 'createProject')
3. com.ti.ccs.apps.projectImport (or simply 'projectImport' or 'importProject')
4. com.ti.ccs.apps.projectModify (or simply 'projectModify' or 'modifyProject')
5. com.ti.ccs.apps.projectBuild (or simply 'projectBuild' or 'buildProject')
6. com.ti.ccs.apps.sketchImport (or simply 'sketchImport' or 'importSketch')
7. com.ti.ccs.apps.inspect (or simply 'inspect')

<application-arguments> - application-specific arguments (application usage will be printed if no arguments are supplied)
  • Hi Gordon,

    I have assigned this thread to the CCS IDE expert. They should be replying to your question soon.

    Thanks,

    Ricky

  • Hi Gordon,

    Can you try to change the argument "-data" to "-workspace", the output after you ran the command as the help text. I'll file a ticket to get the documentation updated.

    Regards,
    Patrick

  • I tried that but it didn't work. It created an empty "workspace" folder inside my "workspace_ccstheia" folder. The output also changed:

    ❯ C:\ti\ccstheia140\ccs\eclipse\ccs-serverc -noSplash -workspace C:/Users/gordon.tyler/workspace_ccstheia -application com.ti.ccs.apps.buildProject -ccs.projects MotionLogicControll
    er -ccs.configuration Debug

    Usage:
    ccs-serverc -noSplash -data "<eclipse-metadata-dir>"
    -application com.ti.ccs.apps.buildProject
    (-ccs.projects <name1>[ <name2>]* | -ccs.workspace) [<options>]

    where options include:
    -ccs.projects <name1>[ <name2>]*
    Space-separated list of projects to build.

    -ccs.workspace
    Build entire workspace.

    -ccs.configuration <name>
    The build-configuration to build (optional).
    Defaults to active build-configuration.

    -ccs.buildType (incremental | full | clean)
    The type of build to perform (optional).
    Defaults to 'incremental'.

    -ccs.listErrors
    List all errors after build completes (optional).

    -ccs.listProblems
    List all errors and warnings after build completes (optional).

    -ccs.autoOpen
    Automatically open any closed projects (optional).

    -ccs.args <file>
    File containing any extra arguments (optional).

    -ccs.help
    Print this help message.
  • If I re-add the "-data" option with the same folder name as before in addition to the "-workspace" folder, it doesn't create the "workspace" folder. But it still doesn't work as above.

  • This is the project I have in my workspace folder C:\Users\<username>\workspace_ccstheia\blink_led_LP_MSPM0G3507_freertos_ticlang

    And this is the command that I ran

    ccs-server-cli.bat -noSplash -workspace C:\Users\<username>\workspace_ccstheia -application com.ti.ccs.apps.buildProject -ccs.projects blink_led_LP_MSPM0G3507_freertos_ticlang -ccs.configuration Debug

    Note that I am using the bat file and not the exe and I removed my username in the command and replaced with <username>.

    Regards,
    Patrick

  • Using the bat file and executing it in CMD instead of PowerShell makes it work. Going back to PowerShell, I had to quote the "-ccs.projects" and "-ccs.configuration" words to make it work.