Skip to content

LIB-11 Pin to pad mapping wrong on a polarized part

Severity Status Implementation
error planned mid, depends on CFG-5, NET-7

Looks at. Pin to pad mapping per symbol and footprint, the MPN's pinout.

What it catches. A diode, LED, transistor or polarized capacitor whose symbol pins map to the wrong footprint pads: the schematic's cathode lands on the package's anode, the gate on the drain.

Why it matters. The schematic is right and the layout matches the schematic, so ERC, DRC and the schematic review all pass, yet the part is mounted reversed by design. A reversed TVS or Schottky conducts at power-up; a reversed LED stays dark; a reversed electrolytic vents. It happens most where pin numbering differs between packages of the same function: diode symbols number cathode 1 in KiCad, but SOT-23 diodes put the cathode on pin 3.

Example. A BAT54 Schottky in SOT-23 (pin 1 anode, pin 3 cathode) drawn with KiCad's two-pin diode symbol, whose pin 1 is the cathode, on a three-pad SOT-23 footprint: pad 1 gets the cathode net and pad 2 (not connected inside the part) the anode. The diode is out of circuit; in a reverse-polarity protection the board is unprotected. The B135B and B153A change lists show how often the polarity question comes up at assembly (pin-1 marks, LED orientation BOM-8).

How to check. Compare the symbol's pin-to-pad mapping with the MPN's pinout from the part database (pad number of anode and cathode, of G/D/S). Without part data, flag polarized two-pin symbols placed on footprints with more than two pads, and symbols whose pin names (A, K) disagree with the footprint's pad names.

Fix. Use a symbol whose pin numbering matches the package (a three-pin diode symbol for SOT-23 diodes), or a footprint with the matching pad numbering; keep the pairing in the library part so it is chosen once.

References. Diodes Inc., BAT54 datasheet DS11005 Rev. 34-2, page 1 (SOT23 pinout diagram) (diodes.com); KLC S2.3 (a separate symbol per footprint option), S4.1; KiCad ERC "Assigned footprint doesn't match footprint filters" (catches some mismatches).