Skip to content

Instantly share code, notes, and snippets.

@catskull
Created November 27, 2020 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catskull/92310f24a2a49cde614d10faa2e9859c to your computer and use it in GitHub Desktop.
Save catskull/92310f24a2a49cde614d10faa2e9859c to your computer and use it in GitHub Desktop.
Completely dump an AVR/Arduino including eeprom and fuses
#!/bin/bash
echo "Dumping..."
avrdude -p m32u4 -c usbtiny -U flash:r:backup_flash.bin:r
avrdude -p m32u4 -c usbtiny -U eeprom:r:backup_eeprom.bin:r
avrdude -p m32u4 -c usbtiny -U hfuse:r:backup_hfuse.bin:r
avrdude -p m32u4 -c usbtiny -U lfuse:r:backup_lfuse.bin:r
avrdude -p m32u4 -c usbtiny -U efuse:r:backup_efuse.bin:r
echo "Dump complete."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment