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/MSP430F5529: Error trying to build CCS projects using the eclipse CLI

Part Number: MSP430F5529
Other Parts Discussed in Thread: CCSTUDIO

Tool/software: Code Composer Studio

Hi,

I am trying to automate builds of some code for the MSP430. We have several different configurations for different boards that need to be built and packaged as one release and currently a developer has to manually run a build for each configuration using the CCS GUI.

I am trying to follow the examples for the CLI given here: (insert link here) but when I run the commands such as (eclipsec -noSplash -data "C:\Users\kevin\workspace_v9\" -application com.ti.ccstudio.apps.projectBuild -ccs.projects SS_MSP430 -ccs.configuration HMI) I receive this error message in a popup:

And the terminal output gives the error:

gogo: InterruptedException: sleep interrupted
java.lang.InterruptedException: sleep interrupted
        at java.lang.Thread.sleep(Native Method)
        at org.apache.felix.gogo.shell.Activator.run(Activator.java:72)
        at java.lang.Thread.run(Unknown Source)

In addition, I have not been able to install code composer in a headless environment which still limits this approach to running on developer machines instead of from dedicated build servers. If there are other ways that this can be accomplished please let me know.

Thanks,

Kevin

  • Kevin Lannen28 said:

    I receive this error message in a popup:

    The link to your screenshot is broken. Can you repost it? If you continue to have issue, please see the below FAQ:

    https://e2e.ti.com/support/tools/ccs/f/81/t/821597

    Kevin Lannen28 said:
    In addition, I have not been able to install code composer in a headless environment which still limits this approach to running on developer machines instead of from dedicated build servers. If there are other ways that this can be accomplished please let me know.

    This should be possible:

    https://e2e.ti.com/support/tools/ccs/f/81/t/820478

    What issues are you running in to?

  • Hi Ki,

    Here is the image again:

    I think I also missed the link to the instructions I was following:

  • Kevin Lannen28 said:
    eclipsec -noSplash -data "C:\Users\kevin\workspace_v9\" -application com.ti.ccstudio.apps.projectBuild -ccs.projects SS_MSP430 -ccs.configuration HMI

    Can you get rid of the backslash for the workspace path? For example, try:

    eclipsec -noSplash -data "C:\Users\kevin\workspace_v9" -application com.ti.ccstudio.apps.projectBuild -ccs.projects SS_MSP430 -ccs.configuration HMI

    Also, are you running from a DOS command window or Windows PowerShell? The latter has issues with the CCS headless build commands.

  • Hi Ki,

    Since I am ultimately trying to run this inside an AWS EC2 VM I went ahead and was able to install this on the VM following the instructions here: However, I am unable to run the eclipse process at all. I am getting the following error:

    ubuntu@----:~$ eclipse -noSplash -h
    Unable to init server: Could not connect: Connection refused
    Unable to init server: Could not connect: Connection refused
    Eclipse: Cannot open display:
    Eclipse:
    An error has occurred. See the log file
    
    
    !SESSION 2020-07-31 22:43:39.864 -----------------------------------------------
    eclipse.buildId=4.14.0.I20191210-0610
    java.version=1.8.0_112
    java.vendor=Oracle Corporation
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en
    Framework arguments:  -h
    Command-line arguments:  -os linux -ws gtk -arch x86_64 -h
    
    !ENTRY org.eclipse.osgi 4 0 2020-07-31 22:43:40.577
    !MESSAGE Application error
    !STACK 1
    org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
            at org.eclipse.swt.SWT.error(SWT.java:4746)
            at org.eclipse.swt.widgets.Display.createDisplay(Display.java:1117)
            at org.eclipse.swt.widgets.Display.create(Display.java:1057)
            at org.eclipse.swt.graphics.Device.<init>(Device.java:175)
            at org.eclipse.swt.widgets.Display.<init>(Display.java:623)
            at org.eclipse.swt.widgets.Display.<init>(Display.java:614)
            at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:778)
            at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:166)
            at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:180)
            at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
            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)

    From some googling it looks like that error occurs when there is no Xserver present. Is there a way to get this working without an Xserver present. That is not practical for running builds from Jenkins.

    Thanks,

    Kevin