Mail Archives: geda-help/2020/09/08/09:16:56
--0000000000001c9b5205aeccf3f8
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hi Vladimir,
Actually PICAXE-14M.sym contained "source=3Dpicaxe-3.lib" which I deleted. =
I
think that I am OK now.
Thank you for your help.
torben
On Tue, Sep 8, 2020 at 2:58 AM Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via
geda-help AT delorie DOT com] <geda-help AT delorie DOT com> wrote:
> Hi Torben,
>
> On Mon, Sep 07, 2020 at 07:51:07PM +0200, Torben Friis (friistf AT gmail DOT com=
)
> [via geda-help AT delorie DOT com] wrote:
> > Hi Vladimir
> > I am now running lepton, but I stille habe a problem.
> > I have:
> > /usr/share/lepton-eda/scheme/autoload/config-symbol-libraries.scm:
> > ("torben" "Torben")
> >
> > and
> >
> > ls /usr/share/lepton-eda/sym/torben
> > PICAXE-14M.sym
> >
> > and I run "lepton-schematic giver.sch" (with just two items: PICAXE-14M
> and
> > a resistor)
> >
> > then cat giver.sch gives:
> > v 20200319 2
> > C 40000 40000 0 0 0 title-B.sym
> > C 45200 44900 1 0 0 resistor-1.sym
> > {
> > T 45500 45300 5 10 0 0 0 0 1
> > device=3DRESISTOR
> > T 45400 45200 5 10 1 1 0 0 1
> > refdes=3DR101
> > T 45200 44900 5 10 1 0 0 0 1
> > footprint=3Dres_600mil
> > }
> > C 47600 47500 1 0 0 PICAXE-14M.sym
> > {
> > T 49500 47930 5 7 1 0 0 0 1
> > footprint=3DDIP14 *******
> > T 47600 47500 5 10 1 0 0 0 1
> > netname=3DPicaxe
> > T 47600 47500 5 10 1 0 0 0 1
> > refdes=3DP101
> > }
> >
> > and
> >
> > ls ~/lepton-cli/pcb-elements
> > 1x1PIN.fp 1x3PIN.fp 1x5PIN.fp DIP14.fp res_600mil.fp
> >
> > When I run "lepton-refdes_renum --pgskip giver.sch" and "lepton-sch2pcb
> > project" the Picaxe is not seen - only the resistor appears in the pcb.=
I
> > cant see why.
> > Can you help?
>
> Next time you'll provide us with your schematics, please try to
> use `lepton-archive' feeding it file names of your project :-)
> Otherwise it's not so easy to reconstruct your environment/project
> on some other one's system.
>
> OK, I've did that and found that your example really gives wrong
> results. In a nutshell, lepton-sch2pcb uses several netlist backends
> especially crafted for `pcb': pcbpins, PCB, probably some others. So fir=
st
> I did was:
>
> ~/giver $ lepton-netlist -g PCB giver.sch
>
> ** (process:3795): CRITICAL **: 02:48:02.707: Failed to load subcircuit
> "picaxe-3.lib".
>
> ** (process:3795): CRITICAL **: 02:48:02.707: Source schematic of the
> component ("P101") has no port with "refdes=3DC0/O3".
> ...
>
> Hmm... For some reason the netlister considers your component to
> be a subschematic (!). OK, the next step is to open your
> schematic in lepton-schematic and see the attributes of the
> 'picaxe' symbol (you've gotten it from 'geda-symbols', right?).
> I've selected the symbol and did 'e e' to open the attribute edit
> dialog for it. If you enable showing of inherited attributes,
> you'll see it has a 'source=3D' attrib inside of the 'picaxe' symbol
> which value is really 'picaxe-3.lib'. It's a real culprit. If a
> symbol has a 'source=3D' attribute, it is considered a subschematic
> symbol and doesn't go to the resulting netlist (by default, if
> hierarchical processing is not disabled in your configuration).
>
> So, the first thing you have to do is to edit the 'picaxe' symbol
> and delete the 'source=3D' attribute inside it to make its footprint
> appear in 'pcb'.
>
> HTH
>
> --
> Vladimir
>
> (=CE=BB)=CE=B5=CF=80=CF=84=CF=8C=CE=BD EDA =E2=80=94 https://github.com/l=
epton-eda
>
--0000000000001c9b5205aeccf3f8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif;font-size:large">Hi Vladimir,<br>Actually PICAXE-14M.sym=
contained "source=3Dpicaxe-3.lib" which I deleted. I think that =
I am OK now.<br>Thank you for your help.<br>torben</div></div><br><div clas=
s=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Sep 8, 2020=
at 2:58 AM Vladimir Zhbanov (<a href=3D"mailto:vzhbanov AT gmail DOT com">vzhbano=
v AT gmail DOT com</a>) [via <a href=3D"mailto:geda-help AT delorie DOT com">geda-help AT de=
lorie.com</a>] <<a href=3D"mailto:geda-help AT delorie DOT com">geda-help AT delor=
ie.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left=
:1ex">Hi Torben,<br>
<br>
On Mon, Sep 07, 2020 at 07:51:07PM +0200, Torben Friis (<a href=3D"mailto:f=
riistf AT gmail DOT com" target=3D"_blank">friistf AT gmail DOT com</a>) [via <a href=3D"=
mailto:geda-help AT delorie DOT com" target=3D"_blank">geda-help AT delorie DOT com</a>] =
wrote:<br>
> Hi Vladimir<br>
> I am now running lepton, but I stille habe a problem.<br>
> I have:<br>
> /usr/share/lepton-eda/scheme/autoload/config-symbol-libraries.scm:<br>
>=C2=A0 ("torben" "Torben")<br>
> <br>
> and<br>
> <br>
> ls /usr/share/lepton-eda/sym/torben<br>
> PICAXE-14M.sym<br>
> <br>
> and I run "lepton-schematic giver.sch" (with just two items:=
PICAXE-14M and<br>
> a resistor)<br>
> <br>
> then cat giver.sch gives:<br>
> v 20200319 2<br>
> C 40000 40000 0 0 0 title-B.sym<br>
> C 45200 44900 1 0 0 resistor-1.sym<br>
> {<br>
> T 45500 45300 5 10 0 0 0 0 1<br>
> device=3DRESISTOR<br>
> T 45400 45200 5 10 1 1 0 0 1<br>
> refdes=3DR101<br>
> T 45200 44900 5 10 1 0 0 0 1<br>
> footprint=3Dres_600mil<br>
> }<br>
> C 47600 47500 1 0 0 PICAXE-14M.sym<br>
> {<br>
> T 49500 47930 5 7 1 0 0 0 1<br>
> footprint=3DDIP14=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*******<br>
> T 47600 47500 5 10 1 0 0 0 1<br>
> netname=3DPicaxe<br>
> T 47600 47500 5 10 1 0 0 0 1<br>
> refdes=3DP101<br>
> }<br>
> <br>
> and<br>
> <br>
> ls ~/lepton-cli/pcb-elements<br>
> 1x1PIN.fp=C2=A0 1x3PIN.fp=C2=A0 1x5PIN.fp=C2=A0 DIP14.fp=C2=A0 res_600=
mil.fp<br>
> <br>
> When I run "lepton-refdes_renum --pgskip giver.sch" and &quo=
t;lepton-sch2pcb<br>
> project" the Picaxe is not seen - only the resistor appears in th=
e pcb. I<br>
> cant see why.<br>
> Can you help?<br>
<br>
Next time you'll provide us with your schematics, please try to<br>
use `lepton-archive' feeding it file names of your project :-)<br>
Otherwise it's not so easy to reconstruct your environment/project<br>
on some other one's system.<br>
<br>
OK, I've did that and found that your example really gives wrong<br>
results.=C2=A0 In a nutshell, lepton-sch2pcb uses several netlist backends =
especially crafted for `pcb': pcbpins, PCB, probably some others.=C2=A0=
So first I did was:<br>
<br>
~/giver $ lepton-netlist -g PCB giver.sch<br>
<br>
** (process:3795): CRITICAL **: 02:48:02.707: Failed to load subcircuit &qu=
ot;picaxe-3.lib".<br>
<br>
** (process:3795): CRITICAL **: 02:48:02.707: Source schematic of the compo=
nent ("P101") has no port with "refdes=3DC0/O3".<br>
...<br>
<br>
Hmm... For some reason the netlister considers your component to<br>
be a subschematic (!).=C2=A0 OK, the next step is to open your<br>
schematic in lepton-schematic and see the attributes of the<br>
'picaxe' symbol (you've gotten it from 'geda-symbols', =
right?).<br>
I've selected the symbol and did 'e e' to open the attribute ed=
it<br>
dialog for it.=C2=A0 If you enable showing of inherited attributes,<br>
you'll see it has a 'source=3D' attrib inside of the 'picax=
e' symbol<br>
which value is really 'picaxe-3.lib'.=C2=A0 It's a real culprit=
.=C2=A0 If a<br>
symbol has a 'source=3D' attribute, it is considered a subschematic=
<br>
symbol and doesn't go to the resulting netlist (by default, if<br>
hierarchical processing is not disabled in your configuration).<br>
<br>
So, the first thing you have to do is to edit the 'picaxe' symbol<b=
r>
and delete the 'source=3D' attribute inside it to make its footprin=
t<br>
appear in 'pcb'.<br>
<br>
HTH<br>
<br>
-- <br>
=C2=A0 Vladimir<br>
<br>
(=CE=BB)=CE=B5=CF=80=CF=84=CF=8C=CE=BD EDA =E2=80=94 <a href=3D"https://git=
hub.com/lepton-eda" rel=3D"noreferrer" target=3D"_blank">https://github.com=
/lepton-eda</a><br>
</blockquote></div>
--0000000000001c9b5205aeccf3f8--
- Raw text -