Archived
1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
controller/LoadFile/load
Jacob Alexander 81ea61de84 Adding teensy-loader-cli so it's not required.
- This is a patched version to work with Teensy 3.1 (current version on the website doesn't work)
- "Should" work with OS's other than Linux, but hasn't been tested
2014-04-12 20:52:32 -07:00

17 lines
365 B
Bash
Executable File

#!/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
cmake @CMAKE_SOURCE_DIR@/LoadFile
make
fi
#| Loads the hex file onto the teensy
sudo teensy-loader-cli/teensy-loader-cli -mmcu=@MCU@ -w @TARGET_HEX@
exit 0