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 connection problem using CCS

Hi,

I  successfully build the sample code for controlling the camera taking a video. However, I met new trouble when I connect the emulator XDS200 to my computer. I can't debug or run the code.
I tried to follow the youtube video from http://processors.wiki.ti.com/index.php/XDS200  However, in the general set up connection tab, it doesn't have the choice of "XDS2XX USB emulator". The closest choice is "XDS2XX USB Debug Probe". Then, it always tell me some errors in connection.
I then click to "check for update" in the CCS, but it didn't change any choice options.
I noticed one thing that I plugged the XDS200 emulator into computer before I install CCS, at that time it detected the device, but just failed to install driver. This time, even after I install CCS, the computer doesn't detect the emulator device automatically. I'm wondering is that because I did not install the emulator driver? Where can I download the driver to install?(That's why I tried to update all in CCS, I thought that could solve the problem but it turned out not).
  • Hi,

    Agnes Wang said:
    The closest choice is "XDS2XX USB Debug Probe".

    That is due to the fact the name was changed on the latest CCS update. However the functionality should not be affected.

    Agnes Wang said:
    This time, even after I install CCS, the computer doesn't detect the emulator device automatically. I'm wondering is that because I did not install the emulator driver?

    Can you click on the button "Test Connection" from inside the target configuration editor? If the device drivers are failing or if there is a problem in the USB connection, you should see an error similar to:

    Test Connection output said:

    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 debug probe via USCIF ECOM has failed.

    [End: Texas Instruments XDS2xx USB Emulator_0]

    Also, if the drivers were not installed correctly (or a previous version is being picked up), can you open the Control Panel --> Device Manager and see if you have the following entry:

    If you see that, the low-level device drivers seem to be properly recognized, but somehow the JTAG debugger is not being recognized by CCS itself. You can try to re-plug the JTAG debugger in other USB port or perhaps even change the USB cable. Also, check if one of the LEDs on your JTAG debugger is lit when you plug it to the port (which means it is powered up and ready to connect)

    If you see something similar to that:

    Then the older device drivers are being picked up. To change to the newer ones, do the following:

    - Right-click on the first XDS2xx entry and select Update Driver Software...
    -
    Select Browse my computer for driver software
    - Select Let me pick from a list of device drivers on my computer
    - See if there is an entry called XDS2xx Debug Probe. If so, select that and click on Next.
    - If there is no such entry, click on Have Disk and browse to the following directory: C:\ti\ccsv6\ccs_base\emulation\windows\xds2xx_drivers
    - Do the same for the second entry

    Hope this helps,

    Rafael

     

  • Hi,

    I tried what you have said, still not working.

    When I tried the test connection, it actually showed me a different error message. Please see the following.

    Do you know anything else I can try? By the way, the emulator's left LED light was always on and green.

    Thanks!

  • Hi,

    The issue now seems to be the JTAG debugger is properly recognized (thus the drivers are correct now) but the board has no power - i.e., it is not turned on. What is the board you are trying to connect to?

    Some of the F28x boards are very tricky to power up, but fortunately this page helps how to power and connect to the different board models.

    If you are using another board, double-check its documentation and make sure it is powered up. 

    If everything is powered up as it is supposed to be, it is possible there may be a broken JTAG cable or a bad connection on the JTAG connector - pin 5 of this connector is tied to the VCC line on the board. (check tsections 4.2 and 6 of this wiki page).

    Hope this helps,

    Rafael 

  • I'm trying to let a camera taking a video. Do you mean the camera is the board? Do I have to plug the JTAG emulator stuff to the camera and turn on the power of the camera?

    Thanks!

  • Hi,

    Agnes Wang said:
    Do you mean the camera is the board?

    I really don't know what development board/camera you have, therefore I can't tell exactly how to access its JTAG header or even if it has one. However, if that is the only thing you have, probably the camera is the "board".

    Agnes Wang said:
    Do I have to plug the JTAG emulator stuff to the camera and turn on the power of the camera?

    Yes. In general terms, the JTAG debugger connects to a JTAG pin header located in the development board, which can have a few different types and pin counts, being 14 and 20 pins the most common. This is shown in the video you mentioned.

    For the JTAG communications work properly, you must turn on the camera.

    Despite all this, the JTAG itself usually does not have the bandwidth to transfer video streams, as it is designed to debug the embedded hardware. Therefore it is possible the camera has another interface such as Ethernet, SDI, DVI, etc. more suitable for that.

    Hope this helps,

    Rafael

  • Hi,

    The problem is still not solved... This time, I did connect everything, it still shows me in the test connection:

    What else can I try this time? Thanks!

  • Here is the picture.

  • Agnes,


    I had the same issue as you until yesterday afternoon, all I did was removed all the USB cables from computer, and then disconnected the usb cable from the emulator, XDS200. Then reattach worked. Let me know if this helps.


    Shoba

  • Agnes,

    The error now indicates something is wrong with the JTAG circuitry between the JTAG debugger and the device on the development board. That could well be the adapter board you have between the JTAG connector and the development board or a specific boot mode on the development board that is preventing the JTAG from properly communicating with the device. I would carefully inspect the user's guide or technical reference manual of your development kit to find out exactly what are the configurations necessary for JTAG debugging on it. The ultimate test would be to try another combination of the development kit and JTAG debugger and see if you get a different response.

    Unfortunately without information about the development kit itself I can only give these somewhat general statements.

    Regards,

    Rafael

  • Hi,

    I fixed the issue of the JTAG connection. Now the test connection showed me success. However, when I click the debug button after I built the code(success), there is a new issue pop out.

    What kind of license do I need? Where can I find it? Do I have to buy it to run the code?

    Thanks!

  • Agnes,

    I am glad you were able to fix the connection - just curious what was causing this error?

    You are correct - in fact, you need a license to use your XDS200 JTAG debugger (check details at section 2 of this wiki page).

    To solve this you may either use the Free 90-day evaluation license, purchase a node-locked license or perhaps use a university site license (if available).

    The first option is shown at section 4 of the CCSv6 Getting Started Guide.

    The second option can be purchased at the TI store: simply search for "code composer studio IDE" to get the options.

    The third option will require you to contact either your IT department or someone that manages the software resources at the university.

    Hope this helps,

    Rafael

  • Hi Rafael,

    The connection error was because I plugged in the JTAG upside down into the camera. When I plugged it face up, then it worked.

    Thanks for your help!