Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20703 Discussions

Stratix III JTAG Failure

Altera_Forum
Honored Contributor II
4,894 Views

Hi All, 

 

I have problem on Stratix III device on my Custom development board. 

 

Device: Stratix III - EP3SL340  

Download cable : Altera USB Blaster  

 

We have provided two configuration option to configure the FPGA (JTAG & Passive serial). 

Only one device is connected with the JTAG interface. 

 

We are frequently using JTAG & USB blaster interface to validate our designs. so far It was working nicely. 

 

Suddenly the quartus Tool is not able to detect the device from the JTAG chain.  

 

I just went through the JTAG troble shooter, It gives the information of possible failure in the JTAG interface signal, 

 

Also I have noticed that TDI pin is almost shorting to GND.  

It shows 2 Ohm between TDI to GND.  

 

Whereas the other working board it was around 150 to 200 ohm. 

 

This is the second board I am facing the same issue.  

Is it the problem with the Stratix III device JTAG interface. 

Can anyone help me to findout the root cause for this trouble. 

 

Best Regards, 

Kalidoss
0 Kudos
22 Replies
Altera_Forum
Honored Contributor II
1,798 Views

The first step in debugging JTAG issues is always the same. Grab an oscilloscope and take a look at the JTAG signals.  

 

I would say the low impedance to ground is obviously a good first place to look. 

 

Jake
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

Hi Jack, 

 

Got the Scope & probed the JTAG TDI,TMS, TCK, TDO signals. 

I could able to see TDI, TMS are toggling from 0 to 3.3V level.  

 

But TCK is not toggling it is hardly singing from 0V to 0.3V. (Inityially I mentioned the signal name wrongly as TDI). This TCK net is showing 2 Ohms to GND. 

 

This is the reason the JTAG chain is not able to detecting the device. 

 

Also I have tested with other boards & TCK is toggling from 0v to 3.3V. 

 

How to rectify this problem.  

I Have the JTAG header which is directly connected to the FPGA.  

For your reference I have attached the JTAG interface section of Stratix-III FPGA wth this message. 

 

Expecting your valuable suggestion over here. 

 

Best Reagrds, 

Kalidoss
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

First I would measure that 1K resistor to ground and make sure it's really 1K. If that's not the problem it really sounds like you've got a solder short somewhere. There are tools out there that can pinpoint where a short is (simply by measuring resistance to a very large number of significant digits). For example, try measuring the resistance to ground both at the JTAG header and at the via where it connects to the FPGA. 

 

What is your relationship like with the assembly house? We often have the assembly house x-ray the board when something like this happens. If this is happening consistently, it points to an assembly problem (too much solder paste, too much solder). 

 

It could possibly be a layout problem. What tool did you use for layout? Is there anywhere in the layout where you could see a danger of TCK shorting to ground. 

 

Is this a lead-free board? 

 

Have you done any rework on the board? I've often seen people leave flux on the board after doing rework, then they power up the board and it works for a while until the solder heats up under a BGA and the flux residue makes it flow. 

 

Jake
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

Hi Jack, 

 

 

FYI --> This board was working fine for quite long time. Suddenly JTAG interface is not able to detect the Device.  

 

Measured the 1K resistor is value & it is fine.Also measeured the impedance from connector as well fom FPGA TCK pin It shows 2 ohm. 

 

I am not in position to suspect LAYOUT, Since enough spacing(200mil) is provided for TCK signal. we are using Allegro for our LAYOUT. Infact all other boards are working fine. 

 

It is not a lead free board. Components are leadfree & but assembled with leaded profile. 

 

Kalidoss
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

Hi Jack, 

 

For your reference I am attacheding the TMS & TDI input waveform captured as part of JTAG debugging. TDI & TMS is togglingfrom 0v to 3.3V. But TCK is not toggling. It stays remains at 0V. Looks like it is getting loaded beause of this low impedance(2 Ohm) 

 

Kalidoss
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

 

--- Quote Start ---  

TCK is not toggling 

--- Quote End ---  

 

 

--- Quote Start ---  

TCK net is showing 2 Ohms to GND 

--- Quote End ---  

 

Can be regarded as synonymous, I think. There's nothing to measure except locating the short. You should be able to detect by voltage drop method, if it's near the FPGA or the JTAG connector. Unfortunately, it's difficult to clearly distinguish FPGA internal from external PCB short near the FPGA without desoldering the device or using x-ray. Possibly, an FPGA internal short reveals by a voltage drop at FPGA supply pins when soucing a current to TCK.
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

Hi FvM, 

 

Infact I have removed the connector & measured the impedance between TCK to GND. It remains 2ohm between TCK to GND.. 

 

Also I am maintaining 3W spacing in the layout for TCK from other net. The closest net is TDO which is 18 mil away from this TCK. 

 

