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.

Error + DSS + F2812

Other Parts Discussed in Thread: CCSTUDIO, TMS320F2812

hello,
I'm working with a XDS100v2 and F2812, I do the programming through DSS to access the DSP memory register and you can save and / or viewing. 

When you run the program I get the following information and can not get the connection with thtarget:

traceSetFileLevel: ENTRY sLevel: ALL

traceSetFileLevel: RETURN

getServer: ENTRY sServerName: DebugServer.1

getServer: Getting definition for: DebugServer.1

getServer: Constructing server

getServer: RETURN com.ti.debug.engine.scripting.DebugServer@2a5330

setConfig: ENTRY sConfigurationFile: ../C28/MYDSP.ccxml

setConfig: RETURN

openSession: ENTRY sPattern: .*

start: ENTRY

start: Firing: onServerStarting()

start: Connecting to XPCOM DebugServer

start: Initializing DebugServer using specified configuration: "C:\Program Files

\Texas Instruments\ccsv4\scripting\examples\C28\MyDSP.ccxml"

waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@76e3

69 timeout: 240000 (ms)

<init>: CPU Name: C28xx

<init>: PartNum: TMS320F2812

<init>: Family: 320

<init>: SubFamily/MajorISA: 28

<init>: Revision/MinorISA: 127

<init>: Platform: EMULATOR

<init>: Processor ID: 1342219256

isConnected: ENTRY

isConnected: Target is not connected

isConnected: RETURN false

waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@76e

369

start: Firing: onServerStarted()

start: Searching for devices

listDevices: ENTRY

listDevices: Found debuggable device: Texas Instruments XDS100v2 USB Emulator_0/

C28xx

listDevices: RETURN

start: RETURN

openSession: Searching for device exactly matching name: .*

openSession: No exact name matches found.  Searching for device matching regular

 expression: .*

open: Initializing RTDX: "RTDXServer.1"

getServer: ENTRY sServerName: RTDXServer.1

getServer: Getting definition for: RTDXServer.1

getServer: Constructing server

getServer: RETURN com.ti.debug.engine.scripting.RTDXServer@1ae90c

openSession: ENTRY sDebugSession: Texas Instruments XDS100v2 USB Emulator_0/C28x

x

getServer: ENTRY sServerName: DebugServer.1

getServer: Getting cached server: DebugServer.1

getServer: RETURN com.ti.debug.engine.scripting.DebugServer@2a5330

openSession: ENTRY session: com.ti.debug.engine.scripting.DebugSession@ba4211

openSession: RETURN com.ti.debug.engine.scripting.RTDXSession@47a0d4

openSession: RETURN

openSession: RETURN Texas Instruments XDS100v2 USB Emulator_0/C28xx

getServer: ENTRY sServerName: DVTServer.1

getServer: Getting definition for: DVTServer.1

getServer: Constructing server

start: ENTRY

getCurrentDirectory: ENTRY

getCurrentDirectory: RETURN C:\Program Files\Texas Instruments\ccsv4\scripting\e

xamples\DVTExamples

terminate: ENTRY

terminate: Unregistering this session from the parent Server

terminate: RETURN

terminate: ENTRY

terminate: Firing: onSessionTerminating()

terminate: Unregistering this session from the DebugServer

terminate: Firing: onSessionTerminated()

disposeAndUnload: Firing: onServerStopping()

disposeAndUnload: Stopping DebugServer

disposeAndUnload: Firing: onServerStopped()

terminate: RETURN

start: RETURN

getServer: RETURN com.ti.dvt.engine.scripting.DVTServer@9c2715

js: "javascript_examples/FunctionProfileScript.js", line 41: uncaught JavaScript

 runtime exception: TypeError: Cannot call method "setStatus" of null

I'm using as a base program shown in the example go.bat que se encuentra en: C:\Program Files\Texas Instruments\ccsv4\scripting\examples\DebugServerExamples

thank very much

  • Hi Ivan,

    Hopefully we can help you find the problem.   Do I understand correctly, did you modify an example?  If so does the unmodified version run for you?   Which version of CCS are you using?   I would like to see if this is something I can reproduce.  We had seen one or two bugs in certain dss examples in some of the beta CCS versions.

    Best Regards,
    Lisa

  • Hi Lisa,

    I am using CCS Version: 4.2.1.00004 ...

    In this directory you will find the example I used to rely on my test and then I turned on the error:

    C:\Program Files\Texas Instruments\ccsv4\scripting\examples\DebugServerExamples\go.bat

    thank very much,

  • Hi Ivan,

    I just tried in the latest production version of v4 (4.2.4) and do not seem to see problems.  The three scripts run and create a log which indicates success.

    Do you have a PC with the latest version to try?  If you update, do you still have issues?

    Best Regards,

    Lisa

  • Hi Ivan,

    I meant running the examples.  Do you have a problem with the unmodified examples?

    Best Regards,
    Lisa

  • Hi Lisa,

    I would like to know which particular examples, to review its operation and make sure, because I'm running the go.bat which is located at:

    C:\Program Files\Texas Instruments\ccsv4\scripting\examples\DebugServerExamples\go.bat

    I'm downloading the latest production version of the v4 (4.2.4) to try and rule out this possibility of error... 

    thank very much...

     

     

     

  • Hi Ivan,

    In the same directory there are .js files you can try individually as well.  Basically if you look at go.bat, it essentially runs three of the examples.  You should notice 3 log files get created.  You can then look at the log files for any errors as it will contain all the output from the script.

    Please keep us informed.

    Best Regards,
    Lisa

  • hi Lisa,


    I am changing the version Version: 4.2.4. of CCS in my pc, for testing ... I'll tell youanything new


    Thank very much for all the help provided

  • hi lisa,

    I changed the version of CCS which recomendastes me ...

    the examples work very well when executed, but when I change the parameters for my F2812 and connects to my targetI get thesame error as first post ..

    Thank very much


  • Hi Ivan,

    It seems like the problem is somewhere in your script/modifications then.   Have you tried debugging in the Rhino Debugger?  I can make no promises to debug your script for you, but if you send your script and error logs/logs we can have a quick look for anything obvious.

    Best Regards,
    Lisa

  • Hi Lisa,

    Thank very much for the answers and solutions providedI send you the files I am using as well as files generated ...

    Similarly, I think I have a problem by modifying the script ...

    thank very much

     

    8154.Archivos.rar

  • Hi Lisa,

    I change one line of command and my program successfullyconnect with my target ..... I've added the following:

     

    // Connect to F2812

    script.traceWrite("Connecting to F2812...");

    debugSession.target.connect();

    script.traceWrite("Done!");

     

    But now I have another problem: When running the command line to run the program in the DSP 

    debugSession.target.run()

    I get the following error:

    run: ENTRY

    go: Requesting target execution

    waitUntil: ENTRY timeout: 5000 (ms)

    SEVERE: Timed out after 5000ms

    SEVERE: com.ti.debug.engine.scripting.Target.run(): Timed out after 5000ms

    org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.envir

    onment.ScriptingException: com.ti.debug.engine.scripting.Target.run(): Timed out

     after 5000ms (Memory2.js#69)

            at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:17

    05)

            at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:157)

            at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:20

    1)

            at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java

    :117)

            at org.mozilla.javascript.gen.c1._c0(Memory2.js:69)

            at org.mozilla.javascript.gen.c1.call(Memory2.js)

            at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:3

    37)

            at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:275

    5)

            at org.mozilla.javascript.gen.c1.call(Memory2.js)

            at org.mozilla.javascript.gen.c1.exec(Memory2.js)

            at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:500)

     

            at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:4

    22)

            at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:388)

            at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:379)

            at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:176)

            at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:97)

            at org.mozilla.javascript.Context.call(Context.java:540)

            at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:447)

            at org.mozilla.javascript.tools.shell.Main.exec(Main.java:159)

            at org.mozilla.javascript.tools.shell.Main.main(Main.java:137)

    Caused by: com.ti.ccstudio.scripting.environment.ScriptingException: com.ti.debu

    g.engine.scripting.Target.run(): Timed out after 5000ms

            at com.ti.debug.engine.scripting.ExecutionOperation.go(ExecutionOperatio

    n.java:68)

            at com.ti.debug.engine.scripting.Target.run(Target.java:746)

            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)

            ... 18 more

     

    Thank very much for all your help...

  • Hi Ivan,

    if you would like send the updated logs and script.  I can see in the one you sent previously, the target was not being connected ... as you were aware.

    - does the .out file get loaded successfully?

    - have you used the Rhino debugger to narrow in a bit on the line/call causing the problem?

    Best Regards,
    Lisa

  • Hi Lisa,

    The first goal was to connect with my target, and has served well...

    Now I am in the need to access memory to store all the events and changes occurring in the target and that they can be viewed on a pc interface ...

    I ask in the folder C: \ Program Files \ Texas Instruments \ ccsv4 \ scripting \ examples \ *.* DebugServerExamples js there are other programs and by example flash28,Quicksort and Watchpoints, these programs could help me and what is the usefulness of these

    thank very much

    0844.Files.rar

  • Hi Lisa,

    The first goal was to connect with my target, and has served well...

    Now I am in the need to access memory to store all the events and changes occurring in the target and that they can be viewed on a pc interface ...

    I ask in the folder C: \ Program Files \ Texas Instruments \ ccsv4 \ scripting \ examples \ *.* DebugServerExamples js there are other programs and by example flash28,Quicksort and Watchpoints, these programs could help me and what is the usefulness of these

    thank very much


    0844.Files.rar

  • Hi Ivan,

    most of the examples have naming that is self explanitory .. you can also right-click select edit and have a closer look in d.   The watchpoint example shows how to add a watchpoint using dss.  

    I think the most useful examples for you sound like the memory examples and possibly the crash dump example.

    Have a look at the examples and api itself in thedocs folder .  If there is something specific feel free to post on the forum. 

     

    Best Regards,
    Lisa

  • Hi lisa,

    Thank very much for the answer ...

    Will review all the examples shown in the folder and when you have something lighter or any other doubt I'll post

    thanks ...

  • Hi Lisa,

    In summary I am working with a F2812 and XDS100v2 ... when using the DSS effectively the program is loaded into the target ...

    I'm trying right now to read the events that happen in the DSP, for that I am trying to access the memory but I have not been successful ...

    I would like to show me some links, which show an example or suggestion how to capture these data either in a flat file or in any other..

    Also I get a message when trying to enable real time: realtime was no enabled

    I am attaching the files that I am modifying:

    5732.Files.rar

    thank very much,