projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Add config and pyro tabs to graph widget
[fw/altos]
/
ao-bringup
/
turnon_easymini
diff --git
a/ao-bringup/turnon_easymini
b/ao-bringup/turnon_easymini
old mode 100644
(file)
new mode 100755
(executable)
index
3c24aa2
..
1960c4d
--- a/
ao-bringup/turnon_easymini
+++ b/
ao-bringup/turnon_easymini
@@
-18,61
+18,52
@@
else
exit 1
fi
exit 1
fi
-VERSION=
1
.0
+VERSION=
3
.0
PRODUCT=EasyMini
PRODUCT=EasyMini
-#VERSION=0.1
+BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
+echo $FILE
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
echo "$PRODUCT v$VERSION Turn-On and Calibration Program"
-echo "Copyright 20
10 by Bdale Garbee. Released under GPL v2
"
+echo "Copyright 20
22 by Bdale Garbee. Released under GPL v3
"
echo
echo "Expectations:"
echo "\t$PRODUCT v$VERSION powered from USB"
echo "\t\twith ST-Link-V2 cabled to debug header"
echo
echo
echo "Expectations:"
echo "\t$PRODUCT v$VERSION powered from USB"
echo "\t\twith ST-Link-V2 cabled to debug header"
echo
-echo -n "$PRODUCT-$VERSION serial number: "
-read SERIAL
-echo $FLASH_LPC
+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_LPC ../src/easymini-v$VERSION/flash-loader/*.elf || exit 1
+#
+# Use released versions of everything
+#
+FLASH_FILE=~/altusmetrumllc/Binaries/loaders/easymini-v3.0-altos-flash-*.elf
+ALTOS_FILE=~/altusmetrumllc/Binaries/easymini-v3.0-*.elf
-sleep 2
+echo $FLASH_LPC $FLASH_FILE
-$USBLOAD --serial=$SERIAL ../src/easymini-v$VERSION/*.ihx || exit 1
-#$USBLOAD --serial=$SERIAL /usr/share/altos/telemega-v$VERSION*.ihx || exit 1
+$FLASH_LPC $FLASH_FILE || exit 1
-sleep
2
+sleep
1
-dev=`ao-list | awk '/$PRODUCT-v'"$VERSION"'/ { print $3; exit(0); }'`
+echo $USBLOAD $ALTOS_FILE
-case "$dev" in
-/dev/tty*)
- echo "$PRODUCT found on $dev"
- ;;
-*)
- echo 'No $PRODUCT-v'"$VERSION"' found'
- exit 1
- ;;
-esac
+$USBLOAD --serial=$SERIAL $ALTOS_FILE || exit 1
-echo "Testing igniters. Both should flash"
-./test-igniter "$dev" drogue main
+sleep 1
-case $? in
-0)
- ;;
-*)
- echo "failed"
- exit 1
-esac
-
-echo "Testing baro sensor"
-./test-baro "$dev"
+./test-easymini-v3.0
-case $? in
-0)
- ;;
-*)
- echo "failed"
- exit 1
-esac
+exit $?