Author Topic: [GB] Filco tenkeyless custom ATmega32u4 controller - All gone, that's it folks.  (Read 252076 times)

0 Members and 1 Guest are viewing this topic.

Offline remedyhalopc

  • Posts: 215
Okay, I used a magnet and now most of the keys seem to be disabled.

pressing any number of keys results in random outputs.

pressing K makes a 3, D reults in a Fn press, 2 results in a F1, U results in a 7, etc.


I do not know what to do.

Offline Photoelectric

  • * Administrator
  • Posts: 6766
*I don't know the right answer*, but doesn't the magnet erase the firmware and prepares the controller for new firmware flash?  If you have used the magnet and have not flashed a new firmware file, perhaps that's why you're seeing strange stuff?
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline remedyhalopc

  • Posts: 215
Maybe. Holding both shifts down didn't stop windows from installing drivers though.

So now I'm just lost. Trying another computer.

"The program can't start because libusb0.dll is missing from your computer. Try reinstalling the program to fix this problem".

I've reinstalled 3 times, each time rebooting. :(

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
Nothing but direct commands from flip will erase the firmware.  The magnet simply tells the controller to reboot into the bootloader and wait for further commands.  You then use flip to load in a new firmware.

It sounds a whole lot like you installed a chip-compatible firmware that was compiled for a different matrix.  Of course that's assuming you reset the controller after the magnet trick.  I've never tried fiddling with the KB while the controller is in the bootloader, it shouldn't do much tho.
« Last Edit: Tue, 02 July 2013, 15:12:44 by alaricljs »
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline remedyhalopc

  • Posts: 215
Nothing but direct commands from flip will erase the firmware.  The magnet simply tells the controller to reboot into the bootloader and wait for further commands.  You then use flip to load in a new firmware.

It sounds a whole lot like you installed a chip-compatible firmware that was compiled for a different matrix.

I haven't installed anything. Flip hasn't been able to make a USB connection to the keyboard to begin with.

More errors after I close the first one.

AtLibUsbDfu.dll not found.

Could not load dynamic library.

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
"The program can't start because libusb0.dll is missing from your computer. Try reinstalling the program to fix this problem".

Is this an error message from flip?
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline remedyhalopc

  • Posts: 215
Those three are, yes. They appear after I try to make a connection via USB.

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
Hmmm, inside Program Files/Atmel/Flip ???/usb  are some drivers.  I don't remember which one I installed and I am having trouble finding the docs about it.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline remedyhalopc

  • Posts: 215
Good news. Pressing caps lock activates 3# so the trace and switch work, it's just mapped differently.


If only I could get this to work.

Offline Photoelectric

  • * Administrator
  • Posts: 6766
I'm scared to do anything with my controller...  Seems like documentation is sparse, many of the firmware versions /tools are in beta stages, and reverting back to stock is not straightforward :(
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
Good news. Pressing caps lock activates 3# so the trace and switch work, it's just mapped differently.


If only I could get this to work.

Again,  this sounds like you loaded a firmware meant for a different matrix, for instance the Phantom instead of the hid liberator.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline yeeeargh

  • Posts: 15
Good news. Pressing caps lock activates 3# so the trace and switch work, it's just mapped differently.


If only I could get this to work.

