delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2020/09/07/20:48:08

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=date:from:to:subject:message-id:mail-followup-to:references
:mime-version:content-disposition:content-transfer-encoding
:in-reply-to:user-agent;
bh=vzt8dnR7Pv//tboTPlvHuDzCYaYZ5VBDqB8P1CN3zzI=;
b=awhqOpiAxTw5stKp8KvK48uHNxS2bHd8ptba/cFZRj1uyzPV2w3o9HHRx3z08fyU4O
n4mM2yKiw3if7PAeUwqXRlW5WqMayFUr4GqNCA33QAdYLsYdquJETcrWg2RgbSOCufq6
G7dgs6U3OHmEMcxJfnFLpGO1EYLNKYat85IzSkYFh/jNG7v2s95FErha3844b+/myquw
zG1L+hdF+pRS363CDanX/OiMEocW4A6NdnssMMDMoVEW6IIsz62tLUHUPUPR4HqoqEAD
0WS7BgYv69wJEtDYwZ1FmyPLQuzWx3s8HoMIdsUxbagNsp48AfMhKftldScViC+myYB3
z2ug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to
:references:mime-version:content-disposition
:content-transfer-encoding:in-reply-to:user-agent;
bh=vzt8dnR7Pv//tboTPlvHuDzCYaYZ5VBDqB8P1CN3zzI=;
b=N8g5OkJZnPCWyMDN0q2+KGYxloEsa+1JKUeiFKLv+jpIYs8Hj0IuMG8Xw7UfIPPByo
EQQLuZRTDf4wsQiGV0wdKR3RK0W3w6WdA+T/gfzNXL5kUPLbNbHPLI+WZQvkDwjTVLDF
QGa7zF9sxLV11jrMlmDi4VSlDmjrFHAxWz8wWsuJgqfeWf1x8R8SClBDzydr5kxrt34E
43pH3lxElDUomOdTAHyq2C3W5hsiOUOJqhS5Jg83g8ub+2T2gta1EvZflI1bxEOnJefC
dGHyoLonV4QhC5ALn3PS5AYiyTIbr4BYQeLPN/DZSnSw6LMwz2hclJTrayqw3rvlq2zO
zCmA==
X-Gm-Message-State: AOAM5325Lh4Y8HZz+WRCaFi+nJq+aVl1neNUASs1rHwSpCM/WrD504jT
D3XYnJ51AMhqk7f7aCBYoRFjlVCFm1Q=
X-Google-Smtp-Source: ABdhPJy0tA9fPJVumY6GxgJDkfld6bpxJ10sDy8rFvv1hORePFrvs89vd81D8LS2gaz+um4WtiYlcA==
X-Received: by 2002:a2e:3008:: with SMTP id w8mr12785780ljw.63.1599525249435;
Mon, 07 Sep 2020 17:34:09 -0700 (PDT)
Date: Tue, 8 Sep 2020 02:57:03 +0300
From: "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-help AT delorie DOT com]" <geda-help AT delorie DOT com>
To: geda-help AT delorie DOT com
Subject: Re: [geda-help] Linux
Message-ID: <20200907235703.GB27027@newvzh.lokolhoz>
Mail-Followup-To: geda-help AT delorie DOT com
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>
MIME-Version: 1.0
In-Reply-To: <CAMw9acBAMmbaS8dARYg3_+zU7=dHJPnoHLy=as4QD0_Z5UknoQ@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
Note-from-DJ: This may be spam
Reply-To: geda-help AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-help AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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=RESISTOR
> T 45400 45200 5 10 1 1 0 0 1
> refdes=R101
> T 45200 44900 5 10 1 0 0 0 1
> footprint=res_600mil
> }
> C 47600 47500 1 0 0 PICAXE-14M.sym
> {
> T 49500 47930 5 7 1 0 0 0 1
> footprint=DIP14                       *******
> T 47600 47500 5 10 1 0 0 0 1
> netname=Picaxe
> T 47600 47500 5 10 1 0 0 0 1
> refdes=P101
> }
> 
> 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 first 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=C0/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=' attrib inside of the 'picaxe' symbol
which value is really 'picaxe-3.lib'.  It's a real culprit.  If a
symbol has a 'source=' 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=' attribute inside it to make its footprint
appear in 'pcb'.

HTH

-- 
  Vladimir

(λ)επτόν EDA — https://github.com/lepton-eda

- Raw text -


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