Reply by Michael Dunn June 20, 20082008-06-20
On 6/20/08, s...@yahoo.com wrote:

Shadowfree21c,

> mikedunn, Jeff -
>
> I've checked the signal 'Hurricane_Detectn' and the signal is correct as
> you told. Now I understand the use of PIN 8 of 14-pin JTAG header on the DSK
> board.
>
> The reason why I should use the 60-pin JTAG header is that the custom board
> I made has only the 60-pin JTAG header. When I made the custom board, I have
> no experience about DSP and schematic design.
>

FYI - To Everyone,
Anytime that you use a hardware design [or some software] without thoroughly
understanding it, you run the risk of having problems. This is especially
true if you perform a 'minor modification'.

I thought that the reference design for TMS320C6416 provided from TI is
> useful to design the C6416T board and the 60-pin JTAG header will have no
> problme. I changed the 60-pin header to 14-pin header on new custom board.
> But It is important to check the present board with 60-pin header.
>
> I used 'XDSprobe' to check some things.
>
> 1) XDS560R only: Cable break error
> 2) XDS560R with 14-to-60 adapter: Cable break error
> 3) XDS560R connected to DSK6416 without power supply:
>

The XDS560 precedence for error checking seems to be:
1. Cable break near [cable not plugged in to XDS560].
2. Cable break far [cable not connected to target].
3. Target power.

-----[Select and reset the
> controller]---
>
> This utility has selected an XDS560 class product.
> This utility will load the program 'sdxds560rusb.out'.
> This utility will operate on port address '0x0'.
>
> An error occurred while hard opening the controller.
>
> -----[An error has occurred and this utility has
> aborted]--------------------
>
> This error is generated by TI's USCIF driver.
>
> The value is `-180' (0xffffff4c).
> The title is: `SC_ERR_CTL_NO_TRG_POWER'.
>
> The explanation is:
> The controller has detected a target power loss.
> The user may have failed to turn-on or connect its source.
>
> 4) XDS560R connected to DSK6416 with power supply:
>
> -----[Select and reset the
> controller]---
>
> This utility has selected an XDS560 class product.
> This utility will load the program 'sdxds560rusb.out'.
> This utility will operate on port address '0x0'.
> The emulator program is named 'sdxds560rusb.out'.
> The emulator program is version '35.24.0.3'.
> The controller has a version number of '4' (0x0004).
> The controller has an insertion length of '0' (0x0000).
> The cable+pod has a version number of '2' (0x0002).
> The cable+pod has a capability number of '0' (0x0000).
> The local memory has a base address of '0' (0x000000).
> The local memory has a word capacity of '32768' (0x008000).
> This utility will attempt to reset the controller.
> This utility has successfully reset the controller.
>
> -----[An error occurred when configuring the JTAG
> TCLK]----------------------
>
> This error is generated by TI's USCIF driver.
>
> The value is `-180' (0xffffff4c).
> The title is: `SC_ERR_CTL_NO_TRG_POWER'.
>
> The explanation is:
> The controller has detected a target power loss.
> The user may have failed to turn-on or connect its source.
>
> -----[Perform the scan-path length test on the JTAG IR and
> DR]---------------
>
> This scan-path length test uses blocks of 512 32-bit words.
>
> -----[The results of the scan-path length test on the JTAG IR and
> DR]--------
>
> The test for the JTAG IR instruction scan-path length was corrupted.
> The test for the JTAG DR bypass scan-path length will not be done.
> The error number is '-180' (0xffffff4c).
>
> -----[An error has occurred and this utility has
> aborted]--------------------
>
> This error is generated by TI's USCIF driver.
>
> The value is `-180' (0xffffff4c).
> The title is: `SC_ERR_CTL_NO_TRG_POWER'.
>
> The explanation is:
> The controller has detected a target power loss.
> The user may have failed to turn-on or connect its source.
>
> ---------
>
> I'm still having a problem with 60-pin JTAG header and need anyone's help.
>
> I've examined the pin out voltage of 14-pin JTAG header and 60-pin JTAG
> header with adapter. They are the same except the pin 8.
>

