geekhack

geekhack Community => Keyboards => Topic started by: Plasma_000 on Thu, 28 December 2017, 00:43:17

Title: Flashing GH60 with avrdude?
Post by: Plasma_000 on Thu, 28 December 2017, 00:43:17
I just received my GH60 PCB and I want to try using avrdude to flash my hex file into my GH60.

The atmega32u4 is being discovered by USB, but there is no port to use for programming (ls /dev/cu.* doesn't give me usbmux or anything), and even when I press the button on the bottom nothing seems to happen.

Anyone know what I'm doing wrong? total noob to keebs.
Title: Re: Flashing GH60 with avrdude?
Post by: TalkingTree on Thu, 28 December 2017, 03:54:17
You should be able to flash the GH60 (any revision including the Satan fork) with the DFU programmer.
Assuming that you're on a (Debian based) Linux machine you can install it with
Code: [Select]
apt-get install dfu-programmer
Then put the board into bootloader mode by pressing the reset button and run these commands

Code: [Select]
dfu-programmer atmega32u4 erase --force
dfu-programmer atmega32u4 flash your_firmare.hex
dfu-programmer atmega32u4 reset

Obviously replace your_firmare.hex with the actual name of your file.
Title: Re: Flashing GH60 with avrdude?
Post by: Plasma_000 on Thu, 28 December 2017, 04:14:11
DFU-programmer works fine, i'm just wondering if it can be done with avrdude instead?
Title: Re: Flashing GH60 with avrdude?
Post by: TalkingTree on Thu, 28 December 2017, 04:57:15
i'm just wondering if it can be done with avrdude instead?
Try the -c avr109 parameter.
Title: Re: Flashing GH60 with avrdude?
Post by: hasu on Thu, 28 December 2017, 14:54:45
Use 'flip1' as programmer option.

No device file for atmel dfu bootloader as far as I know, try 'usb' as port if the command requests.

Sent from my WAS-LX2J using Tapatalk