Adom Library
Public Made by Adomby adom
adom-lbr — the EDA library translator. Bring a component in from any supported EDA tool and convert it to any other (KiCad ⇄ Altium ⇄ EAGLE/Fusion) through one canonical adom-lbr JSON — symbol + footp
adom-lbr embed: pin->pad table empty (0 pins) — reads a different pin schema than ds2sf emits
Summary
adom-lbr embed --dir <chip-dir> (v2.6.1) builds the 3-column symbol | footprint | 3D HTML, but the pin -> pad mapping table comes up empty — it prints OK: 3-column interactive embed (0 pins) even though the chip dir has a full 48-pin extraction. The pin table with datasheet descriptions is the headline feature of the embed, so it renders without its main payload.
Repro
- Take a chip dir with KiCad CAD (
<MPN>.kicad_sym,<MPN>.kicad_mod,.glb). - Run
adom-ds2sf extract <dir> --pdf <datasheet.pdf>— produces<MPN>-symbol.extracted.json(48 pins),<MPN>-footprint.extracted.json,<MPN>-extraction.provenance.json,<MPN>-footprint.ds2sf.svg. adom-symbol render/adom-footprint renderto produce the SVGs.adom-lbr embed --dir <dir> --out embed.html.
Observed: OK: 3-column interactive embed (0 pins). Expected: 48 pins in the mapping table.
Verified concrete case: STM32F103C8T6. <MPN>-symbol.extracted.json has a top-level pins array of 48 objects, each { number, name, group, description } (e.g. {"number":"1","name":"VBAT","group":"POWER","description":"Backup battery supply for RTC..."}). adom-lbr embed found 0 of them.
Likely cause
embed reads a different pin schema / filename than ds2sf now emits. ds2sf puts pins under pins[] in <MPN>-symbol.extracted.json (keys: number, name, group, description). Guessing embed looks for a chip-fetcher-era file or field path (e.g. a merged <MPN>.json, or info.json.pins, or pin/pad/function keys) that ds2sf no longer writes. Wiring embed to read <MPN>-symbol.extracted.json -> pins[] (mapping description into the datasheet-description column) should populate the table.
Impact
Not blocking — the wiki native component rendering shows the symbol/footprint/3D viewers independently. But anyone embedding adom-lbr for the pin->pad table gets an empty table. Found while publishing the first chip component page (adom/stm32f103c8t6).
Environment: adom-lbr 2.6.1, adom-ds2sf latest, container.