RoboJackets/robocup-software — pull request #165 by jgkamat (2014-12-03 03:47:19+00:00)
Title: Added robot2015-prog that uploads bin file to the mbed

The mbed, as I understand it, runs the latest bin file placed into its storage. The robot2015-prog.sh script will accept a file as an argument, find all mbed storage devices attached, mount them, and copy over the file passed in as an argument.

This script should work for multiple mbed devices, but I haven't gotten around to testing that. In the meantime, it will work for a single mbed device, assuming you have the device files under /dev/disd/by-id/ and have gotten the robot2015 build working!

The cmake scripts seem to work, but this is my first time messing around with them, so I would appreciate it if someone looked over them...

I currently sudo to get root privileges during runtime, should I be making the user run it as root (sudo make robot2015-prog) instead?