let's take it slow:
1. open the device manager and plug in your keyboard.
2. if it shows up as a normal keyboard then try the magnet/both shift keys to make it jump to its bootloader.
3. in the device manager a new device should show up and the keyboard should disappear then.
4. if the new device has the right drivers a new group should named "Amtel USB Devices" should show up with a device called "ATmega32U4".
5. if the drivers are missing you should see the device with some warning or something (don't know exactly right now).
6. the drivers are in the flip directory (something like C:\Program Files (x86)\Atmel\Flip 3.4.7\usb).
7. after installing you should see the "ATmega32U4" in the device manager and you can flash your firmware with flip.

hope this helps a bit. when you encounter problems at one of those points state them

Offline remedyhalopc

  • Posts: 215
Magnet got me working the boatloader.


Flashed the new hex without a hitch.

Problem? Caps Lock still doesn't work. I don't know what to do anymore.

Offline Photoelectric

  • * Administrator
  • Posts: 6766
Maybe it's a hardware issue then?
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
Hold down the caps and hit the right shift.  If this turns on caps, you are running my map which appears to be the stock hid_liber map for tmk if you don't change anything at all.

Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline yeeeargh

  • Posts: 15
Magnet got me working the boatloader.


Flashed the new hex without a hitch.

Problem? Caps Lock still doesn't work. I don't know what to do anymore.

which firmware are you using right now? the one from bpiphany (https://github.com/BathroomEpiphanies/simple_keyboard/blob/master/binaries/hid_liber_ANSI_ISO_JIS.hex)? the hexfile from gnubag or alaricljs which is the tmk firmware (and might have a bit of a funky layout)? or something else?
« Last Edit: Tue, 02 July 2013, 20:19:08 by yeeeargh »

Offline remedyhalopc

  • Posts: 215
Hold down the caps and hit the right shift.  If this turns on caps, you are running my map which appears to be the stock hid_liber map for tmk if you don't change anything at all.


Hey! This works. How do I get normal use of my caps lock?

Trying to load the ANSI_ISO_JIS.hex ends up with a "Invalid HEX file syntax" and if you try to run it, it runs through everything fine until the VErify portion and says Verify device fail at 0x00000
« Last Edit: Tue, 02 July 2013, 20:28:48 by remedyhalopc »

Offline yeeeargh

  • Posts: 15
either you have to change the layout by yourself (download the source from github, change the layout, compile,...) or you find someone who does that for you and sends you a proper hex file. I guess you want just the normal ansi-layout, or do you need something special like media keys or anything?

Trying to load the ANSI_ISO_JIS.hex ends up with a "Invalid HEX file syntax" and if you try to run it, it runs through everything fine until the VErify portion and says Verify device fail at 0x00000

yeah, I guess you didn't download the hex file but the html file instead.
« Last Edit: Tue, 02 July 2013, 20:35:36 by yeeeargh »

Offline remedyhalopc

  • Posts: 215
just a normal ansi layout. If I feel inclined to add stuff like that, I will learn how to do that myself but right now I just need a stock ansi layout hex file.


I thought I was downloading the .hex, and windows explorer shows that it's a hex file.
« Last Edit: Tue, 02 July 2013, 20:39:35 by remedyhalopc »

Offline yeeeargh

  • Posts: 15
ok, just give me a minute... i can make you one

edit:
ok here it is. i used tmk's firmware (https://github.com/tmk/tmk_keyboard) and modified the "standard" layout to just an ansi layout. you can jump back to the bootloader (if you want to flash the firmware) by pressing "left shift", "right shift" and "pause" at the same time.
« Last Edit: Tue, 02 July 2013, 20:50:44 by yeeeargh »

Offline remedyhalopc

  • Posts: 215
IT WORKS!

Thank you so much!

Offline bpiphany

  • Thread Starter
  • Posts: 1033
  • Location: Stockholm, Sweden
  • bpiph is a special type of crazy. //mkawa
Good to see you got all that figured out without me getting involved =)

Offline yeeeargh

  • Posts: 15
Good to see you got all that figured out without me getting involved =)

for documentation: does your simple_keyboard firmware (https://github.com/BathroomEpiphanies/simple_keyboard) have a key combination to jump to the bootloader, or is using a magnet the only simple way for now. had a quick look at it yesterday and wasn't able to find one.
« Last Edit: Wed, 03 July 2013, 13:26:10 by yeeeargh »

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
Should be just both shifts unless he ended up changing it.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline bpiphany

  • Thread Starter
  • Posts: 1033
  • Location: Stockholm, Sweden
  • bpiph is a special type of crazy. //mkawa
I have commented the bootloader jump part out from the code as I haven't tested it yet. It's still there on line 131 of main.c. I'm planning to move most of the comment text to a tutorial text file instead. So there is some work to be done =)

Offline Photoelectric

  • * Administrator
  • Posts: 6766
So the controller with stock firmware is working fine, just put it intto my Filco with clears that I've finished.  But periodically it registers keypresses twice.  I've left my typing here uncorrected so youo'll see that it does some weird stuff sometimes.   What is this a function of and how do I fiix tit?  Not only are somoe letters doubled, but it also adds a previous letter rtto the foollowing.  Pretty much unusable in thtis form.
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
I had this issue with my Filco and a couple switches when using bpiphany's firmware.  I switched to hasu's TMK and have no issues now.  What are the chances you are using brown switches?
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline Photoelectric

  • * Administrator
  • Posts: 6766
Using Clears as I had mentioned :)  I was hoping it's not something I'd have to reflash firmware for :(
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
lol... I read your message twice too...   of course the cool swirls in my vision are another indication that my blood sugar is a little too low.

Flashing the firmware is easy, as long as you have a magnet.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline Photoelectric

  • * Administrator
  • Posts: 6766
I have it, yes.  Just don't want to open up the casing :(  Do I have to get the magnet right over the controller or can I try it through the case?  And do you have a pointer to Hasu's firmware / loader?  Thank you!
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline Sifo

  • Alter
  • * Exquisite Elder
  • Posts: 7487
  • Location: #GOLDSPRINGS, #LEGITBALLIN
  • Illustrious
I have it, yes.  Just don't want to open up the casing :(  Do I have to get the magnet right over the controller or can I try it through the case?  And do you have a pointer to Hasu's firmware / loader?  Thank you!

You don't have to open the case, even a weak magnet should do just brush it over the general area until you see it.
I love Elzy

Offline Photoelectric

  • * Administrator
  • Posts: 6766
So I see some firmware here (all in C):
https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hid_liber

Is that it?  And in terms of flashing, I need to install Flip?  Or does this firmware require some special C compiler / flasher?
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline Sifo

  • Alter
  • * Exquisite Elder
  • Posts: 7487
  • Location: #GOLDSPRINGS, #LEGITBALLIN
  • Illustrious
Install FLIP, download everything in that folder, set up your keymapping and stuff and then open up cmd

Navigate to the folder with all those files, do

"make -f Makefile.pjrc and/or Makefile.lufa ansi|iso|custom|alaricljs"

and then use the hexfile it makes in FLIP.

If your HID is in bootloader mode (using the magnet) then it should be detected in FLIP, so long as you have all the drivers and stuff.
I love Elzy

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
Awesome, I'm a make target.
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline Sifo

  • Alter
  • * Exquisite Elder
  • Posts: 7487
  • Location: #GOLDSPRINGS, #LEGITBALLIN
  • Illustrious
LOL yep. Grats
I love Elzy

Offline Photoelectric

  • * Administrator
  • Posts: 6766
Thank you! If I just flash those as they are, I will get a default Filco ANSI layout?
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline Sifo

  • Alter
  • * Exquisite Elder
  • Posts: 7487
  • Location: #GOLDSPRINGS, #LEGITBALLIN
  • Illustrious
Thank you! If I just flash those as they are, I will get a default Filco ANSI layout?

Yep, should be.
I love Elzy

Offline Photoelectric

  • * Administrator
  • Posts: 6766
Thanks again <3 Trying this right now.
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
Ya, flip is how you push the firmware to the KB.  But if you are not familiar with compilation then I would recommend getting a compile buddy.  Setup your keymap and get them to compile for you.

Modify one of the keymap_*.h files here  https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hid_liber   to do what you want.  :)
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline Photoelectric

  • * Administrator
  • Posts: 6766
