ERC: "Pins of type power output and open collector are connected"

Hello.

Here is a simple circuit with a NPN transistor acting as a high side switch:

But it triggers an ERC error:

“Pins of type power output and open collector are connected”

Why the ERC error occurs? How to solve it?

Thanks!

Show us the symbol properties of Q1.

Almost all pins of BJT are defined as “passive” in KiCad’s libraries, because KiCad can not know in advance how you are going to use your transistor. I guess you used the Simulation_SPICE:NPN transistor. That is one of the very few that has it’s pins defined as other then “passive”, and that is probably an error in KiCad’s libraries.

Indeed, I accidentally used Simulation_SPICE:NPN symbol, that has “Open collector” and “Open emitter” instead of “Passive” pin functions. After changing the symbol to a general Q_NPN_BCE or similar the problem was gone.
Thanks!

This is not high side switch. For switch from +12V high side you should get +12V at switch output but you will not get it in this circuit.