Due to mysterious ERC errors of the type “Electronics Rules Check Error Pin connected to some others pins but no pin to drive it.”,
I followed Sprig’s tutorial at
by adding two PWR_FLAG’s, one for VCC and one for GND, to my schematic.
Then I ran ERC and got no error, no warning. Mission accomplished!
Thank you, sprig, for posting this tutorial!
Then I Generated netlist and did Tools…Update PCB from Schematic.
pcbnew opened and gave me a Update PCB from Schematic dialog box saying,
Add net VCC.
Reconnect symbol Q1 pin 1 from net Net-(J1-Pad1) to net VCC.
Reconnect symbol R3 pin 1 from net Net-(R3-Pad1) to net GND.
Reconnect symbol J1 pin 1 from net Net-(J1-Pad1) to net VCC.
Error: Component U1 pad 6 not found in footprint Package_TO_SOT_THT:TO-92
Error: Component U1 pad 7 not found in footprint Package_TO_SOT_THT:TO-92
Error: Component U1 pad 4 not found in footprint Package_TO_SOT_THT:TO-92
Total warnings: 0, errors: 3.
Error: Errors occurred during the netlist update. Unless you fix them,
your board will not be consistent with the schematics.
Device U1 is a through-hole device in a TO-92-3 package–no pads! Device U1 only has three leads!
What did I do wrong? Did I somehow choose the wrong TO-92 package ? Which
one should I have used?
This message did NOT look correct at all. It perplexed me.
So I took my advice to shut down the project, completely closing kicad and then restarted it. I did so, saving the file inside pcbnew first.
When I restarted, I reran ERC without error and then generated a netlist again in eeschema.
Then I ran Update PCB from Schematic…Update PCB
The Update PCB from Schematic dialog box popped up once again, saying
Total warnings: 0, errors: 0.
Netlist update successful!
MORAL: If something doesn’t look right, sound right, or make any sense, first shut down every instance of kicad and restart the project again with a new instance of kicad.
UPDATE:
When I started laying out this PCB in pcbnew, unfortunately, one of my resistors only has one airwire! No ERC errors. I recreated the netlist a couple times, and afterwards, “Run Pcbnew to layout printed circuit board” button. Same error each time,
though–one airwire on the resistor.
When I added the power flag, I used two copies of the same PWR_FLAG flag, one for DC power and one for DC ground.
What should I do to fix this?