Author Topic: KiCad 8.0.4 didn't catch swapped power pins  (Read 573 times)

0 Members and 1 Guest are viewing this topic.

Offline davep238Topic starter

  • Contributor
  • Posts: 30
  • Country: us
KiCad 8.0.4 didn't catch swapped power pins
« on: September 09, 2024, 02:07:36 am »
In the schematic editor, I accidentally connected the VCC pin of a part to GND, and the GND pin to VCC. I ran ERC, and KiCad didn't flag that as an error. I even tried it with a KiCad library part (74x04), instead of my own. No error. I'm an idiot for not seeing my error, but I'm disappointed that ERC was OK with it.

Long ago, I used EAGLE, and I sort of recall that EAGLE asked if I wanted to connect a part's VCC pin to a 5 volt net. But, I'm guessing that KiCad is OK with connecting a part's power input pin to any power output pin.

Other than having other people look over my designs before I send them to a board house, is there anything that I can do to keep me from doing this again? I did find 2 other bugs that I made, plus changes I want to make, so I need to respin the board again, anyway.

Thanks
-Dave Pollum
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11727
  • Country: us
    • Personal site
Re: KiCad 8.0.4 didn't catch swapped power pins
« Reply #1 on: September 09, 2024, 02:35:52 am »
There is no distinction between power types. This does not even make sense in all cases. Opamp power pins can have all sorts of voltage level combinations. And for negative logic, your "ground", may have higher potential than the  power.

And you can have arbitrary number of power rails in general. There  is no sane way to check for this.
Alex
 

Offline djsb

  • Frequent Contributor
  • **
  • Posts: 957
  • Country: gb
Re: KiCad 8.0.4 didn't catch swapped power pins
« Reply #2 on: September 09, 2024, 06:04:55 am »
You should get a ERC error, "Error:Both GND and VCC are attached to the same items; GND will be used in the netlist". Maybe this should alert you to a possible problem, unless this is your intention?
I'm running 8.05, so maybe there was a bug in the earlier Kicad versions. Have you checked?
« Last Edit: September 09, 2024, 06:07:39 am by djsb »
David
Hertfordshire, UK
University Electronics Technician, London, PIC16/18, CCS PCM C, Arduino UNO, NANO,ESP32, KiCad V8+, Altium Designer 21.4.1, Alibre Design Expert 28 & FreeCAD beginner. LPKF S103,S62 PCB router Operator, Electronics instructor. Credited KiCad French to English translator
 

Offline davep238Topic starter

  • Contributor
  • Posts: 30
  • Country: us
Re: KiCad 8.0.4 didn't catch swapped power pins
« Reply #3 on: September 09, 2024, 10:55:17 am »
You should get a ERC error, "Error:Both GND and VCC are attached to the same items; GND will be used in the netlist". Maybe this should alert you to a possible problem, unless this is your intention?
I'm running 8.05, so maybe there was a bug in the earlier Kicad versions. Have you checked?
David,
It was a multi-gate part, so there was a separate power symbol, which I had upside down. I had the GND pin connected to VCC, and the VCC pin connected to GND, so they weren't connected to the same net.
Thanks.
-Dave Pollum
 
The following users thanked this post: djsb

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3837
  • Country: nl
Re: KiCad 8.0.4 didn't catch swapped power pins
« Reply #4 on: September 09, 2024, 01:34:28 pm »
Such mistakes are easy to make, especially with all those different names for power pnis of symbols, Vee, Vdd, Vss, Vdd, etc. But I don't know how KiCad can prevent this. In one of my projects I used an LM7905 and an Atmega to build a light dimmer, because of the 3 quadrant thing of most triac's. There is not anything special about "GND". For ERC it is exactly the same as any other power net.
 

Offline bson

  • Supporter
  • ****
  • Posts: 2445
  • Country: us
Re: KiCad 8.0.4 didn't catch swapped power pins
« Reply #5 on: September 12, 2024, 09:39:03 pm »
KiCad has no way of knowing what power net each power input should be connected to and there is no real way to generalize this.  It's not even aware that +3.3V is at higher potential than GND; those are just alphanumeric labels assigned to the power symbols.  You can easily create your own and call it MY3V and KiCad will be perfectly happy to let you do that.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf