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.

LoadTI fails occasionally



Hello,
I've been running this command to download firmware to the target, which works, well, most of the time, occasionally it fails with the following output:

c:/ti/ccsv5/ccs_base/scripting/examples/loadti/loadti.bat -a -c TMS320C6748.ccxml -x ../log.xml Debug/UnitTesting.out 
***** DSS Generic Loader ***** 
START: 12:53:09 GMT-0000 (GMT) 
Configuring Debug Server for specified target... Done 
TARGET: Texas Instruments XDS100v1 USB Emulator Connecting to target... 
Error code #4001, could not connect to target! Aborting! 
SEVERE: ICEPICK_C: Error connecting to the target: (Error -151 @ 0x0) This utility failed to open the adapter for a custom emulator. The adapter returned an error. (Emulation package 5.0.520.0) 
SEVERE: emulation failure occurred 
SEVERE: Error connecting to the target: emulation failure occurred  
END: 12:53:21 GMT-0000 (GMT)

Sometimes it doesn't recover from the error and I have to unplug the USB cable and plug it back. Any idea why is this happening and how can it be fixed? I'm running Windows 7 Professional with EVMC6748.
Thank you in advance,
David.
  • David,

    You probably suspect that, being intermittent, it becomes an issue hard to track. A few things may help:

    - If the emulator is isolated, the delays associated with the opto-isolators may be causing a longer delay in the JTAG communications (I saw some of this intermittent behaviour in my High Voltage Kit). You can try to slow down the JTAG clock speed (check the section Software Configuration of this page).

    - Open the Device Manager of the Windows Control Panel and see if you see the XDS100 device stable or if it sometimes disappears. If that happens, it may be a flaky USB cable.

    - The DBGJTAG GUI is capable of repeating the low-level JTAG testing an arbitrary number of times. That can give you some idea on the repeatability and frequency of the test.

    If I get some additional details that may be useful I will post them here, ok?

    Regards,

    Rafael

  • Hi Rafael,

    I tried moving cables but the XDS100 is stable, I haven't seen it to disappear. The emulator is provided by EVMC6748 board, XDS100v1.

    I'm using CCSv5 and DBGJTAG GUI doesn't want to install unless it finds CCSv4, but I used the Test Connection and seems fine as you can see below. How can I decrease the JTAG clock speed?

    Best regards,

    David.

    [Start]

    Execute the command:

    %ccs_base%/common/uscif/dbgjtag.exe -f %boarddatafile% -rv -o -F inform,logfile=yes -S pathlength -S integrity

    [Result]


    -----[Print the reset-command software log-file]-----------------------------

    This utility has selected a 100- or 510-class product.
    This utility will load the adapter 'jioserdesusb.dll'.
    The library build date was 'Oct 27 2011'.
    The library build time was '17:12:35'.
    The library package version is '5.0.520.0'.
    The library component version is '35.34.38.0'.
    The controller does not use a programmable FPGA.
    The controller has a version number of '4' (0x00000004).
    The controller has an insertion length of '0' (0x00000000).
    This utility will now attempt to reset the controller.
    This utility has successfully reset the controller.

    -----[Print the reset-command hardware log-file]-----------------------------

    The scan-path will be reset by toggling the JTAG TRST signal.
    The controller is the FTDI FT2232 with USB interface.
    The link from controller to target is direct (without cable).
    The software is configured for FTDI FT2232 features.
    The controller cannot monitor the value on the EMU[0] pin.
    The controller cannot monitor the value on the EMU[1] pin.
    The controller cannot control the timing on output pins.
    The controller cannot control the timing on input pins.
    The scan-path link-delay has been set to exactly '0' (0x0000).

    -----[The log-file for the JTAG TCLK output generated from the PLL]----------

    There is no hardware for programming the JTAG TCLK frequency.

    -----[Measure the source and frequency of the final JTAG TCLKR input]--------

    There is no hardware for measuring the JTAG TCLK frequency.

    -----[Perform the standard path-length test on the JTAG IR and DR]-----------

    This path-length test uses blocks of 512 32-bit words.

    The test for the JTAG IR instruction path-length succeeded.
    The JTAG IR instruction path-length is 6 bits.

    The test for the JTAG DR bypass path-length succeeded.
    The JTAG DR bypass path-length is 1 bits.

    -----[Perform the Integrity scan-test on the JTAG IR]------------------------

    This test will use blocks of 512 32-bit words.
    This test will be applied just once.

    Do a test using 0xFFFFFFFF.
    Scan tests: 1, skipped: 0, failed: 0
    Do a test using 0x00000000.
    Scan tests: 2, skipped: 0, failed: 0
    Do a test using 0xFE03E0E2.
    Scan tests: 3, skipped: 0, failed: 0
    Do a test using 0x01FC1F1D.
    Scan tests: 4, skipped: 0, failed: 0
    Do a test using 0x5533CCAA.
    Scan tests: 5, skipped: 0, failed: 0
    Do a test using 0xAACC3355.
    Scan tests: 6, skipped: 0, failed: 0
    All of the values were scanned correctly.

    The JTAG IR Integrity scan-test has succeeded.

    -----[Perform the Integrity scan-test on the JTAG DR]------------------------

    This test will use blocks of 512 32-bit words.
    This test will be applied just once.

    Do a test using 0xFFFFFFFF.
    Scan tests: 1, skipped: 0, failed: 0
    Do a test using 0x00000000.
    Scan tests: 2, skipped: 0, failed: 0
    Do a test using 0xFE03E0E2.
    Scan tests: 3, skipped: 0, failed: 0
    Do a test using 0x01FC1F1D.
    Scan tests: 4, skipped: 0, failed: 0
    Do a test using 0x5533CCAA.
    Scan tests: 5, skipped: 0, failed: 0
    Do a test using 0xAACC3355.
    Scan tests: 6, skipped: 0, failed: 0
    All of the values were scanned correctly.

    The JTAG DR Integrity scan-test has succeeded.

    [End]