Address #52 almost entirely - target upstream builds of CircuitPython and simply copy (rsync) KMK source, a basic main.py, and the user's keymap to the CIRCUITPY drive
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#Debugging
|
||||
# Debugging
|
||||
Debug will output most of the useful state to the console. This can be enable in your firmware
|
||||
by setting this in your keymap. NOTE that it will be MUCH slower, so only enable this when you
|
||||
need debugging.
|
||||
@@ -8,4 +8,4 @@ DEBUG_ENABLE = True
|
||||
|
||||
The output can be viewed by connecting to the serial port of the keybord. Please refer to [THIS](https://learn.adafruit.com/welcome-to-circuitpython/kattni-connecting-to-the-serial-console) for
|
||||
more information when connecting to serial console. For Linux users, we recommend [picocom](https://github.com/npat-efault/picocom) or
|
||||
[screen](https://www.gnu.org/software/screen/manual/screen.html)
|
||||
[screen](https://www.gnu.org/software/screen/manual/screen.html)
|
||||
|
@@ -1,18 +1,26 @@
|
||||
# Flashing Instructions
|
||||
|
||||
Flashing sequence:
|
||||
KMK sits on top of an existing CircuitPython install, flash that for your board
|
||||
as appropriate (see [Adafruit's
|
||||
documentation](https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython),
|
||||
though it doesn't cover all CircuitPython boards - you may need to glance around
|
||||
the CircuitPython source or ask on Discord). We primarily target CircuitPython
|
||||
4.0-alpha1 and above, though many features should work on 3.x. You'll only need
|
||||
to flash CircuitPython once (unless we update our baseline supported version).
|
||||
|
||||
1. Press the `KC.RESET` keycode, or tap the RESET button.
|
||||
2. Wait for the OS to detect the device
|
||||
3. Flash a .hex file (May be done automatically)
|
||||
4. Reset the device into application mode (May be done automatically)
|
||||
|
||||
or:
|
||||
|
||||
make flash-<board> USER_KEYMAP=user_keymaps/...
|
||||
|
||||
Example:
|
||||
|
||||
make flash-feather-m4-express USER_KEYMAP=user_keymaps/kdb424/handwire_planck_featherm4.py
|
||||
After CircuitPython has been flashed, a `CIRCUITPY` drive should show up on your
|
||||
computer (some Linux/BSD users without drive automounting will want to poke
|
||||
around `dmesg` to find the drive identifier and mount this drive manually
|
||||
somewhere - ex. `mkdir -p ~/mnt && sudo mount -o uid=1000,gid=1000 /dev/sdf1
|
||||
~/mnt`, where `uid` and `gid` are your user ID and primary group ID, as found in
|
||||
`id -u` and `id -g`). Take note of the path that this is mounted to (for MacOS
|
||||
users, this will probably look something like `/Volumes/CIRCUITPY`).
|
||||
|
||||
To "flash" all of KMK, your keymap, and a basic `main.py` that will start
|
||||
everything up, run `make MOUNTPOINT=/path/to/wherever
|
||||
USER_KEYMAP=path/to/keymap.py`. For example, if my `CIRCUITPY` volume is mounted
|
||||
to `~/mnt`, I might flash my development breadboard with the following:
|
||||
|
||||
```sh
|
||||
make MOUNTPOINT=~/mnt USER_KEYMAP=user_keymaps/klardotsh/itsybitsy_m4_express/threethree.py
|
||||
```
|
||||
|
Reference in New Issue
Block a user