Author Topic: Step by step guide to making and loading firmware for absolute beginners  (Read 1823 times)

0 Members and 1 Guest are viewing this topic.

Offline The_Beast

  • * Maker
  • Thread Starter
  • Posts: 3964
  • Location: Wisconsin
  • I like wood ಠ_๏
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.
Vendor Status: Sadly, not taking any orders/pre-orders at this time

Vendor Quick Links: | Vendor Forum | Hardwood Wrist Rests | Hardwood 60% Cases | Customer Gallery | Giveaway |

Offline Tarzan

  • formerly known as Greystoke
  • * Maker
  • Posts: 1304
  • Location: US: Virginia
Re: Step by step guide to making and loading firmware for absolute beginners
« Reply #1 on: Tue, 24 September 2013, 11:21:15 »
Yes, PLEASE!

 :thumb:

Offline SpAmRaY

  • NOT a Moderator
  • * Certified Spammer
  • Posts: 14667
  • Location: ¯\(°_o)/¯
  • because reasons.......
Re: Step by step guide to making and loading firmware for absolute beginners
« Reply #2 on: Tue, 24 September 2013, 11:40:24 »
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
36691-0


and modified keymap.c


More
36693-1


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.  :-*
« Last Edit: Wed, 25 September 2013, 09:24:11 by SpAmRaY »

Offline bueller

  • MX baller
  • * Esteemed Elder
  • Posts: 3769
  • Location: Perth, Australia
  • Church of the Ergo Clear
Re: Step by step guide to making and loading firmware for absolute beginners
« Reply #3 on: Tue, 24 September 2013, 22:34:31 »
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 :(
It's a good width!  If it's half-width it's too narrow, and full-width is too wide. 

[WTT] bueller's trade thread - CLACKS WANTED

Offline Sai

  • Posts: 820
  • Location: SG
Re: Step by step guide to making and loading firmware for absolute beginners
« Reply #4 on: Thu, 26 September 2013, 20:38:22 »
i need this thread. somehow i was not successful in building firmware for my phantom.
i feel so noob. :/
- WTB/WTT - Cotton Candy Brobot V2

Offline agor

  • Posts: 282
  • Location: Germany
KBD8X II - MX 5000 - Realforce 88UB - Phantom - GH60