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> <20200904135221 DOT GA3459 AT newvzh DOT lokolhoz> <20200904173022 DOT GB17868 AT newvzh DOT lokolhoz> <20200905151631 DOT GC3300 AT newvzh DOT lokolhoz> <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]" Date: Tue, 8 Sep 2020 15:02:26 +0200 Message-ID: Subject: Re: [geda-help] Linux To: geda-help AT delorie DOT com Content-Type: multipart/alternative; boundary="0000000000001c9b5205aeccf3f8" 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] 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
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 (vzhbano= v AT gmail DOT com) [via geda-help AT de= lorie.com] <geda-help AT delor= ie.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:
>=C2=A0 ("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=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*******
> 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=C2=A0 1x3PIN.fp=C2=A0 1x5PIN.fp=C2=A0 DIP14.fp=C2=A0 res_600= mil.fp
>
> When I run "lepton-refdes_renum --pgskip giver.sch" and &quo= t;lepton-sch2pcb
> project" the Picaxe is not seen - only the resistor appears in th= e 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.=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:

~/giver $ lepton-netlist -g PCB giver.sch

** (process:3795): CRITICAL **: 02:48:02.707: Failed to load subcircuit &qu= ot;picaxe-3.lib".

** (process:3795): CRITICAL **: 02:48:02.707: Source schematic of the compo= nent ("P101") has no port with "refdes=3DC0/O3".
...

Hmm... For some reason the netlister considers your component to
be a subschematic (!).=C2=A0 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 ed= it
dialog for it.=C2=A0 If you enable showing of inherited attributes,
you'll see it has a 'source=3D' attrib inside of the 'picax= e' symbol
which value is really 'picaxe-3.lib'.=C2=A0 It's a real culprit= .=C2=A0 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 footprin= t
appear in 'pcb'.

HTH

--
=C2=A0 Vladimir

(=CE=BB)=CE=B5=CF=80=CF=84=CF=8C=CE=BD EDA =E2=80=94 https://github.com= /lepton-eda
--0000000000001c9b5205aeccf3f8--