better_erc¶
better_erc checks KiCad schematics for the mistakes a design review catches. The ERC built into an EDA tool checks pin types: an output driving an output, an input left open. better_erc knows the circuit: an I2C bus without pull-ups, a USB-C receptacle without its CC resistors, a rail that nothing powers, a capacitor rated below its working voltage.
Every check has an ID such as I2C-1, made of its category and a number. The ID never changes, so a waiver, a baseline or a CI rule that names it stays valid. Each check has a page in this book with what it catches, why it matters, how to fix it, and a test schematic with the finding better_erc reports on it.
How a run works¶
better_erc reads a KiCad project itself: the sheets, the symbols with their fields, the wires and labels, and the board when there is one. From these it builds one board model, finds the rails, the buses and what kind each part is, and runs every check on it. A check that needs data the design does not hold, such as a rail's voltage, never guesses: the report lists it as not run, with what would enable it.
Where to start¶
- Getting started installs
berc, runs the checks and sets up readable git diffs. - The project file gives rail voltages, thresholds and waivers.
- Checks in CI covers output formats, exit codes and baselines.
- The drawing guide explains how to draw a sheet that reads at a glance; the
DRAWchecks automate part of it. - The check catalogue lists every check, implemented or planned, by category.
The rest of the book¶
- What better_erc does: every tool and what works today.
- The review checklist: the catalogue condensed into a schematic review pass.
- Part facts, placing fields and footprint review: the parts snapshot and the tools built on it.
- Probe access: where a hand probe reaches each net of a board.
- Readable git diffs:
berc textconvfor KiCad files. - The check engine, the board model and signal levels: how better_erc works inside, and how to add a check.