Author Topic: How do I back up the firmware of the Atmega32U4?  (Read 1710 times)

0 Members and 1 Guest are viewing this topic.

Offline Spaceless

  • Thread Starter
  • Posts: 1
    • Spaceless
How do I back up the firmware of the Atmega32U4?
« on: Fri, 03 August 2018, 23:48:16 »
I have a 68-key keyboard, the main control chip is Atmega32U4(Like GH60), the PCB is made up of a column of GH60 motherboard but its firmware does not belong to any popular open source firmware, but I want to modify his firmware but I am afraid it can't work. So I want to ask, how do I back up the firmware that has been written in the Atmega32U4 with its bootloader. It is best to back up via a USB connection. Thank you

Offline algernon

  • Posts: 311
  • A tiny mouse, a hacker.
    • Diaries of a Madman
Re: How do I back up the firmware of the Atmega32U4?
« Reply #1 on: Sat, 04 August 2018, 00:54:02 »
You do the same thing as if you were flashing with avrdude, but replace the "-Uflash:w:hex:i" part of the commandline with "-Uflash:r:dump.hex:i". For example:

avrdude -v -v -C /etc/avrdude.conf -patmega32u4 -cavr109 -D -P /dev/ttyACM0 -b57600 -Uflash:r:dump.hex:i

As with flashing, you have to put the board into bootloader/programmable mode first.