Skip to content

[How] To get copper to copper DRC errors for unconnected copper polygons #36

Description

@rhodey

I have written some software which automates creating PCB business cards

The input is a collection of text fields (name, company name, email, etc)

The output is a .kicad_pcb file which I then pass to kibot to generate gerbers using the built in Elecrow config / presets

I have had a number of these designs sent to Elecrow and they come back as they should but a few of my designs have been rejected due to DRC

I am trying to use this command to run DRC myself:

pcbnew_do run_drc pcb.kicad_pcb out/

I notice when I run this without a pcb.kicad_pro file in the dir the software auto-generates pcb.kicad_pro

I have taken the auto-generated pcb.kicad_pro and I have tried to modify DRC settings in a number of places in order to force a DRC fail

No matter how many configs I assign a huge number to I cant get this to fail, for example:

$ cat pcb.kicad_pro | grep 1000

        "copper_line_width": 1000.0,
        "fab_line_width": 1000.0,
        "other_line_width": 1000.0,
          "min_clearance": 1000.0
        "min_clearance": 1000.0,
        "min_connection": 1000.0,
        "min_track_width": 1000.0,
        "solder_mask_to_copper_clearance": 1000.0,
        "clearance": 1000.0,

The pcb.kicad_pcb file which is being used as input should fail DRC with these values being so large but always I get exit code 0

And the file written to out/drc_result.rpt it looks like this:

** Drc report for pcb.kicad_pcb **
** Created on 2025-05-10T17:33:58+0000 **

** Found 0 DRC violations **

** Found 0 unconnected pads **

** Found 0 Footprint errors **

** End of Report **

The pcbnew_do program I am running from within a Docker container that starts with

FROM ghcr.io/inti-cmnb/kicad8_auto:1.7.0

I have added the input files pcb.kicad_pcb and pcb.kicad_pro to a zip archive you can find here

One more thing I am noticing which seems like it could be related:

Every time I run pcbnew_do run_drc a file gets created in the directory, the file name is pcb.kicad_pro-bak

When I look inside this file I see that the majority is the same as pcb.kicad_pro but many of the settings I have changed to 1000.0 these settings are still default in the -bak file

$ cat pcb.kicad_pro | grep 1000
        "copper_line_width": 1000.0,
        "fab_line_width": 1000.0,
        "other_line_width": 1000.0,
          "min_clearance": 1000.0
        "min_clearance": 1000.0,
        "min_connection": 1000.0,
        "min_track_width": 1000.0,
        "solder_mask_to_copper_clearance": 1000.0,
        "clearance": 1000.0,
$ cat pcb.kicad_pro-bak | grep 1000
        "clearance": 1000.0,

Thank you for reading and please let me know whatever else more I can do to help, thanks!

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions