John Luciani wrote:
On 9/28/06, Jeff VR <[EMAIL PROTECTED]> wrote:
When I use the newlib type footprint, TSSOP-65P-640L1-20N, Luciani made
to my 74HC245 schematic symbol I have problems generating a netlist
and pcb.
I've been working with this problem for a couple of days trying to find
out why this element is being treated as an M4 footprint. Based on the
error message this is what I believe is happening. When I run gsch2pcb
it generates the following error: "stdin:58: /usr/bin/m4: Bad expression
in eval: /2". If I let it keep running it will eventually print to the
console "/bin/sh: line 1: 21526 Killed /usr/bin/m4 -d -I.
-I/usr/share/pcb/m4 -I /etc/pcb -I$HOME/.pcb -I.
/usr/share/pcb/m4/common.m4 - >> caspian.pcb" before finishing the rest
of the schematic.
I'm looking for some help in debugging this problem. Is there an
intermediate step I can run to try and figure out if the problem is with
the footprint or my schematic? What triggers the m4 library to kick in?
Are you sure that the footprint attribute is not misspelled in your
schematic?
You could try creating a schematic with a single HC245 with the footprint
attribute set to TSSOP-65P-640L1-20N and run the command ---
gsch2pcb --elements-dir ~/projects/gaf/pcb-elements/luciani
TEST_SCH_NAME.sch
(* jcl *)
When I created the test schematic I had the same problem. However this
time I also added the original 74HCT245-1.sym from the gEDA symbol
library and assigned the desired TSSOP.. footprint from Luciani and it
worked fine! So the problem is in my modified version of the
74HCT245-1.sym. I modified the original version of the symbol so that I
had the power and GND pins on the symbol rather than defaulting to the
nets defined in the symbol. I also moved some pins around and deleted
the default footprint of DIP. Thinking that every symbol must have a
default footprint I assigned the default to the desired TSSOP... and it
still failed.:) I did a difference between the original and my version
and I don't see anything obvious. I ran gsymfix.pl which modified it
but didn't fix the problem.
So at least we have it narrowed down to the symbol. So what could be
wrong with my symbol that would cause an M4 error?
Note:
I attached my modified version of the 74HCT245-1.sym.
Thanks for the help,
Jeff
v 20060123 1
T 1700 3300 8 10 1 1 0 6 1
refdes=U?
T 300 3450 5 10 0 0 0 0 1
device=74HCT245
P 0 2900 300 2900 1 0 0
{
T 200 2950 5 8 1 1 0 6 1
pinnumber=1
T 200 2850 5 8 0 1 0 8 1
pinseq=1
T 350 2900 9 8 1 1 0 0 1
pinlabel=DIR
T 350 2900 5 8 0 1 0 2 1
pintype=in
}
P 0 2600 300 2600 1 0 0
{
T 200 2650 5 8 1 1 0 6 1
pinnumber=2
T 200 2550 5 8 0 1 0 8 1
pinseq=2
T 350 2600 9 8 1 1 0 0 1
pinlabel=A1
T 350 2600 5 8 0 1 0 2 1
pintype=tri
}
P 0 2300 300 2300 1 0 0
{
T 200 2350 5 8 1 1 0 6 1
pinnumber=3
T 200 2250 5 8 0 1 0 8 1
pinseq=3
T 350 2300 9 8 1 1 0 0 1
pinlabel=A2
T 350 2300 5 8 0 1 0 2 1
pintype=tri
}
P 0 2000 300 2000 1 0 0
{
T 200 2050 5 8 1 1 0 6 1
pinnumber=4
T 200 1950 5 8 0 1 0 8 1
pinseq=4
T 350 2000 9 8 1 1 0 0 1
pinlabel=A3
T 350 2000 5 8 0 1 0 2 1
pintype=tri
}
P 0 1700 300 1700 1 0 0
{
T 200 1750 5 8 1 1 0 6 1
pinnumber=5
T 200 1650 5 8 0 1 0 8 1
pinseq=5
T 350 1700 9 8 1 1 0 0 1
pinlabel=A4
T 350 1700 5 8 0 1 0 2 1
pintype=tri
}
P 0 1400 300 1400 1 0 0
{
T 200 1450 5 8 1 1 0 6 1
pinnumber=6
T 200 1350 5 8 0 1 0 8 1
pinseq=6
T 350 1400 9 8 1 1 0 0 1
pinlabel=A5
T 350 1400 5 8 0 1 0 2 1
pintype=tri
}
P 0 1100 300 1100 1 0 0
{
T 200 1150 5 8 1 1 0 6 1
pinnumber=7
T 200 1050 5 8 0 1 0 8 1
pinseq=7
T 350 1100 9 8 1 1 0 0 1
pinlabel=A6
T 350 1100 5 8 0 1 0 2 1
pintype=tri
}
P 0 800 300 800 1 0 0
{
T 200 850 5 8 1 1 0 6 1
pinnumber=8
T 200 750 5 8 0 1 0 8 1
pinseq=8
T 350 800 9 8 1 1 0 0 1
pinlabel=A7
T 350 800 5 8 0 1 0 2 1
pintype=tri
}
P 0 500 300 500 1 0 0
{
T 200 550 5 8 1 1 0 6 1
pinnumber=9
T 200 450 5 8 0 1 0 8 1
pinseq=9
T 350 500 9 8 1 1 0 0 1
pinlabel=A8
T 350 500 5 8 0 1 0 2 1
pintype=tri
}
V 1750 2600 50 6 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
P 2000 2600 1800 2600 1 0 0
{
T 1800 2750 5 8 1 1 180 6 1
pinnumber=19
T 1800 2650 5 8 0 1 180 8 1
pinseq=10
T 1650 2600 9 8 1 1 180 0 1
pinlabel=ENABLE
T 1650 2600 5 8 0 1 180 2 1
pintype=in
}
P 1700 2300 2000 2300 1 0 1
{
T 1800 2350 5 8 1 1 0 0 1
pinnumber=18
T 1800 2250 5 8 0 1 0 2 1
pinseq=11
T 1650 2300 9 8 1 1 0 6 1
pinlabel=B0
T 1650 2300 5 8 0 1 0 8 1
pintype=tri
}
P 1700 2000 2000 2000 1 0 1
{
T 1800 2050 5 8 1 1 0 0 1
pinnumber=17
T 1800 1950 5 8 0 1 0 2 1
pinseq=12
T 1650 2000 9 8 1 1 0 6 1
pinlabel=B1
T 1650 2000 5 8 0 1 0 8 1
pintype=tri
}
P 1700 1700 2000 1700 1 0 1
{
T 1800 1750 5 8 1 1 0 0 1
pinnumber=16
T 1800 1650 5 8 0 1 0 2 1
pinseq=13
T 1650 1700 9 8 1 1 0 6 1
pinlabel=B2
T 1650 1700 5 8 0 1 0 8 1
pintype=tri
}
P 1700 1400 2000 1400 1 0 1
{
T 1800 1450 5 8 1 1 0 0 1
pinnumber=15
T 1800 1350 5 8 0 1 0 2 1
pinseq=14
T 1650 1400 9 8 1 1 0 6 1
pinlabel=B3
T 1650 1400 5 8 0 1 0 8 1
pintype=tri
}
P 1700 1100 2000 1100 1 0 1
{
T 1800 1150 5 8 1 1 0 0 1
pinnumber=14
T 1800 1050 5 8 0 1 0 2 1
pinseq=15
T 1650 1100 9 8 1 1 0 6 1
pinlabel=B4
T 1650 1100 5 8 0 1 0 8 1
pintype=tri
}
P 1700 800 2000 800 1 0 1
{
T 1800 850 5 8 1 1 0 0 1
pinnumber=13
T 1800 750 5 8 0 1 0 2 1
pinseq=16
T 1650 800 9 8 1 1 0 6 1
pinlabel=B5
T 1650 800 5 8 0 1 0 8 1
pintype=tri
}
P 1700 500 2000 500 1 0 1
{
T 1800 550 5 8 1 1 0 0 1
pinnumber=12
T 1800 450 5 8 0 1 0 2 1
pinseq=17
T 1650 500 9 8 1 1 0 6 1
pinlabel=B6
T 1650 500 5 8 0 1 0 8 1
pintype=tri
}
P 1700 200 2000 200 1 0 1
{
T 1800 250 5 8 1 1 0 0 1
pinnumber=11
T 1800 150 5 8 0 1 0 2 1
pinseq=18
T 1650 200 9 8 1 1 0 6 1
pinlabel=B7
T 1650 200 5 8 0 1 0 8 1
pintype=tri
}
B 300 0 1400 3200 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
T 300 3850 5 10 0 0 0 0 1
description=8 bit bus transceiver
L 950 2625 1575 2625 3 0 0 0 -1 -1
T 300 4050 5 10 0 0 0 0 1
numslots=0
T 300 3240 9 10 1 0 0 0 1
74HCT245
T 300 4250 5 10 0 0 0 0 1
documentation=http://www-s.ti.com/sc/ds/sn74hct245.pdf
P 2000 2900 1700 2900 1 0 0
{
T 1800 3050 5 8 1 1 180 6 1
pinnumber=20
T 1800 2950 5 8 0 1 180 8 1
pinseq=19
T 1650 2900 9 8 1 1 180 0 1
pinlabel=Vcc
T 1650 2900 5 8 0 1 180 2 1
pintype=pwr
}
P 0 200 300 200 1 0 0
{
T 200 250 5 8 1 1 0 6 1
pinnumber=10
T 200 150 5 8 0 1 0 8 1
pinseq=20
T 350 200 9 8 1 1 0 0 1
pinlabel=GND
T 350 200 5 8 0 1 0 2 1
pintype=pwr
}
_______________________________________________
geda-user mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user