Closed tbaumann closed 3 months ago
For anyone curious about the nix shell
shell.nix
let
pkgs = import <nixpkgs> {};
in pkgs.mkShell {
packages = [
(pkgs.python3.withPackages (python-pkgs: [
python-pkgs.kicad
python-pkgs.wxPython_4_2
]))
];
}
use this: typematrix-2020-lookalike-with-small-enters.2.json
when using full net names as key annotations, those names must match the names in kicad_pcb
file - you used R0,C0
names in json but layout2schematic
uses ROW0,COL0
. you can use number only annotations (that's what I did) so the prefix is ignored.
Thanks. Did I use it wrong or does layout2schematic
just use a different annotation format?
If so it's thankfully reasonably easy to convert with search and replace :D
You used it right, layout2schematic could be improved. For similar workflow (layout2schematic + kbplacer all in commandline & docker) see this: https://github.com/adamws/kicad-kbplacer/blob/ea819bd15446864aa57544bc830d6244865cceae/examples/absolem-ergogen/Dockerfile#L72
Thanks, I will use something like that.
PS: If I may ask, there seems to be an annotation format that includes a whole range of things like footprints if I understand the option --create-from-annotated-layout
how do I use that one right?
for example:
python3 -m kbplacer -b keyboard.kicad_pcb -l kle-annotated.json --route-switches-with-diodes --route-rows-and-columns \
--diode D{} CUSTOM 0 4.5 0 BACK --create-from-annotated-layout \
--switch-footprint /home/aws/git/kicad-kbplacer/tests/data/footprints/tests.pretty:SW_Cherry_MX_PCB_1.00u \
--diode-footprint /home/aws/git/kicad-kbplacer/tests/data/footprints/tests.pretty:D_SOD-323F
this will create new kicad_pcb
file.
Ah thanks for the syntax of --*-footprint
I was wondering about that actually.
Perhaps I misunderstood --create-from-annotated-layout
I thought it derives the footprint info out of KLE annotations.
Describe the bug
The KiCad plugin crashes and leaves me without a lot of usable information about what happened. So I thought I try the CLI version.
I didn't want to build my Matrix by hand so I annotated my KLE with the column and row positions and used
tools/layout2schematic.py
to generate the schematic.Additional context Annotated KLE file typematrix-2020-lookalike-with-small-enters(2).json
KiCad Project typematrix monolyth.tar.gz
I did see that the plugin created a
kbplacer.log
log file which contains the same error. So that's good to know.KiCad version info