Moin
First of all nice work with the board and it's also cool to finally see you trying kicad.
TitanMKD has just discovered a minor 'bug' in the Kicad Part library from http://dangerous-prototypes-open-hardwa ... rt_Library .
When loading the eeschema lib in stable we both got a bunch of errors starting with :
<undefined DRAW command #> occured at line 9368
When I tried with testing I got :
Library <dp_devices> component load error error <field 1 does not have the correct number of parameters> occurred at line 131
After some cross debugging via IRC using the stable (BZR rev. 3256) and the latest unstable (BZR rev. 3718) versions of kicad I could narrow the problems down to 2 things :
First Problem:
Some versions of kicad don't like #-line comments between then DRAW and the ENDDRAW command.
For example this snippet (line 9348 to 9425) in the original dp_devices.lib :
#
# Dev Name: RESISTOR_ARRAY_8
# Package Name: CAT16-F8/CAT16-J8
# Dev Tech: ''
# Dev Prefix: RN
# Gate count = 8
#
DEF RESISTOR_ARRAY_8 RN 0 40 N N 8 L N
# Gate Name: A
# Symbol Name: RESISTOR
F0 "RN" -150 59 50 H V L B
F1 "RESISTOR_ARRAY_8" -150 -130 50 H V L B
F2 "dp_devices-CAT16-F8/CAT16-J8" 0 150 50 H I C C
DRAW
P 2 1 0 0 -100 -35 100 -35
P 2 1 0 0 100 35 -100 35
P 2 1 0 0 100 -35 100 35
P 2 1 0 0 -100 -35 -100 35
X 1 1 -200 0 100 R 40 40 1 1 P
X 2 16 200 0 100 L 40 40 1 1 P
# Gate Name: B
# Symbol Name: RESISTOR
P 2 2 0 0 -100 -35 100 -35
P 2 2 0 0 100 35 -100 35
P 2 2 0 0 100 -35 100 35
P 2 2 0 0 -100 -35 -100 35
X 1 2 -200 0 100 R 40 40 2 1 P
X 2 15 200 0 100 L 40 40 2 1 P
# Gate Name: C
# Symbol Name: RESISTOR
P 2 3 0 0 -100 -35 100 -35
P 2 3 0 0 100 35 -100 35
P 2 3 0 0 100 -35 100 35
P 2 3 0 0 -100 -35 -100 35
X 1 3 -200 0 100 R 40 40 3 1 P
X 2 14 200 0 100 L 40 40 3 1 P
# Gate Name: D
# Symbol Name: RESISTOR
P 2 4 0 0 -100 -35 100 -35
P 2 4 0 0 100 35 -100 35
P 2 4 0 0 100 -35 100 35
P 2 4 0 0 -100 -35 -100 35
X 1 4 -200 0 100 R 40 40 4 1 P
X 2 13 200 0 100 L 40 40 4 1 P
# Gate Name: E
# Symbol Name: RESISTOR
P 2 5 0 0 -100 -35 100 -35
P 2 5 0 0 100 35 -100 35
P 2 5 0 0 100 -35 100 35
P 2 5 0 0 -100 -35 -100 35
X 1 5 -200 0 100 R 40 40 5 1 P
X 2 12 200 0 100 L 40 40 5 1 P
# Gate Name: F
# Symbol Name: RESISTOR
P 2 6 0 0 -100 -35 100 -35
P 2 6 0 0 100 35 -100 35
P 2 6 0 0 100 -35 100 35
P 2 6 0 0 -100 -35 -100 35
X 1 6 -200 0 100 R 40 40 6 1 P
X 2 11 200 0 100 L 40 40 6 1 P
# Gate Name: G
# Symbol Name: RESISTOR
P 2 7 0 0 -100 -35 100 -35
P 2 7 0 0 100 35 -100 35
P 2 7 0 0 100 -35 100 35
P 2 7 0 0 -100 -35 -100 35
X 1 7 -200 0 100 R 40 40 7 1 P
X 2 10 200 0 100 L 40 40 7 1 P
# Gate Name: H
# Symbol Name: RESISTOR
P 2 8 0 0 -100 -35 100 -35
P 2 8 0 0 100 35 -100 35
P 2 8 0 0 100 -35 100 35
P 2 8 0 0 -100 -35 -100 35
X 1 8 -200 0 100 R 40 40 8 1 P
X 2 9 200 0 100 L 40 40 8 1 P
ENDDRAW
ENDDEF
Should actually look like this :
#
# Dev Name: RESISTOR_ARRAY_8
# Package Name: CAT16-F8/CAT16-J8
# Dev Tech: ''
# Dev Prefix: RN
# Gate count = 8
#
DEF RESISTOR_ARRAY_8 RN 0 40 N N 8 L N
# Gate Name: A
# Symbol Name: RESISTOR
F0 "RN" -150 59 50 H V L B
F1 "RESISTOR_ARRAY_8" -150 -130 50 H V L B
F2 "dp_devices-CAT16-F8/CAT16-J8" 0 150 50 H I C C
DRAW
P 2 1 0 0 -100 -35 100 -35
P 2 1 0 0 100 35 -100 35
P 2 1 0 0 100 -35 100 35
P 2 1 0 0 -100 -35 -100 35
X 1 1 -200 0 100 R 40 40 1 1 P
X 2 16 200 0 100 L 40 40 1 1 P
P 2 2 0 0 -100 -35 100 -35
P 2 2 0 0 100 35 -100 35
P 2 2 0 0 100 -35 100 35
P 2 2 0 0 -100 -35 -100 35
X 1 2 -200 0 100 R 40 40 2 1 P
X 2 15 200 0 100 L 40 40 2 1 P
P 2 3 0 0 -100 -35 100 -35
P 2 3 0 0 100 35 -100 35
P 2 3 0 0 100 -35 100 35
P 2 3 0 0 -100 -35 -100 35
X 1 3 -200 0 100 R 40 40 3 1 P
X 2 14 200 0 100 L 40 40 3 1 P
P 2 4 0 0 -100 -35 100 -35
P 2 4 0 0 100 35 -100 35
P 2 4 0 0 100 -35 100 35
P 2 4 0 0 -100 -35 -100 35
X 1 4 -200 0 100 R 40 40 4 1 P
X 2 13 200 0 100 L 40 40 4 1 P
P 2 5 0 0 -100 -35 100 -35
P 2 5 0 0 100 35 -100 35
P 2 5 0 0 100 -35 100 35
P 2 5 0 0 -100 -35 -100 35
X 1 5 -200 0 100 R 40 40 5 1 P
X 2 12 200 0 100 L 40 40 5 1 P
P 2 6 0 0 -100 -35 100 -35
P 2 6 0 0 100 35 -100 35
P 2 6 0 0 100 -35 100 35
P 2 6 0 0 -100 -35 -100 35
X 1 6 -200 0 100 R 40 40 6 1 P
X 2 11 200 0 100 L 40 40 6 1 P
P 2 7 0 0 -100 -35 100 -35
P 2 7 0 0 100 35 -100 35
P 2 7 0 0 100 -35 100 35
P 2 7 0 0 -100 -35 -100 35
X 1 7 -200 0 100 R 40 40 7 1 P
X 2 10 200 0 100 L 40 40 7 1 P
P 2 8 0 0 -100 -35 100 -35
P 2 8 0 0 100 35 -100 35
P 2 8 0 0 100 -35 100 35
P 2 8 0 0 -100 -35 -100 35
X 1 8 -200 0 100 R 40 40 8 1 P
X 2 9 200 0 100 L 40 40 8 1 P
ENDDRAW
ENDDEF
After a quick sed -i '/^#/d' dp_devices.lib it worked fine in the stable version (3625), but had other errors in testing.
Second Problem:
Since testing was still complaining about line 131 (which became now line 75 due to deleting comments), I took a closer look at the parameters.
The F1 call is supposed to have 8 parameters as far I can tell from editing kicadlibs in vim.
F1 "CAPACITOR_NPOL-PTH_0.1"" 100 100 50 H V L B
It has 8 parameters here as well, but there is a double "" at the end of the string, leading the parser to think that there were only 2 strings given.
Modifying the line to :
F1 "CAPACITOR_NPOL-PTH_0.1" 100 100 50 H V L B
Did solve this.
I'm not sure whether it is possible to escape " characters there, so the best is possibly to use a double ' instead.
I've uploaded the version with both problems fixed here : http://www.sebastians-site.de/homepage/ ... evices.lib
It's a nice library and I'm looking forward to use it (especially the SOB pcb outlines).
Sebastian