delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2020/09/08/09:16:56

X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f
X-Recipient: geda-help AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=Xzh5ynpyOsQl/3pwSxdZiVJEO/4ICKLF2kHQtRWl13U=;
b=F62zHOrd0E09SWRIVjlub4FKLCNzG2M/KPmtNcU1TsagPjZMH7EqWI+Yb4sxmt65en
2Oo7VpVdxmG36M2kvKluM2fI109aw7mZa4imBPy2Qpbw5a0NZ1wmWfUjC1UOdHqHHSAc
ce/l0XlC94KeNiW2RUQt1eSvGgCPB1niA3NcZYatlSfscp05+JqS8lGE0RhvkU9opuLZ
TibsI6kZnQpJJ6XLggcUeX/BsagpLlWm/Zn48CZ5fLu02gOGH7afphI18aHP+ZGrq+GD
CXtoL/KAniBQtKCYXB1W4DDeNLees5232jCu7KRXbp3FLabgj2g63g1k+7eCDmryciGm
BeNw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=Xzh5ynpyOsQl/3pwSxdZiVJEO/4ICKLF2kHQtRWl13U=;
b=uggIsYa5ZH5avcpigaAjsW6xaI/dHotBHQqbb4WGqy/iGTGugTRezLIy3QNIUYfd0m
QX7Ln7MTCVWIUgA49cWWDhvbHPzB0o29bwnQ5zribAj8XN/3nqF26qPYbxgCIiyjZf3B
/ODCh9aVd8s2jJysX1QQ54r6KurRNZmiMqFv3bv5DE11Mq1+T4OAbL/qZsFqqxWre+HV
RLKZSj6I4fUDoJ+/WhxN7RNZZ4N7rogVCbf2/ZNZgRHmL8waclkiQlwjd0k9Ni3zU2lb
MsHwSFaffwHlMKU0Ynoza5BYwa24S75aNtRdeHuogopYzvH30bUC5Zd/UW1ivObl6VMK
dkVw==
X-Gm-Message-State: AOAM532IXd1AbPTLjmtqRd6WIVenu6biX7pzy9UPUTlMoi/rd+ZRi4Ek
QaSkHrXrAkZVAgADU8LRKUz6Hxy5lvVxWuyXVYrgpz9TGmmp7w==
X-Google-Smtp-Source: ABdhPJxYavWbt8QnFeEitdFZs8qBM0tFC5Qta91LGvpAcCeFH/LFDgMIdhaJc9UHoF5pysfyjziDvYfqT44TgYPnH1k=
X-Received: by 2002:a2e:5c09:: with SMTP id q9mr12571922ljb.423.1599570158851;
Tue, 08 Sep 2020 06:02:38 -0700 (PDT)
MIME-Version: 1.0
References: <20200903180123 DOT GC8483 AT newvzh DOT lokolhoz> <CAMw9acBsE7VnfY_fvkYFvb+4Xc+2Fuwss4FTCL5mjX=pXo6hpg AT mail DOT gmail DOT com>
<20200904135221 DOT GA3459 AT newvzh DOT lokolhoz> <CAMw9acCh+Vs0eRSDDC++d+dyoB8LeTx9nCMje4y5UBrXeuLx0g AT mail DOT gmail DOT com>
<20200904173022 DOT GB17868 AT newvzh DOT lokolhoz> <CAMw9acD8BiMANUCDtof18k9ieAtLKsymvEyHvOfC=mQWqS_R8A AT mail DOT gmail DOT com>
<CALT8Ef6qOof4-_X47DnAopygUB=Y6qF_WzPYdbrpVs3928MSVQ AT mail DOT gmail DOT com>
<CAMw9acCbZrTqmd0JpxSU6COpHzpM8+ppa=99Pn9Dx8pm+FZspw AT mail DOT gmail DOT com>
<20200905151631 DOT GC3300 AT newvzh DOT lokolhoz> <CAMw9acBAMmbaS8dARYg3_+zU7=dHJPnoHLy=as4QD0_Z5UknoQ AT mail DOT gmail DOT com>
<20200907235703 DOT GB27027 AT newvzh DOT lokolhoz>
In-Reply-To: <20200907235703.GB27027@newvzh.lokolhoz>
From: "Torben Friis (friistf AT gmail DOT com) [via geda-help AT delorie DOT com]" <geda-help AT delorie DOT com>
Date: Tue, 8 Sep 2020 15:02:26 +0200
Message-ID: <CAMw9acAd8K8S-HX3x9uM7VziL1RCbKOoLH0ZmrWp4X7gk7GqGw@mail.gmail.com>
Subject: Re: [geda-help] Linux
To: geda-help AT delorie DOT com
Reply-To: geda-help AT delorie DOT com

