DOH! I extended the wire to the female connector. Problem solved. Thank you.
Pin 4 is a leftover wire from a previous test. I thought I had connected both sides in a previous test but I guess not because the ERC error is gone. I wasn’t sure about extending the wire until I got a junction dot so now I know for sure. Thanks again.
General advice: It is normally not a good idea to have wires crossing a symbol. As it makes the schematic very hard to read and is prone to errors as you experienced here.
Funny thing, is that in this specific instance with the female pin symbol and global net label it actually looks better than any alternate (which would require fanning out the MCU pins or using a local net tied somewhere else in the schematic)
Local labels would be an option as these can be placed on top of the wire. (can then be connected to the global label somewhere where there is space. If it is even required to use global labels.)
When I do use global nets, tie all of them to local nets in one location on the schematic, that way it is clear to see what is connected to global space, and can be disconnected or renamed all at once.
As general advice I completely agree, but in this particuar case it is quite fitting. It looks visually good, and as you have noticed Eeschema catches the mistakes you make and warns you about them.
If you have a design where everything fits on a single page it does not matter much which sort of labels you use. If you want to learn more about the use of the different kinds of labels, then:
Eeschema / Help / Eeschema manual [F1]
Recently I read most of it, and I found it a quite clear and well written manual.
OK. I’m missing something. But, home brewing is one of my hobbies and I just bottled and sampled a 14% mead so keep that in mind.
If you want/need the wire to go through the connector to something on the other side you might need just need to learn to make your own symbol.
In this case just open the symbol in the editor, lose the graphics and set the pin length to zero. Put a box around it if you like and save it to a new library that won’t get over written on updates. It will end up looking like the footprint for header pins but will be more legible in this case I think.
I guess you don’t realize, but you don’t have to put a label at the end of a wire, and don’t need to use a junction dot. All these labels will fit between the wires on the other side of the connector and not have to have wires crossing over your component. Something like this:
Local labels are the only labels where you can get away with this though, because they are the only ones with the connection point below the text (the others the connection point is vertically centered on the text).
I’ll place the opto-couplers on the output side of the schematic especially because I don’t want to develop bad habits. For the moment I’m modifying an existing pcb and I placed the block of symbols on the input side only because there was more room on that side. I still want to add several more parts and I will use labels to help me get it on a single page.