Skip to content

Instantly share code, notes, and snippets.

@yeyus
Created April 29, 2015 04:33
Show Gist options
  • Save yeyus/0e1bab0a33f97078a13a to your computer and use it in GitHub Desktop.
Save yeyus/0e1bab0a33f97078a13a to your computer and use it in GitHub Desktop.
burn .hex to arduino board through serial using vanilla bootloader
#/bin/sh
# burn myhex.hex file
/usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P /dev/ttyUSB0 -b57600 -D flash:w:myhex.hex:iç
# verify contents of flash against myhex.hex
/usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P /dev/ttyUSB0 -b57600 -D flash:v:myhex.hex:i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment