geekhack
geekhack Community => Other Geeky Stuff => Topic started by: pink_panther on Thu, 25 August 2016, 13:29:22
-
Hello nerds.
I'm constructing a keyboard for a personal project, but i'm not very good with controllers and firmware and stuff. For some time was trying to set up tmk keyboard in my arduino nano with no luck.
For the sake of examle I'm using gh60, here's how:
git clone https://github.com/tmk/tmk_keyboard.git
cd tmk_keyboard/keyboard/gh60
make KEYMAP=poker
sudo ./avrdude -C ../etc/avrdude.conf -p atmega328p -vv -c arduino -b 57600 -P /dev/ttyUSB0 -D -Uflash:w:gh60_lufa.hex:i
It uploads the hex with no problems, but the chip just does nothing. I'm trying to connect the inputs but it has no effect. What am I missing?
I also tried uploading hex'es from keyboard editor
http://www.tmk-kbd.com/tmk_keyboard/editor/hhkb/index.html
I'm also pretty sure that hardware is functional, because I tried on several of these chips
UPDATE
I tried installing building onekey with vusb:
cd onekey
make clean
make -f Makefile.vusb
Also tried setting
MCU = atmega328p
in Makefile.vusb
Then tried shorting pb0 and pb1 (which are d9 and d8 on arduino)
But still no effect
-
Have you unplugged and replugged the USB after flashing?
-
Have you unplugged and replugged the USB after flashing?
Yes I have
-
Have you edited the config.h file to match your build? Matrix row/column pins, diode direction, etc.
-
Have you edited the config.h file to match your build? Matrix row/column pins, diode direction, etc.
No
-
The GH60 uses an atmega32u4 while you're flashing it to an atmega328p - did you swap that in the config too? It would need v-usb.
-
The GH60 uses an atmega32u4 while you're flashing it to an atmega328p - did you swap that in the config too? It would need v-usb.
could you elaborate on how to do that?
-
This guide might help.
https://deskthority.net/workshop-f7/how-to-build-your-very-own-keyboard-firmware-t7177.html
-
The GH60 uses an atmega32u4 while you're flashing it to an atmega328p - did you swap that in the config too? It would need v-usb.
could you elaborate on how to do that?
I'm afraid I'm not even close to a tmk expert so all I can offer is this recent quote that suggests it's possible
TMK still works with VUSB without problem
and a nod towards the onekey folder in tmk which contains a Makefile.vusb
Good luck!
-
Please see my update
-
I also seem to be stuck in same situation.. did you or someone fix it?
thanks in advance