question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Footprints not found pcbnew import

See original GitHub issue

Made a simple start of a clock schematic with Skidl and generated a netlist without errors. When I try to import the netlist into pcbnew (kicad 5.1.0) it gives errors saying it cannot find the footprints.

Error: Cannot add new symbol R1 due to missing footprint Resistor_SMD.pretty:R_0805_2012Metric. Error: Cannot add new symbol Y1 due to missing footprint Crystal.pretty:Crystal_HC18-U_Vertical. Error: Cannot add new symbol U1 due to missing footprint Package_SO.pretty:SOIC-14_3.9x8.7mm_P1.27mm. Error: Cannot add new symbol R54 due to missing footprint Resistor_SMD.pretty:R_0805_2012Metric. Error: Cannot add new symbol R2 due to missing footprint Resistor_SMD.pretty:R_0805_2012Metric. Error: R1 footprint “R_0805_2012Metric” not found in any libraries in the footprint library table. Error: Cannot add new symbol C1 due to missing footprint Capacitor_SMD.pretty:C_0805_2012Metric. Error: C1 footprint “C_0805_2012Metric” not found in any libraries in the footprint library table. Error: Y1 footprint “Crystal_HC18-U_Vertical” not found in any libraries in the footprint library table. Error: U1 footprint “SOIC-14_3.9x8.7mm_P1.27mm” not found in any libraries in the footprint library table. Error: R54 footprint “R_0805_2012Metric” not found in any libraries in the footprint library table. Error: R2 footprint “R_0805_2012Metric” not found in any libraries in the footprint library table.

To test this I dropped a 7400 onto a schematic and exported its netlist. The footprint name is NOT (1) the same as I used in my skidl code, but pcbnew-import does not give any errors…?

So what am I doing wrong?

Here’s the code:

from skidl import *

# libraries
logic74 = '74xx'
device = 'device'

# footprints
fpR = 'Resistor_SMD.pretty:R_0805_2012Metric'
fpC = 'Capacitor_SMD.pretty:C_0805_2012Metric'
fpXTAL = 'Crystal.pretty:Crystal_HC18-U_Vertical'
fpU14 = 'Package_SO.pretty:SOIC-14_3.9x8.7mm_P1.27mm'

# global nets
vcc = Net('VCC')
gnd = Net('GND')

xtal = Part(device, 'crystal', footprint=fpXTAL)
r1 = Part(device, 'R', value='470R', footprint=fpR)
r2 = Part(device, 'R', value='470R', footprint=fpR)
c1 = Part(device, 'C', value='100pF', footprint=fpC)
u1 = Part(logic74, '74LS00', footprint=fpU14)

u1[7] += gnd
u1[14] += vcc
u1[12] += vcc
u1[9] += vcc

xtal[1] += r1[1]
xtal[1] += u1[13]

r1[2] += c1[1]
r1[2] += u1[11]

r2[2] += c1[2]
r2[2] += u1[10]

xtal[2] += r2[1]
xtal[2] += u1[4]
xtal[2] += u1[5]
xtal[2] += u1[8]

clk14 = Net('Clk14')
r54 = Part(device, 'R', value='4K7', footprint=fpR)
r54.ref = 'R54'

r54[1] += vcc
r54[2] += clk14
r54[2] += u1[6]
#--------------------------------
generate_netlist()

Here is the example of the generated netlist 7400 part:

(comp (ref U1)
      (value 74LS00)
      (footprint Package_SO.pretty:SOIC-14_3.9x8.7mm_P1.27mm)
      (fields
        (field (name keywords) "TTL nand 2-input buffer")
        (field (name description) "quad 2-input NAND buffer"))
      (libsource (lib 74xx) (part 74LS00))
      (sheetpath (names /top/17017331776065520654) (tstamps /top/17017331776065520654)))

And here is the 7400 part generated from the schematic

(comp (ref U1)
      (value 74HC00)
      (footprint Package_SO:SOIC-14_3.9x8.7mm_P1.27mm)
      (datasheet http://www.ti.com/lit/gpn/sn74hc00)
      (libsource (lib 74xx) (part 74HC00) (description "quad 2-input NAND gate"))
      (sheetpath (names /) (tstamps /))
      (tstamp 5CCF1A6A)))

I assume it should be possible to import the skidl generated netlist into pcbnew, yes?

  1. After typing in this whole story it occurred to me that the schematic netlist did not use the .pretty extension. I typed it in because of the skidl ‘getting started’ examples, but remove that and it works…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
devbismecommented, Nov 15, 2022

Please provide the code that caused this error in addition to the version of SKiDL, python, and your OS. Thanks!

0reactions
devbismecommented, Nov 16, 2022

Perhaps the discussion tab of this repo is what you want?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Footprints not found pcbnew import · Issue #47 · devbisme/skidl
When I try to import the netlist into pcbnew (kicad 5.1.0) it gives errors saying it cannot find the footprints.
Read more >
Pcbnew not finding footprints - Software - KiCad.info Forums
I'm having trouble importing a netlist for one of my projects into Pcbnew. If load the netlist, everything looks fine (i.e. no errors/warnings) ......
Read more >
I can't add footprint to KICAD - SnapEDA
Thanks for your reply! To import a new footprint into KiCad you need to go to Tools > Open PcbNew, Click Preferences >...
Read more >
KiCAD beginner: "Footprint library not found" - EEVblog
If your libraries are not visible to Kicad, it means your library tables (one for schematics, one for layout) are either empty or...
Read more >
PCB Editor - KiCad Docs
means you did not install the standard footprint libraries with KiCad, ... netlist from the Schematic Editor and import it into the Board...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found