81ea61de84
- 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
17 lines
365 B
Bash
Executable File
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
|
|
|