LIB-20 Placed footprint overrides the symbol's own Footprint¶
| Severity | Status | Implementation |
|---|---|---|
| info | planned | easy, depends on TOOL-10 |
Looks at. The board, the schematic's symbols and (for the library side) the sym-lib-table.
What it catches. A board footprint (Lib:Name) that names a different library footprint than the one its schematic symbol itself sets in its own Footprint field (the library symbol's field, or the schematic's cached copy of it where the library is not found). A footprint placed with no library nickname at all is not this: it is a legitimate case with nothing to compare the name against, and LIB-17's broken-link check covers it instead.
Why it matters. The two usually agree because KiCad writes the board's footprint from the schematic's field at "Update PCB from Schematic". They drift apart when a footprint library is renamed or migrated (a vendor copy of a stock part, VHRD_*) and only one side of the project is updated, or when someone edits the board's footprint by hand without touching the schematic. Either way the review and the library tooling should look at what the board actually carries, not the symbol's possibly stale say-so, and the mismatch is worth a look even when it turns out to be a deliberate per-instance override.
Example. b153a's U201 (a USB hub) placed VHRD_Package_QFP:LQFP-48 on the board while its library symbol's Footprint field still said the stock Package_QFP:LQFP-48, left behind by an earlier, partial library migration. berc fp check and berc fp todo took the symbol's field without a word; a footprint review of the symbol reviewed the stock footprint, not the one actually on the board.
How to check. For each board footprint with a schematic symbol: its own Lib:Name against the symbol's Footprint field (instance override, else the schematic's cached copy, else the library symbol's), string equality after trimming, skipped when the board's own name has no library nickname. better_erc: FpEntry::footprint_overridden (berc fp check, per board footprint, naming both) and TodoEntry::overridden (berc fp todo, per footprint hash and cover, the references that disagree).
Fix. Update the schematic symbol's Footprint field to match what the board places (berc fp accept --footprint LIB:NAME, or the app's Accept confirmation, writes it into the library and every schematic copy), or update the board from the schematic if the board is the one that is wrong.
References. None beyond the project's own history; TOOL-10, IMP-19 (the writer).