Now that we have more facts, please do steps #2, #3, #4, and answer #1 and
#5:
1. Does the 14-to-60 adapter work on the DSK??
2. Set TCLK frequency to 1 Mhz in CCS setup. Use this value for testing.
3. Obtain a 14 pin wire wrap connector with .1 inch spacing that will plug
onto the 14 pin header [that is just a 1-to-1 extender]. This will allow you
to probe the signals that actually come out of the 60-14 adapter. If you
cannot locate a 14 pin wire wrap connector, you can use a larger one if you
are very careful. You will need to remove or cut off pin 6. Plug the
'extender' into the cable first and then carefully plug it into the 60-14.
Leave the extender plugged into the cable even when you switch to the 14 pin
header on the DSK.
4. The only signals that you should need to check at this point are TCLK_RET
[9] and TVD [5] with the xds560r attached. We want to be sure that the
signals are present at the connector pins to the xds560.
5. Do you see TCLK_RET [1 mhz clock] and TVD [3.3 v]?? Use the 14 pin on the
DSK as reference - you may need to start a test to get the clock to work.

mikedunn

- Shadowfree21c

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php
Reply by shad...@yahoo.com June 20, 20082008-06-20
mikedunn, Jeff -

I've checked the signal 'Hurricane_Detectn' and the signal is correct as you told. Now I understand the use of PIN 8 of 14-pin JTAG header on the DSK board.

The reason why I should use the 60-pin JTAG header is that the custom board I made has only the 60-pin JTAG header. When I made the custom board, I have no experience about DSP and schematic design. I thought that the reference design for TMS320C6416 provided from TI is useful to design the C6416T board and the 60-pin JTAG header will have no problme. I changed the 60-pin header to 14-pin header on new custom board. But It is important to check the present board with 60-pin header.

I used 'XDSprobe' to check some things.

1) XDS560R only: Cable break error
2) XDS560R with 14-to-60 adapter: Cable break error
3) XDS560R connected to DSK6416 without power supply:

-----[Select and reset the controller]---

This utility has selected an XDS560 class product.
This utility will load the program 'sdxds560rusb.out'.
This utility will operate on port address '0x0'.

An error occurred while hard opening the controller.

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

This error is generated by TI's USCIF driver.

The value is `-180' (0xffffff4c).
The title is: `SC_ERR_CTL_NO_TRG_POWER'.

The explanation is:
The controller has detected a target power loss.
The user may have failed to turn-on or connect its source.
4) XDS560R connected to DSK6416 with power supply:

-----[Select and reset the controller]---

This utility has selected an XDS560 class product.
This utility will load the program 'sdxds560rusb.out'.
This utility will operate on port address '0x0'.
The emulator program is named 'sdxds560rusb.out'.
The emulator program is version '35.24.0.3'.
The controller has a version number of '4' (0x0004).
The controller has an insertion length of '0' (0x0000).
The cable+pod has a version number of '2' (0x0002).
The cable+pod has a capability number of '0' (0x0000).
The local memory has a base address of '0' (0x000000).
The local memory has a word capacity of '32768' (0x008000).
This utility will attempt to reset the controller.
This utility has successfully reset the controller.

-----[An error occurred when configuring the JTAG TCLK]----------------------

This error is generated by TI's USCIF driver.

The value is `-180' (0xffffff4c).
The title is: `SC_ERR_CTL_NO_TRG_POWER'.

The explanation is:
The controller has detected a target power loss.
The user may have failed to turn-on or connect its source.

-----[Perform the scan-path length test on the JTAG IR and DR]---------------

This scan-path length test uses blocks of 512 32-bit words.

-----[The results of the scan-path length test on the JTAG IR and DR]--------

The test for the JTAG IR instruction scan-path length was corrupted.
The test for the JTAG DR bypass scan-path length will not be done.
The error number is '-180' (0xffffff4c).

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

This error is generated by TI's USCIF driver.

The value is `-180' (0xffffff4c).
The title is: `SC_ERR_CTL_NO_TRG_POWER'.

The explanation is:
The controller has detected a target power loss.
The user may have failed to turn-on or connect its source.

---------
I'm still having a problem with 60-pin JTAG header and need anyone's help.

I've examined the pin out voltage of 14-pin JTAG header and 60-pin JTAG header with adapter. They are the same except the pin 8.
- Shadowfree21c
Reply by Jeff Brower June 19, 20082008-06-19
Mike-

