D2 is not in the schematic, but is connected at one end
Here’s a strange layout error. I made some changes to the schematic, generated a new netlist, and brought it into PCBnew, which already had a layout. I didn’t use “Delete unused footprints” because I have some fiducial marks that aren’t in the netlist.
I didn’t notice that D2 was no longer in the schematic but still on the board.
I deleted all tracks and ran FreeRoute. FreeRoute connected Vcc to one end of D2, and left the other end unconnected. That’s weird. No idea why it was connected to Vcc.
Worse, this passes DRC with no errors. That seems wrong. I checked the netlist file, and D2 is not mentioned. But here’s the rat’s nest:
Here’s the rat’s nest.
Checking the Vcc net in the netlist, there’s no D1:
Somehow, some old connection to D1 survived loading a new netlist in PCBnew. Running “Rebuild board connectivity” doesn’t help. “Delete unconnected tracks” doesn’t help. That’s very strange.
If i have stuff on the board that is not in the schematic i lock these footprints.
Locked footprints are not removed when using the delete unused footprints option of the netlist import. This enables me to always use this feature. (Ok to be honest i use the update pcb from schematic option in the develpment/nightly version. But it behaves in the same way as the delete unused footprints option.)
Yes, there are workarounds. The concern here is that there’s a connection on the board that isn’t in the netlist. That looks like a KiCAD bug. Anyone else seen anything like this?
All the files are on Github, so this should be reproducible by others.
Application: kicad
Version: 4.0.7-e1-6374~58~ubuntu16.04.1 release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1009,GCC 5.4.0,wx containers,compatible with 2.8)
Platform: Linux 4.4.0-87-generic x86_64, 64 bit, Little endian, wxGTK
Boost version: 1.58.0
Curl version: libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_WXPYTHON=ON
USE_FP_LIB_TABLE=HARD_CODED_ON
BUILD_GITHUB_PLUGIN=ON