HelixキーボードのhexファイルをUbuntuのavrdudeで書き込む - gos-k’s blog から大分時間が経過したが、やっとキーマップ変更に着手した。
以下参考にしたもの
- https://github.com/qmk/qmk_firmware
- https://github.com/MakotoKurauchi/helix/blob/master/Doc/firmware_jp.md
QMKのファームウェアをもらってきて、自分用のキーマップを編集する。
git clone https://github.com/qmk/qmk_firmware cp -r keyboards/helix/rev2/keymaps/default keyboards/helix/rev2/keymaps/gos-k lem keyboards/helix/rev2/keymaps/gos-k/keymap.c
ファームウェアを書き込む。
$ make helix:gos-k:avrdude QMK Firmware 0.6.361 WARNING: Some git sub-modules are out of date or modified, please consider running: make git-submodule You can ignore this warning if you are not compiling any ChibiOS keyboards, or if you have modified the ChibiOS libraries yourself. Making helix/rev2 with keymap gos-k and target avrdude 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 16918 0 16918 4216 .build/helix_rev2_gos-k.hex Copying helix_rev2_gos-k.hex to qmk_firmware folder [OK] Checking file size of helix_rev2_gos-k.hex [OK] * The firmware size is fine - 16918/28672 (11754 bytes free) Detecting USB port, reset your controller now.................. Device /dev/ttyACM0 has appeared; assuming it is the controller. Waiting for /dev/ttyACM0 to become writable. Connecting to programmer: . Found programmer: Id = "CATERIN"; type = S Software Version = 1.0; No Hardware Version given. Programmer supports auto addr increment. Programmer supports buffered memory access with buffersize=128 bytes. Programmer supports the following devices: Device code: 0x44 avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9587 (probably m32u4) avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file ".build/helix_rev2_gos-k.hex" avrdude: input file .build/helix_rev2_gos-k.hex auto detected as Intel Hex avrdude: writing flash (16918 bytes): Writing | ################################################## | 100% 1.34s avrdude: 16918 bytes of flash written avrdude: verifying flash memory against .build/helix_rev2_gos-k.hex: avrdude: load data flash data from input file .build/helix_rev2_gos-k.hex: avrdude: input file .build/helix_rev2_gos-k.hex auto detected as Intel Hex avrdude: input file .build/helix_rev2_gos-k.hex contains 16918 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.16s avrdude: verifying ... avrdude: 16918 bytes of flash verified avrdude: safemode: Fuses OK (E:FB, H:D8, L:FF) avrdude done. Thank you.
特に難しい事もなく、さっさとやればよかった。。。