For your reference I have attached the bmp file which will shows the TCK routing on my board. 

 

I am suspect something happened to the internal buffer of the FPGA. 

Is there anyway to find out the internal buffer shortage. Isolated the
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

I think you're stuck. Can you have the board X-rayed? If it's inside the FPGA, I don't see any method for debugging (other than removing the part). Obviously you can't use boundary scan to test the TCK pin. If it is inside the part, is there any circumstance you can think of that might have caused damage? (Could have even been ESD). 

 

Jake
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

The 2 ohms residual resistance seems to indicate an FPGA internal damage rather than a simple PCB short, that can be expected to show zero ohm. 

 

There's a point in your post that seems dubious to me, although it's most likely unrelated to the discussed TCK pin failure. 

 

--- Quote Start ---  

It is not a lead free board. Components are leadfree & but assembled with leaded profile. 

 

--- Quote End ---  

No chip vendor (also Altera) doesn't support processing of lead-free BGA packages with leaded solder paste. This option exists for all other package types, except such with BGA balls. The resulting non-eutectic alloy won't give reliable solder joints.
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

Hi FvM, 

 

You are right, No body supports this type of soldering profile. 

 

But our ODM team have done many leadfree parts with leaded assembly prfoile. So far we have seen the good result from their assembly. 

 

Also would like to know is there any way to debug this TCK issue apart from removal of the FPGA. 

 

Because I am able to program the FPGA by using PS configuration & it is working fine. 

 

Best Regards, 

Kalidoss
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

Prototype assembly with leaded solder is O.K., except for BGA parts. But as said, the present TCK failure is most likely not related to this topic. 

 

Regarding debug options, you can detect if the short is at the FPGA side of the TCK net. If this is the case, it won't matter much, if it's inside the FPGA or e.g. a solder short. You have to desolder the part anyway to eliminate the short.
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

It just might be that the USB Blaster is toast. 

 

I have seen this happen quite a few times. 

 

As a word of caution, please make sure that you disconnect the JTAG connector from the target baord before shutting down the power to the Host computer (Desktop or Laptop) as I have seen this 'back biasing' can kill the USB Blaster. 

 

Try another cable if you have one or if you are supported by an FAE< see if you can borrow one for a 1/2 hour to do some tests. 

 

Let us know how this goes. 

 

Avatar
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

I aslo met the similar problem, the JTAG can work normal several days ago, but now it can't work, I checked the net of the JTAG connector, found the TCK net is about 80 Ohms to GND.

0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

I have similar problem too. My on-board JTAG doesn't work anymore after working for several months. I have cyclone II 

i found the tck net is about 35 ohms to gnd. In both directions. 

When power is supplied, I get 3.28V on TCK pin, I didn't notice over comsumption. 

 

I can still configure with Active Serial Programming. I notice that I have no progress bar but programming is succesfull. 

But I can't programm flash by Nios II.
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

One thing to check is the JTAG power supply. Is it suppose to be 3.3V or 2.5V for Cyclone II? Supplying the wrong voltage can damage the JTAG port and the device as well after seeming to work initially. Also when you ohm out the JTAG pins, they may appear to be shorted to GND. If this is the case, the only soln is to replace the FPGA. 

 

 

 

 

--- Quote Start ---  

I have similar problem too. My on-board JTAG doesn't work anymore after working for several months. I have cyclone II 

i found the tck net is about 35 ohms to gnd. In both directions. 

When power is supplied, I get 3.28V on TCK pin, I didn't notice over comsumption. 

 

I can still configure with Active Serial Programming. I notice that I have no progress bar but programming is succesfull. 

But I can't programm flash by Nios II. 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

Actually I just fixed a shorted TDO pin to ground by applying 3.8V to it. The pin went from 40 ohm to ground to over 200 ohm and now JTAG works again.  

 

I don't know why it failed, the board has been working fine for weeks. Today JTAG just stopped working. I guess a protection diode blew out and shorted. I just burned it open!
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

Altera recommands to supply power on the board before plug USB Blaster in. 

 

TDO is an output pin : depends of technology (open-drain, TTL...) ohming it is not significant. 

 

JTAG problems seems to grow up last months on Cyclone II, Cyclone III, Stratix III
0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

ohming it may not be significant, but it was the problem and it fixed it.

0 Kudos
Altera_Forum
Honored Contributor II
1,798 Views

Hi, on you post #17 (http://www.alteraforum.com/forum/showpost.php?p=146228&postcount=17), do you apply 3.8V when your board is powered or not ?

0 Kudos
Altera_Forum
Honored Contributor II
1,610 Views

No the board wasn't powered. I applied this voltage on just that jtag pin.

0 Kudos
Reply