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.

CCSv5 - Scripting - getBinaryTraceData()

Hello,

I've wrote a script collecting traces in CCSv4.

Now I have CCSv5 and I execute the same script. On CCSv4 this script was working. I could collect traces to BIN file and then convert it to TDF file.

Everythink seems to be working the same, until I want to write collected traces to BIN file.

After calling this method :

    traceChannel.getBinaryTraceData("C:\\out_file.bin")

I got this error:

The system cannot find the file specified.
Exception in thread "main" java.lang.NoClassDefFoundError: com/ti/ccstudio/scripting/environment
at com.ti.ctoolstrace.scripting.CToolsTraceChannel.getTraceData(Native Method)
at com.ti.ctoolstrace.scripting.CToolsTraceChannel.getBinaryTraceData(CToolsTraceChannel.java:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:142)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:201)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:64)
at org.mozilla.javascript.gen.c1._c0(c:\AutomateProfiling\ext\tracePod_profiling.js:270)

Line 270 in tracePod_profiling.js is the getBinaryTraceData command.

All execution path is similar as in [go_live_trace_profiling] example.

  • Hi,

    Just a quick check: are you absolutely sure the file <out_file.bin> exists and has permissions set? Access to files in the C:\ directory started to become a problem particularly in the newer Windows versions with UAC enabled (Vista and 7).

    The reason I mention this is because the UAC threw me off several times in the past when I was trying to create and access files in the root directory...

    Regards,

    Rafael

  • Hi Rafael,

    I've tried changing directory and it didn't help. Besides, when I run the same script under CCSv4 no matter in what directory, the BIN files is created.

    BR,

    Adam

  • Hi all,

    Problem solved by updating "TI Emulation".

    BR,

    Adam