diff options
author | Bdale Garbee <bdale@gag.com> | 2018-03-18 15:50:16 -0600 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2018-03-18 15:50:16 -0600 |
commit | 55b62bb5d6a9d6b484bcd0d802964d529dd5f9bb (patch) | |
tree | 1a93442d43fcad172879d76629d4ed47ce3d6575 /ao-bringup/turnon_easymini | |
parent | 558d2c94fe8c49d0544a3e7bc5ba11b60c4faa1e (diff) | |
parent | 59e23c27c2a85d7d748223e444b24d19937afe47 (diff) |
Merge branch 'branch-1.8' into debian
Diffstat (limited to 'ao-bringup/turnon_easymini')
-rwxr-xr-x | ao-bringup/turnon_easymini | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ao-bringup/turnon_easymini b/ao-bringup/turnon_easymini index 7db72665..3bef3145 100755 --- a/ao-bringup/turnon_easymini +++ b/ao-bringup/turnon_easymini @@ -52,11 +52,13 @@ ALTOS_FILE=~/altusmetrumllc/Binaries/easymini-v2.0-*.elf #FLASH_FILE=../src/$BASE-v$VERSION/flash-loader/$BASE-v$VERSION-altos-flash-*.elf #ALTOS_FILE=../src/$BASE-v$VERSION/*.ihx -echo $DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE +if lsusb -d 0483:df11 | grep -q STM; then + echo $DFU_UTIL -v -v -R -a 0 -s 0x08000000:leave -D $FLASH_FILE -$DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || exit 1 + $DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE -sleep 2 + sleep 2 +fi echo $USBLOAD $ALTOS_FILE |