Skip to content

Instantly share code, notes, and snippets.

@ahmader
Last active July 15, 2020 18:27
Show Gist options
  • Save ahmader/a29c7972756529edd42ef9cb4ad31396 to your computer and use it in GitHub Desktop.
Save ahmader/a29c7972756529edd42ef9cb4ad31396 to your computer and use it in GitHub Desktop.
Arduino Copy compiled code using avrdude

Arduino Pro Nano

prepare

brew install avrdude

read (from old)

avrdude  -patmega328p -carduino -P/dev/cu.usbserial-AH05Q2H6 -b57600 -D -Uflash:r:/tmp/sketch1.hex:i

write (to new)

avrdude  -patmega328p -carduino -P/dev/cu.usbserial-AH05Q2H6 -b57600 -D -Uflash:w:/tmp/sketch1.hex:i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment