Author Topic: Programming Teensy Firmware  (Read 2752 times)

0 Members and 1 Guest are viewing this topic.

Offline Bandit

  • Thread Starter
  • Posts: 18
  • Location: Linden, MI
  • Ask no questions, get no answers.
Programming Teensy Firmware
« on: Tue, 24 February 2015, 21:23:34 »
Hey Guys, Bandit again. I recently wired up my Varmilo switch tester to a teensy 2.0 in a matrix. I no have officially no idea what I'm doing. I've fount Hasu's TMK firmware pack, and followed This guide but it isn't working right. I'm sure I'm missing something or I just have much to learn. Pointers in the right direction would be greatly appreciated!

Offline Moralless

  • Posts: 526
  • Location: Sydney, Australia
Re: Programming Teensy Firmware
« Reply #1 on: Tue, 24 February 2015, 21:29:53 »
What part are you stuck on specifically? matt3o's guide is pretty straight forward but you just have to pay close attention to the matrix of the switch tester and which pins you soldered them on.

Offline Bandit

  • Thread Starter
  • Posts: 18
  • Location: Linden, MI
  • Ask no questions, get no answers.
Re: Programming Teensy Firmware
« Reply #2 on: Tue, 24 February 2015, 21:49:34 »
What part are you stuck on specifically? matt3o's guide is pretty straight forward but you just have to pay close attention to the matrix of the switch tester and which pins you soldered them on.

I get to the very end where I have to type "make -f Makefile" and that comes up with an error at the very end.


Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Programming Teensy Firmware
« Reply #3 on: Tue, 24 February 2015, 22:08:55 »
If you are using Windows 8 you are in a very uphill battle.  About the best solution in that case is to find an old XP box to do it, or linux of some fashion.  That was the only way I was able to compile firmware.  Even then I have no clue what I am doing.  I just know that windows 8 has issues with WinAVR.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline Bandit

  • Thread Starter
  • Posts: 18
  • Location: Linden, MI
  • Ask no questions, get no answers.
Re: Programming Teensy Firmware
« Reply #4 on: Tue, 24 February 2015, 22:44:27 »
I'm using Windows 7. Does that work or should I use xp?

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Programming Teensy Firmware
« Reply #5 on: Tue, 24 February 2015, 22:45:43 »
I *think* 7 worked but I abandoned that rig because easily accessible USB ports were not available
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline user 18

  • * Senior Moderator
  • Posts: 2231
  • Location: Deutschland
Re: Programming Teensy Firmware
« Reply #6 on: Tue, 24 February 2015, 22:58:31 »
Any chance you can pastebin the code in the files you edited? That would help determine if it's an issue in the code or with the system.
Please PM me if you are waiting on classifieds approval or have a question about the classifieds rules. | geekhack Terms of Service

Max Nighthawk x8 (MX Brown) | CM QFR (MX Blue) | CM QFR (MX Clear) | RK-9000 (MX Red) | Model M 1391401 | Model M SSK 1370475 | CM Novatouch | G80-8113 (MX Clear) | 60% (85g MX Blue) | Whitefox Aria (MX Clear) | CL-LX (MX Clear) | Mira SE (MX Clear)
Avatar by ashdenej

Offline Bandit

  • Thread Starter
  • Posts: 18
  • Location: Linden, MI
  • Ask no questions, get no answers.
Re: Programming Teensy Firmware
« Reply #7 on: Wed, 25 February 2015, 09:40:16 »
Any chance you can pastebin the code in the files you edited? That would help determine if it's an issue in the code or with the system.
I'll post it here when I get home.

Offline metalliqaz

  • * Maker
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Programming Teensy Firmware
« Reply #8 on: Wed, 25 February 2015, 10:03:31 »
Why are you talking about Windows versions? There is clearly an error in the code
Keymap_common.h line 44
« Last Edit: Wed, 25 February 2015, 10:09:36 by metalliqaz »

Offline user 18

  • * Senior Moderator
  • Posts: 2231
  • Location: Deutschland
Re: Programming Teensy Firmware
« Reply #9 on: Wed, 25 February 2015, 11:03:39 »
Why are you talking about Windows versions? There is clearly an error in the code
Keymap_common.h line 44

That's my guess, which is why I asked for files to be posted.
Please PM me if you are waiting on classifieds approval or have a question about the classifieds rules. | geekhack Terms of Service

Max Nighthawk x8 (MX Brown) | CM QFR (MX Blue) | CM QFR (MX Clear) | RK-9000 (MX Red) | Model M 1391401 | Model M SSK 1370475 | CM Novatouch | G80-8113 (MX Clear) | 60% (85g MX Blue) | Whitefox Aria (MX Clear) | CL-LX (MX Clear) | Mira SE (MX Clear)
Avatar by ashdenej

Offline Bandit

  • Thread Starter
  • Posts: 18
  • Location: Linden, MI
  • Ask no questions, get no answers.
Re: Programming Teensy Firmware
« Reply #10 on: Wed, 25 February 2015, 13:45:46 »
Here's my keymap_common.h

http://pastebin.com/FqYLKu2K

Offline abjr

  • Posts: 171
  • Location: Connecticut
    • abjr.org
Re: Programming Teensy Firmware
« Reply #11 on: Wed, 25 February 2015, 14:14:58 »
Fix your KEYMAP. You have some extraneous commas and backslash.

Code: [Select]
#define KEYMAP( \
    K00, K01, K02, \
    K03, K04, K05, \
    K06, K07, K08 \
) { \
    { KC_##K00, KC_##K01, KC_##K02 }, \
    { KC_##K03, KC_##K04, KC_##K05 }, \
    { KC_##K06, KC_##K07, KC_##K08 } \
}
CM QFR | magicforce 68 (Gateron) | magicforce 68 (Outemu) | Acros 6311-K

Offline Bandit

  • Thread Starter
  • Posts: 18
  • Location: Linden, MI
  • Ask no questions, get no answers.
Re: Programming Teensy Firmware
« Reply #12 on: Wed, 25 February 2015, 14:38:23 »
Okay I fixed all the errors in my code, and I got the hex file to compile. Great! Now the only problem is that when I have the board plugged in, it just prints 369369369369369369369369 a bunch. I believe this is a hardware problem since it happens randomly on and off.

Offline suicidal_orange

  • * Global Moderator
  • Posts: 4771
  • Location: England
Re: Programming Teensy Firmware
« Reply #13 on: Wed, 25 February 2015, 14:53:50 »
Okay I fixed all the errors in my code, and I got the hex file to compile. Great! Now the only problem is that when I have the board plugged in, it just prints 369369369369369369369369 a bunch. I believe this is a hardware problem since it happens randomly on and off.

Are 3 6 and 9 connected in your matrix?  Looks like a backwards diode to me :)
120/100g linear Zealio R1  
GMK Hyperfuse
'Split everything' perfection  
MX Clear
SA Hack'd by Geeks     
EasyAVR mod

Offline Bandit

  • Thread Starter
  • Posts: 18
  • Location: Linden, MI
  • Ask no questions, get no answers.
Re: Programming Teensy Firmware
« Reply #14 on: Wed, 25 February 2015, 15:02:36 »
Okay I fixed all the errors in my code, and I got the hex file to compile. Great! Now the only problem is that when I have the board plugged in, it just prints 369369369369369369369369 a bunch. I believe this is a hardware problem since it happens randomly on and off.

Are 3 6 and 9 connected in your matrix?  Looks like a backwards diode to me :)

Yes, they're connected, but the diodes are all fine.

Offline metalliqaz

  • * Maker
  • Posts: 4951
  • Location: the Making Stuff subforum
  • Leopold fanboy
Re: Programming Teensy Firmware
« Reply #15 on: Wed, 25 February 2015, 21:21:59 »
If it is happening intermittently, then it could be that the voltage levels are right on the edge.  Are you sure you configured the I/O correctly with pull-up?

Also, do any of the other keys work?