Board edge to via constraint

I’m getting a design rule check error that pcbnew is letting me create. It seems like a bug but I’m not sure. I have my “Copper to edge clearance” set to 0.5 mm

However, pcbnew is allowing me to place a via closer than 0.5 mm to the edge, but visually it look to be the same as the nearest copper trace. The VIA is throwing a DRC error but the trace is not:


Pcbnew will not let me put the via any closer to the edge than this, but there seems to be a bit of mis-match between the rules and the actual copper diameter of the via as I’m only violating the rule by 0.0005 mm.

This is easy enough to fix manually, but it would be nice if pcbnew prevented the error in the first place.

Application: KiCad PCB Editor x86_64 on x86_64

Version: 7.0.0-da2b9df05c~171~ubuntu20.04.1, release build

Libraries:
wxWidgets 3.2.1
FreeType 2.10.1
HarfBuzz 6.0.0
FontConfig 2.13.1
libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3

Platform: Ubuntu 20.04.5 LTS, 64 bit, Little endian, wxGTK, ubuntu, x11

Build Info:
Date: Feb 27 2023 09:23:58
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.71.0
OCC: 7.5.2
Curl: 7.87.0
ngspice: 38
Compiler: GCC 9.4.0 with C++ ABI 1013

Build settings:
KICAD_SPICE=ON

I thought copper to edge clearance was for tracks and zones but didn’t include pads and vias.

Last time I checked pads and via’s were made from copper too.

And if it’s off by only 5um, then it sure appears like KiCad is trying to maintain that distance, but there is a “rounding error” somewhere. If you manually move that via a bit in, and then out again, does it still violate the the margin by 5um? If so, then it may be worth a bug report, or post a simplified example here so other can check, verify and maybe make the bug report for you if you don’t want to do that.

Yeah, if I move out and back it still is off by 5um. KiCad doesn’t let me move it any closer to the board edge than that, so it does appear to be attempting to prevent the error but something seemed off. I’ll report it. I was feeling a little gun shy because the last two errors I reported were not errors, but my ignorance.

Jacob

If your feeling “gun shy” it’s better to post a test project here first then to post on gitlab. First, it makes it easier for other users to verify, and second, it does not cost any time of the developers, which is a precious resource for KiCad.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.