geekhack
geekhack Projects => Making Stuff Together! => Topic started by: The_Beast on Tue, 24 September 2013, 11:20:31
-
Is there any such guide to turning the keymap_whatever.h file into a .hex file. I've read the read me of the TMK firmware, but I just cannot seem to make a hex file.
For your help, I'll make a step by step guide to converting .h to .hex files and then loading it onto your keyboard. The writing of the code isn't something I'm that great on, but if someone else wants to, I'd be more than willing to make it a one stop shop for absolute beginners of writing code/firmware guide to the TMK firmware.
-
Yes, PLEASE!
:thumb:
-
where is jdcarpe, he is a master at explaining these things.
This is specific to a phantom but might help others.
Here is what I know download the tmk master file from githug. https://github.com/tmk/tmk_keyboard
Under windows 7 I installed winavr. http://sourceforge.net/projects/winavr/files/WinAVR/20100110/
I also installed notepad++ previously for editing purposes. http://notepad-plus-plus.org/download/v6.4.5.html
Then after extracting the zip file from github I edited the keymap associated with my keyboard (jdcarpe helped me with this actually). (keymap_ansi_150.h and keymap.c in the phantom folder)
Here is an example of my modified keymap_ansi_150.h
More
[attach=1]
and modified keymap.c
More
[attach=2]
Depending on your layout you may or may not have to edit the keymap.c file.
Then you open a command prompt and run something like this make -f Makefile.pjrc ansi_150 and out will come a hex file.
For the phantom I then used the teensyloader program to flash the teensy with the hex file. http://www.pjrc.com/teensy/loader_vista.html
I suck at explaining anything. :-*
-
Definitely watching this. My poor 65% has been sitting there hating me for the last month or so since I gave up on trying to get it working. Such a time sink :(
-
i need this thread. somehow i was not successful in building firmware for my phantom.
i feel so noob. :/
-
https://github.com/tmk/tmk_keyboard/blob/master/doc/build.md , https://github.com/tmk/tmk_keyboard/blob/master/doc/keymap.md , https://github.com/tmk/tmk_keyboard/blob/master/keyboard/phantom/README.md are already great. Maybe simplify a bit more and voilá