Skip to content

Instantly share code, notes, and snippets.

@juno
Last active October 20, 2018 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juno/6b4b55dbcf135e8900e69bb30fcda67a to your computer and use it in GitHub Desktop.
Save juno/6b4b55dbcf135e8900e69bb30fcda67a to your computer and use it in GitHub Desktop.
Setting up QMK firmware for Meishi keyboard.

Add remote repo:

~ ❯❯❯ cd ~/src/qmk_firmware
~/s/qmk_firmware ❯❯❯ git remote add biacco42 https://github.com/Biacco42/qmk_firmware.git

Fetch feature/meishi branch from remote then checking-out it:

~/s/qmk_firmware ❯❯❯ git fetch biacco42 feature/meishi
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Total 17 (delta 9), reused 9 (delta 9), pack-reused 8
Unpacking objects: 100% (17/17), done.
From https://github.com/Biacco42/qmk_firmware
 * branch                feature/meishi -> FETCH_HEAD
 * [new branch]          feature/meishi -> biacco42/feature/meishi

Build and write firmware to ProMicro:

~/s/qmk_firmware ❯❯❯ git co -b meishi biacco42/feature/meishi
Checking out files: 100% (5454/5454), done.
M	lib/chibios
M	lib/chibios-contrib
Branch 'meishi' set up to track remote branch 'feature/meishi' from 'biacco42'.
Switched to a new branch 'meishi'
~/s/qmk_firmware ❯❯❯ make meishi:default:avrdude
QMK Firmware 0.5.212
WARNING:
 Some git sub-modules are out of date or modified, please consider runnning:
 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 meishi with keymap default

avr-gcc (GCC) 7.3.0
Copyright (C) 2017 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.

Compiling: keyboards/meishi/meishi.c                                                                [OK]
Compiling: keyboards/meishi/keymaps/default/keymap.c                                                [OK]
(snip)
Compiling: ./tmk_core/common/command.c                                                              [OK]
Linking: .build/meishi_default.elf                                                                  [OK]
Creating load file for flashing: .build/meishi_default.hex                                          [OK]
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
	[-e pattern] [-f file] [--binary-files=value] [--color=when]
	[--context[=num]] [--directories=action] [--label] [--line-buffered]
	[--null] [pattern] [file ...]
-e Detecting USB port, reset your controller now.-e .-e .-e .-e .-e .-e .-e .-e .-e .-e .-e .
Detected controller on USB port at /dev/tty.usbmodem141301

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/meishi_default.hex"
avrdude: input file ./.build/meishi_default.hex auto detected as Intel Hex
avrdude: writing flash (19716 bytes):

Writing | ################################################## | 100% 1.73s

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

Reading | ################################################## | 100% 1.38s

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

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

avrdude done.  Thank you.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment