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.

74 lines
3.1 KiB

  1. # Flashing Intrustructions
  2. There are quite a few different types of bootloaders that keyboards use, and just about all of the use a different flashing method. Luckily, projects like the [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) aim to be compatible with all the different types without having to think about it much, but this article will describe the different types of bootloaders, and available methods for flashing them.
  3. ## DFU
  4. Atmel's DFU bootloader comes on all atmega32u4 chips by default, 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) (Newer OLKB boards) that adds in additional features specific to that hardware.
  5. These bootloaders are usually 4096 bytes for the atmega32u4 chip.
  6. Compatible flashers:
  7. * [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
  8. * [dfu-programmer](https://github.com/dfu-programmer/dfu-programmer) / `:dfu` in QMK (recommended commandline)
  9. * [Atmel's Flip](http://www.atmel.com/tools/flip.aspx) (not recommended)
  10. Flashing sequence:
  11. 1. Press the `RESET` keycode, or tap the RESET button (or short RST to GND).
  12. 2. Wait for the OS to detect the device
  13. 3. Erase the memory (may be done automatically)
  14. 4. Flash a .hex file
  15. 5. Reset the device into application mode (may be done automatically)
  16. or:
  17. make <keyboard>:<keymap>:dfu
  18. ## Caterina
  19. Arduino boards and their clones use the [Caterina bootloader](https://github.com/arduino/Arduino/tree/master/hardware/arduino/avr/bootloaders/caterina) (any keyboard built with a Pro Micro, or clone), and uses the avr109 protocol to communicate through virtual serial. Bootloaders like [A-Star](https://www.pololu.com/docs/0J61/9) are based on Caterina.
  20. This block of code allows for Caterina compatibility in QMK:
  21. #define CATERINA_BOOTLOADER
  22. These bootloaders are usually 4096 bytes for the atmega32u4 chip.
  23. Compatible flashers:
  24. * [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
  25. * [avrdude](http://www.nongnu.org/avrdude/) with avr109 / `:avrdude` (recommended commandline)
  26. * [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
  27. Flashing sequence:
  28. 1. Press the `RESET` keycode, or short RST to GND quickly (you only have 7 seconds to flash once it enters)
  29. 2. Wait for the OS to detect the device
  30. 4. Flash a .hex file
  31. 5. Wait for the device to reset automatically
  32. or
  33. make <keyboard>:<keymap>:avrdude
  34. ## Halfkay
  35. Halfkay is a super-slim protocol developed by PJRC that uses HID, and come on all Teensys (namely the 2.0).
  36. This bootloader is 512 bytes.
  37. Compatible flashers:
  38. * [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (recommended GUI)
  39. * [Teensy Loader](https://www.pjrc.com/teensy/loader.html)
  40. * [Teensy Loader Command Line](https://www.pjrc.com/teensy/loader_cli.html) (recommended commandline)
  41. Flashing sequence:
  42. 1. Press the `RESET` keycode, or short RST to GND quickly (you only have 7 seconds to flash once it enters)
  43. 2. Wait for the OS to detect the device
  44. 4. Flash a .hex file
  45. 5. Reset the device into application mode (may be done automatically)