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.

Launch CCS from DSS via Python/Jython

Other Parts Discussed in Thread: CCSTUDIO, AWR1843

My goal is:
1. Run a script via DSS to load my ccxml file and begin debugging on the target (this works).

2. Launch CCS with the same debug environment from the script for further debugging.

I followed the instructions here for setup:
software-dl.ti.com/.../dss_python_dss_scripting.html 

And tried adding this code snippet:

ccsServer = script.getServer("CCSServer.1")
ccsSession = ccsServer.openSession(".*")

And get this error:

WARNING: CCSServer.openSession() failed.  DSS was unable to launch Code Composer Studio, however script execution will continue. java.lang.ClassNotFoundException: com.ti.ccstudio.apps.scripting.ScriptUtils

This is with CCS version 10.11.  Is there some specific .jar file or path I need to add to get around this?

  • Hello jovial,

      What processor are you using? Essential to assist with solving the issue.

    Regards,

    ~Leonard 

  • Hi Leonard,

    I am using the AWR1843 device.  Although I'm surprised to hear it depends on the processor.  The entire script up to the point of failure is:

    from java.lang import *
    from java.util import *
    from com.ti.debug.engine.scripting import *
    from com.ti.ccstudio.scripting.environment import *

    # Initialize the debug server
    script = ScriptingEnvironment.instance()
    ccsServer = script.getServer("CCSServer.1")
    ccsSession = ccsServer.openSession(".*")

    Is there a dependency between the ScriptingEnvironment/CCS installation/processor?  Maybe some CCS package that needs to be installed to support the full DSS?

  • Hello:

    jovial said:
    # Initialize the debug server
    script = ScriptingEnvironment.instance()
    ccsServer = script.getServer("CCSServer.1")
    ccsSession = ccsServer.openSession(".*")

    Launching CCS from DSS is only officially supported from Java and javascript. It *may* be possible to do it from another scripting language but it is not something that we can support. Sorry.

    ki

  • Thank you Ki for clarifying.

    Is there any documentation regarding the requirements for launching CCS from Java?  It seems like the primary difference between Jython/pure Java & js is the Rhino debugging server/dss bin which is used to launch the script, so I'm guessing there is some configuration done by DSS which allows CCS to launch.

  • I realized that my last comment was in error. In regards to launching CCS from DSS, only javascript is supported. It once worked with CCSv4 but support has been removed in subsequent version:

    https://e2e.ti.com/support/tools/ccs/f/81/p/356751/1253426#1253426

    Sorry for the confusion.

    ki