Skip to content

Instantly share code, notes, and snippets.

@ceetee
Last active June 19, 2016 17:02
Show Gist options
  • Save ceetee/6241e8c3df8b72b4ac71 to your computer and use it in GitHub Desktop.
Save ceetee/6241e8c3df8b72b4ac71 to your computer and use it in GitHub Desktop.

#Programming the KC60 on a Mac

  1. Download and unzip the TKG-Toolkit from Github (click on download zip on the right).
  2. Download the Mac version of jq (it will be named jq-osx-x86_64 or something similar)
    • rename the downloaded file to jq.
  3. Install dfu-programmer using homebrew brew install dfu-programmer.
  4. Go into the tkg-toolkit-master/linux/bin folder.
  5. Rename The existing jq file to jq.bak or something similar and drag in the new jq file you just downloaded.
  6. Exit the bin folder and return to the linux Folder.
  7. Open the file called reflash.sh in a text editor.
  8. Replace line 43 with: eval "$line".
  9. Place the .hex file from the online configurator into the linux folder.
  10. Point your terminal to the linux folder
    • update the file permissions: chmod +x reflash.sh setup.sh bin/jq
  11. Run the setup script:
    • from the linux folder run ./setup.sh
    • Select GHPad -> Default Firmware -> atmel_dfu Bootloader
  12. Run the reflash script:
    • ./reflash.sh kc60.hex (Note: Replace kc60.hex with the name of you hex file if it has a different name.)
    • Press "y" when it asks you if you want to continue.
  13. When you see the message "Wating for Bootloader...", Flip over the keyboard and press the reset button.

Congrats! If everything works out you should get a "Success!" message.

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