ERC Warning: A pin with "no connection flag" is connected

In Kicad 7.0.9 on Windows, I am getting this ERC Warning on two of my three unconnected pins of a hierarchical sheet:

The sheet looks like this inside:

If I remove the unconnected marker it gives me an ERC error about it not being connected.

What could this be?

I have a minimal project, but it looks like I am not allowed to upload it.

ERC is a warning for you to check your schematic.
Quite sensibly KiCad detects that your relay pin 4 is bought up one level of the hierarchy and then left open.
9 times out of ten, this would be a mistake.
It is up to you, the designer, to decide that the warning is a false alarm and can safely ignore it. ERC won’t disturb the PCB layout.

Well yes, that’s why I added the “no connection” flag so that ERC can know that I meant it to be unconnected.

Interestingly, I have three unconnected pins with a “no connection” flag, but only two of them get an ERC warning.

Because the jumper pads count as a connection to two of them

Okay, I see, thank you.

If I remove the “no connection” flags then I get a different ERC error that says that I have unconnected pins. It looks like the two warning types don’t agree whether the pins are connected or not.

I can just ignore the errors, but I think this may be a bug?

Not really. If you had simply left the NC flag on the relay pin 4 and not bought the wire out of the sub-sheet, there would be no warning.

The No Connect crosses are only supposed to be used directly on pins of symbols, and not on hierarchical sheet connectors. I have not seen them used in this way before.

I am wondering whether this may be worth a feature request. I hope / think KiCad is going into the direction of diminishing the distinction between schematic symbols and hierarchical sheets. In a comment on Gitlab (I think it was the topic about design blocks) I once wrote a comment about being able to add a schematic sheet to a schematic symbol. That way a prototype could be made with “breakout boards”, and a later more integrated PCB could be made by replacing the breakout boards with the actual circuitry on those boards. I think there is also some work being done on being able to modify schematic symbols directly in the schematic editor. This is also a step towards merging the functionality of a symbol and a hierarchical sheet connector.

Thanks, @paulvdh and @davidsrsb. That clears it up for me.

In my mind there was a boundary at the hierarchical pin, so I expected the “no connect” marker to say that the hierarchical pin was unconnected. In reality, KiCAD treats it as one big netlist and then the warning makes sense.

In addition, there is a warning for unconnected hierarchical pins - regardless if they are connected on the inside of the subsheet.

In my case I will just ignore the warning. I am using this same subsheet in multiple places and sometimes I need all pins and sometimes I want to leave some unconnected.

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