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 v5 DSS (Debug Server) Scripting from Matlab (R2012b win32) - XPCOM errors and others

Other Parts Discussed in Thread: CCSTUDIO

I have tried hundreds of different changes to get the code working here (without success): http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/63754.aspx

Currently I get the following error (this is just the current error):

org.mozilla.xpcom.XPCOMInitializationException: Failed to initialize JavaXPCOM
at org.mozilla.xpcom.internal.MozillaImpl.initializeNative(Native Method)
at org.mozilla.xpcom.internal.MozillaImpl.initialize(Unknown Source)
at org.mozilla.xpcom.Mozilla.initialize(Unknown Source)
at com.ti.debug.engine.xpcom.Runtime.startBare(Runtime.java:197)
at com.ti.debug.engine.xpcom.Runtime.startBare(Runtime.java:148)
at com.ti.debug.engine.xpcom.Runtime.createComponent(Runtime.java:249)
at com.ti.debug.engine.impl.Application.<init>(Application.java:95)
at com.ti.debug.engine.cce.CCEDebugEngine.<init>(CCEDebugEngine.java:17)
at com.ti.debug.engine.cce.CCEDebugEngine.instance(CCEDebugEngine.java:50)
at com.ti.debug.engine.scripting.DebugServer.start(DebugServer.java:642)
at com.ti.debug.engine.scripting.DebugServer$SessionFactory.<init>(DebugServer.java:152)
at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.java:1103)
at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.java:1068)
SEVERE: Can not connect to DebugServer. null
SEVERE: Could not start server: DebugServer.1: Can not connect to DebugServer. null
Error using JavaToDSS (line 55)
Java exception occurred:
com.ti.ccstudio.scripting.environment.ScriptingException: Could not start server:
DebugServer.1: Can not connect to DebugServer. null

at
com.ti.debug.engine.scripting.DebugServer$SessionFactory.<init>(DebugServer.java:155)

at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.java:1103)

at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.java:1068)

 

I know I am not the only one trying to get this to work with Matlab:
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/128338/818458.aspx#818458
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/142519/514960.aspx#514960
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/84476/294917.aspx#294917

Many TI customers are DSP engineers, why is there no example or documentation for scripting from Matlab? This seems like an obvious use-case, made more obvious by the fact that Matlab runs on Java. Can someone provide one that works? Can TI please support Matlab for DSS? Does anyone know of a good tutorial or something for doing this?

  • Hello,

    c0l0jar0 said:
    Many TI customers are DSP engineers, why is there no example or documentation for scripting from Matlab?

    Matlab integration with the CCSv4 and 5 IDE/Debugger is not yet supported. hence there is no documentation or examples. Some users have been able to leverage DSS from within the Mathlab environment but it is not something that Mathworks or TI yet officially supports

    c0l0jar0 said:
    Can TI please support Matlab for DSS?

    The work to support this is coming from Mathworks. I believe that there is effort ongoing to support this. You may want to ping Mathworks support for the latest update.

    Sorry for the pain. Hopefully others who have gotten DSS integration within Matlab can provide some more suggestions

    Thanks

    ki

  • I just wanted to add a note here that I see no reason why Matlab needs to support this at all. TI could simply make an effort to support compatibility with the Matlab Java Runtime Environment.

    I have nearly all of the functionality working except launching the CCS GUI from a Matlab based DSS script. I think with a small amount of effort it would be fully compatible.

    The alternative is, I wait around for another year or so for Matlab who doesn't discuss which features are in development. When they finish they will charge $6,000 for a license to do what I already have plus launch the GUI (assuming they choose to support that). I really hope that TI sees the value added for DSP engineers at minimal effort and just does it!

    Thanks

    Chris