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.

Error connecting to the target: (Error -2172 @ 0xD) on CCS 6.0.1 and XDS560v2

Hello,

I face an error while testing c6678 DSP. The error message is below.

IcePick_E: Error connecting to the target: (Error -2172 @ 0xD) Unable to communicate with the emulator. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.1.507.0) 

1> What does 'Error -2172 @ 0xD' mean?

2> The driver(Sectrum Digital XDS560v2 USB) looks installed well in device manager.

But, the driver disappeared in device manager very short time while testing and upper error occurred.

After error occurred, I cannot connect to emulator until power off emulator.

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)

After power off emulator I can connect to emulator but still cannot connect to the target(c6678 DSP) until power off board.

There are two computer and two xds560v2. I changed and tested the combination of computer and xds560v2.

 The error occurred on only my computer.

The OS of my computer is Windows 8.1 and another's is Windows 7.

I changed USB port but result is same - error occurred. All of four USB I face same error on.

I don't think my computer is the problem because I didn't see any error when I tested two c6678 EVM with BOC.

I saw this error only when testing our new board.

Anyhow, there is no error when testing with another computer.

I cannot find out how to solve this problem. Please give me any clue.

  • Hi,

    If the issue only happens in your laptop, there is a high probability it is contributing to this problem - even if incidentally.

    The first thing I would inspect is the type of port you are connecting: is this a USB2.0 or USB3.0 port? I recall some people having this type of problems in the past, although with different JTAG debuggers (XDS100 or XDS200, If I recall correctly).

    I know you probably already tested this as well, but just be sure USB cables are really tightly fit to both ports - I have run into this issue myself, where a cable was only loose in one specific port of my PC.

    Apart from this I don't have much more clues on what may be happening. One last possibility is to update the TI Emulators component of your installation (details in section 2 of the page below), but I really think this is a long shot in solving this.

    processors.wiki.ti.com/.../Updating_CCSv6

    Hope this helps,
    Rafael
  • Hi Rafael,
    There are four USB port on my laptop. Two is USB2.0, two is USB3.0. All of four port I saw same error.

    I already tested changing USB cables. No difference.

    By the way, the weird thing is that error occurrence time varies with board condition.
    If current consumption of board goes higher, the error occurs in shorter time after power-on. (Current consumption depends on FPGA and DSP source.)

    If I focus on only my laptop, the error is related to board current consumption.
    But another laptop connects to board without error in any case.

    Is there any option for USB port on Windows?
  • Hi,

    Yoonsun Kim said:
    By the way, the weird thing is that error occurrence time varies with board condition.
    If current consumption of board goes higher, the error occurs in shorter time after power-on. (Current consumption depends on FPGA and DSP source.)

    I am assuming you are not powering the board from the JTAG connector (TVRef pin), right? I don't think so, but keep in mind this pin is only designed to sense and not supply power.

    Yoonsun Kim said:
    If I focus on only my laptop, the error is related to board current consumption.
    But another laptop connects to board without error in any case.

    It may be a long shot, but per your description I am suspecting that your laptop, the JTAG debugger and the board under test have different ground potentials (voltage) due to non-isolated power supplies. I have seen JTAG debuggers collapse, boards reset, etc due to this issue (I have destroyed my PC motherboard because of that as well, but that is another story). When the board draws more power from its power supply, the ground level may raise and increase current flow from the laptop to the board via the JTAG debugger. Something similar to what is described in this video.

    You can do a quick check by simply running your laptop on batteries and checking if this issue goes away. Also, double-check if you are using the original power supply of the JTAG debugger, as I am almost sure it is fully isolated (the video above will show how to find out if they are not isolated).

    Yoonsun Kim said:
    Is there any option for USB port on Windows?

    No, the USB parameters are not configurable.

    Unfortunately I am running out of ideas to suggest for your case, but please give this a try.

    Hope this helps,

    Rafael

  • Hi Rafael,

    I measured the resistance between DC GND and AC GND of power adapter of laptop. The value was about 300 ohm when AC power off.(I did not measure when AC power on). The resistance of another laptop was about 1kohm.
    I connected to board by my laptop on battery, but saw same error. The difference of resistance was not big deal.

    By the way, I saw the video you linked.
    I am using the original power supply of XDS560v2 so it is fully isolated according to your explanation. The resistance between AC and DC ground was also over 1Mohm.

    I am not sure whether the power supply to board is isolated or not. The resistance between AC and DC ground was almost 300 ohm. There was no GND port, only + and - port on the power supply.

    There is another power supply I am using and it has three port +, -, and GND port and I always short - and GND port.
    Does it mean that the board is supplied non-isolated power?

    The power for board should be isolated for safety?

    Best regards,
    Sunny
  • Sunny,

    Yoonsun Kim said:
    I measured the resistance between DC GND and AC GND of power adapter of laptop. The value was about 300 ohm when AC power off.(I did not measure when AC power on). The resistance of another laptop was about 1kohm.

    300Ω and 1kΩ seem very low values to consider these power supplies as "isolated",  therefore they may be contributing to the problems you are experiencing.  However, since you also tried to connect using the laptop completely isolated (running on batteries), the problem may be coming from somewhere else (perhaps a daughter card that uses a different power supply, a serial cable connected to another device, etc.).

    Yoonsun Kim said:
    I am using the original power supply of XDS560v2 so it is fully isolated according to your explanation. The resistance between AC and DC ground was also over 1Mohm.

    This value seems high enough to guess this power supply is not influencing this scenario. The 1MΩ resistance you saw is probably due to a capacitor between the terminals and the supply GND pin (if you keep the probes connected long enough, this value will continuously increase as the capacitor charges).

    Yoonsun Kim said:
    I am not sure whether the power supply to board is isolated or not. The resistance between AC and DC ground was almost 300 ohm.

    Similarly as above, 300Ω seems a very low value that may be contributing to the problems you are experiencing.

    Yoonsun Kim said:
    There is another power supply I am using and it has three port +, -, and GND port and I always short - and GND port.
    Does it mean that the board is supplied non-isolated power?

    Yes, usually connecting the GND to either one of the terminals will make its output become tied to GND. If you disconnect this, the power supply output becomes "floating" and therefore its influence on the problems you are experiencing will be nullified (obviously double check your power supply user's manual and your lab procedures to verify if this can be properly done).

    Yoonsun Kim said:
    The power for board should be isolated for safety?

    Safety discussions are a different matter and I strongly suggest you to check the lab safety procedures adopted by your company. Just as a reference: in my experience, for personal safety you would have only one of your power supplies tied to GND, thus avoiding any ground loops (what seems to be causing the issue as per your description) while maintaining the entire system at safe operating levels.

    Something similar as to what is mentioned on the previous video and also talked about in section 2.6 of the document below:

    web.mit.edu/.../EST016_Ground_Loops_handout.pdf

    I really hope this helps you find the root cause for the troubles you are experiencing, as I am running out of ideas to further debug this.

    Hope this helps,

    Rafael