In a hierarchical schematic with multiple instances, nets got bridged after moving - now everything that was GND is included in the +5V net.
It should ™ be possible to recover the net names based on labels and supply symbols, well, depending on whether eeschema can resolve pin conflicts or not.
It would be doable (yet mildly annoying) to delete all the faulty nets, so I hope someone can help me out with a hint If you don’t know how it’s done, also drop a comment - I’d be interested to hear how often splitting / rebuilding net names is needed. (Other tools have different concepts of nets and allow renaming, then asking whether to apply the change locally or for all members).
In kicad you do not set a netname. You tell it what should be connected and then it selects the netname to fit that via certain rules. Which means it looks what is on the net and then goes through the following list to get the resulting name.
If a global label is present (including power symbol) then take its name
If a hierarchical label is present then take its full name (including hierarchical path)
If a local label is present then take its full name (including full path of the hierarchy)
Autogenerate name from refdes/pin
If multiple labels of the same scope are on the net then one of them wins (no guarantee which one, assume it is random). ERC will complain to warn you about that.
So in your screenshot it seems like you have somewhere connected your 5V net to GND. And this was most likely done in a place not pictured as i can not see a reason for it.
Thank you, running DRC definitely helped (irgnoring ~200 errors from unfinished sections). Good to know KiCad seamlessly updates this, or at least isn’t too persistent and impedes resolutions.
As it turns out, the 74LVC3157 symbols were flipped upside-down, and the symbol GND pin ended up connected to +5V… and won. I would have expected a pin to act recessively. It’s still an issue worth warning about, however now I’m getting lots of errors that “VCC is connected to +5V”.
Which KiCad version are you using?
KiCad V5.1 connects nets with different net labels silently.
KiCad V5.99 gives warnings but these can be flagged by right clicking on the message and then choose “Exclude this Violation”.
This is still a quite new feature, and seems only partially implemented. For example when you run ERC check again, it is flagged again as a warning
testing nightlies while pretending to do work - still, Error “More than one name given to this bus or net” for connecting only +5V to a pin that would rather it be called “VCC” doesn’t seem right. Shouldn’t supply symbols be equivalent to labels (mostly global ones, but nut necessarily so) and supersede ordinary symbol pin names?
I suggest to avoid using symbols with hidden power input pins. These are converted to global labels. Yes sadly the official lib still has such symbols but just make your own ones without this nonesense.
KiCad V5.99 apparently always creates warnings for different net labels connected together. See:
This is a good thing, as it catches simple typo’s that would result in different nets if it is handled silently.
It is a bad thing when ERC keeps nagging about the same warning even if you’ve told it to ignore that particular error. As I wrote before, it’s a new feature and probably not well tested yet, or still in development.
It is my opinion that once you’ve flagged a warning as an exclusion, it stays excluded even when ERC is run multiple times or when you exit KiCad and go back to it a week later, which would necessitate these exclusions to be stored in a file.
Your warning text:
“More than one name given to this bus or net”
is different from the text I got in the other thread:
“Both AAA and BBB are attached to the same items, AAA will be used in the netlist.”
This could be because it is a different warning, but it could also be that we simply have different sub versions of V5.99 and this feature is still in development.
Power pins always create global labels (At least in KiCad V5.1)
The only workaround I know is to change the schematic symbols, and put the power pins on them, and then connect them with local labels only.
The different text is because we try to show a specific message where possible (“both X and Y are connected to the same items”) but also we need a “generic” name for each error message, for example to show it in the list of error severities.
The invisible power pins being global labels thing is just a fact of life with KiCad; it cannot be removed for compatibility reasons. The best bet is to just not use those symbols, and don’t use invisible power pins when creating your own symbols.
For similar reasons, we are extremely unlikely to implement “power ports local to a single sheet” as a feature.