Gerber Export and Pre-Order Checks
Gerber Export and Pre-Order Checks
Overview
Section titled “Overview”However clean the KiCad project, an export mistake still makes the fab build a scrapped board. Manufacturing files (Gerber/Drill, plus BOM/placement for SMT) are the only contract between design and factory. This section covers what KiCad exports, what each file governs, the cross-checks to run before ordering, and the three most common ways to get it wrong (layer alignment, placement origin, footprint-versus-stencil mismatch). By the end you will be able to:
- Fully export Gerber, drill, and (for SMT) BOM and placement coordinates
- Do a pre-order visual check with KiCad’s built-in Gerber viewer
- Explain how placement origin and polarity affect SMT and set them correctly
- Walk a pre-order checklist that minimises respin risk
Prerequisites
Section titled “Prerequisites”- Completed Chapter 22 Section 4 (layout) and passed DRC
- Ordering mode fixed: bare board only versus bare board plus SMT (decides whether you need BOM/coordinates/stencil)
- A chosen fab, with its capability and file-requirement page read
Key Concepts
Section titled “Key Concepts”What to export and what each file governs
Section titled “What to export and what each file governs”| File | Purpose | Common pitfall |
|---|---|---|
| Gerber (RS-274X) layers | Copper, mask, silk, pads | A layer left unchecked, wrong layer polarity |
| Drill (Excellon) | Through-hole/via drilling | Units/format not matching fab requirement |
| BOM | Parts list (needed for SMT) | Missing designators, value/MPN mismatch |
| Placement CPL/PnP | Each part’s X/Y/rotation | Wrong origin shifts the whole panel |
| Stencil Gerber | SMT paste printing (see Chapter 24 Section 04) | Out of sync with the pad layer |
Minimum bare-board set: all Gerber layers + drill. Adding SMT: plus BOM + coordinates + stencil.
Pre-order cross-check (deliverable)
Section titled “Pre-order cross-check (deliverable)”- Layer completeness: open each layer in the Gerber viewer, confirm copper/mask/silk/outline all present with no empty layers
- Stackup and thickness: on multilayer, confirm layer order matches the fab stackup; report stackup parameters when impedance is required
- DRC zero: clearance/width/aspect violations cleared or explicitly waived
- Placement origin: for SMT use board centre or the fab’s designated corner as origin; after export, check the first part’s position against the assembly drawing
- Designators agree across footprint ↔ BOM ↔ placement: a mismatch anywhere places the wrong part or skips one
- Consistent units: all mm (or all inch) — Gerber/drill/coordinates must not mix
The three most common failures
Section titled “The three most common failures”- Polarity/layer set wrong: mask openings made negative, showing as “no opening where there should be”
- Placement origin drift: BOM has parts but a wrong origin offsets the whole panel on the picker
- Stencil out of sync with pads: after a respin the pads changed but the stencil was not re-exported (Chapter 24 stencil section)
Verification
Section titled “Verification”| Check | Expected result | Verified |
|---|---|---|
| All Gerber layers visually checked | Viewer shows each layer correct, no empty/polarity error | |
| DRC zero or waived | No unhandled red items | |
| Placement origin checked | First part position matches assembly drawing | |
| Designators agree three ways | Footprint ↔ BOM ↔ placement with no gaps/mismatches | |
| Units consistent | All files in one unit | |
| Fab CAM check passes | After upload, fab CAM feedback has no fatal items |
Troubleshooting
Section titled “Troubleshooting”Issue 1: fab reports “a layer is missing / empty”
Section titled “Issue 1: fab reports “a layer is missing / empty””Cause: not all layers ticked at export, or wrong layer-set configuration.
Action: re-export with a standard Gerber layer-set template, count layers in the viewer.
Issue 2: SMT comes out shifted or rotated across the board
Section titled “Issue 2: SMT comes out shifted or rotated across the board”Cause: placement origin/rotation datum not matching the fab’s setting.
Action: reset to the fab’s specified origin and re-export, compare against the first-article placement photo.
Best Practices
Section titled “Best Practices”- Do: fix one export layer-set and unit template so you stop hand-ticking each time
- Do: eyeball the Gerber viewer before ordering; do not trust “it exported”
- Do: keep footprint/BOM/placement designators consistent for SMT
- Don’t: skip re-exporting the stencil after a respin
- Don’t: mix mm and inch across Gerber and coordinates
Summary
Section titled “Summary”Key points of this section:
- Manufacturing files are the only design-to-factory contract: bare board needs Gerber+drill, SMT adds BOM/coordinates/stencil
- Pre-order cross-check: layer completeness, stackup, DRC, placement origin, three-way designator agreement, units
- Three common failures: polarity/layer, placement origin, stencil out of sync with pads
- Templated export cuts missing layers and unit errors; the Gerber viewer is the last gate
We provide ESP32 ODM design-to-manufacturing services. From prototype to production — the team behind this tutorial can build it with you.
💡 Mention tutorial.imagrove.com in your Alibaba chat with us — get 10% off your custom project quote.
First published attutorial.imagrove.com/kicad-hardware-design/05-gerber-export-and-pre-order-checks/Please credit Imagrove and link back to this page when quoting or republishing.
Questions or issues with this tutorial?
Sign in with GitHub to leave a comment. If a step fails for you, tell us — we verify it and update the tutorial.
© Imagrove · ESP32 IoT Tutorial