This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
2014-04-13 03:52:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#| First check to see teensy-loader-cli has been compiled
|
|
|
|
if [ ! -e teensy-loader-cli/teensy-loader-cli ]; then
|
|
|
|
# Compile teensy-loader-cli
|
|
|
|
mkdir -p teensy-loader-cli
|
|
|
|
cd teensy-loader-cli
|
2014-04-18 01:49:40 +00:00
|
|
|
cmake -G "Unix Makefiles" @CMAKE_SOURCE_DIR@/LoadFile
|
2014-04-13 03:52:32 +00:00
|
|
|
make
|
2014-04-13 06:10:39 +00:00
|
|
|
cd -
|
2014-04-13 03:52:32 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
#| Loads the hex file onto the teensy
|
2014-05-27 06:47:47 +00:00
|
|
|
teensy-loader-cli/teensy-loader-cli -mmcu=@MCU@ -w @TARGET_HEX@
|
2014-04-13 03:52:32 +00:00
|
|
|
|
2014-09-14 23:22:27 +00:00
|
|
|
exit $?
|
2014-04-13 03:52:32 +00:00
|
|
|
|