Author Topic: Programming AMJ40 is making me sad  (Read 3666 times)

0 Members and 1 Guest are viewing this topic.

Offline pigsu

  • Thread Starter
  • Posts: 3
Programming AMJ40 is making me sad
« on: Sun, 22 January 2017, 16:17:02 »
Hi, I got instantly and inexplicably obsessed with mechanical keyboards somehow. One minute I was looking at obscenely expensive chef knives on Instagram and then somehow I was deep in the 40% rabbit hole.

I got a couple of AMJ40s from TaoBao and was all set to start training my hands to contort. But the default programming of the boards doesn't have a FN key, or a layer change key, so there's no way to type anything other than letters.

I've been trying to program a new layout for ages now, but It's all been in vain.

The short summary is that no matter what I program, the keyboard comes back to life in exactly the same state as it was before.

I wrote up the question on Stack Overflow, but I might have more luck here.

http://stackoverflow.com/questions/41788455/dfu-programmer-claims-completion-but-no-change-on-chip

Kalp1 had the same problem here and flabbergast suggested trying boot magic but I can't seem to make that work.

Offline odd

  • Posts: 321
Re: Programming AMJ40 is making me sad
« Reply #1 on: Mon, 23 January 2017, 22:19:16 »
The keymap is in EEPROM so it persists over reboots. Look at the JD40 and JD45 threads on stuff you can try. Also the QMK firmware has a erase EEPROM hex you can use to wipe it.

Offline a-c

  • Posts: 196
  • Location: USA
Re: Programming AMJ40 is making me sad
« Reply #2 on: Tue, 24 January 2017, 02:07:12 »
Did you do a
Code: [Select]
make clean and recompile after changing the keymap?

Offline pigsu

  • Thread Starter
  • Posts: 3
Re: Programming AMJ40 is making me sad
« Reply #3 on: Tue, 24 January 2017, 12:07:55 »
Odd, that worked perfectly! Thanks.

I an using dfu-programmer 0.6.1, so the command from the quantum tools is slightly different,
Code: [Select]
dfu-programmer atmega32u4 flash-eeprom eeprom_reset.hex rather than
Code: [Select]
dfu-programmer atmega32u4 flash --eeprom eeprom_reset.hex
EDIT: I wrote up the answer on SO
« Last Edit: Wed, 25 January 2017, 12:26:35 by pigsu »

Offline odd

  • Posts: 321
Re: Programming AMJ40 is making me sad
« Reply #4 on: Tue, 24 January 2017, 17:00:54 »
Odd, that worked perfectly! Thanks.

I an using dfu-programmer 0.6.1, so the command from the quantum tools is slightly different,
Code: [Select]
dfu-programmer atmega32u4 flash-eeprom eeprom_reset.hex rather than
Code: [Select]
dfu-programmer atmega32u4 flash --eeprom eeprom_reset.hex

woowoo!!! Yay my first reply to someone asking for help and I managed to help someone out  :p

Offline OFred

  • Posts: 4
Re: Programming AMJ40 is making me sad
« Reply #5 on: Thu, 16 March 2017, 16:17:06 »
Hey Guy

I just bought this AMJ40 too !
pigsu I cheched what you did / wrote.
I'm on a Mac, installed everything needed (dfu-programmer included).

I can successfully do a
make dfu

Code: [Select]
dfu-programmer atmega32u4 erase --force
.....
Validating...  Success
0x4280 bytes written into 0x7000 bytes memory (59.38%).
dfu-programmer atmega32u4 reset

But now I'm wondering which file i need to modify to change the layout ? I saw some beautiful JS file, are they useful ?
Then I changed the keymap_default.c and make all / make dfu.
But nothing change. Which step did I miss?

I'm afraid that OS X configure the keyboard as a QWERTY keyboard and whatever I can change it will still be a QWERTY keyboard ?!

Thanks a lot for any feedback
Fred

Offline HeroXLazer

  • Posts: 70
Re: Programming AMJ40 is making me sad
« Reply #6 on: Thu, 16 March 2017, 22:42:54 »
I'm always sad when (trying to) programm(ing) anything...

Offline poang

  • Posts: 2
Re: Programming AMJ40 is making me sad
« Reply #7 on: Fri, 17 March 2017, 07:58:41 »
AMJ is silly B :D  u should buy CW40 from taobao  :D

Offline OFred

  • Posts: 4
Re: Programming AMJ40 is making me sad
« Reply #8 on: Fri, 17 March 2017, 13:07:20 »
Miracle I manage to program it !!!!  :eek:
The only key i did not find for now is the CMD (mac) key ....... what 's its name ?

* OFred close to be happy