Skip to content

Instantly share code, notes, and snippets.

@MicahStevens
Created April 25, 2016 20:58
Show Gist options
  • Save MicahStevens/6ac8544e631545eef20158040c436e15 to your computer and use it in GitHub Desktop.
Save MicahStevens/6ac8544e631545eef20158040c436e15 to your computer and use it in GitHub Desktop.
Arduino Due bossac upload script
#!/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