Author Topic: Help needed with my custom Keyboard. (Solved)  (Read 2143 times)

0 Members and 1 Guest are viewing this topic.

Offline pollex

  • Thread Starter
  • Posts: 4
Help needed with my custom Keyboard. (Solved)
« 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.
« Last Edit: Wed, 10 June 2015, 13:28:14 by pollex »

Offline vindaon

  • Posts: 135
  • Location: TX
Re: Help needed with my custom Keyboard.
« Reply #1 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.

Offline neverused

  • Posts: 572
Re: Help needed with my custom Keyboard.
« Reply #2 on: Mon, 08 June 2015, 14:44:46 »
What kind of errors are you getting?

Offline pollex

  • Thread Starter
  • Posts: 4
Re: Help needed with my custom Keyboard.
« Reply #3 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

Offline yehoshuaf

  • Posts: 33
Re: Help needed with my custom Keyboard.
« Reply #4 on: Mon, 08 June 2015, 15:14:29 »
I don't remember having to do anything other than install it.

Offline Zukoi

  • Posts: 64
  • Location: Florida
  • ****posting at 90wpm
Re: Help needed with my custom Keyboard.
« Reply #5 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

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. 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.
« Last Edit: Tue, 09 June 2015, 13:14:04 by Zukoi »

Offline pollex

  • Thread Starter
  • Posts: 4
Re: Help needed with my custom Keyboard.
« Reply #6 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

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. 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.

Offline jdcarpe

  • * Curator
  • Posts: 8852
  • Location: Odessa, TX
  • Live long, and prosper.
Re: Help needed with my custom Keyboard.
« Reply #7 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.
KMAC :: LZ-GH :: WASD CODE :: WASD v2 :: GH60 :: Alps64 :: JD45 :: IBM Model M :: IBM 4704 "Pingmaster"

http://jd40.info :: http://jd45.info


in memoriam

"When I was a kid, I used to take things apart and never put them back together."

Offline _nowai

  • Posts: 11
  • Location: GER
Re: Help needed with my custom Keyboard.
« Reply #8 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!

Offline pollex

  • Thread Starter
  • Posts: 4
Re: Help needed with my custom Keyboard.
« Reply #9 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?

Offline _nowai

  • Posts: 11
  • Location: GER
Re: Help needed with my custom Keyboard.
« Reply #10 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.