Outils pour utilisateurs

Outils du site


ergodox

Ceci est une ancienne révision du document !


Ergodox

(D'autres photos : Galerie)

Flasher le firmware

J'ai tout d'abord essayé avec le firmware “tmk” mais je n'ai jamais réussi à avoir quelque chose de fonctionnel. Le firmware est apparemment envoyé sur le clavier mais pas une touche ne marche.

Pour mémoire:

Cliquez pour afficher ⇲

Cliquez pour masquer ⇱

simon@deb:~/Programmes$ git clone https://github.com/cub-uanic/tmk_keyboard.git

Cliquez pour afficher ⇲

Cliquez pour masquer ⇱

Clonage dans 'tmk_keyboard'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 17079 (delta 0), reused 0 (delta 0), pack-reused 17078
Réception d'objets: 100% (17079/17079), 22.31 MiB | 3.12 MiB/s, fait.
Résolution des deltas: 100% (10038/10038), fait.
simon@deb:~/Programmes$ cd tmk_keyboard/keyboard/ergodox/
simon@deb:~/Programmes/tmk_keyboard/keyboard/ergodox$ make -f Makefile.lufa clean

Cliquez pour afficher ⇲

Cliquez pour masquer ⇱

simon@deb:~/Programmes/tmk_keyboard/keyboard/ergodox$ make -f Makefile.lufa
 
-------- begin --------
avr-gcc (GCC) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
(...)
 
 
Creating load file for Flash: ergodox_lufa.hex
avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock -R .signature ergodox_lufa.elf ergodox_lufa.hex
 
Creating load file for EEPROM: ergodox_lufa.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 --no-change-warnings -O ihex ergodox_lufa.elf ergodox_lufa.eep || exit 0
 
Creating Extended Listing: ergodox_lufa.lss
avr-objdump -h -S -z ergodox_lufa.elf > ergodox_lufa.lss
 
Creating Symbol Table: ergodox_lufa.sym
avr-nm -n ergodox_lufa.elf > ergodox_lufa.sym
 
Size after:
   text	   data	    bss	    dec	    hex	filename
  23404	     58	    314	  23776	   5ce0	ergodox_lufa.elf

Vérification du MCU (voir pjrc.com) :

simon@deb:~/Programmes/tmk_keyboard/keyboard/ergodox$ cat Makefile.lufa | grep MCU
# MCU name, you MUST set this to match the board you are using
MCU = atmega32u4
#MCU = at90usb1286

Ensuite, j'ai essayé avec le firmware qmk (github), qui est lui-même basé sur tmk, avec plus de succès.

simon@deb:~/git$ git clone https://github.com/qmk/qmk_firmware.git
 
simon@deb:~/git$ cd qmk_firmware/
 
simon@deb:~/git/qmk_firmware$ ls
autocomplete.sh     common.mk     LICENSE                  shell.nix
book.json           Dockerfile    license_GPLv2.md         show_options.mk
bootloader.mk       docs          license_GPLv3.md         testlist.mk
build_full_test.mk  Doxyfile      license_Modified_BSD.md  tests
build_keyboard.mk   doxygen-todo  Makefile                 tmk_core
build_layout.mk     drivers       message.mk               users
build_test.mk       keyboards     quantum                  util
CODE_OF_CONDUCT.md  layouts       readme.md                Vagrantfile
common_features.mk  lib           secrets.tar.enc
 
simon@deb:~/git/qmk_firmware$ ls -al keyboards/
total 980
(...)
drwxr-xr-x   3 simon simon 4096 avr 10 19:49 ergodone
drwxr-xr-x   4 simon simon 4096 avr 10 19:49 ergodox_ez
drwxr-xr-x   3 simon simon 4096 avr 10 19:49 ergodox_infinity
(...)
 
simon@deb:~/git/qmk_firmware$ ls -al keyboards/ergodox_ez/
total 84
drwxr-xr-x   4 simon simon  4096 avr 10 19:49 .
drwxr-xr-x 243 simon simon  4096 avr 10 19:49 ..
-rw-r--r--   1 simon simon   673 avr 10 19:49 190hotfix.sh
-rw-r--r--   1 simon simon  4340 avr 10 19:49 config.h
-rw-r--r--   1 simon simon 11644 avr 10 19:49 ergodox_ez.c
-rw-r--r--   1 simon simon 11160 avr 10 19:49 ergodox_ez.h
-rw-r--r--   1 simon simon  8830 avr 10 19:49 info.json
drwxr-xr-x  24 simon simon  4096 avr 10 19:49 keymaps
-rw-r--r--   1 simon simon  9196 avr 10 19:49 matrix.c
-rw-r--r--   1 simon simon  1298 avr 10 19:49 readme.md
-rw-r--r--   1 simon simon  3481 avr 10 19:49 rules.mk
drwxr-xr-x   2 simon simon  4096 avr 10 19:49 util
 
simon@deb:~/git/qmk_firmware$ ls -al keyboards/ergodox_ez/keymaps/
total 96
(...)
drwxr-xr-x  2 simon simon 4096 avr 10 19:49 bdk
drwxr-xr-x  2 simon simon 4096 avr 10 19:49 bepo_tm_style
drwxr-xr-x  2 simon simon 4096 avr 10 19:49 blakedietz
(...)
 
simon@deb:~/git/qmk_firmware$ make git-submodule
 
simon@deb:~/git/qmk_firmware$ make ergodox_ez:bepo_tm_style:all 
QMK Firmware 0.6.328
Making ergodox_ez with keymap bepo_tm_style and target all
 
avr-gcc (GCC) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
Size before:
   text	   data	    bss	    dec	    hex	filename
      0	  30658	      0	  30658	   77c2	.build/ergodox_ez_bepo_tm_style.hex
 
Compiling: tmk_core/common/command.c                                                                [OK]
Linking: .build/ergodox_ez_bepo_tm_style.elf                                                        [OK]
Creating load file for flashing: .build/ergodox_ez_bepo_tm_style.hex                                [OK]
Copying ergodox_ez_bepo_tm_style.hex to qmk_firmware folder                                         [OK]
Checking file size of ergodox_ez_bepo_tm_style.hex                                                  [OK]
 * The firmware size is fine - 30658/32256 (1598 bytes free)

Le firmware ( ergodox_ez_bepo_tm_style.hex ) est dans le dossier courant. On peut l'envoyer avec cette commande :

simon@deb:~/git/qmk_firmware$ teensy_loader_cli --mcu=atmega32u4 -v -w ergodox_ez_bepo_tm_style.hex 
Teensy Loader, Command Line, Version 2.1
Read "ergodox_ez_bepo_tm_style.hex": 30658 bytes, 95.0% usage
Waiting for Teensy device...
 (hint: press the reset button)
Found HalfKay Bootloader
Read "ergodox_ez_bepo_tm_style.hex": 30658 bytes, 95.0% usage
Programming................................................................................................................................................................................................................................................
Booting

Maintenant qu'on a compris la procédure pour envoyer un layout choisi sur le clavier, on doit faire le layout qui nous convient et recommencer la procédure.

Configurer le layout

On commence par faire une copie du layout bepo pour l'ergodox_ez :

simon@deb:~/git/qmk_firmware$ cp -r keyboards/ergodox_ez/keymaps/bepo_tm_style/ keyboards/ergodox_ez/keymaps/bepo_simon
 
simon@deb:~/git/qmk_firmware$ ls -al keyboards/ergodox_ez/keymaps/bepo_simon/
total 32
drwxr-xr-x  2 simon simon  4096 avr 10 20:10 .
drwxr-xr-x 25 simon simon  4096 avr 10 20:10 ..
-rwxr-xr-x  1 simon simon   694 avr 10 20:10 config.h
-rwxr-xr-x  1 simon simon 12235 avr 10 20:10 keymap.c
-rwxr-xr-x  1 simon simon   770 avr 10 20:10 readme.md
-rwxr-xr-x  1 simon simon   646 avr 10 20:10 rules.mk
ergodox.1554922766.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)