aboutsummaryrefslogtreecommitdiff
path: root/Arduino/bin/README_Load.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Arduino/bin/README_Load.txt')
-rwxr-xr-xArduino/bin/README_Load.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/Arduino/bin/README_Load.txt b/Arduino/bin/README_Load.txt
new file mode 100755
index 0000000..b465e2b
--- /dev/null
+++ b/Arduino/bin/README_Load.txt
@@ -0,0 +1,38 @@
+Instructions for loading compiled binary images
+ from a raspberry pi to a feather M0.
+
+First, update your pi
+sudo apt-get update && apt-get upgrade
+sudo apt-get install build-essential
+sudo apt-get install libreadline-dev wx2.8-headers libwxgtk2.8-0 libwxgtk2.8-dev
+
+next visit the page https://github.com/shumatech/BOSSA.
+ clone this repo and note the folder name.
+
+next follow the instructions on the page to make the bossac and bossash files
+
+next create a script some thing like what is below:
+
+-----------------------------------------------------
+# load.sh - flash your arduino using a locally installed bosac
+
+# Project Variables
+INO_NAME=ems
+PROJECT_PATH=/home/pi/ems/Arduino
+
+# Local System variables
+PORT=ttyACM0
+PACKAGES_PATH=/home/pi/BOSSA/bin
+BUILD_PATH=$PROJECT_PATH/build
+
+# Arduino compile tools are here:
+BOSSAC_PATH=$PACKAGES_PATH
+
+# load to the feather if possible
+$BOSSAC_PATH/bossac -i -d --port=$PORT -U true -i -e -w -v $BUILD_PATH/$INO_NAME.ino.bin -R
+-------------------------------------------------------
+
+Note that if you do not know the port of the device, you can remove the --port=PORT and bossac will attempt to find the port.
+
+
+