projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao-bringup: Switch to v1.0 for chaoskey
[fw/altos]
/
ao-bringup
/
turnon_chaoskey
diff --git
a/ao-bringup/turnon_chaoskey
b/ao-bringup/turnon_chaoskey
index 8c8a6758609f76ba2e7276c470a28fe27bdaeaad..3617e777d1f5de8076898b162d6d5999cd9a7a14 100755
(executable)
--- a/
ao-bringup/turnon_chaoskey
+++ b/
ao-bringup/turnon_chaoskey
@@
-14,7
+14,7
@@
else
exit 1
fi
exit 1
fi
-VERSION=
0.1
+VERSION=
1.0
PRODUCT=ChaosKey
echo "ChaosKey v$VERSION Turn-On and Calibration Program"
PRODUCT=ChaosKey
echo "ChaosKey v$VERSION Turn-On and Calibration Program"
@@
-25,26
+25,10
@@
echo "\tChaosKey v$VERSION powered from USB"
echo "\t\twith ST-Link-V2 cabled to debug header"
echo
echo "\t\twith ST-Link-V2 cabled to debug header"
echo
-
-case $# in
- 1)
- SERIAL="$1"
- echo "$PRODUCT-$VERSION serial number: $SERIAL"
- ;;
- 0)
- echo -n "$PRODUCT-$VERSION serial number: "
- read SERIAL
- ;;
- *)
- echo "Usage: $0 <serial-number>" 1>&2
- exit 1;
- ;;
-esac
-
$FLASH_STM ../src/chaoskey-v$VERSION/flash-loader/chaoskey-v$VERSION-*.elf || exit 1
sleep 2
$FLASH_STM ../src/chaoskey-v$VERSION/flash-loader/chaoskey-v$VERSION-*.elf || exit 1
sleep 2
-$USBLOAD --serial=
$SERIAL
../src/chaoskey-v$VERSION/chaoskey-v$VERSION*.ihx || exit 1
+$USBLOAD --serial=
1
../src/chaoskey-v$VERSION/chaoskey-v$VERSION*.ihx || exit 1
exit $?
exit $?