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.

Emulator will not stay connected

I'm running a new install of CCSv5.5 and connecting to a new Spectrum Digital XDS200 USB emulator.  My target board is running a TMS320C5502 processor.

When I run Test Connection immediately after connecting the emulator USB cable to my Win 7 laptop, it runs successfully.  Subsequent Test Connections reveal the following error:

E_RPCENV_IO_ERROR(-6) No connection: DTC_IO_Open::dtc_io
Failed to open i/o connection (xds2xxu:0)

An error occurred while soft opening the controller.

-----[An error has occurred and this utility has aborted]--------------------

This error is generated by TI's USCIF driver or utilities.

The value is '-250' (0xffffff06).
The title is 'SC_ERR_ECOM_EMUNAME'.

The explanation is:
An attempt to access the named emulator via USCIF ECOM has failed.

If I switch USB ports, The first Test Connection works, and then I get the same error on subsequent tries.

I also have CCSv5.5 running on an XP desktop, and with the same cable, emulator and target, Test Connection is successful every time.

  • Hello,

    Are you using a USB hub with your laptop or are you plugging the cable directly to a USB port physically on your laptop?

    Thanks

    ki

  • I am plugging directly into the laptop.

  • Hi

    Check this: http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/220692.aspx

    I know it's a different OS and emulator, by trying updating the driver too.

    Regards

    J

  • I believe my driver is up-to-date, but I'm not sure how to check that.

  • You can try updating it via the eclipse update manager. It will check for updates;

    http://processors.wiki.ti.com/index.php/Updating_CCSv5

  • My driver is up-to-date.  The problem persists.  Are there any other diagnostics that I can run?

  • Update:  I disabled USB 3.0 in the BIOS and the operation appears to have changed slightly.  After connecting the USB cable, I can run 3-4 successful Test Connections in a row before it fails.  Previously only the first one worked until I switched USB ports.

  • I used CCSv5.5 with an XDS220 and a C55x board (C5509A). I am able to use the Test Connection feature many times in a row without issue. I tried it with a USB2.0 port and a USB3.0 port and both work fine.


    I have seen the error you describe before however. I got it when I prematurely shutdown CCS (or maybe CCS hung and I CTRL+ALT+DEL). Anyway the debugger was not shut down cleanly and the emuation connection was never properly disposed of, hence the error. The emulator had to be re-enumerated like you mentioned. But that is the only time I saw it.

    You describe the error in the context of the Test Connection feature. But why are you trying to run the test many times in a row? Not that it shouldn't work... it should. But just curious.

    Another suggestion, try updating the emulation drivers via CCS update manager.

    Thanks

    ki

  • Emulation drivers are updated.  I'm running the test because when I try to debug I get:

    Error initializing emulator:
    (Error -2083 @ 0x0)
    Unable to communicate with the emulator. Confirm emulator configuration and connections, reset the emulator, and retry the operation.
    (Emulation package 5.1.507.0)

    The emulator appears in my device manager as:

    XDS2xx Emulator CDC Serial Port (COM3)

    XDS2xx User CDC Serial Port (COM4)

    Is that correct?

  • Can I see your test results when it passes?

  • Sure:

    This utility has selected a 560/2xx-class product.
    This utility will load the program 'xds2xxu.out'.
    The library build date was 'May 21 2014'.
    The library build time was '18:02:25'.
    The library package version is '5.1.507.0'.
    The library component version is '35.34.40.0'.
    The controller does not use a programmable FPGA.
    The controller has a version number of '13' (0x0000000d).
    The controller has an insertion length of '0' (0x00000000).
    This utility will attempt to reset the controller.
    This utility has successfully reset the controller.

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

    This emulator does not create a reset log-file.

    -----[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.

  • Is the below summary correct:


    Using CCSv5.5 w/XDS200 on a Windows XP PC - no problems. Everything works fine

    Using CCSv5.5 w/XDS200 (same one as above) on a Windows 7 PC:

    -Error Initializing Emulator issue when starting a debug session
    -Can not run multiple Test Connection tests successfully (USB2.0 behaves better than 3.0)

    Have you ever been able to start a debug session and connect to the board via CCS on your Windows 7 PC?

  • All of that is correct.  I have not been able to start a debug session on the Windows 7 PC.