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.

83 lines
3.7 KiB

  1. JJ50
  2. ==========================
  3. This is a port of the QMK firmware for boards that are based on the
  4. ps2avrGB firmware, like the [ps2avrGB keyboard](https://www.keyclack.com/product/gb-ps2avrgb/), for use on the JJ50, a preonic-like board.
  5. Most of the code was taken and amended from YMD96, which in itself was taken from ps2avrGB and amended by Andrew Novak.
  6. Note that this is a complete replacement for the firmware, so you won't be
  7. using Bootmapper Client to change any keyboard settings, since not all the
  8. USB report options are supported.
  9. Hardware Supported: JJ50 with the ATmega32a chip.
  10. Hardware Availability: [KPrepublic on AliExpress](https://www.aliexpress.com/item/jj50-v1-0-Custom-Mechanical-Keyboard-50-PCB-programmed-50-preonic-layouts-bface-firmware-with-rgb/32848915277.html)
  11. This version by [Wayne K. Jones](github.com/WarmCatUK).
  12. ## Installing and Building
  13. Make example for this keyboard (after setting up your build environment):
  14. ```
  15. $ make jj50:default:program
  16. ```
  17. It should detect the keyboard and set it to bootloader mode automatically, prior to flashing firmware.
  18. See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.
  19. Note that this is a complete replacement for the firmware, so you won't be
  20. using Bootmapper Client to change any keyboard settings, since not all the
  21. USB report options are supported.
  22. In addition you may need the AVR toolchain and `bootloadHID` for flashing:
  23. ```
  24. $ brew cask install crosspack-avr
  25. $ brew install --HEAD https://raw.githubusercontent.com/robertgzr/homebrew-tap/master/bootloadhid.rb
  26. ```
  27. In order to use the `././util/atmega32a_program.py` script, which can reboot the board into
  28. the bootloader, you'll need Python 2 with PyUSB installed:
  29. ```
  30. $ pip install pyusb
  31. ```
  32. If you prefer, you can just build it and flash the firmware directly with
  33. `bootloadHID` if you boot the board while holding down `Backspace` (`key below top right key`) to keep it
  34. in the bootloader:
  35. ```
  36. $ make jj50
  37. $ bootloadHID -r jj50_default.hex
  38. ```
  39. I dont use windows personally, but the following is from ymd96 regarding flashing the atmega32a:
  40. Since the JJ50 uses an ATmega32a chip instead of the 32u4, you need to download [HIDBootFlash v.1.0](http://vusb.wikidot.com/project:hidbootflash) for Windows. If anyone knows of a Linux/Mac bootflasher that works, edit this readme!
  41. On Windows, I use [MINGw](http://www.mingw.org/) to compile the keymaps. On Linux or OSX you can simply use the terminal.
  42. Once you have those two pieces of software:
  43. Build the keyboard with
  44. ```
  45. $ make jj50:default
  46. ```
  47. If you make your own layout, change the `default` word to whatever your layout is.
  48. And flash the compiled hex file with `HIDBootFlash`. Simply put the board in flashing mode by plugging it in while holding the key below the top right key, and click `find device`. Then you can specify the .hex file and flash it to the device.
  49. ## Troubleshooting
  50. 1. Try plugging the board in while pressing `Backspace` (`Key below the top right key`). This will force it to boot only the bootloader without loading the firmware. Once this is done, just reflash the board with the original firmware.
  51. 2. Sometimes USB hubs can act weird, so try connecting the board directly to your computer or plugging/unplugging the USB hub.
  52. 3. If you get an error such as "Resource Unavailable" when attemting to flash on Linux, you may want to compile and run `tools/usb_detach.c`. See `tools/README.md` for more info.
  53. 4. I was occasionally finding that I wasn't flashing changes that I was making to my keymap. If that happens, remove the previous build and simply force rebuild by making with:
  54. ```
  55. $ rm jj50_default.hex
  56. $ make -B jj50:default
  57. $ make -B jj50:default:program
  58. ```