Summary
What boundary scan needs from the board: TDI, TDO, TCK, TMS, and TRST routing, chain order, connector access, power and bypass, the BSDL file set, and a coverage map.
Boundary scan is often described as a test method, but on a production board it is a set of physical provisions. The controller can drive the pins of a device and read them back only if the scan chain is complete, every device in the chain is powered, the connector is reachable, and the test engineer holds a BSDL file that matches each fitted part. Most boundary scan failures in production are not test algorithm problems. They are a missing chain link, a floating TRST pin, a connector placed under a bracket, or a BSDL file written for a different package. This guide covers what the schematic and layout must provide: signal routing, chain order, connector access, power and ground, the file set, the coverage map, and the decision of when boundary scan is a better choice than in-circuit test.
What boundary scan asks of the board
IEEE 1149.1 defines a test access port inside each compliant device, and the IPC publishes assembly and test standards that sit alongside it. Neither defines how your board connects those ports, which is where most designs lose the capability. Five provisions decide whether the chain works: a continuous signal path, a defined order, a reachable connector, stable power and ground, and a matching set of device descriptions.
Treat those provisions as design deliverables with owners, not as test engineering details. A chain that is drawn correctly but powered from a rail that is off during test will read back as a row of zeros, and the failure will be blamed on the tool.
| Provision | What the board must supply | Typical owner |
|---|---|---|
| Signal path | Continuous TDI to TDO route with no branch | Layout |
| Order | A documented device sequence that matches the chain description | Design lead |
| Access | A connector or pads reachable with the product assembled | Mechanical and design |
| Power | Every device domain powered and out of reset | Design lead |
| Descriptions | BSDL, netlist, and pinout on the same revision | Test engineer |
The five signals and the rules for each
TCK, TMS, TDI, TDO, and TRST form a small bus with strict rules. TCK and TMS go to every device in parallel. TDI and TDO pass through the devices in series, so the chain is a shift register rather than a star. TRST is optional, and its treatment depends on the device, but leaving it floating is never correct.
| Signal | Direction at the device | Board requirement | Common mistake |
|---|---|---|---|
| TCK | Input | Routed as a clock, series resistor near the source, no long branch | Shared with slow logic without checking edges |
| TMS | Input | Short route, pull resistor to the inactive level | Floating when the header is unplugged |
| TDI | Input | From the controller or the previous TDO, with a pull resistor | Stub left open at an optional device |
| TDO | Output | To the next TDI or the header, series resistor near the driver | Long route past a shield or connector |
| TRST | Input, optional | Tied to its inactive level if unused, pulled if used | Left floating |
Pull resistors keep the test access port in a known state when the cable is removed, which matters on a board that also runs normally. Series resistors at the source tame reflections on TCK and TDO. Neither replaces a continuous return path, and neither fixes a chain that passes through a device that is not powered.
Chain order and topology
The chain order is a design decision, not a layout accident. Put the controller first, then order the devices by placement so the route stays short and a break is easy to locate. If the order changes during layout, the chain description and the test program must change with it.
| Decision | Recommended practice | Reason |
|---|---|---|
| Single or multiple chains | One chain per voltage domain | Avoids level shifting inside the chain |
| Device order | Controller first, then by placement | Short routes and easier debug |
| TCK and TMS | Parallel to every device | Broadcast clock and mode |
| TDI and TDO | Series through the devices | Shift register path |
| Optional device | Bypass jumper across TDI and TDO | Chain stays closed when unpopulated |
| Long chain | Buffer or reduce TCK | Signal integrity and setup time |
| Spare device position | Test point on TDO | Locate a break without a rework |
Two domains with different supply voltages need either a level shifter between the chain segments or two separate chains with two connectors. Mixing them without a shifter puts a device input above its supply, which is a reliability problem as well as a test problem. The choice belongs in the schematic, because a second chain means a second connector and a second set of files.

Connector access and mechanical rules
A scan chain without access is a schematic feature. The connector must be reachable on the assembled product, not only on a bare board on a bench. If the product has an enclosure, decide early whether the port is external or whether programming and scan happen before the housing is closed.
| Item | Rule | Why |
|---|---|---|
| Header | Keyed, latching, documented pinout | A reversed cable can damage drivers |
| Location | Board edge or an enclosure opening | Cable access after assembly |
| Ground | Ground pins between signal pairs | Short return for TCK |
| Series resistors | Near the header or the driver | Reduce reflections |
| Test points | One per signal even with a header | Probe without a cable |
| Labels | Signal names and pin 1 | Setup errors are common |
| Keepout | Connector body and cable bend | Mechanical stress on the solder joints |
A header that is only reachable with the board removed from its housing turns a five-minute check into a teardown. It also hides chain faults until the product fails a functional check, which is the most expensive place to find them. When a board is cloned or cost-reduced, the scan pads are among the first features to disappear; the access checks in this guide to test point recovery for PCB clones show how to confirm that TDI, TDO, TCK, TMS, and TRST still reach a probe.
Power, ground, and bypass for the chain
Boundary scan toggles many pins at once, so the chain is a switching load even though it looks like a low-speed interface. Each device needs its supply domains powered at their specified levels, its reset released, and its bypass capacitors fitted as the datasheet requires. The header ground must connect to the same reference the devices use.
| Provision | Rule | If missing |
|---|---|---|
| Device supply | All domains powered at their specified levels | Chain reads back incorrectly or not at all |
| Reset | Released during scan | Test access port held inactive |
| Bypass | Per device, close to the pins | False failures on TCK |
| Ground | Header ground to board ground | Noisy clock and intermittent IDs |
| Supply source | External supply or a jumper to the board rail | Tester cannot source the load |
Do not plan to back-power the board through the scan pins. The clamp diodes may conduct, the current is limited, and the resulting behavior differs from a powered board. A jumper that isolates the tester supply from the product rail is a simple provision that prevents a long debug session.
The file set: BSDL, netlist, and coverage map
The chain is only as good as the descriptions that accompany it. A BSDL file describes the boundary scan cells of one device, including the package and the pin mapping. If the file is for a different package or silicon revision, the tool will report failures on pins that are not bonded out, and the operator will chase a board fault that does not exist.
| Deliverable | Owner | Check |
|---|---|---|
| BSDL per device | Design or firmware | Package and revision match the fitted part |
| Board netlist | Design | Same revision as the artwork |
| Chain description | Test engineer | Order matches the layout |
| Header pinout | Design | Matches the cable |
| Schematic and assembly drawing | Design | Pin 1 and orientation visible |
| Coverage map | Test engineer | Uncovered nets listed with a reason |
The coverage map is the document that decides whether boundary scan is enough. It lists the nets the chain can drive and observe, the nets reached only through a cluster test, and the nets with no coverage at all. A chain that covers every digital interconnect but none of the power rails is still a useful test, as long as nobody claims it replaces in-circuit test.
What the chain covers and what it misses
Boundary scan tests interconnect between compliant devices. It does not measure a resistor, regulate a rail, or exercise an analog path unless the board adds the structures to do so.
| Structure | Covered | Limit |
|---|---|---|
| Scan device to scan device net | Opens and shorts | Both ends must be in the chain |
| Scan device to non-scan device | Partial, through a cluster test | No direct observation at the non-scan pin |
| Passive between scan pins | Interconnect | Value and tolerance are not measured |
| Power rail | No | Needs in-circuit or functional test |
| Analog path | No | Needs functional test |
| Connector | Partial | Depends on the pin type and the scan cell |
| Memory | Only with built-in self-test or scan | Otherwise functional |
| Oscillator | No | Needs functional test |
That limit is not a defect. It is the reason a test strategy combines methods instead of looking for one that covers everything. The chain is strongest where probes cannot reach: fine-pitch packages, ball-grid arrays, and dense double-sided assemblies.
When boundary scan beats in-circuit test
Choose boundary scan when access is the constraint. A board with ball-grid arrays, fine-pitch parts on both sides, and connectors that cannot be probed leaves in-circuit test with few usable nodes, while the scan chain reaches pins that no probe can touch. Choose it when volume is low enough that a fixture is hard to justify, and when the chain already exists for programming.
Choose in-circuit test when the board has many analog nets, power rails, and passives whose values must be measured, and when volume supports a fixture. The two methods are complementary: the chain covers the digital interconnect, the fixture covers the rails and the analog section, and functional test covers the behavior that neither can see. The comparison in this guide to boundary scan and JTAG for PCB re-engineering is useful when a recovered board has to be brought back into test.
Before the first production run, prove the chain on the first article. Confirm that every device is detected, compare the device IDs with the expected list, run an interconnect test on a known-good board, and record the coverage actually achieved against the map. The steps in this guide to first article inspection for recovered boards show how to keep that evidence with the build record.
Frequently Asked Questions
Do we need a separate connector for JTAG and for programming?
Not always. Many controllers share the same test access port for programming and boundary scan, and one keyed header can serve both if the pinout is documented and the tool sequences do not conflict. Keep the signals on dedicated pins rather than sharing them with application functions, and label the header clearly.
Can boundary scan test a board with only one compliant device?
Only the interconnect between that device and the rest of the board that the device can drive and observe. With one compliant device, the chain has no second scan device to compare against, so coverage is limited to pins with boundary cells and any cluster structures. Power rails and analog paths still need another method.
What happens if a device in the chain is not powered?
The chain typically breaks at that device, and the tool may report all downstream devices as missing or return an invalid ID. The failure can look like a chain-order error, so confirm the supply on every device before debugging the order.
How do we handle different voltage domains in one chain?
Use a level shifter between domains, or split the chain into one segment per domain with its own connector. A shifter adds a component and a delay but keeps one connector and one program. Splitting avoids the shifter but doubles the access points and the setup steps.
Conclusion
- Treat the scan chain as a board provision with a continuous path, a defined order, and a reachable connector.
- Route TCK and TMS in parallel, pass TDI and TDO in series, and tie TRST to a defined level.
- Power every device, release reset, fit bypass capacitors, and provide a ground return at the header.
- Deliver matching BSDL files, netlist, chain description, and coverage map, then prove the chain on first article.



