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.
Hi,
I am developing JAVA code using CSS to access the TI EVM for C6472. I am using the onboard XDS100 JTAG emulator. It
all works fine if I use the stand-alone CSS server (without CCS GUI).
I now need to use the CCS GUI at the same time as my program to debug the DSP. I am using the instructions provided at http://wiki.davincidsp.com/index.php/Debugging_Your_DSS_Script_Using_CCStudio_v4 to update my JAVA code.
However I don't manage to start the CCS GUI.
Here is the code I am using:
m_dssScriptEnv = com.ti.ccstudio.scripting.environment.ScriptingEnvironment.instance();
try {
m_dssScriptEnv.traceSetConsoleLevel(com.ti.ccstudio.scripting.environment.TraceLevel.ALL);
CCSServer xxx = (CCSServer)m_dssScriptEnv.getServer("CCSServer.1");
xxx.openSession(".*");
} catch (ScriptingException e) {
e.printStackTrace();
}
And here is the output I get:
getServer: RETURN com.ti.ccstudio.scripting.CCSServer@1f8247d
WARNING: CCSServer.openSession() failed. DSS was unable to launch Code
Composer Studio, however script execution will continue.
java.lang.ClassNotFoundException: org.eclipse.core.launcher.Main
I am using Eclipse Java EE IDE build id: 20090920-1017 to run my JAVA program.
Thanks,
JP
Hello,
If you're writing custom Java code, you'll need to add <ccsv4\eclipse\startup.jar> to your classpath for this to work. If you take a look at <ccsv4\scripting\bin\dss.bat> you'll see all of the command-line arguments that need to be passed to Java.exe.
Thanks,
Mike
Thanks Mike. I updated the wiki topic to mention the additional JAR file needed.
ki
Thanks, it's now working!
It's very slow. About 3 minutes to start CCS GUI and 1 minute to start the debug session. Is that a feature of the XDS100? I have an XDS510 also, would it be faster with it? (Can't try it yet, as I am waiting for a full licence of CCS).
I have noted a couple of things that could be improved. Not sure where to put it:
- I get disconnected from the target when I use Skype with USB headset.
- I can only open one memory window in CCS GUI. That's a bit restrictive and it would be better to be able to open as many as I want.
Thanks,
JP
JP,
XDS100 is definitely much slower on C647x than an XDS510. There is an XDS100v2 coming out that improves speed, the one on your board is a v1. There are also some improvements in CCSv4.1 that speed up debug launch time. 3min to start the CCS UI is very slow though, I wonder if you are running out of memory, for me it is typically up in 10sec.
I have seen issues where plug-ins can slow down CCS startup as well. I remember having a plug-in from Rational installed a couple years back that was trying to talk to a server on startup and it was killing my startup time. Don't remember which one it was.
Regards,
John
Hi,
Our application actually requires us to start the JVM from a Windows Executable and run the JAVA program from there. When I do that CCS UI starts in 20 seconds. It's only if I start it from Eclipse that it takes 2-3 minutes... So this is not a problem for us anymore.
I am using CCS4.1.
Thanks for the great support!
JP