ファームウェア

知っておきたいこと

  • QMK Firmwareというオープンソースライブラリを使用しています

書き込み環境の構築

書き込み

  • ProMicroをUSBで接続してください
  • ビルド
    • コマンド実行
make bat43:default
  • 書き込み
    • コマンド実行
make bat43:default:avrdude
  • 下記のように、"…“と出てきたら、
Checking file size of bat43_rev1_default.hex                                                       [OK]
 * The firmware size is fine - 20168/28672 (8504 bytes free)
Detecting USB port, reset your controller now....
  • 画像のGNDとRSTと書かれている下の丸同士をピンセットなどでショートさせてください。 (ProMicroをキーボードに組み込み済みの場合は、リセットスイッチを2回押してください。)
  • 下記のように表示されれば書き込み成功です
Device /dev/tty.usbmodem146201 has appeared; assuming it is the controller.
Waiting for /dev/tty.usbmodem146201 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/bat43_rev1_default.hex"
avrdude: input file .build/bat43_rev1_default.hex auto detected as Intel Hex
avrdude: writing flash (20168 bytes):

Writing | ################################################## | 100% 1.54s

avrdude: 20168 bytes of flash written
avrdude: verifying flash memory against .build/bat43_rev1_default.hex:
avrdude: load data flash data from input file .build/bat43_rev1_default.hex:
avrdude: input file .build/bat43_rev1_default.hex auto detected as Intel Hex
avrdude: input file .build/bat43_rev1_default.hex contains 20168 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.18s

avrdude: verifying ...
avrdude: 20168 bytes of flash verified

avrdude: safemode: Fuses OK (E:FB, H:D8, L:FF)

avrdude done.  Thank you.

最終更新 November 30, 2019