Author Topic: Flashing GH60 with avrdude?  (Read 2290 times)

0 Members and 1 Guest are viewing this topic.

Offline Plasma_000

  • Thread Starter
  • Posts: 2
  • Location: Australia
Flashing GH60 with avrdude?
« 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.
« Last Edit: Thu, 28 December 2017, 00:49:35 by Plasma_000 »

Offline TalkingTree

  • Posts: 2452
  • Location: Italy (142)
    • My projects
Re: Flashing GH60 with avrdude?
« Reply #1 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.
My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff

Offline Plasma_000

  • Thread Starter
  • Posts: 2
  • Location: Australia
Re: Flashing GH60 with avrdude?
« Reply #2 on: Thu, 28 December 2017, 04:14:11 »
DFU-programmer works fine, i'm just wondering if it can be done with avrdude instead?

Offline TalkingTree

  • Posts: 2452
  • Location: Italy (142)
    • My projects
Re: Flashing GH60 with avrdude?
« Reply #3 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.
My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff

Offline hasu

  • Posts: 3491
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: Flashing GH60 with avrdude?
« Reply #4 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