--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 &quot;source=3Dpicaxe-3.lib&quot; 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>] &lt;<a href=3D"mailto:geda-help AT delorie DOT com">geda-help AT delor=
ie.com</a>&gt; 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>
&gt; Hi Vladimir<br>
&gt; I am now running lepton, but I stille habe a problem.<br>
&gt; I have:<br>
&gt; /usr/share/lepton-eda/scheme/autoload/config-symbol-libraries.scm:<br>
&gt;=C2=A0 (&quot;torben&quot; &quot;Torben&quot;)<br>
&gt; <br>
&gt; and<br>
&gt; <br>
&gt; ls /usr/share/lepton-eda/sym/torben<br>
&gt; PICAXE-14M.sym<br>
&gt; <br>
&gt; and I run &quot;lepton-schematic giver.sch&quot; (with just two items:=
 PICAXE-14M and<br>
&gt; a resistor)<br>
&gt; <br>
&gt; then cat giver.sch gives:<br>
&gt; v 20200319 2<br>
&gt; C 40000 40000 0 0 0 title-B.sym<br>
&gt; C 45200 44900 1 0 0 resistor-1.sym<br>
&gt; {<br>
&gt; T 45500 45300 5 10 0 0 0 0 1<br>
&gt; device=3DRESISTOR<br>
&gt; T 45400 45200 5 10 1 1 0 0 1<br>
&gt; refdes=3DR101<br>
&gt; T 45200 44900 5 10 1 0 0 0 1<br>
&gt; footprint=3Dres_600mil<br>
&gt; }<br>
&gt; C 47600 47500 1 0 0 PICAXE-14M.sym<br>
&gt; {<br>
&gt; T 49500 47930 5 7 1 0 0 0 1<br>
&gt; 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>
&gt; T 47600 47500 5 10 1 0 0 0 1<br>
&gt; netname=3DPicaxe<br>
&gt; T 47600 47500 5 10 1 0 0 0 1<br>
&gt; refdes=3DP101<br>
&gt; }<br>
&gt; <br>
&gt; and<br>
&gt; <br>
&gt; ls ~/lepton-cli/pcb-elements<br>
&gt; 1x1PIN.fp=C2=A0 1x3PIN.fp=C2=A0 1x5PIN.fp=C2=A0 DIP14.fp=C2=A0 res_600=
mil.fp<br>
&gt; <br>
&gt; When I run &quot;lepton-refdes_renum --pgskip giver.sch&quot; and &quo=
t;lepton-sch2pcb<br>
&gt; project&quot; the Picaxe is not seen - only the resistor appears in th=
e pcb. I<br>
&gt; cant see why.<br>
&gt; Can you help?<br>
<br>
Next time you&#39;ll provide us with your schematics, please try to<br>
use `lepton-archive&#39; feeding it file names of your project :-)<br>
Otherwise it&#39;s not so easy to reconstruct your environment/project<br>
on some other one&#39;s system.<br>
<br>
OK, I&#39;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&#39;: 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&quot;.<br>
<br>
** (process:3795): CRITICAL **: 02:48:02.707: Source schematic of the compo=
nent (&quot;P101&quot;) has no port with &quot;refdes=3DC0/O3&quot;.<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>
&#39;picaxe&#39; symbol (you&#39;ve gotten it from &#39;geda-symbols&#39;, =
right?).<br>
I&#39;ve selected the symbol and did &#39;e e&#39; to open the attribute ed=
it<br>
dialog for it.=C2=A0 If you enable showing of inherited attributes,<br>
you&#39;ll see it has a &#39;source=3D&#39; attrib inside of the &#39;picax=
e&#39; symbol<br>
which value is really &#39;picaxe-3.lib&#39;.=C2=A0 It&#39;s a real culprit=
.=C2=A0 If a<br>
symbol has a &#39;source=3D&#39; attribute, it is considered a subschematic=
<br>
symbol and doesn&#39;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 &#39;picaxe&#39; symbol<b=
r>
and delete the &#39;source=3D&#39; attribute inside it to make its footprin=
t<br>
appear in &#39;pcb&#39;.<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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019