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

Emulator: XDS560USB;    Board: EVM6446

When I use CCS to connect with EVM, an error tells me that :

----------------------------------------------------------------

Error connecting to the target:
Error 0x00000020/-2172
Error during: Execution,
TRG_ERR_COMM_FAILURE Error Occured at 0x0000000D


Sequence ID: 0
Error Code: -2172
Error Class: 0x00000020

Board Name: DM6446 XDS560 Emulator
Cpu Name: C6400PLUS_0

Abort:  Close Code Composer Studio.
Retry:  Try to connect to the target again.
Cancel:  Remain disconnected from the target
Diagnostic: Run diagnostic utility.

----------------------------------------------------------------

I have reinstalled CCSv3.3 and the driver of xds560 emulator. 

Hint:

      Before this error occured, I wrote an complex program in CCS, and debugged it. After debugging a few sentences of this program, I found that CCS did not respond. As I know, this program has problems (memory leak).  After that, I switched off 560USB and EVM6446, but this error was still existed.

      XDS560 Diagnostics result:

-----------------------------------------------------------------------------

Microsoft Windows 2000 Workstation
Version 5.1 Service Pack 2 (Build 2600)


********** Detect XDS560 adapter and driver **********
INFO 1 XDS560 adapter boards detected
 

Specified tests completed!

********** Display XDS560 hardware versions **********

XDS560 Manufacturing/Confidence Test, Version 2.1

1 XDS560 boards detected

ERROR (1245056) open did not require reset
ERROR ********** Board 0 failed tests **********
Specified tests complete
Warning: IOCTL_XDS560_OPEN returned WAIT
Warning: IOCTL_XDS560_OPEN returned WAIT

.........

-----------------------------------------------------------------------------

and "Reset XDS560 Board" was also failed after running "Diagnostics".

 

Could anyone help me to resolve it ,thank you.

 

Lorry

  • Oh~~ That's unbelievable.  After having a good rest, XDS560 can connect with c64+ again.  But I did not use any tools to correct them.

    So I believe it is related with my memory leak in my program. I think heap overflow is the main reason for this accidental error.

  • It seems like you figured this out on your own and you are all set. 

    FYI, sometimes we go beyond reseting JTAG, we actually close CCS (or at least disconnect) and power cycle JTAG as well as EVM.  Not sure if you tried all this, but just thought I would mention it in case you run into this again.

  • With odd emulation errors like this the best course of action is almost always to shut everything down and bring it back up (restart CCS and power cycle the board), usually that will flush out the issue, I see these sorts of errors all the time.

    For a more stable emulation experience it pays to keep your emulation drivers and CCS version up to date, often seemingly random failures like this end up fixed in newer service releases.