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.

"Failed to reset the emulator"

Guru 15580 points

Occasionally I get the following error when starting a debug session:

 

Error connecting to the target:

(Error -181 @ 0x0)

The controller has detected a dead JTAG clock.

The user must turn-on or connect the JTAG clock for the target.

(Emulation package 5.0.470.0)

...or this one:

Error connecting to the target:

(Error -180 @ 0x0)

The controller has detected a target power loss.

The user must turn-on or connect the power supply for the target.

(Emulation package 5.0.470.0)

I then attempt to reset the emulator and get this error message:

 

ARM9_0: Failed to reset the emulator: Unified-SCIF is operating in multiple client mode. The operation being attempted is invalid in this mode. It is likely a problem with `SC_CMD' in SMG_call().

The only way to get rid of this problem is to do a power-reboot of the XDS560v2 STM. Since this is a PITA and takes ~45 seconds to reboot, is there something else I can do to get rid of the problem?

 

 

  • Hi,

    The first two messages indicate the emulator completely lost the device (dead JTAG clock and target power loss) - in other words, a catastrophic failure from an emulator standpoint.

    However, since you are using an ARM9 I strongly suggest using adaptive clock in your target configuration. Check the section Checking your software configuration of the Debugging JTAG Connectivity page. Several users reported severe unreliability when using fixed clock.

    I understand the frustration of rebooting a 560v2, and in my experience it a very unfrequent need - i.e., the emulator is pretty stable even when the device itself goes down the drain.

    Hope this helps,

    Rafael

  • Rafael,

    desouza said:
    The first two messages indicate the emulator completely lost the device (dead JTAG clock and target power loss) - in other words, a catastrophic failure from an emulator standpoint.

    I realize that, but the target is powered on and should be discoverable by the emulator.

    desouza said:
    However, since you are using an ARM9 I strongly suggest using adaptive clock in your target configuration.

    Have been using adaptive clock at 1MHz since day 1.

    desouza said:
    I understand the frustration of rebooting a 560v2, and in my experience it a very unfrequent need - i.e., the emulator is pretty stable even when the device itself goes down the drain.

    Tis much more reliable with CCSv5.1 than CCSv4.x. But something is happening to kill it, causing the need for power-reboot. As you say, it is much more infrequent than before, but there is a bug in there somewhere.

    Thanks for the help.

  • Hello !!

    We get this error :

    The controller has detected a target power loss.
    The user must turn-on or connect the power supply for the target.

    Because, We need to connect the USB cable from the PC to the XDS100 hardware. and then Connect the JTAG to the target board, before  powered the borad with 5V input through either J1

    else if the board is powred before connecting the jtag emulator we get this error.

    This answred is verified.

    Please verify these answer to close this thread.

    Think you !!