3 # EasyTimer v2 all arrive from the assembler with
4 # the bootloader already flashed.
6 if [ -x /usr/bin/ao-usbload ]; then
7 USBLOAD=/usr/bin/ao-usbload
9 echo "Can't find ao-usbload! Aborting."
14 REPO=~/altusmetrumllc/Binaries
17 echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
18 echo "Copyright 2024 by Bdale Garbee. Released under GPL v3"
21 echo "\t$PRODUCT v$VERSION powered from USB"
27 echo "$PRODUCT-$VERSION serial number: $SERIAL"
30 echo -n "$PRODUCT-$VERSION serial number: "
34 echo "Usage: $0 <serial-number>" 1>&2
39 $USBLOAD --serial=$SERIAL --force $REPO/easytimer-v$VERSION*.elf || exit 1
43 dev=`ao-list | awk '/EasyTimer-v'"$VERSION"'/ { print $3; exit(0); }'`
47 echo "EasyTimer found on $dev"
50 echo 'No EasyTimer-v'"$VERSION"' found'
58 while [ $failed = 1 ]; do
59 ../ao-tools/ao-cal-accel/ao-cal-accel $dev