LIB checks
The LIB checks of the check catalogue. Each check has a page of its own: what it catches, why it matters, an example, how better_erc finds it, the usual fix and where to read more, with the test schematics that show it firing.
References used throughout:
- KLC · KiCad Library Conventions, the rule set of the official KiCad libraries; rule numbers below (F4.4, S4.4, ...) are its own. Read from the source repository (klc.kicad.org sits behind a bot check). gitlab.com/kicad/libraries/klc
- KiCad ERC · KiCad 9 Schematic Editor manual, "List of ERC checks". docs.kicad.org/9.0/en/eeschema
- KiCad PCB · KiCad 9 PCB Editor manual. docs.kicad.org/9.0/en/pcbnew
- IPC-7351B · IPC, Generic Requirements for Surface Mount Design and Land Pattern Standard: land pattern sizes from the terminal dimensions and tolerances, courtyard excess.
- SLUA271 · TI, QFN and SON PCB Attachment, Rev. C (2023). ti.com/lit/an/slua271
- SLMA002 · TI, PowerPAD Thermally Enhanced Package, Rev. H (2018). ti.com/lit/an/slma002
- Wikipedia, Footprint · a short overview of footprints and land patterns. en.wikipedia.org/wiki/Footprint_(electronics)
Checks
| Check |
Severity |
Status |
LIB-1 Symbol pin names differ from the same part elsewhere in the database |
warning |
planned |
LIB-2 Global pinout database for common connectors, check against it |
warning |
planned |
LIB-3 MOSFET symbol pins not named G/D/S (other checks need them) |
warning |
runs |
LIB-4 Pin electrical type wrong (a power pin as passive, an output as input): the type-based checks go blind |
warning |
planned |
LIB-5 Pins missing or duplicated against the package's pin count |
warning |
planned |
LIB-6 Footprint does not match the MPN's package (an inductor on the wrong footprint, a diode in another case size) |
error |
runs |
LIB-7 Symbol pin name lacks a shared special function the pin has (PF2 for a pin that is PF2-NRST): the reviewer and MUX-4 never see it |
warning |
planned |
LIB-8 Footprint pads too small or too large for the part's terminals (poor wetting, tombstoning, bridging) |
warning |
planned |
LIB-9 Footprint without a pin-1 or polarity mark on silk and fab layers |
suggestion |
planned |
LIB-10 Exposed or thermal pad not connected (where it is the ground or substrate), or connected when the datasheet says float |
error |
planned |
LIB-11 Footprint pad to symbol pin mapping wrong for a polarized part (anode and cathode, pin 1 of a diode package) ≈ BOM-8 |
error |
planned |
LIB-12 Footprint without a courtyard ≈ LAY-3 |
suggestion |
planned |
LIB-13 Units of one multi-unit symbol with different footprints, values or power nets |
warning |
planned |
LIB-14 Unit of a multi-unit symbol not placed: an unused gate or amplifier whose inputs float ≈ ANA-11 |
warning |
runs |
LIB-15 Symbol with no power pins at all (hidden, or forgotten): the part is never checked for power ≈ WIRE-10 |
warning |
runs |
LIB-16 Symbol pin without a footprint pad, pad without a pin, or a pin mapped to a pad twice |
error |
planned |
LIB-17 Placed symbol differs from its library copy, or its footprint link is broken or fails the symbol's footprint filter |
warning |
planned |
LIB-18 Footprint built from a bottom-view drawing: the pinout is mirrored (regulators, transistors and connectors most often) |
error |
planned |
LIB-19 Hidden symbol pin that is not grouped with a visible pin of the same meaning (an N.C. or a signal pin hidden under GND, a supply pin joining its net by name); strict: every hidden pin ≈ WIRE-10 |
warning |
runs |
LIB-20 Board places a footprint other than the one its symbol's own Footprint field names (a library migration half done, or a deliberate per-instance override) |
info |
planned |
LIB-21 Symbol or its footprint in a library outside the project's allowed set (a vendor library migration not finished, a stock part that should be a local copy) |
warning |
planned |
LIB-22 Footprint's 3D model file missing or unreadable (a ${VAR} nothing sets, no file at the path, not a STEP file the reader can parse) |
warning |
planned |
LIB-23 3D model reaches out of the footprint's courtyard ≈ LAY-3 |
warning |
planned |
LIB-24 Copper pad with no lead of the 3D model over it: the model is offset, turned or for another package |
warning |
planned |
LIB-25 3D model scaled (a scale other than 1): drawn at a size the package is not |
warning |
planned |
LIB-26 3D model file not in millimetres (metres, inches) |
suggestion |
planned |
LIB-27 3D model turned by an angle that is not a multiple of 90° |
warning |
planned |
LIB-28 Footprint with copper pads and no 3D model shown (none, or every one hidden) |
suggestion |
planned |
LIB-29 Placed symbol carrying a ki_ field (ki_fp_filters, ki_keywords): library-symbol properties that KiCad's schematic parity then reports as missing in the footprint |
warning |
runs |
LIB-30 Placed symbol whose mx3: Datasheet link references an MPN field the symbol lacks, or misses one it has (a field added later goes unnamed) |
warning |
runs |
LIB-31 Footprint's SMD or through-hole attribute disagrees with its pads (a QFN with thermal vias or a USB-C receptacle with shell pegs marked through-hole): wrong position files and BOM-3 mix ≈ BOM-3 |
warning |
runs |