> On 6/19/08, Jeff Brower wrote:
> > Mike-
> >
> > On 6/19/08, s...@yahoo.com wrote:
> > >
> > > mikedunn,
> > >
> > > I've inspected the 60-pin JTAG header signals on the target board (DSK
> > 6416T - Spectrum Digital).
> > >
> > > The voltage of Pin 5 (TVD) is high (3.2v), this is the same as 14 pin
> > header case and correct in my opinion.
> > >
> > > (Definitely, the JTAG emulator with 14-pin JTAG header on the DSK works
> > perfect.)
> > >
> > > "Troubleshooting Guide for Emulation Errors" tells that
> > >
> > > 1) Make sure that the target has proper voltage supplied to it.
> > > 2) Check that the emulator board is securely installed.
> > > 3) Check that the cabling is securely connected between the emulator and
> > the target.
> > > 4) Make sure that the XDS560 hardware settings for the port address.
> > >
> > > I've checked all of them, but the message still showed up.
> > >
> > > Curiously, Pin 8 of 14-pin JTAG header on the DSK is connected to the VCC.
> > This pin should be grounded.
> > >
> > One question - why are you using the 60 pin with a 14 pin adapter instead
> > of the 14 pin connector?? Actually, pin 8 is a 'special pin' on DSKs - it is
> > tied to a pullup resistor. It controls which emulator connection [built in
> > or external] is used - it also controls an LED on the board that indicates
> > the same thing [I don't remember where it is]. The LED is lit when the board
> > is powered up without an emulator - when you plug in the emulator to the 14
> > pin connector, the light goes out.Check the signal 'Hurricane_Detectn' - it
> > should be high with nothing connected and be low when the 60-to-14 adapter
> > and emulator are connected.
> >
> > I would like to clarify this as "Spectrum Digital DSK boards", not TI ones
> > such as C6x11. The non-standard use of JTAG header pin 8 as an output
> > signal (called EMU_STS in some cases) is present only on Spectrum Digital
> > DSK boards. Typically, it selects the output of a bus switch mux, routing
> > to the DSP either a) JTAG header signals, or b) signals from SD's
> > non-documented JTAG obfuscation circuitry (missing DSK schematic pages).
>
> au contraire Jeff,
>
> This first appeared [at least to me] on the 6201 EVM [a slow switch
> kicked my but about 8 years ago], followed by the 6701 EVM, 6211 DSK,
> and 6711 DSK [see page 3 of the schematics]. I assume that SD just
> 'continued the tradition'.

Ok, I see it now. My bad for not checking the 6x11 DSK schematic more carefully.

> I think that this [or something similar] is the only way that one can
> support 'on board emulation' with an automatic switch to 'external
> emulation'.

Yes any DSK board compatible with CCS + built-in JTAG emulation would need some type
of "which JTAG awareness".

-Jeff
Reply by Michael Dunn June 19, 20082008-06-19
Jeff,

On 6/19/08, Jeff Brower wrote:
> Mike-
>
> On 6/19/08, s...@yahoo.com wrote:
> >
> >
> >
> > mikedunn,
> >
> > I've inspected the 60-pin JTAG header signals on the target board (DSK
> 6416T - Spectrum Digital).
> >
> > The voltage of Pin 5 (TVD) is high (3.2v), this is the same as 14 pin
> header case and correct in my opinion.
> >
> > (Definitely, the JTAG emulator with 14-pin JTAG header on the DSK works
> perfect.)
> >
> > "Troubleshooting Guide for Emulation Errors" tells that
> >
> > 1) Make sure that the target has proper voltage supplied to it.
> > 2) Check that the emulator board is securely installed.
> > 3) Check that the cabling is securely connected between the emulator and
> the target.
> > 4) Make sure that the XDS560 hardware settings for the port address.
> >
> > I've checked all of them, but the message still showed up.
> >
> > Curiously, Pin 8 of 14-pin JTAG header on the DSK is connected to the VCC.
> This pin should be grounded.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> One question - why are you using the 60 pin with a 14 pin adapter instead
> of the 14 pin connector?? Actually, pin 8 is a 'special pin' on DSKs - it is
> tied to a pullup resistor. It controls which emulator connection [built in
> or external] is used - it also controls an LED on the board that indicates
> the same thing [I don't remember where it is]. The LED is lit when the board
> is powered up without an emulator - when you plug in the emulator to the 14
> pin connector, the light goes out.Check the signal 'Hurricane_Detectn' - it
> should be high with nothing connected and be low when the 60-to-14 adapter
> and emulator are connected.
> I would like to clarify this as "Spectrum Digital DSK boards", not TI ones
> such as C6x11. The non-standard use of JTAG header pin 8 as an output
> signal (called EMU_STS in some cases) is present only on Spectrum Digital
> DSK boards. Typically, it selects the output of a bus switch mux, routing
> to the DSP either a) JTAG header signals, or b) signals from SD's
> non-documented JTAG obfuscation circuitry (missing DSK schematic pages).