Okay I see a problem... I need to install a C compiler for Windows, right?  "'make' is not recognized as an  internal or external command, operable program or batch file."
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline Sifo

  • Alter
  • * Exquisite Elder
  • Posts: 7487
  • Location: #GOLDSPRINGS, #LEGITBALLIN
  • Illustrious
Okay I see a problem... I need to install a C compiler for Windows, right?  "'make' is not recognized as an  internal or external command, operable program or batch file."

Oh, yeah.

Get this:

http://www.webring.org/l/rd?ring=avr;id=59;url=http%3A%2F%2Fwinavr%2Esourceforge%2Enet%2Findex%2Ehtml
I love Elzy

Offline Photoelectric

  • * Administrator
  • Posts: 6766
That link is not working.  Trying to download that is.  Just tried doing make in Linux (virtual box), and it's giving  a "missing separator" error :(  Sigh.
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline gnubag

  • Posts: 509
  • Location: California, US
That link is not working.  Trying to download that is.  Just tried doing make in Linux (virtual box), and it's giving  a "missing separator" error :(  Sigh.

http://sourceforge.net/projects/winavr/

Offline Sifo

  • Alter
  • * Exquisite Elder
  • Posts: 7487
  • Location: #GOLDSPRINGS, #LEGITBALLIN
  • Illustrious
I'll rehost it for you if the above doesn't work. Check back in a sec.
I love Elzy

Offline Photoelectric

  • * Administrator
  • Posts: 6766
That one worked, thanks very much.  I've got Flip open with drivers updated and such.  Just in the process of creating a hex file.
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline Photoelectric

  • * Administrator
  • Posts: 6766
edit:  I've flashed 2 different hex files now, one made from Makefile.pjrc and one from Makefile.lufa  with the ANSI layout... and I still get the same errors where some keypresses are repeated / incorrect letters are inserted.
« Last Edit: Mon, 15 July 2013, 18:19:48 by Photoelectric »
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline gnubag

  • Posts: 509
  • Location: California, US
edit:  I've flashed 2 different hex files now, one made from Makefile.pjrc and one from Makefile.lufa  with the ANSI layout... and I still get the same errors where some keypresses are repeated / incorrect letters are inserted.

what layout are you trying to flash?

upload the keymap and makefile maybe something is wrong.

Offline Photoelectric

  • * Administrator
  • Posts: 6766
edit:  I've flashed 2 different hex files now, one made from Makefile.pjrc and one from Makefile.lufa  with the ANSI layout... and I still get the same errors where some keypresses are repeated / incorrect letters are inserted.

what layout are you trying to flash?

upload the keymap and makefile maybe something is wrong.

The latest files from here:
https://github.com/tmk/tmk_keyboard/tree/master/keyboard/hid_liber

standard layout.  It all works but with the same double-character errors (and repeating after a character).  I've put the stock controller in for now, no problems.
- Keyboards: LZ-GH (Jailhouse Blues)M65-a, MIRA SE, E8-V1, MOON TKL, CA66
- Keyboard Case Painting Tips -
- Join Mechanical Keyboards photography group on Flickr -

Offline gnubag

  • Posts: 509
  • Location: California, US
https://dl.dropboxusercontent.com/u/98044719/hid_liber_pjrc.hex (that is the stock file from the tmk github which is the standard ansi layout)
I just compiled it.


try this file. it's the standard ansi layout I sent remedyhalopc.

Offline Sifo

  • Alter
  • * Exquisite Elder
  • Posts: 7487
  • Location: #GOLDSPRINGS, #LEGITBALLIN
  • Illustrious
I sent him probably the exact same thing.
I love Elzy