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.

Eclipse plug-in development for CCSv4

Other Parts Discussed in Thread: CCSTUDIO

Dear CCSv4 Team,

I'm about to develop an eclipse plug-in (Eclipse Version 3.2.0, Java version 1.5.0_14) for CCSv4.

The plug-in is activated by pressing a button from the toolbar menu. Its task is to start the debugger,

load a target binary, set breakpoints, and read and write data from and to the target. At first I start the

TI debugger and thereafter the plug-in.

The problem I encounter now is that a call to ScriptingEnvironment.instance() results in the following

error message contained in eclipse's ".log" file:

java.lang.ClassCastException: com.ti.ccstudio.scripting.environment.DirectedConsoleHandler
    at com.ti.ccstudio.scripting.environment.ScriptingEnvironment.initializeParentLogger(ScriptingEnvironment.java:117)
    at com.ti.ccstudio.scripting.environment.ScriptingEnvironment.<init>(ScriptingEnvironment.java:77)
    at com.ti.ccstudio.scripting.environment.ScriptingEnvironment.instance(ScriptingEnvironment.java:60)
    ...


If I start the plug-in at first the TI debugger and the Code Composer crashs displaying the following message

in a dialog box:

Runtime Error!

Program: C:\...

R6025

- pure virtual function call

and the ".log" file now says:

java.lang.NoClassDefFoundError: org/mozilla/xpcom/XPCOMException
    at com.ti.debug.engine.cce.CCEDebugEngine$Factory.createInstanceNoAddref(CCEDebugEngine.java:32)
    at com.ti.debug.engine.scripting.DebugServer.start(DebugServer.java:629)
    at com.ti.debug.engine.scripting.DebugServer$SessionFactory.<init>(DebugServer.java:139)
    at com.ti.debug.engine.scripting.DebugServer.openSession(DebugServer.java:1330)

Thanks a lot for your help!

Ben

 

  • Ben,

    Are you starting with a Scripting Console script or DSS script and stuffing it inside an Eclipse plug-in or are you calling the DSS APIs from within the plug-in?

     

    John

  • Hi John,

    I took the jar-packages found in "C:\...\Texas Instruments\ccsv4\DebugServer\packages\ti\dss\java"

    and stuffed them into the plug-in.  I noticed that there are DSS plug-ins inside CCSv4's eclipse

    version as well, but I didn't found any documentation for them.

    Thanks,

    Ben

     

  •  Hi Ben,

    You can't just take the dss.jar file and package it into a plugin, there are many dependency and runtime paths that need to be setup inorder to use dss within ccsv4. You don't really need to write a plugin to do the things that you want in your original post, you can simply write java script to access the debugger through dss. Than use the scripting console in ccsv4 to load the java script file to execute the dss script.

    Regards,
    Patrick

  • Hi Patrick,

    Well, Tessy's advantage is to automate the whole cycle of building the target binary, excuting the test, and evaluating the results.

    And normally this works for debugging the customer's user function as well.  I hope CCSv5's plugins will offer some extension

    points to automate the interactive debugging process too.

    Thanks a lot for now your extensive help!

    Best Regards,

    Ben