Adding convenience loader scripts for DFU based microcontrollers
This commit is contained in:
parent
4be4a85930
commit
3b06d8f6ae
5 changed files with 32 additions and 18 deletions
17
LoadFile/load.teensy
Executable file
17
LoadFile/load.teensy
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/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 -G "Unix Makefiles" @CMAKE_SOURCE_DIR@/LoadFile
|
||||
make
|
||||
cd -
|
||||
fi
|
||||
|
||||
#| Loads the hex file onto the teensy
|
||||
teensy-loader-cli/teensy-loader-cli -mmcu=@MCU@ -w @TARGET_HEX@
|
||||
|
||||
exit $?
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue