You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

323 lines
15 KiB

Remove Full Bootmagic (#13846) * disambiguate Bootmagic rules in keymaps The files edited by this commit were added at a point in time where `BOOTMAGIC_ENABLE = yes` enabled full Bootmagic. This commit edits the files to specify that full Bootmagic is intended. * remove BOOTMAGIC_ENABLE=full setting * unify commented BOOTMAGIC_ENABLE rules in keyboards Explicitly sets `BOOTMAGIC_ENABLE = no` in keyboards where the rule was commented out. Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;#[ \t]*\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-zA-Z]\+\).*;\1 = no # Virtual DIP switch configuration;g' {} + ``` * remove commented Bootmagic rules from keymap/user level Command: ``` find keyboards/ layouts/ users/ -type f -name 'rules.mk' -exec sed -i -e '/#.*\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*/d' {} + ``` * update keyboard BOOTMAGIC_ENABLE rule formatting Sets the formatting of BOOTMAGIC_ENABLE rules to `BOOTMAGIC_ENABLE = [value]`, without the inline comments (which will be replaced later). Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*;\1 = \2;g' '{}' + ``` * update keyboards' BOOTMAGIC_ENABLE settings Updates keyboard `rules.mk` files to use `BOOTMAGIC_ENABLE = lite` where `BOOTMAGIC_ENABLE = full` was being used. Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = \)full;\1lite;g' '{}' + ``` * update keymap/user BOOTMAGIC_ENABLE settings Updates keymap/user `rules.mk` files to use `BOOTMAGIC_ENABLE = lite` where `BOOTMAGIC_ENABLE = full` was being used. Commands: ``` find keyboards/ -type f -name 'rules.mk' -and -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE[ \t=]\+\)full;\1lite;g' '{}' + find layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE[ \t=]\+\)full;\1lite;g' '{}' + ``` * remove and replace inline comments in keyboards and keymap/user files Removes and replaces the inline comments, which have been updated to read `Enable Bootmagic Lite`. Commands: ``` find keyboards/ -type f -name 'rules.mk' -and -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*;\1 = \2;g' '{}' + find layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*;\1 = \2;g' '{}' + find keyboards/ layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = lite\);\1 # Enable Bootmagic Lite;g' '{}' + find keyboards/ layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = yes\);\1 # Enable Bootmagic Lite;g' '{}' + find keyboards/ layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = no\);\1 # Enable Bootmagic Lite;g' '{}' + ``` * rename improperly named makefiles Some files intended to be used as makefiles had improper names causing them to not be used as intended when building. This commit corrects the filenames of the affected files. * update renamed file with new rule formatting * update QMK's template files Updates QMK's `rules.mk` templates to use the new inline comment. * update QMK Docs - remove documentation of full Bootmagic - update links to Bootmagic Lite doc - add doc for Magic Keycodes * rules.mk patch for coarse/ixora and coarse/vinta
2 years ago
Remove Full Bootmagic (#13846) * disambiguate Bootmagic rules in keymaps The files edited by this commit were added at a point in time where `BOOTMAGIC_ENABLE = yes` enabled full Bootmagic. This commit edits the files to specify that full Bootmagic is intended. * remove BOOTMAGIC_ENABLE=full setting * unify commented BOOTMAGIC_ENABLE rules in keyboards Explicitly sets `BOOTMAGIC_ENABLE = no` in keyboards where the rule was commented out. Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;#[ \t]*\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-zA-Z]\+\).*;\1 = no # Virtual DIP switch configuration;g' {} + ``` * remove commented Bootmagic rules from keymap/user level Command: ``` find keyboards/ layouts/ users/ -type f -name 'rules.mk' -exec sed -i -e '/#.*\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*/d' {} + ``` * update keyboard BOOTMAGIC_ENABLE rule formatting Sets the formatting of BOOTMAGIC_ENABLE rules to `BOOTMAGIC_ENABLE = [value]`, without the inline comments (which will be replaced later). Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*;\1 = \2;g' '{}' + ``` * update keyboards' BOOTMAGIC_ENABLE settings Updates keyboard `rules.mk` files to use `BOOTMAGIC_ENABLE = lite` where `BOOTMAGIC_ENABLE = full` was being used. Command: ``` find keyboards/ -type f -name 'rules.mk' -and -not -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = \)full;\1lite;g' '{}' + ``` * update keymap/user BOOTMAGIC_ENABLE settings Updates keymap/user `rules.mk` files to use `BOOTMAGIC_ENABLE = lite` where `BOOTMAGIC_ENABLE = full` was being used. Commands: ``` find keyboards/ -type f -name 'rules.mk' -and -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE[ \t=]\+\)full;\1lite;g' '{}' + find layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE[ \t=]\+\)full;\1lite;g' '{}' + ``` * remove and replace inline comments in keyboards and keymap/user files Removes and replaces the inline comments, which have been updated to read `Enable Bootmagic Lite`. Commands: ``` find keyboards/ -type f -name 'rules.mk' -and -path '*/keymaps/*' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*;\1 = \2;g' '{}' + find layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE\)[ \t=]\+\([a-z]\+\).*;\1 = \2;g' '{}' + find keyboards/ layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = lite\);\1 # Enable Bootmagic Lite;g' '{}' + find keyboards/ layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = yes\);\1 # Enable Bootmagic Lite;g' '{}' + find keyboards/ layouts/community/ users/ -type f -name 'rules.mk' -exec sed -i -e 's;\(BOOTMAGIC_ENABLE = no\);\1 # Enable Bootmagic Lite;g' '{}' + ``` * rename improperly named makefiles Some files intended to be used as makefiles had improper names causing them to not be used as intended when building. This commit corrects the filenames of the affected files. * update renamed file with new rule formatting * update QMK's template files Updates QMK's `rules.mk` templates to use the new inline comment. * update QMK Docs - remove documentation of full Bootmagic - update links to Bootmagic Lite doc - add doc for Magic Keycodes * rules.mk patch for coarse/ixora and coarse/vinta
2 years ago
  1. # Flashing Instructions and Bootloader Information
  2. There are quite a few different types of bootloaders that keyboards use, and almost all of them use their own flashing method and tools. Luckily, projects like the [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) aim to support as many of them as possible, but this article will describe the different types of bootloaders, and available methods for flashing them.
  3. For AVR-based keyboards, QMK will automatically calculate if your `.hex` file is the right size to be flashed to the device based on the `BOOTLOADER` value set in `rules.mk`, and output the total size in bytes (along with the max).
  4. You will also be able to use the CLI to flash your keyboard, by running:
  5. ```
  6. $ qmk flash -kb <keyboard> -km <keymap>
  7. ```
  8. See the [`qmk flash`](cli_commands.md#qmk-flash) documentation for more information.
  9. ## Atmel DFU
  10. Atmel's DFU bootloader comes on all USB AVRs by default (except for 16/32U4RC), and is used by many keyboards that have their own ICs on their PCBs (older OLKB boards, Clueboards). Some keyboards may also use LUFA's DFU bootloader, or QMK's fork of it (newer OLKB boards), that adds in additional features specific to that hardware.
  11. To ensure compatibility with the DFU bootloader, make sure this block is present in your `rules.mk` (optionally with `lufa-dfu` or `qmk-dfu` instead):
  12. ```make
  13. # Bootloader selection
  14. BOOTLOADER = atmel-dfu
  15. ```
  16. Compatible flashers:
  17. * [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
  18. * [dfu-programmer](https://github.com/dfu-programmer/dfu-programmer) / `:dfu` target in QMK (recommended command line)
  19. Flashing sequence:
  20. 1. Enter the bootloader using any of the following methods:
  21. * Press the `RESET` keycode
  22. * Press the `RESET` button on the PCB if available
  23. * Short RST to GND quickly
  24. 2. Wait for the OS to detect the device
  25. 3. Erase the flash memory (will be done automatically if using the Toolbox or CLI/`make` command)
  26. 4. Flash a .hex file
  27. 5. Reset the device into application mode (will be done automatically as above)
  28. ### QMK DFU
  29. QMK maintains [a fork of the LUFA DFU bootloader](https://github.com/qmk/lufa/tree/master/Bootloaders/DFU) that additionally performs a simple matrix scan for exiting the bootloader and returning to the application, as well as flashing an LED/making a ticking noise with a speaker when things are happening. To enable these features, add the following defines to your `config.h`:
  30. ```c
  31. #define QMK_ESC_OUTPUT F1 // COL pin if COL2ROW
  32. #define QMK_ESC_INPUT D5 // ROW pin if COL2ROW
  33. // Optional:
  34. //#define QMK_LED E6
  35. //#define QMK_SPEAKER C6
  36. ```
  37. Currently we do not recommend making `QMK_ESC` the same key as the one designated for [Bootmagic Lite](feature_bootmagic.md), as holding it down will cause the MCU to loop back and forth between entering and exiting the bootloader.
  38. The manufacturer and product strings are automatically pulled from `config.h`, with " Bootloader" appended to the product string.
  39. To generate this bootloader, use the `bootloader` target, eg. `make planck/rev4:default:bootloader`. To generate a production-ready .hex file (combining QMK and the bootloader), use the `production` target, eg. `make planck/rev4:default:production`.
  40. ### `make` Targets
  41. * `:dfu`: Checks every 5 seconds until a DFU device is available, and then flashes the firmware.
  42. * `:dfu-split-left` and `:dfu-split-right`: Flashes the firmware as with `:dfu`, but also sets the handedness setting in EEPROM. This is ideal for Elite-C-based split keyboards.
  43. ## Caterina
  44. Arduino boards and their clones use the [Caterina bootloader](https://github.com/arduino/ArduinoCore-avr/tree/master/bootloaders/caterina) or a variant of it (any keyboard built with a Pro Micro or clone, and the Pololu A-Star), and uses the AVR109 protocol to communicate through virtual serial.
  45. To ensure compatibility with the Caterina bootloader, make sure this block is present in your `rules.mk`:
  46. ```make
  47. # Bootloader selection
  48. BOOTLOADER = caterina
  49. ```
  50. Compatible flashers:
  51. * [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
  52. * [avrdude](https://www.nongnu.org/avrdude/) with the `avr109` programmer / `:avrdude` target in QMK (recommended command line)
  53. * [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
  54. Flashing sequence:
  55. 1. Enter the bootloader using any of the following methods (you only have 7 seconds to flash once it enters; some variants may require you to reset twice within 750 milliseconds):
  56. * Press the `RESET` keycode
  57. * Press the `RESET` button on the PCB if available
  58. * Short RST to GND quickly
  59. 2. Wait for the OS to detect the device
  60. 3. Flash a .hex file
  61. 4. Wait for the device to reset automatically
  62. ### `make` Targets
  63. * `:avrdude`: Checks every 5 seconds until a Caterina device is available (by detecting a new COM port), and then flashes the firmware.
  64. * `:avrdude-loop`: Flashes the firmware as with `:avrdude`, but after each device is flashed, will attempt to flash again. This is useful for bulk flashing. Hit Ctrl+C to escape the loop.
  65. * `:avrdude-split-left` and `:avrdude-split-right`: Flashes the firmware as with `:avrdude`, but also sets the handedness setting in EEPROM. This is ideal for Pro Micro-based split keyboards.
  66. ## HalfKay
  67. HalfKay is a super-slim bootloader developed by PJRC that presents itself as an HID device (which requires no additional driver), and comes preflashed on all Teensys, namely the 2.0. It is currently closed-source, and thus once overwritten (eg. via ISP flashing another bootloader), cannot be restored.
  68. To ensure compatibility with the Halfkay bootloader, make sure this block is present in your `rules.mk`:
  69. ```make
  70. # Bootloader selection
  71. BOOTLOADER = halfkay
  72. ```
  73. Compatible flashers:
  74. * [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
  75. * [Teensy Loader Command Line](https://www.pjrc.com/teensy/loader_cli.html) / `:teensy` target in QMK (recommended command line)
  76. * [Teensy Loader](https://www.pjrc.com/teensy/loader.html)
  77. Flashing sequence:
  78. 1. Enter the bootloader using any of the following methods (you only have 7 seconds to flash once it enters):
  79. * Press the `RESET` keycode
  80. * Press the `RESET` button on the Teensy or PCB if available
  81. * short RST to GND quickly
  82. 2. Wait for the OS to detect the device
  83. 3. Flash a .hex file
  84. 4. Reset the device into application mode (may be done automatically)
  85. ## USBasploader
  86. USBasploader is a bootloader originally by [Objective Development](https://www.obdev.at/products/vusb/usbasploader.html). It emulates a USBasp ISP programmer and is used in some non-USB AVR chips such as the ATmega328P, which run V-USB.
  87. To ensure compatibility with the USBasploader bootloader, make sure this block is present in your `rules.mk`:
  88. ```make
  89. # Bootloader selection
  90. BOOTLOADER = USBasp
  91. ```
  92. Compatible flashers:
  93. * [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
  94. * [avrdude](https://www.nongnu.org/avrdude/) with the `usbasp` programmer / `:usbasp` target in QMK (recommended command line)
  95. * [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
  96. Flashing sequence:
  97. 1. Enter the bootloader using any of the following methods:
  98. * Press the `RESET` keycode
  99. * Keep the `BOOT` button held while quickly tapping the `RESET` button on the PCB
  100. 2. Wait for the OS to detect the device
  101. 3. Flash a .hex file
  102. 4. Press the `RESET` button on the PCB or short RST to GND
  103. ## BootloadHID
  104. BootloadHID is a USB bootloader for AVR microcontrollers. It presents itself as an HID input device, much like HalfKay, and can therefore be run without installing any driver on Windows.
  105. To ensure compatibility with the bootloadHID bootloader, make sure this block is present in your `rules.mk`:
  106. ```make
  107. # Bootloader selection
  108. BOOTLOADER = bootloadHID
  109. ```
  110. Compatible flashers:
  111. * [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
  112. * [bootloadHID CLI](https://www.obdev.at/products/vusb/bootloadhid.html) / `:bootloadHID` target in QMK (recommended command line)
  113. * [HIDBootFlash](http://vusb.wikidot.com/project:hidbootflash)
  114. Flashing sequence:
  115. 1. Enter the bootloader using any of the following methods:
  116. * Tap the `RESET` keycode
  117. * Hold the salt key while plugging the keyboard in - for PS2AVRGB boards, this is usually the key connected to MCU pins A0 and B0, otherwise it will be documented in your keyboard's readme
  118. 2. Wait for the OS to detect the device
  119. 3. Flash a .hex file
  120. 4. Reset the device into application mode (may be done automatically)
  121. ### QMK HID
  122. QMK maintains [a fork of the LUFA HID bootloader](https://github.com/qmk/lufa/tree/master/Bootloaders/HID), which uses a USB HID Endpoint for flashing in the way that the PJRC's Teensy Loader flasher and HalfKay bootloader work. Additionally, it performs a simple matrix scan for exiting the bootloader and returning to the application, as well as flashing an LED/making a ticking noise with a speaker when things are happening.
  123. To ensure compatibility with the QMK HID bootloader, make sure this block is present in your `rules.mk`:
  124. ```make
  125. # Bootloader selection
  126. BOOTLOADER = qmk-hid
  127. ```
  128. To enable the additional features, add the following defines to your `config.h`:
  129. ```c
  130. #define QMK_ESC_OUTPUT F1 // COL pin if COL2ROW
  131. #define QMK_ESC_INPUT D5 // ROW pin if COL2ROW
  132. // Optional:
  133. //#define QMK_LED E6
  134. //#define QMK_SPEAKER C6
  135. ```
  136. Currently we do not recommend making `QMK_ESC` the same key as the one designated for [Bootmagic Lite](feature_bootmagic.md), as holding it down will cause the MCU to loop back and forth between entering and exiting the bootloader.
  137. The manufacturer and product strings are automatically pulled from `config.h`, with " Bootloader" appended to the product string.
  138. To generate this bootloader, use the `bootloader` target, eg. `make planck/rev4:default:bootloader`. To generate a production-ready .hex file (combining QMK and the bootloader), use the `production` target, eg. `make planck/rev4:default:production`.
  139. Compatible flashers:
  140. * TBD
  141. * Currently, you need to either use the [Python script](https://github.com/qmk/lufa/tree/master/Bootloaders/HID/HostLoaderApp_python), or compile [`hid_bootloader_cli`](https://github.com/qmk/lufa/tree/master/Bootloaders/HID/HostLoaderApp), from the LUFA repo. Homebrew may (will) have support for this directly (via `brew install qmk/qmk/hid_bootloader_cli`).
  142. Flashing sequence:
  143. 1. Enter the bootloader using any of the following methods:
  144. * Press the `RESET` keycode
  145. * Press the `RESET` button on the PCB if available
  146. * short RST to GND quickly
  147. 2. Wait for the OS to detect the device
  148. 3. Flash a .hex file
  149. 4. Reset the device into application mode (may be done automatically)
  150. ### `make` Targets
  151. * `:qmk-hid`: Checks every 5 seconds until a DFU device is available, and then flashes the firmware.
  152. ## STM32/APM32 DFU
  153. All STM32 and APM32 MCUs, except for F103 (see the [STM32duino section](#stm32duino)) come preloaded with a factory bootloader that cannot be modified nor deleted.
  154. To ensure compatibility with the STM32-DFU bootloader, make sure this block is present in your `rules.mk` (optionally with `apm32-dfu` instead):
  155. ```make
  156. # Bootloader selection
  157. BOOTLOADER = stm32-dfu
  158. ```
  159. Compatible flashers:
  160. * [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
  161. * [dfu-util](https://dfu-util.sourceforge.net/) / `:dfu-util` target in QMK (recommended command line)
  162. Flashing sequence:
  163. 1. Enter the bootloader using any of the following methods:
  164. * Tap the `RESET` keycode (may not work on STM32F042 devices)
  165. * If a reset circuit is present, tap the `RESET` button on the PCB; some boards may also have a toggle switch that must be flipped
  166. * Otherwise, you need to bridge `BOOT0` to VCC (via `BOOT0` button or jumper), short `RESET` to GND (via `RESET` button or jumper), and then let go of the `BOOT0` bridge
  167. 2. Wait for the OS to detect the device
  168. 3. Flash a .bin file
  169. 4. Reset the device into application mode (may be done automatically)
  170. ### `make` Targets
  171. * `:dfu-util`: Waits until an STM32 bootloader device is available, and then flashes the firmware.
  172. * `:dfu-util-split-left` and `:dfu-util-split-right`: Flashes the firmware as with `:avrdude`, but also sets the handedness setting in EEPROM. This is ideal for Proton-C-based split keyboards.
  173. * `:st-link-cli`: Allows you to flash the firmware via the ST-Link CLI utility, rather than dfu-util. Requires an ST-Link dongle.
  174. * `:st-flash`: Allows you to flash the firmware via the `st-flash` utility from [STLink Tools](https://github.com/stlink-org/stlink), rather than dfu-util. Requires an ST-Link dongle.
  175. ## STM32duino
  176. This bootloader is used almost exclusively for STM32F103 boards, as they do not come with a USB DFU bootloader. The source code and prebuilt binaries can be found [here](https://github.com/rogerclarkmelbourne/STM32duino-bootloader).
  177. To ensure compatibility with the STM32duino bootloader, make sure this block is present in your `rules.mk`:
  178. ```make
  179. # Bootloader selection
  180. BOOTLOADER = stm32duino
  181. ```
  182. Compatible flashers:
  183. * [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
  184. * [dfu-util](https://dfu-util.sourceforge.net/) / `:dfu-util` target in QMK (recommended command line)
  185. Flashing sequence:
  186. 1. Enter the bootloader using any of the following methods:
  187. * Tap the `RESET` keycode
  188. * If a reset circuit is present, tap the `RESET` button on the PCB
  189. * Otherwise, you need to bridge `BOOT0` to VCC (via `BOOT0` button or jumper), short `RESET` to GND (via `RESET` button or jumper), and then let go of the `BOOT0` bridge
  190. 2. Wait for the OS to detect the device
  191. 3. Flash a .bin file
  192. 4. Reset the device into application mode (may be done automatically)
  193. ## Kiibohd DFU
  194. Keyboards produced by Input Club use NXP Kinetis microcontrollers rather than STM32, and come with their own [custom bootloader](https://github.com/kiibohd/controller/tree/master/Bootloader), however the process and protocol is largely the same.
  195. The `rules.mk` setting for this bootloader is `kiibohd`, but since this bootloader is limited to Input Club boards, it should not be necessary to set at keymap or user level.
  196. Compatible flashers:
  197. * [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
  198. * [dfu-util](https://dfu-util.sourceforge.net/) / `:dfu-util` target in QMK (recommended command line)
  199. Flashing sequence:
  200. 1. Enter the bootloader using any of the following methods:
  201. * Tap the `RESET` keycode (this may only enter the MCU into a "secure" bootloader mode; see https://github.com/qmk/qmk_firmware/issues/6112)
  202. * Press the `RESET` button on the PCB
  203. 2. Wait for the OS to detect the device
  204. 3. Flash a .bin file
  205. 4. Reset the device into application mode (may be done automatically)
  206. ## tinyuf2
  207. Keyboards may opt into supporting the tinyuf2 bootloader. This is currently only supported on the F411 blackpill.
  208. The `rules.mk` setting for this bootloader is `tinyuf2`, and can be specified at the keymap or user level.
  209. To ensure compatibility with the tinyuf2 bootloader, make sure this block is present in your `rules.mk`:
  210. ```make
  211. # Bootloader selection
  212. BOOTLOADER = tinyuf2
  213. ```
  214. Compatible flashers:
  215. * Any application able to copy a file from one place to another, such as _macOS Finder_ or _Windows Explorer_.
  216. Flashing sequence:
  217. 1. Enter the bootloader using any of the following methods:
  218. * Tap the `RESET` keycode
  219. * Double-tap the `nRST` button on the PCB.
  220. 2. Wait for the OS to detect the device
  221. 3. Copy the .uf2 file to the new USB disk
  222. 4. Wait for the keyboard to become available