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.

DSS problem on multi-core

Other Parts Discussed in Thread: CCSTUDIO

Hi all,

I have following two problems when executing DSS using TCI6616 Simulator on 3 Cores. (I am using CCS version 4.2.1.00004)

1) debugSession.memory.readData operation ends always up in Error: 0x40000000

2) In order to run the Cores I call the runAsynch for each debugsession (I use 3 cores, hence 3 times). On run of the third DebugSession I always get error "Rx FIFO error link 0: FIFO is full!" P.S. I get this error only when launching script from command line and not from inside CSSv4 via Scripting Console.

Thanks.

 

  • Hello,

    I have not been able to reproduce the issues you are seeing. i also tried using the TCI6616 simulator (though I have 4.2.2). Would it be possible to provide your script and executable to me?

    Thanks

    ki

  • Hi ki,

    The script is very simply:

    I have a single configuration and for each core a separate debug session. For command line execution I take the dss.bat file provided by CCSv4 installation. It does simply following

    core0=debugServer.openSession("TCI6616 Device Functional Simulator, Little Endian_0/TMS320C66x_0")

    Already this operation issues following warning:
    Warning: Overwriting register w/ offset (0x184)
    Warning: Overwriting register w/ offset (0x184)

    core1=debugServer.openSession("TCI6616 Device Functional Simulator, Little Endian_0/TMS320C66x_1")
    core2=debugServer.openSession("TCI6616 Device Functional Simulator, Little Endian_0/TMS320C66x_2")

    core0.target.connect()
    core1.target.connect()
    core2.target.connect()
    core0.memory.loadProgram(...)
    core1.memory.loadProgram(...)
    core2.memory.loadProgram(...)
    core0.target.runAsynch()
    core1.target.runAsynch()
    core2.target.runAsynch()

    1) I then add the memory.readData(Memory.Page.PROGRAM, address, 32, 15) operation on Core 1 (after runAsynch of Core 3) I get following error

    SEVERE: Errors during memory.readData(): Address: 0x11847d40 Error: 0x400000|Address: 0x11847d44 Error: 0x400000|Address
    : 0x11847d48 Error: 0x400000|Address: 0x11847d4c Error: 0x400000|Address: 0x11847d50 Error: 0x400000|Address: 0x11847d54
     Error: 0x400000|Address: 0x11847d58 Error: 0x400000|Address: 0x11847d5c Error: 0x400000|Address: 0x11847d60 Error: 0x40
    0000|Address: 0x11847d64 Error: 0x400000|Address: 0x11847d68 Error: 0x400000|Address: 0x11847d6c Error: 0x400000|Address
    : 0x11847d70 Error: 0x400000|Address: 0x11847d74 Error: 0x400000|Address: 0x11847d78 Error: 0x400000
    SEVERE: Error reading memory: Errors during memory.readData(): Address: 0x11847d40 Error: 0x400000|Address: 0x11847d44 E
    rror: 0x400000|Address: 0x11847d48 Error: 0x400000|Address: 0x11847d4c Error: 0x400000|Address: 0x11847d50 Error: 0x4000
    00|Address: 0x11847d54 Error: 0x400000|Address: 0x11847d58 Error: 0x400000|Address: 0x11847d5c Error: 0x400000|Address:
    0x11847d60 Error: 0x400000|Address: 0x11847d64 Error: 0x400000|Address: 0x11847d68 Error: 0x400000|Address: 0x11847d6c E
    rror: 0x400000|Address: 0x11847d70 Error: 0x400000|Address: 0x11847d74 Error: 0x400000|Address: 0x11847d78 Error: 0x4000
    00
    org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Error reading
     memory: Errors during memory.readData(): Address: 0x11847d40 Error: 0x400000|Address: 0x11847d44 Error: 0x400000|Addres
    s: 0x11847d48 Error: 0x400000|Address: 0x11847d4c Error: 0x400000|Address: 0x11847d50 Error: 0x400000|Address: 0x11847d5
    4 Error: 0x400000|Address: 0x11847d58 Error: 0x400000|Address: 0x11847d5c Error: 0x400000|Address: 0x11847d60 Error: 0x4
    00000|Address: 0x11847d64 Error: 0x400000|Address: 0x11847d68 Error: 0x400000|Address: 0x11847d6c Error: 0x400000|Addres
    s: 0x11847d70 Error: 0x400000|Address: 0x11847d74 Error: 0x400000|Address: 0x11847d78 Error: 0x400000 (Launch.js#58)
            at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1705)
            at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:157)
            at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:201)
            at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:84)
            at org.mozilla.javascript.gen.c1._c0(Launch.js:58)
            at org.mozilla.javascript.gen.c1.call(Launch.js)
            at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)
            at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)
            at org.mozilla.javascript.gen.c1.call(Launch.js)
            at org.mozilla.javascript.gen.c1.exec(Launch.js)
            at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:500)
            at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:422)
            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: Error reading memory: Errors during memory.readData
    (): Address: 0x11847d40 Error: 0x400000|Address: 0x11847d44 Error: 0x400000|Address: 0x11847d48 Error: 0x400000|Address:
     0x11847d4c Error: 0x400000|Address: 0x11847d50 Error: 0x400000|Address: 0x11847d54 Error: 0x400000|Address: 0x11847d58
    Error: 0x400000|Address: 0x11847d5c Error: 0x400000|Address: 0x11847d60 Error: 0x400000|Address: 0x11847d64 Error: 0x400
    000|Address: 0x11847d68 Error: 0x400000|Address: 0x11847d6c Error: 0x400000|Address: 0x11847d70 Error: 0x400000|Address:
     0x11847d74 Error: 0x400000|Address: 0x11847d78 Error: 0x400000
            at com.ti.debug.engine.scripting.Memory.readData(Memory.java:1456)
            at com.ti.debug.engine.scripting.Memory.readData(Memory.java:1172)
            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

    2) If I take off the memory.readData operation I get continous infinite error print: Rx FIFO error link 0: FIFO is full!

    Best regards

  • My script looks identical but all works fine. It may be related to your program. Could you provide the program also? You can send me a private message if you do not want to post it publicly

    ki

  • Hi,

    ok, but I have a problem.

    Until now I was not able with CCSv4 to generate Binaries and run them on another workstation. It seems that the binary contains local absolute paths. Do you know how to overcome this problem?

    Thanks.

  • What kid of paths? Does you program use file I/O (reading/writing files on your PC)?

  • Not sure if this helps, however I find the same problem if I forget to halt the processor before reading memory.

    I have to add the following before any memory read:

    if (!session.target.isHalted()){
        // This command halts the target in order to allow memory reads
        session.target.halt();
    }

    Cheers,

    --

    Joshua