Schematic ERC: Conflict problem between pins, severity error (solved)

Hi,
I modularized my project so that I can make one schematic and use a single schematic for multiple audio channels.

See here, I have a single file, that’s used 3 times. Each sheet name is unique otherwise problems arise, and then each component ID is unique inside the sheet. CH1 will have diff. comp.ids than CH2.

As new user, can only post 1 image, so I combined them. TOP is the top level schematic, bottom is the Input-Preamp CH1 schematic.

Error report:
***** Sheet /LineInput_Unbalanced_Stereo_CH1/
ErrType(5): Conflict problem between pins. Severity: error
@ (6.750 in,4.600 in): Pin 7 (Output) of component U5 is connected to
@ (6.750 in,3.200 in): pin 1 (Output) of component U5 (net 1).
ErrType(5): Conflict problem between pins. Severity: error
@ (6.750 in,4.600 in): Pin 7 (Output) of component U6 is connected to
@ (6.750 in,3.200 in): pin 1 (Output) of component U6 (net 2).
ErrType(5): Conflict problem between pins. Severity: error
@ (6.750 in,3.200 in): Pin 1 (Output) of component U1 is connected to
@ (6.750 in,4.600 in): pin 7 (Output) of component U1 (net 7).

Note that U1 is CH1, U5 is CH2, and U6 is CH3. Why it thinks all the outputs are connected together from the same schematic file doesn’t make sense…

Any ideas?

Thanks

Perhaps because you used the same labels (" R " and " L ") for all of your channels?

Dale

KiCad needs to be smart about that, otherwise what I’m trying to do, which is the purpose of hierarchical sheets, cannot be done.
If I change the top level labels to R1 and L1, then ERC complains that there’s a pin mismatch, rightly so, names do not match, when I go inside and change CH1’s R to R1, CH2 sheet will also have R1, so how am I supposed to use the same schematic for multiple channels to have different outputs?

No that’s how hierarchical sheets are used.
If you use the same file for multiple instances you can’t change the names of the hierarchical labels. The only thing that is different in within this sheets is the reference designator.

Sorry, new to the forum not sure if your reply was for me, were you telling me that I am using the hierarchical sheets wrong?

If so, what’s the best way to reduce work here?

No i agreed with you. I was a bit to slow. (haven’t seen your reply wen i clicked reply.)

Now my reply about your real problem:

I think the problem is within the sheet volume pan stereo.
Can you give us a screenshot of that sheet? (maybe there is a connection between the R/L channels.)
(Or your project files,)
Also check if there is a connection between the global label V- and feedback loop.

Here’s the pan-vol sheet:

I checked pan-vol sheet by disconnecting the R and L channels, the error persisted, that means the input-preamp sheet is the sole problem.

If I disconnect pin 7 from L pin in the input-preamp sheet, then all errors go away, but then I am missing left audio channel.

I did not have this error when I only had one channel, CH1. It only appeared after I copied and added CH2 and CH3 by holding shift then click drag select then move and release to copy the sheets, maybe this created a problem in KiCad? Should I have created a new sheet with the same filename and populated the pins, maybe the copy didn’t write something correctly in .sch?

There is no connection between V- and feedback loop, there is no junction there.

I always do it this way. Never had a problem.
(I even tested it right now with a simplified version of your schematic. Had no problem.)

You could try to delete ch2 and ch3
Than don’t copy it as you did before but create a new hierarchical sheet with the same file name as the one you use now. There should come a warning.
[A file named ‘[filename].sch’ already exists in the current schematic hierarchy.
Do you want to create a sheet with the contents of this file?]
Click yes and reconnect it.
Maybe this solves the problem.

By the way which version of kicad are you using?

Application: kicad
Version: (2016-11-30 revision 6d6542e)-makepkg, release build
Libraries: wxWidgets 3.0.2
libcurl/7.46.0 OpenSSL/1.0.2d zlib/1.2.8 libidn/1.32 libssh2/1.6.0 librtmp/2.3
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW

  • Build Info -
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.57.0
    Curl: 7.46.0
    KiCad - Compiler: GCC 5.2.0 with C++ ABI 1009
    Settings: USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_SCH_IO_MANAGER=OFF
    KICAD_USE_OCE=ON

Recreating the sheets from scratch by pointing to sch file did not change anything.

There is a new stable release (4.0.5 since this week i think). You could try that.

I’ll try it but I doubt it, the release log says nothing of the kind related to what I’m experiencing.

I just looked at your file again.
Another very unlikely source could be your symbol.
You named your pins in unit a and b the same.
maybe name them ch1+,ch1-,ch1_out
(I’m clutching on straws here. I never experienced such a weird behavior.)

@kaitrek, please check your opamp symbol against pin overlaps. Someone might hide common pin 1 in unit B or common pin 7 in unit A, because didn’t know how to edit pins in the right way in multi unit components.
Load symbol to library editor and perform basic check (ladybug icon).

This component from Linear library, LT1492, looks the same way as mine.


Pin names don’t matter I think, as long as pin numbers are different.

Like I said, when I had one CH1, there were no errors, when I added CH2 and CH3, I started getting these errors.I just searched for the “net 4” and I keep finding the same net in different sheet names CH1/2/3, which is wrong, hence the error ERC throws out.

keruseykarya: I made the component, here it is, no bugs (duplicate or offgrid pins, etc) in library editor:

Could you provide with us a complete project?

And one very important question: Did you annotate full schematic after creating whole hierarchy with Eeschema’s Annotate tool?

Providing the whole project would be tough, have not played with ways to export custom components along with the project yet. I was just trying to reproduce the error with LT1492, just the input-preamp section with 2 channels, but I’m not getting the error. I’ll keep trying to narrow it down or reproduce.

Yes, I have re-annotated the entire schematic, otherwise I’d get multiple components error dialog before ERC is completed.

OK, SOLVED.
Let me point something out to you from the picture in my first post.
LOL, ffs damn it, couldn’t see that damned wire…

No errors now.

THANK YOU ALL!

2 Likes