Skip to content

LIB-19 Hidden pin not grouped with a pin of the same meaning

Severity Status Implementation
warning runs in better_erc easy, depends on netlist

Data it needs: graph, fitted parts.

Looks at. The schematic (symbol pins marked hidden).

What it catches. A hidden pin of a placed part that is not grouped with a visible pin of the same meaning:

  1. A hidden pin on the net of visible pins of the part that mean something else, such as an N.C. or a signal pin stacked under a GND pin.
  2. A hidden pin with no visible pin of the part on its net. It joins a net by its name alone, or connects to nothing.

Pins of the same meaning may be grouped: extra GND pins and the exposed pad hidden under one visible GND pin pass. The strict setting reports those too, and hidden no-connect pins.

Why it matters. A hidden pin ties a function to a net that nobody sees on the sheet. When the hidden pin means the same as the visible one (another GND), nothing is lost. When it means something else, the symbol has made a design decision that the schematic never shows, and it breaks when a part with the same pinout is fitted in its place.

Example. KiCad's stock TPD6S300A symbol hides pins 16 and 17 under GND. They are N.C. on the TPD6S300A, and the datasheet says to ground them. On the pin-to-pin TPD8S300A they are the D4 and D3 ESD channels. A board that fits the TPD8S300A grounds two ESD channels and nobody can see why on the sheet. (That symbol names the two pins GND, so the check cannot tell them from real grounds; it catches the same symbol with the pins named NC.)

How to check. From the netlist: for each hidden pin of a fitted part, the visible pins of the same part on its net. A visible pin of the same name, or the hidden pin named as the pad (EP, EPAD, PAD, TAB, PADDLE, THERMAL), groups it. Visible pins of other names mean it is hidden under something else. No visible pin means it is alone. A hidden pin typed no-connect on no net is left alone. better_erc (erc_checks/src/lib/lib_19.rs) reports the mixed and the lone pins as warnings. With strict set to 1 (checks.LIB-19.strict in the project file) it also reports the grouped and the no-connect pins, as suggestions.

Fix. Draw the pin visibly in the symbol and wire it on the sheet. Pins that differ between alternate parts get a name that says both (NC/D3). Group only pins of the same meaning under one.

References. KLC S4.6 (hidden pins); KiCad Schematic Editor manual, "Hidden Power Pins" (docs.kicad.org/9.0/en/eeschema); WIRE-10 for hidden power pins joined by name.

Settings

Set them in the project file under [checks."LIB-19"], or for one run with --set LIB-19.NAME=VALUE.

Setting Default Meaning
LIB-19.strict 0 1: also report hidden pins grouped with a visible pin of the same meaning, and hidden no-connect pins

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only LIB-19 reports on it.

lib-19_hidden_pins

The test schematic lib-19_hidden_pins The test schematic lib-19_hidden_pins

  warning    LIB-19 #csz    U3 pin 5 (VCC) is hidden and joins VCC by its name alone: no visible pin of U3 is on that net
                            net VCC, part U3, pin U3.5
                            fix: draw the pin visibly in the symbol and wire it on the sheet
  warning    LIB-19 #yvd    U2 pin 1 (NC) is hidden on the net of pin 3 (GND), which means something else: the sheet never shows that this pin is tied there
                            part U2, pin U2.1, pin U2.3
                            fix: draw the pin visibly in the symbol and wire it on the sheet; only pins of the same meaning (the grounds, the pad) may be grouped under one

LIB-19 also fires on the test schematics of other checks: lib-15_no_power_pins.