Hi,
we are currently running the TI SafeQKit v1.1.0 with the following setup:
target: TMS570LS3137
host: Win7 64-bit, ccsv5, TI Compiler 4.9.5
Out problem is that we have to run an enourmous number of tests for tool qualification on the mentioned target.
However, about 34% of all tests run into the following connection problem with the target. When we repeat these aborted tests, the usually run with PASS. Hence, it seems to be an erratic problem. The Connection to the target via XDS100v2 and loadti.bat seems not to be as robost as we expect.
Our problem is that our test runs usualy take up to 9 days of run time and finding out and repeating the aborted tests causes a lot of manual effort.
Here is the error message we frequently get. It would be great if someone could tell us more about
a) the FTDI error (-154) and
b) the DSS error #4001.
Maybe this helps to find out the reason for the problems.
Example for a bad run:
***** DSS Generic Loader *****
START: 15:14:19 GMT+0200 (MESZ)
Configuring Debug Server for specified target... Done TARGET: Texas Instruments XDS100v2 USB Emulator Connecting to target... CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0 Resetting target... testEnv.outFiles: tconflict Loading tconflict Done Target running... Interrupt to abort . . . TESTING: suite/3/1/2/3/th1.c +++ stderr ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ SEVERE: IcePick: Error connecting to the target: (Error -154 @ 0xFFFFFF66) One of the FTDI driver functions used to write data returned bad status or an error. (Emulation package 5.0.569.0)
SEVERE: emulation failure occurred SEVERE: Error connecting to the target: emulation failure occurred +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ COMMAND: leash -t 5m c:/ti/ccsv5/ccs_base/scripting/examples/loadti/loadti.bat -r -c C:/SuperTest/SuperTest/TMS570LS3137_xds100v2.ccxml th1 C:\ti\ccsv5\ccs_base\scripting\examples\loadti\..\..\..\DebugServer C:\ti\ccsv5\ccs_base\scripting\examples\loadti\..\..\..\DebugServer\packages\ti\dss\java\js.jar;C:\ti\ccsv5\ccs_base\scripting\examples\loadti\..\..\..\DebugServer\packages\ti\dss\java\js.jar
***** DSS Generic Loader *****
START: 15:19:22 GMT+0200 (MESZ)
Configuring Debug Server for specified target... Done TARGET: Texas Instruments XDS100v2 USB Emulator Connecting to target... Error code #4001, could not connect to target! Aborting!
END: 15:19:26 GMT+0200 (MESZ)
Example for a good run:
TESTING: suite/3/1/2/3/th2.c COMMAND: leash -t 5m c:/ti/ccsv5/ccs_base/scripting/examples/loadti/loadti.bat -r -c C:/SuperTest/SuperTest/TMS570LS3137_xds100v2.ccxml th2 C:\ti\ccsv5\ccs_base\scripting\examples\loadti\..\..\..\DebugServer C:\ti\ccsv5\ccs_base\scripting\examples\loadti\..\..\..\DebugServer\packages\ti\dss\java\js.jar;C:\ti\ccsv5\ccs_base\scripting\examples\loadti\..\..\..\DebugServer\packages\ti\dss\java\js.jar
***** DSS Generic Loader *****
START: 15:19:29 GMT+0200 (MESZ)
Configuring Debug Server for specified target... Done TARGET: Texas Instruments XDS100v2 USB Emulator Connecting to target... CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0 Resetting target... testEnv.outFiles: th2 Loading th2 Done Target running... Interrupt to abort . . . Confirming _ allowed in identifiers
RESULT: (unknown_test) PASSED
NORMAL COMPLETION: 14275 cycles
Regards
Martin