geekhack

geekhack Projects => Making Stuff Together! => Topic started by: pollex on Mon, 08 June 2015, 14:15:35

Title: Help needed with my custom Keyboard. (Solved)
Post by: pollex on Mon, 08 June 2015, 14:15:35
hi everybody,

I have been reading on this site for almost a year now and it has gotten me interested in making my own custom keyboard. All the physical stuff is done now and it seems as if a have hit a brick wall with compiling the keyboard firmware.
If would be great if someone could explain the software for me so i can finally finish my project.

Greetings,
Pollex

Ps, i'm sorry if this is in the wrong threat or if my English is a bit wrong. Please correct me if i am.
Title: Re: Help needed with my custom Keyboard.
Post by: vindaon on Mon, 08 June 2015, 14:34:49
Hi! Welcome to geekhack.

We'll need some more info to help you I think, such as what firmware you're trying to compile, controller you're using, etc.
Title: Re: Help needed with my custom Keyboard.
Post by: neverused on Mon, 08 June 2015, 14:44:46
What kind of errors are you getting?
Title: Re: Help needed with my custom Keyboard.
Post by: pollex on Mon, 08 June 2015, 15:04:40
I'm not getting any errors its just that i don't know how to use the software.
I'm using a teensy 2.0 micro controller and i was trying to make a hex file just to test if i did all my wiring good. I was following matt3o's guide for making firmware. So the problem i have is that i don't understand how to use Winavr.

ps, this is the link to his guide:
http://deskthority.net/workshop-f7/how-to-build-your-very-own-keyboard-firmware-t7177.html
Title: Re: Help needed with my custom Keyboard.
Post by: yehoshuaf on Mon, 08 June 2015, 15:14:29
I don't remember having to do anything other than install it.
Title: Re: Help needed with my custom Keyboard.
Post by: Zukoi on Tue, 09 June 2015, 13:07:46
To compile the TMK in the first place, you need to use the Makefile which uses software from an GNU environment iirc. Windows doesn't have this so you have to install cygwin to gain some GNU functionality like Make. You also have to install Winavr to be able to compile the C files into hex. You go to the dictionary where you modified the files for your specific setup and type in "make -f Makefile" which is what matt3o was saying.

If you have an properly complied hex file then I think you have to use the teensy loader to put the hex on to the controller. https://www.pjrc.com/teensy/td_download.html (https://www.pjrc.com/teensy/td_download.html)

I didn't use the teensy but instead the Arduino Micro which works just as fine with TMK. I follow this guide, http://deskthority.net/workshop-f7/how-to-use-a-pro-micro-as-a-cheap-controller-converter-like-soarer-s-t8448.html (http://deskthority.net/workshop-f7/how-to-use-a-pro-micro-as-a-cheap-controller-converter-like-soarer-s-t8448.html). Basically, it breaks down to know where are the ports of the controller and figuring out which serial port the controller's bootloader is connected to so you can flash it right. This is a bit harder than the teensy's loader software since it uses command line but it is not very difficult since its just one line.
Title: Re: Help needed with my custom Keyboard.
Post by: pollex on Wed, 10 June 2015, 10:55:24
To compile the TMK in the first place, you need to use the Makefile which uses software from an GNU environment iirc. Windows doesn't have this so you have to install cygwin to gain some GNU functionality like Make. You also have to install Winavr to be able to compile the C files into hex. You go to the dictionary where you modified the files for your specific setup and type in "make -f Makefile" which is what matt3o was saying.

If you have an properly complied hex file then I think you have to use the teensy loader to put the hex on to the controller. https://www.pjrc.com/teensy/td_download.html (https://www.pjrc.com/teensy/td_download.html)

I didn't use the teensy but instead the Arduino Micro which works just as fine with TMK. I follow this guide, http://deskthority.net/workshop-f7/how-to-use-a-pro-micro-as-a-cheap-controller-converter-like-soarer-s-t8448.html (http://deskthority.net/workshop-f7/how-to-use-a-pro-micro-as-a-cheap-controller-converter-like-soarer-s-t8448.html). Basically, it breaks down to know where are the ports of the controller and figuring out which serial port the controller's bootloader is connected to so you can flash it right. This is a bit harder than the teensy's loader software since it uses command line but it is not very difficult since its just one line.

Okay. when i tried to do this i got this.
(http://)
Title: Re: Help needed with my custom Keyboard.
Post by: jdcarpe on Wed, 10 June 2015, 11:09:10
How did you move the TMK firmware into your directory structure? The makefile script is looking for .../tmk_keyboard-master/keyboard/gh60, but it looks like you only have .../teensy code/gh60. That could be why you're getting that error.
Title: Re: Help needed with my custom Keyboard.
Post by: _nowai on Wed, 10 June 2015, 11:11:07
Download the entire TMK folder from here: https://github.com/tmk/tmk_keyboard/archive/master.zip
Put your files in "\tmk_keyboard\keyboard\gh60" and try again.
Don't rename or move anything else!
Title: Re: Help needed with my custom Keyboard.
Post by: pollex on Wed, 10 June 2015, 12:51:18
Download the entire TMK folder from here: https://github.com/tmk/tmk_keyboard/archive/master.zip
Put your files in "\tmk_keyboard\keyboard\gh60" and try again.
Don't rename or move anything else!

Thank you _Nowai, that did it for me.
Only one small question while compiling there where a few files made, do i only need to load the .hex file to the teensy?
Title: Re: Help needed with my custom Keyboard.
Post by: _nowai on Wed, 10 June 2015, 13:15:43
Thank you _Nowai, that did it for me.
Only one small question while compiling there where a few files made, do i only need to load the .hex file to the teensy?
I'm glad it worked!
Yes, you only need the .hex file. I have no clue what the other files are for tbh.