au contraire Jeff,

This first appeared [at least to me] on the 6201 EVM [a slow switch
kicked my but about 8 years ago], followed by the 6701 EVM, 6211 DSK,
and 6711 DSK [see page 3 of the schematics]. I assume that SD just
'continued the tradition'.

I think that this [or something similar] is the only way that one can
support 'on board emulation' with an automatic switch to 'external
emulation'.

mikedunn
>
> -Jeff
>
--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php
Reply by Jeff Brower June 19, 20082008-06-19
Mike-
> On 6/19/08, s...@yahoo.com wrote:
>
> mikedunn,
>
> I've inspected the 60-pin JTAG header signals on the target board (DSK
> 6416T - Spectrum Digital).
>
> The voltage of Pin 5 (TVD) is high (3.2v), this is the same as 14 pin
> header case and correct in my opinion.
>
> (Definitely, the JTAG emulator with 14-pin JTAG header on the DSK works
> perfect.)
>
> "Troubleshooting Guide for Emulation Errors" tells that
>
> 1) Make sure that the target has proper voltage supplied to it.
> 2) Check that the emulator board is securely installed.
> 3) Check that the cabling is securely connected between the emulator and
> the target.
> 4) Make sure that the XDS560 hardware settings for the port address.
>
> I've checked all of them, but the message still showed up.
>
> Curiously, Pin 8 of 14-pin JTAG header on the DSK is connected to the
> VCC. This pin should be grounded.
>
> One question - why are you using the 60 pin with a 14 pin adapter instead of the
> 14 pin connector?? Actually, pin 8 is a 'special pin' on DSKs - it is tied to a
> pullup resistor. It controls which emulator connection [built in or external] is
> used - it also controls an LED on the board that indicates the same thing [I don't
> remember where it is]. The LED is lit when the board is powered up without an
> emulator - when you plug in the emulator to the 14 pin connector, the light goes
> out.Check the signal 'Hurricane_Detectn' - it should be high with nothing connected
> and be low when the 60-to-14 adapter and emulator are connected.

I would like to clarify this as "Spectrum Digital DSK boards", not TI ones such as
C6x11. The non-standard use of JTAG header pin 8 as an output signal (called EMU_STS
in some cases) is present only on Spectrum Digital DSK boards. Typically, it selects
the output of a bus switch mux, routing to the DSP either a) JTAG header signals, or
b) signals from SD's non-documented JTAG obfuscation circuitry (missing DSK schematic
pages).

-Jeff
Reply by Michael Dunn June 19, 20082008-06-19
shadowfree,

On 6/19/08, s...@yahoo.com wrote:
>
> mikedunn,
>
> I've inspected the 60-pin JTAG header signals on the target board (DSK
> 6416T - Spectrum Digital).
>
> The voltage of Pin 5 (TVD) is high (3.2v), this is the same as 14 pin
> header case and correct in my opinion.
>
> (Definitely, the JTAG emulator with 14-pin JTAG header on the DSK works
> perfect.)
>
> "Troubleshooting Guide for Emulation Errors" tells that
>
> 1) Make sure that the target has proper voltage supplied to it.
> 2) Check that the emulator board is securely installed.
> 3) Check that the cabling is securely connected between the emulator and
> the target.
> 4) Make sure that the XDS560 hardware settings for the port address.
>
> I've checked all of them, but the message still showed up.
>
> Curiously, Pin 8 of 14-pin JTAG header on the DSK is connected to the VCC.
> This pin should be grounded.
>

