← Commit history

add pinmap.json: S1 (SHIELD) -> SH, the one pin whose name differs from its pad - without it the shield is silently unconnected

John Lauer ·322da401d7 · ·parent 74979b8
2 files changed +53
pinmap.jsonadded+3
@@ -0,0 +1,3 @@+{+  "S1": "SH"+}
pinmap.mdadded+50
@@ -0,0 +1,50 @@+# Pin map: `type-c-31-m-12`++`pinmap.json` supplies the one symbol-pin to footprint-pad correspondence that+cannot be derived by KiCad's usual convention (symbol pin *number* == footprint+pad *name*).++| symbol pin | symbol name | footprint pad | what it is |+|---|---|---|---|+| `S1` | `SHIELD` | `SH` | the connector shell / shield |++Every other pin on this part maps by name automatically: the 16 signal pins+(`A1`, `A4`-`A9`, `A12`, `B1`, `B4`-`B9`, `B12`) each have a same-named pad.++## Why this file exists++Without it the shield is **silently dropped** on conversion. The symbol calls the+net `S1`, the footprint calls the pad `SH`, so a derive-by-convention importer+finds no pad for `S1`, finds a spare pad `SH`, and connects neither. Nothing+downstream complains: the symbol renders, the footprint renders, the 3D renders,+and the shield is simply not connected.++On a USB-C receptacle that is an EMI and mechanical-retention defect that only+shows up in hardware, which is exactly the kind of fault a visual review cannot+catch.++## Verified against the part's own files++```+type-c-31-m-12.kicad_sym : (name "SHIELD" ...) (number "S1")+type-c-31-m-12.kicad_mod : (pad "SH" thru_hole oval ...)   x4 (the four shell tabs)+symbol pins: 17   footprint pads: 16 signal + SH x4+unmatched symbol pin: S1     spare pad: SH+```++`S1` is the only symbol pin without a same-named pad, and `SH` is the only pad+without a same-named pin, so the correspondence is unambiguous. The four `SH`+pads share one name and are therefore one net.++## Use++`fusion_create_library` takes it directly:++```+fusion_create_library {+  kicadSymbolPath: ".../type-c-31-m-12.kicad_sym",+  kicadFootprintPath: ".../type-c-31-m-12.kicad_mod",+  stepPath: ".../type-c-31-m-12.step",+  pinMap: { "S1": "SH" }+}+```