Skip to content

Gerber Export and Pre-Order Checks

Gerber Export and Pre-Order Checks

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
  • 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
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.

  1. Layer completeness: open each layer in the Gerber viewer, confirm copper/mask/silk/outline all present with no empty layers
  2. Stackup and thickness: on multilayer, confirm layer order matches the fab stackup; report stackup parameters when impedance is required
  3. DRC zero: clearance/width/aspect violations cleared or explicitly waived
  4. 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
  5. Designators agree across footprint ↔ BOM ↔ placement: a mismatch anywhere places the wrong part or skips one
  6. Consistent units: all mm (or all inch) — Gerber/drill/coordinates must not mix
  1. Polarity/layer set wrong: mask openings made negative, showing as “no opening where there should be”
  2. Placement origin drift: BOM has parts but a wrong origin offsets the whole panel on the picker
  3. Stencil out of sync with pads: after a respin the pads changed but the stencil was not re-exported (Chapter 24 stencil section)
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

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.

  • 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

Key points of this section:

  1. Manufacturing files are the only design-to-factory contract: bare board needs Gerber+drill, SMT adds BOM/coordinates/stencil
  2. Pre-order cross-check: layer completeness, stackup, DRC, placement origin, three-way designator agreement, units
  3. Three common failures: polarity/layer, placement origin, stencil out of sync with pads
  4. Templated export cuts missing layers and unit errors; the Gerber viewer is the last gate

Building a commercial IoT product?

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.

Talk to us →

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.