Electronic – How should I deal with KiCAD Electrical Rule Check warnings

kicad

I have drawn up a modest size schematic in KiCAD, for the first time.

It seemed more or less straight forward. But now that I run the ERC error checker, I get boatloads of errors with seemingly disconnected pins even though the automatic junctions appears. The most frequent error being:

"Pin connected to other pin but not driven"

enter image description here

It's random where it comes and where it doesn't even in setups that were copy pasted. Sometimes I need to unplug things and put them back together one by one, sometimes it's the little power components and sometimes the passive ones and sometimes I just move out the entire chip and put it back in. It sometimes fixes those problems and sometimes I rip my hair out doing it over and over and it just won't go away. Here is one on pin 1 of U24, no matter what I do it comes back. Similar problems on pins 2, 3, and 4 although they don't appear in the error box near this one.

This is very annoying and it must be bugs in KiCAD that is showing components connected, even with junctions, but the underlying model is apparently randomly different from what's shown.

Or can I just ignore those errors? And is there a way to tell the checker to ignore particular errors — I know one can suppress classes of errors and warnings, but I mean particular occurrences of them. For example the second error (warning) "Conflict problem between pins …" tri-state signal pin connected to fixed GND or +5V, the warning is fine once, but once I checked and find it correct, I want to acknowledge the particular warning and make it not be raised again, I don't want to see it any more. Same thing with disconnected pins, disconnected outputs shouldn't be a problem, I want to tell the checker that it is fine in particular cases.

Best Answer

Check that you have a "power output" pin driving the +5V net.

These errors typically occur when all that is connected to a power net are "power input" pins of various components, but there's nothing feeding power to the net. There needs to be either a "power output" pin (of a regulator or DC/DC or something), or a PWR_FLAG component connected to the net to mark that the power comes from an external source (such as a connector).

The EEschema manual says:

It is common to have an error or a warning on power pins, even though all seems normal. See example above. This happens because, in most designs, the power is provided by connectors that are not power sources (like regulator output, which is declared as Power out).

The ERC thus won’t detect any Power out pin to control this wire and will declare them not driven by a power source.

To avoid this warning you have to place a "PWR_FLAG" on such a power port. Take a look at the following example:

EEschema power flags example

The error marker will then disappear.

Most of the time, a PWR_FLAG must be connected to GND, because regulators have outputs declared as power out, but ground pins are never power out (the normal attribute is power in), so grounds never appear connected to a power source without a power flag symbol.