Maxim Integrated's IoT development kit
Dependencies: MAX30101 MAX30003 MAX113XX_Pixi MAX30205 max32630fthr USBDevice
Diff: tools/unix_run
- Revision:
- 8:2b6bfa8d9e36
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/unix_run Fri Apr 27 14:57:49 2018 +0300 @@ -0,0 +1,18 @@ +#!/bin/sh + +TOOLSPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +PROJECTPATH="$(cd "$TOOLSPATH/.." && pwd)" + +PROJECTNAME=${PROJECTPATH##*/} + +source $PROJECTPATH/.mbed + +BINARY=$PROJECTPATH/BUILD/$TARGET/$TOOLCHAIN/$PROJECTNAME.bin + +if [ ! -f $BINARY ]; then + echo Error: File "$BINARY" does not exist! + exit 1 +fi + +python $PROJECTPATH/tools/mbed_run.py $BINARY