Editing
Converting NerD60 to TMK
(section)
From Deskthority Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Flash TMK firmware=== * Now you can write the TMK firmware, I have used the default keymap from tmk/nerd just to see that it works. I used FLIP (on Windows) to write the firmware. On Windows you need to install the ATm32U4DFU driver. * How to use TMK is beyond the scope of this guide, but I have shared some sample keymaps just look further in this article. * At this point the keyboard starts only in '''DFU''' mode (starts the bootloader instead of the firmware), I could test that the firmware is working by starting the application from FLIP (uncheck Reset). * You can see that the keyboard is recognized : [ 596.236048] usb 1-1: new full-speed USB device number 7 using uhci_hcd [ 596.421099] usb 1-1: New USB device found, idVendor=feed, idProduct=6060 [ 596.421102] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 596.421104] usb 1-1: Product: NerD [ 596.421106] usb 1-1: Manufacturer: GON [ 597.578507] input: GON NerD as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1:1.0/0003:FEED:6060.000C/input/input25 [ 597.578790] hid-generic 0003:FEED:6060.000C: input,hidraw0: USB HID v1.11 Keyboard [GON NerD] on usb-0000:00:1a.0-1/input0 [ 597.583386] input: GON NerD as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1:1.1/0003:FEED:6060.000D/input/input26 [ 597.583611] hid-generic 0003:FEED:6060.000D: input,hidraw1: USB HID v1.11 Mouse [GON NerD] on usb-0000:00:1a.0-1/input1 [ 597.589211] input: GON NerD as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1:1.2/0003:FEED:6060.000E/input/input27 [ 597.589408] hid-generic 0003:FEED:6060.000E: input,hidraw5: USB HID v1.11 Device [GON NerD] on usb-0000:00:1a.0-1/input2 [ 597.594226] hid-generic 0003:FEED:6060.000F: hiddev0,hidraw6: USB HID v1.11 Device [GON NerD] on usb-0000:00:1a.0-1 * Now, in order to make the keyboard start the firmware you have to change the value of the '''HFUSE''', don't mess around with the other fuses, you risk to break your board, unless you really know what you are doing!!! * I have set the '''HFUSE''' value to ''0xD9''. * Just a side note : '''HFUSE 0xD9''' means : '''OCDEN''' disabled, '''JTAGEN''' disabled, '''SPIEN''' enabled, '''WDTON''' disabled, '''EESAVE''' disabled, '''BOOTSZ1''' enabled, '''BOOTSZ0''' enabled, '''BOOTRST''' disabled. While '''HFUSE 0xD8''' you have the same things as above with the exception of '''BOOTRST''' which is enabled(this was the default setting that came with the board from GON, and caused me a lot of grief). * Unplug the keyboard from the USB port and reconnect the ISP programmer. Again test a few times that you can really read the controller before you write anything, if you get warnings check the cables and find the source of the problem, don't go around forcing things!!! user@liz:~/Software/Teensy$ avrdude -c usbasp -p m32u4 -U lfuse:w:0xdf:m -U hfuse:w:0xd9:m -U efuse:w:0xc3:m -P /dev/USBasp avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.02s avrdude: Device signature = 0x1e9587 avrdude: reading input file "0xdf" avrdude: writing lfuse (1 bytes): Writing | ################################################## | 100% 0.01s avrdude: 1 bytes of lfuse written avrdude: verifying lfuse memory against 0xdf: avrdude: load data lfuse data from input file 0xdf: avrdude: input file 0xdf contains 1 bytes avrdude: reading on-chip lfuse data: Reading | ################################################## | 100% 0.01s avrdude: verifying ... avrdude: 1 bytes of lfuse verified avrdude: reading input file "0xd9" avrdude: writing hfuse (1 bytes): Writing | ################################################## | 100% 0.02s avrdude: 1 bytes of hfuse written avrdude: verifying hfuse memory against 0xd9: avrdude: load data hfuse data from input file 0xd9: avrdude: input file 0xd9 contains 1 bytes avrdude: reading on-chip hfuse data: Reading | ################################################## | 100% 0.01s avrdude: verifying ... avrdude: 1 bytes of hfuse verified avrdude: reading input file "0xc3" avrdude: writing efuse (1 bytes): Writing | ################################################## | 100% 0.01s avrdude: 1 bytes of efuse written avrdude: verifying efuse memory against 0xc3: avrdude: load data efuse data from input file 0xc3: avrdude: input file 0xc3 contains 1 bytes avrdude: reading on-chip efuse data: Reading | ################################################## | 100% 0.01s avrdude: verifying ... avrdude: 1 bytes of efuse verified avrdude: safemode: Fuses OK (E:C3, H:D9, L:DF) avrdude done. Thank you. * Now disconnect the ISP and plug the USB cable, the keyboard should start in firmware mode and should work without any problems. * The default keymap fotm GitHub has the following shortcut that can be used to access the bootloader : '''Left Shift + Right Shift + Fn-Y (Paus)''' (Fn is the Contextual Menu key on a 1.25u bottom row keyboard or the left Win key on a 1.5u bottom keyboard ). Or you can short the GND and RST pins on the PCB.
Summary:
Please note that all contributions to Deskthority Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
Edit source
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Deskthority forum
Support Deskthority
Search
Main categories
Guides
Keyboards
Keyboard switches
Keycaps
Keyboard modding
Pointing devices
Brands & companies
Group buys
Other topics
Wiki info & links
Recent changes
Random page
All pages
Deskthority wiki help
MediaWiki help
Tools
What links here
Related changes
Special pages
Page information