Created
April 25, 2016 20:58
-
-
Save MicahStevens/6ac8544e631545eef20158040c436e15 to your computer and use it in GitHub Desktop.
Arduino Due bossac upload script
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
#!/bin/bash | |
DEFAULTPORT=ttyACM0 | |
PORT=${2:-$DEFAULTPORT} | |
#reset port | |
/usr/bin/stty -F /dev/$PORT 1200 | |
/usr/bin/stty -F /dev/$PORT 115200 | |
# upload and verify | |
/usr/bin/bossac -i --port=$PORT -U false -e -w -v -b $1 -R |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment