GND-7 Connector shield or case bond not straight on the ground the enclosure asks for¶
| Severity | Status | Implementation |
|---|---|---|
| warning | runs in better_erc | easy, depends on NET-5 |
Data it needs: graph, part classes, values, rails.
Looks at. Connector shell pins, mounting holes, chassis nets, the project's enclosure.
What it catches. A connector shell, or with a metal case a mounting hole, that does not go straight to the ground the product's enclosure asks for, and a chassis or earth net joined to no signal ground.
Why it matters. A cable shield and a metal case work only when they are bonded with low inductance at the point where the cable enters. An electrostatic discharge (ESD) on the shell rises in about a nanosecond, and an electrical fast transient (EFT) burst on the cable carries energy up to about 100 MHz. A resistor, capacitor or ferrite in series with the shell is a high impedance at those frequencies. The discharge then finds another path, often through the signal lines and the interface chip. The same impedance lets common-mode noise stay on the shield, and the cable radiates it. A direct bond at the connector, with several vias, gives those currents a short path to the plane or the case. A floating chassis net is the worst case: it does not shield and charges up until it arcs.
The enclosure setting. Where the shield goes depends on what the product is built into, not on a preference. The project states it as grounds.enclosure in the project file:
grounds.enclosure |
Product | Shield and case bonds go |
|---|---|---|
none (default) |
plastic case, or no case | straight to GND |
metal_ground |
metal case bonded to GND, with no chassis net of its own |
straight to GND, mounting holes too |
metal_chassis |
metal case on a chassis net | straight to the chassis net, which joins GND at one point |
A metal case screwed to the board's ground plane is metal_ground: the case is the ground, so the shell and the mounting holes go straight to GND. Mains equipment whose chassis is protective earth is metal_chassis: the shell and the case go to the chassis or PE net, and that net joins GND once, usually near the connectors. With none, mounting holes are not judged, because a plastic case carries no current.
"Straight" means on the net itself, or joined to it by a net tie, a jumper or a 0 Ω resistor. A resistor, capacitor, inductor or ferrite between the shell and that ground is a finding. A project that wants such a part for a reason of its own, such as a measured emissions result, waives the finding and states the reason in the waiver.
Example. A USB-C receptacle whose shell pins sit on a net SHIELD that reaches GND only through 1 MΩ and 4.7 nF, on a board in a plastic case: GND-7 reports that the shell reaches GND only through R1 and C2. With the shell pins on GND directly, the default none passes it. The same board in an earthed metal case, set to metal_chassis, gets a finding for a shell on GND and none for a shell on the chassis net.
How to check. better_erc (erc_checks/src/gnd/gnd_7.rs) reads the connector shell pins (SHIELD, SH, S1, MP) and the mounting-hole pads that are on a net. For each, it asks whether the net is the wanted ground, is joined to it by a 0 Ω link, or reaches it only through a resistor, capacitor, inductor or ferrite. A shell that reaches no ground at all is left to CONN-16 and USB-4. Separately, a net named CHASSIS, SHIELD, EARTH or PE that no part joins to a signal ground is a finding in every enclosure.
With metal_chassis, better_erc also counts the bonds between each chassis net and the signal grounds. The parts across the same two nets form one bond, so a resistor in parallel with a capacitor is one bond, and so is a single net tie. More than one bond is a finding that names each bond's parts: the chassis then joins GND and AGND at two points, and shield currents loop between them. The netlist cannot tell two parts across the same two nets apart by where they sit, so those always count as one bond.
Fix. Put the shield and case bond pins on the wanted net at the connector, with several vias. With a chassis net, join it to GND at one point near the connectors.
References. SLLA368 §5 (direct and capacitive connection to protection earth); Ott chapter 3 and §16.2 (shield termination at the entry); Type-C §3.10.1 (shell and mid-plate to the PCB ground plane, receptacle to chassis); IEC 61000-4-2 (ESD) and IEC 61000-4-4 (EFT/burst) for the test pulses; Wikipedia, Chassis ground; Wikipedia, Ground loop (electricity).
Settings¶
Set them in the project file under [checks."GND-7"], or for one run with --set GND-7.NAME=VALUE.
| Setting | Default | Meaning |
|---|---|---|
GND-7.grounds.enclosure |
none |
none: plastic or no case, shields straight to GND; metal_ground: metal case bonded to GND, shields and case bonds straight to GND; metal_chassis: metal case on a chassis net, shields and case bonds straight to chassis, chassis joined to GND |
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only GND-7 reports on it.
gnd-7_chassis_ground¶
warning GND-7 #g7r /SHIELD_ETH is joined to no signal ground: a floating shield does not shield and charges up until it arcs
net /SHIELD_ETH
fix: join the chassis net to GND at one point, with a net tie or 0 Ω near the connectors
warning GND-7 #rz2 the shell of J2 (J2.S1 (SHIELD)) reaches GND only through C2 and R1: with grounds.enclosure = none it goes straight to GND
net Chassis, part C2, part R1, pin J2.S1
fix: shield and case bond pins straight on GND at the connector, with several vias; a project that wants a series part waives this finding
GND-7 also fires on the test schematics of other checks: usb-4_shield, wire-14_ground_pin_not_ground.