Skip to content

better_erc better_erc

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.

$ berc check hw/board

Where to start

The rest of the book