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.

CCS/TMS320F28379D: open code composer from terminal

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

Tool/software: Code Composer Studio

Hi to all,

                Im looking this link software-dl.ti.com/.../ccs_projects-command-line.html and I want to know if someone used before. I want to open code composer from terminal and buid an existing project, I use this:

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

in my case this project is on C2000Ware folder:

./eclipse -data /home/gaston/ti/c2000/C2000Ware_3_01_00_00/device_support/f2802x/examples/structs/ -application com.ti.ccstudio.apps.projectImport -ccs.location /home/gaston/ti/c2000/C2000Ware_3_01_00_00/device_support/f2802x/examples/structs/adc_soc/ -copyIntoWorkspace -ccs.autoBuild -ccs.overwrite

I remove -noSplash so (i guess) CCS10 program will open and import project and debug. But I only got this on my terminal:

org.eclipse.core.internal.resources.ResourceException: Invalid project description.
        at org.eclipse.core.internal.resources.Project.checkDescription(Project.java:173)
        at org.eclipse.core.internal.resources.Project.assertCreateRequirements(Project.java:57)
        at org.eclipse.core.internal.resources.Project.create(Project.java:266)
        at org.eclipse.core.internal.resources.Project.create(Project.java:252)
        at com.ti.ccstudio.project.core.services.ProjectImporter.internalImportProject(ProjectImporter.java:468)
        at com.ti.ccstudio.project.core.services.ProjectImporter.access$1(ProjectImporter.java:415)
        at com.ti.ccstudio.project.core.services.ProjectImporter$1.run(ProjectImporter.java:377)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2292)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2317)
        at com.ti.ccstudio.project.core.services.ProjectImporter.importProject(ProjectImporter.java:375)
        at com.ti.ccstudio.project.core.services.ProjectImporter.importProject(ProjectImporter.java:340)
        at com.ti.ccstudio.apps.internal.project.ProjectImportApp.doRun(ProjectImportApp.java:169)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp$1.run(BaseHeadlessApp.java:338)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2292)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2317)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp.internalRun(BaseHeadlessApp.java:336)
        at com.ti.ccstudio.apps.internal.BaseHeadlessApp.start(BaseHeadlessApp.java:258)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

i guess I did something wrong.

Thanks

Gaston

  • Solved my error. But Code Composer is not opening, so I guess that removing the noSplash is not working.

  • Its working. I can create and compile from command line. I want to know if is possible to open code composer once is opened import or create project, compile and load by command line.

    Thanks

    Gaston

  • Gaston_Melo_Arg said:
    I want to know if is possible to open code composer once is opened import or create project, compile and load by command line.

    This will typically not work since the workspace folder will be locked by CCS. When CCS is already open, then it may be easier to simply use the Scripting Console for such operations:

    http://dev.ti.com/tirex/explore/node?node=AOq25HcG8Lshhd5e-Wd23A__FUz-xrs__LATEST

    Thanks

    ki

  • Thanks Ki for your reply,

                                           My intention is to open CCSv10 - create a project - build and load it on target using another program. Tha is why I was asking about console command. I tried to import an existing project into code composer when it was already open and an error came out about "folder locked" and recommend to change the -data. I found on a thread about addiding a "." after -data but the result was the same.

    Is possible to perform this create a project - build and load it on target using another program (coding)?

    if it is can you point me to reference? is poossible to "unlocked" the folder that is using code composer at that moment?

    Thanks

    Gaston

  • Gaston_Melo_Arg said:
    Is possible to perform this create a project - build and load it on target using another program (coding)?

    Only if you are not using the same workspace folder that is being used by a running CCS instance. There is no way to "unlock" the workspace while an CCS instance is using it. Those command-line project commands were never designed to be used that way.

    Gaston_Melo_Arg said:
    My intention is to open CCSv10 - create a project - build and load it on target using another program.

    I am curious... what is your use case for this? Is this for (test) automation purpose where you have your own custom application that automates your entire environment (of which CCS is just a part of)? Why does a running CCS IDE instance need to be up when everything is being automated?

    Thanks

    ki

  • Ki thanks for your reply,

     

    Ki said:

    I am curious... what is your use case for this?Is this for (test) automation purpose where you have your own custom application that automates your entire environment (of which CCS is just a part of)?

    I was wondering if this is possible. I remember back in time using ide_link to performing something similar (on windows). If CCS was already openned the folder was copied - build and load without problems.

     

    Ki said:
    Why does a running CCS IDE instance need to be up when everything is being automated?

    True. What if I already have a CCS session opened? this code doen't work due to CCS already owns this folder. So I can't create - build and load program to processor. I need to close the CCS window and run the scripts to perform the process.(if i use the same folder for my project)

    Thanks Ki for your help. Sorry to be so stuborn, just asking.

    Thanks

    Gastón

  • Gaston_Melo_Arg said:
    I remember back in time using ide_link to performing something similar (on windows).

    Yes, that was with the old CCSv3.x IDE. Unfortunately the CCS Eclipse based IDE doesn't have this... at least not fully. You can do some of this with DSS, but DSS Is specific to debug actions. But it was the reverse - you can have DSS launch CCS IDE and attach to it. There is no project management APIs with DSS. 

    Gaston_Melo_Arg said:
    I need to close the CCS window and run the scripts to perform the process.(if i use the same folder for my project)

    Yes, you'll have to close CCS as you said to run those commands.

    Gaston_Melo_Arg said:
    Sorry to be so stuborn, just asking.

    No worries at all. Your question and request is very valid. Unfortunately the functionality you seek is not available.

    ki