One question - why are you using the 60 pin with a 14 pin adapter instead of
the 14 pin connector??

Actually, pin 8 is a 'special pin' on DSKs - it is tied to a pullup
resistor. It controls which emulator connection [built in or external] is
used - it also controls an LED on the board that indicates the same thing [I
don't remember where it is]. The LED is lit when the board is powered up
without an emulator - when you plug in the emulator to the 14 pin connector,
the light goes out.
Check the signal 'Hurricane_Detectn' - it should be high with nothing
connected and be low when the 60-to-14 adapter and emulator are connected.

mikedunn

In case of 60-pin JTAG header, the signal is grounded.
>
> Thank you.
>

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php
Reply by shad...@yahoo.com June 19, 20082008-06-19
mikedunn,

I've inspected the 60-pin JTAG header signals on the target board (DSK 6416T - Spectrum Digital).

The voltage of Pin 5 (TVD) is high (3.2v), this is the same as 14 pin header case and correct in my opinion.

(Definitely, the JTAG emulator with 14-pin JTAG header on the DSK works perfect.)

"Troubleshooting Guide for Emulation Errors" tells that

1) Make sure that the target has proper voltage supplied to it.
2) Check that the emulator board is securely installed.
3) Check that the cabling is securely connected between the emulator and the target.
4) Make sure that the XDS560 hardware settings for the port address.

I've checked all of them, but the message still showed up.

Curiously, Pin 8 of 14-pin JTAG header on the DSK is connected to the VCC. This pin should be grounded. In case of 60-pin JTAG header, the signal is grounded.

Thank you.
Reply by Michael Dunn June 18, 20082008-06-18
shadowfree,

On 6/18/08, s...@yahoo.com wrote:
>
> Hi, all.
>
> I have a problem with a JTAG header.
>
> There is a 60 pin JTAG header in DSK for TMS320C6416T (Spectrum Digital).
>
> I've checked whether the 60 pin header works properly using XDS560R JTAG
> Emulator (14 pin) and 14 pin to 60 pin connector.
>
> However, when I ran the Code Composer Studio IDE 3.3, an error message
> showed up as follow:
>
> -----
> Error connecting to the target:
> Error 0x80000240/-180
> Fatal Error during: Initialization, OCS,
> This error was generated by TI's USCIF driver.
>
> SC_ERR_CTL_NO_TRG_POWER <-180>
> The controller has detected a target power loss.
> The user may have failed to turn-on or connect its source.
>
> Sequence ID: 0
> Error Code: -180
> Error Class: 0x80000240
>
> Board Name: C6416 DSK vis SDXDS560R USB Emulator
> Cpu Name: DSP_64xx
> -----
>
> Do you know the solution of this problem?
>

This error message with an XDS560 indicates no voltage present on pin 5 of
the 14 pin connector.
Are you sure that the 60-to-14 adapter is not installed backwards??

If the board is installed correctly, the problem is likely in the adapter.
You should be able to ohm out the pin 5 connection.

mikedunn

(If target board is not connected to the JTAG emulator, the error message
> is different from this message. The message is "Cable break".)

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php
Reply by shad...@yahoo.com June 18, 20082008-06-18
Hi, all.

I have a problem with a JTAG header.

There is a 60 pin JTAG header in DSK for TMS320C6416T (Spectrum Digital).

I've checked whether the 60 pin header works properly using XDS560R JTAG Emulator (14 pin) and 14 pin to 60 pin connector.

However, when I ran the Code Composer Studio IDE 3.3, an error message showed up as follow:

-----
Error connecting to the target:
Error 0x80000240/-180
Fatal Error during: Initialization, OCS,
This error was generated by TI's USCIF driver.

SC_ERR_CTL_NO_TRG_POWER <-180>
The controller has detected a target power loss.
The user may have failed to turn-on or connect its source.

Sequence ID: 0
Error Code: -180
Error Class: 0x80000240

Board Name: C6416 DSK vis SDXDS560R USB Emulator
Cpu Name: DSP_64xx
-----

Do you know the solution of this problem?

(If target board is not connected to the JTAG emulator, the error message is different from this message. The message is "Cable break".)