gEDA-dev: [Filtered!] Strange results running gsch2pcb on the
attached file.....
Peter Clifton
pcjc2 at cam.ac.uk
Fri Sep 8 10:42:46 EDT 2006
> > > I'm using:
> > >
> > > gsch2pcb -o untitled-1 test-1.sch
> > >
> > > Consistently... the component "R2" gets output in PCB with name "5511".
> >
> > Does R3 also get named "5511" or is it just R2?
> >
> > I do not have the footprints for "ACY300" so I changed the R2 and R3 footprints
> > for "0805" and R2 and R3 were named "unknown". If ACY300 is generated using
> > m4 you may want to check the macro code.
>
> Executing the attached trouble.m4 reproduces the problem with this
> command:
>
> m4 -I /usr/local/share/pcb/m4 /usr/local/share/pcb/m4/common.m4
> trouble.m4
>
> BUT: If I remove the first line, the "PKG_0805(`0805',`R4',`unknown')",
> it goes away... how odd!
Ok... the smt.inc macro: PKG_SMT_2PAD_MM100
has the following lines:
define(`R1', `eval(($9 * 10000)/254)')
define(`R2', `eval(($10 * 10000)/254)')
(and others)... presumably this means that the term R2 and R1 are
becoming expandable macros, hence confusing the heck out of any later
macro which uses that name.
I guess it might be a string escaping problem in the ACY macros, or
something wrong with PKG_SMT_2PAD_MM100, in that it should keep its
define's local.
Does anyone who actually knows M4 want to step in and help here... I'm
learning it as I go!
Regards
Peter Clifton
More information about the geda-dev
mailing list