Created
September 20, 2016 11:35
-
-
Save bapril/7edf573ea2ea01480b71362a0b278efa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Command to reflash the 16u2 on an Arduino Mega: using an usbtiny programmer | |
#!/bin/bash | |
#Get to the tools | |
cd /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin | |
#Push the image | |
./avrdude -c usbtiny -p m16u2 -C ../etc/avrdude.conf -U flash:w:/Users/bapril/Documents/workspace/Arduino/Arduino-usbserial-atmega16u2-Mega2560-Rev3.hex.txt -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m | |
#Command to reflash the m2560 on an Arduino Mega: using an usbtiny programmer | |
#!/bin/bash | |
cd Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin | |
./avrdude -c usbtiny -p m2560 -U lfuse:w:0xff:m -U hfuse:w:0xd8:m -U efuse:w:0xfd:m -C ../etc/avrdude.conf | |
./avrdude -c usbtiny -p m2560 -C ../etc/avrdude.conf -U flash:w:/Users/bapril/Documents/workspace/Arduino/Mega2560-prod-firmware-2011-06-29.hex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment