Skip to content

BOM-21 MPN whose maker is not settled

Severity Status Implementation
warning runs in better_erc easy, depends on CFG-9

Data it needs: graph, parts snapshot.

Looks at. MPN and maker fields, the parts snapshot.

What it catches. An MPN on a fitted part, in the variant checked, whose part the snapshot cannot choose: the part source has several parts of it (two makers, or a maker-less stub beside the real part) and the symbol names no maker; or the symbol names a maker (MfgN beside MpnN) that makes no part of that MPN in the source, or that the source does not know at all.

Why it matters. One part per maker: the same part number from two makers is two parts, with their own facts, footprint reviews and stock. When the maker is not settled, no fact is resolved, so BOM-12, LIB-6 and the RATE checks say "not checked" for the MPN, and the BOM leaves the choice of maker to whoever buys it.

Example. b153b: SN74LVC1G17DCKR is in mx3 by Texas Instruments and by UMW. A symbol with only Mpn1 gets match = "not_unique" in parts.lock.toml; with Mfg1 = Texas Instruments it gets TI's part and its facts.

How to check. Every MPN field of each fitted part with the maker field beside it (Mfg beside MPN, Mfg1 beside Mpn1, MFG_2 beside MPN_2), against the snapshot's [[part]] entry of that MPN and maker. berc parts refresh asks the source by MPN and maker (mx3 matches the maker through its company synonyms) and records the part chosen, or the makers to choose from. better_erc (erc_checks/src/bom/bom_21.rs) reports one finding per MPN and maker on the parts carrying it, naming the makers. A symbol without MfgN whose MPN has one part is checked as before. Test case bom-21_mpn_makers.

Fix. Write the maker in MfgN as the part source names it (or a synonym of it), then berc parts refresh. A maker-less stub beside the real part is merged into it in the part source (mx3 part merge).

References. Catalogue BOM-20, BOM-22; project file [parts].

Test schematics

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

bom-21_mpn_makers

The test schematic bom-21_mpn_makers The test schematic bom-21_mpn_makers

  warning    BOM-21 #tyx    R1: MPN SHARED-0402-10K (MPN) matches 3 parts in the part source (Maker A Inc., Maker B, Unknown): which one is meant is not said, so its facts go unchecked
                            part R1
                            fix: name the maker in a `Mfg` field beside `MPN`, or merge a maker-less stub into its part
  warning    BOM-21 #e6y    R4: `Nobody Corp` (Mfg) is no maker the part source knows (MPN SHARED-0402-10K is by Maker A Inc., Maker B, Unknown)
                            part R4
                            fix: write the maker's name as the part source has it in `Mfg`, or add it as a synonym
  warning    BOM-21 #0zt    R5: `Maker B` (Mfg) makes no part RC0402FR-0710KL in the part source, which has it by Yageo
                            part R5
                            fix: write one of these makers in `Mfg`, or add the part by `Maker B`