Skip to content
hw.dev
hw.dev/signal/cm5-routed-kicad-project-rules-698-errors-2026
SignalKiCad Scripted PCB

Two Missing KiCad Files Turned a Clean Board Into 698 Errors

A scripted board looked broken because its output omitted the KiCad project and custom-rule files that made the routed design valid.

Thesis connection

Generated board files stay reviewable only when the rules used to create and check them travel with the result.

#pcb#eda#testing#verification
Read Original

The KiCad Scripted printed circuit board (PCB) project generated a routed Compute Module 5 carrier that passed its design rule check (DRC), then appeared to have 698 errors when someone opened the output. The board geometry was unchanged. The routing script had copied only the .kicad_pcb board file and left behind the KiCad project file plus the custom rule file that defined valid clearances and track widths.

Without those two files, KiCad silently fell back to its default rules and reported 499 clearance errors and 199 track-width errors. The generator now writes matching .kicad_pro and .kicad_dru files beside the routed board. Opening that three-file result restores the same rules the script used and returns the error count to zero.

A generated artifact without its check policy isn't reproducible, even when every copper segment is present. Board automation should treat the project and rule files as required outputs, then reopen the exported bundle in a clean directory and require the same DRC result before publishing it.