Skip to content

DBG-21 JTAG pulls: TCK without a pull-down, TMS and TDI without pull-ups, nTRST floating

Severity Status Implementation
warning planned mid, depends on NET-7

Looks at. JTAG pins (by name), external pulls, internal pulls of the part (NET-7).

What it catches. JTAG TAP pins left to float when no probe is connected: TMS or TDI without a pull-up, TCK without a defined level (a pull-down), nTRST floating where the header has no nTRST pin.

Why it matters. With TMS held high, five TCK edges bring the TAP to Test-Logic-Reset, its quiet state; a floating TMS and a TCK picking up noise can walk the TAP into other states and, on some parts, into boundary-scan modes that take over the pins. IEEE 1149.1 requires internal pull-ups on TMS, TDI and nTRST, but not every part follows it and many are weak. nTRST is the subtle one: XJTAG recommends a pull-down (TAP held in reset when unused, the boundary-scan view), SEGGER says it is normally pulled high so the debug logic is not reset when no probe is attached (the debug view). Floating it is wrong in both.

Example. An FPGA with its JTAG header unpopulated in production and no pulls: a field unit with a long cable nearby occasionally loses its configuration.

How to check. JTAG pins of each part; for each, an external pull or an internal pull known from the part's data (NET-7); nTRST: pulled to a level that matches whether the header drives it.

Fix. 1-10 kΩ pull-ups on TMS and TDI, a pull-down on TCK, nTRST pulled down if a probe or tester drives it, otherwise up (or tied to the power-on reset).

References. XJTAG DFT "Pull-ups / Pull-downs" (TDI, TDO, TMS up, nTRST down, 1-10 kΩ); SEGGER 20-pin (nTRST "normally pulled HIGH", TMS "should be pulled up", TCK and TDI "pulled to a defined state"); IEEE 1149.1; Wikipedia, JTAG.