From 0b58d3067d994319b73c2bd15817f6922257ece2 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sat, 31 Mar 2018 17:44:18 -0600 Subject: another second seems to help on the very slow Acer laptop --- ao-bringup/turnon_telegps | 2 +- ao-bringup/turnon_telemega | 2 +- ao-bringup/turnon_telemetrum | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ao-bringup') diff --git a/ao-bringup/turnon_telegps b/ao-bringup/turnon_telegps index 48af692a..b1da4373 100755 --- a/ao-bringup/turnon_telegps +++ b/ao-bringup/turnon_telegps @@ -51,7 +51,7 @@ ALTOS_FILE=$REPO/telegps-v2.0-*.elf $DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE -sleep 2 +sleep 3 $USBLOAD --serial=$SERIAL $ALTOS_FILE || exit 1 diff --git a/ao-bringup/turnon_telemega b/ao-bringup/turnon_telemega index 49776788..1fce345a 100755 --- a/ao-bringup/turnon_telemega +++ b/ao-bringup/turnon_telemega @@ -46,7 +46,7 @@ echo $FLASH_STM $FLASH_STM $REPO/loaders/telemega-v$VERSION*.elf -sleep 5 +sleep 3 $USBLOAD --serial=$SERIAL --force $REPO/telemega-v$VERSION*.elf || exit 1 diff --git a/ao-bringup/turnon_telemetrum b/ao-bringup/turnon_telemetrum index d40be953..dd30378a 100755 --- a/ao-bringup/turnon_telemetrum +++ b/ao-bringup/turnon_telemetrum @@ -46,7 +46,7 @@ echo $FLASH_STM $FLASH_STM ~/altusmetrumllc/Binaries/loaders/telemetrum-v$VERSION-*.elf || exit 1 -sleep 2 +sleep 3 $USBLOAD --serial=$SERIAL ~/altusmetrumllc/Binaries/telemetrum-v$VERSION-*.elf || exit 1 -- cgit v1.2.3 From 20dc0e6c8e365c1f4188189d506163d589c3bade Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sun, 22 Apr 2018 19:00:03 -0600 Subject: add a warning about Google limiting per-day access until/unless we pay --- ao-bringup/turnon_telegps | 2 +- doc/load-maps.inc | 6 +++++- pdclib | 2 +- src/stmf0/ao_usb_stm.c | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'ao-bringup') diff --git a/ao-bringup/turnon_telegps b/ao-bringup/turnon_telegps index b1da4373..5e4cd616 100755 --- a/ao-bringup/turnon_telegps +++ b/ao-bringup/turnon_telegps @@ -49,7 +49,7 @@ esac FLASH_FILE=$REPO/loaders/telegps-v2.0-altos-flash-*.bin ALTOS_FILE=$REPO/telegps-v2.0-*.elf -$DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE +$DFU_UTIL -v -v -R -a 0 -s 0x08000000:leave -D $FLASH_FILE sleep 3 diff --git a/doc/load-maps.inc b/doc/load-maps.inc index e7717d89..ccab4795 100644 --- a/doc/load-maps.inc +++ b/doc/load-maps.inc @@ -5,7 +5,11 @@ Before heading out to a new launch site, you can use this to load satellite images in case you don't have - internet connectivity at the site. + internet connectivity at the site. Try not to wait + until the last minute, though, particularly if you're + heading to a major launch. If too many people are + all trying to download map data at once, Google may + limit access until the next day. There's a drop-down menu of launch sites we know about; if your favorites aren't there, please let us diff --git a/pdclib b/pdclib index 3e68419a..20f71c3a 160000 --- a/pdclib +++ b/pdclib @@ -1 +1 @@ -Subproject commit 3e68419ad3ca3237ca16de4cf2a967f04129fe33 +Subproject commit 20f71c3a97eb4c7ecfa9754a0ca42855db935999 diff --git a/src/stmf0/ao_usb_stm.c b/src/stmf0/ao_usb_stm.c index bf08abc1..483d2419 100644 --- a/src/stmf0/ao_usb_stm.c +++ b/src/stmf0/ao_usb_stm.c @@ -1447,7 +1447,7 @@ ao_usb_enable(void) ao_arch_release_interrupts(); - for (t = 0; t < 1000; t++) + for (t = 0; t < 50000; t++) ao_arch_nop(); /* Enable USB pull-up */ -- cgit v1.2.3 From 257350e1a3e4ba2048e80d30a4a0454eb65d4a26 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 1 May 2018 23:47:27 -0700 Subject: ao-bringup/turnon_telemini: Skip DFU if no DFU device is present This skips running dfu-util to load the bootloader if there isn't a suitable DFU device listed in the system, which allows an already-flashed device to be run through the same script. Signed-off-by: Keith Packard --- ao-bringup/turnon_telemini | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ao-bringup') diff --git a/ao-bringup/turnon_telemini b/ao-bringup/turnon_telemini index 23031481..678251f4 100755 --- a/ao-bringup/turnon_telemini +++ b/ao-bringup/turnon_telemini @@ -45,9 +45,11 @@ ALTOS_FILE=~/altusmetrumllc/Binaries/telemini-v$VERSION-*.elf #FLASH_FILE=../src/telemini-v3.0/flash-loader/telemini-v$VERSION-altos-flash-*.bin #ALTOS_FILE=../src/telemini-v3.0/telemini-v$VERSION-*.elf -$DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || exit 1 +if lsusb -d 0483:df11 | grep -q STM; then + $DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || exit 1 -sleep 2 + sleep 2 +fi $USBLOAD --serial=$SERIAL $ALTOS_FILE || exit 1 -- cgit v1.2.3 From 96835cc841ff7afad0b4d2fe4b63f26b951da122 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 17 Jun 2018 00:19:37 -0700 Subject: ao-bringup: Find dfu-util in $PATH for chaoskey In case it's not in /usr/bin Signed-off-by: Keith Packard --- ao-bringup/turnon_chaoskey | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ao-bringup') diff --git a/ao-bringup/turnon_chaoskey b/ao-bringup/turnon_chaoskey index d710e5ff..9ad80912 100755 --- a/ao-bringup/turnon_chaoskey +++ b/ao-bringup/turnon_chaoskey @@ -1,7 +1,7 @@ #!/bin/sh -if [ -x /usr/bin/dfu-util ]; then - DFU_UTIL=/usr/bin/dfu-util +if [ -x `which dfu-util` ]; then + DFU_UTIL=`which dfu-util` else echo "Can't find dfu-util! Aborting." exit 1 @@ -33,7 +33,7 @@ $DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || true #$USBLOAD --serial=1 $ALTOS_FILE || exit 1 -sleep 1 +sleep 3 ./test-chaoskey -- cgit v1.2.3 From 8794920328c8311372f83e4e5656ce14c7f8336b Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sun, 1 Jul 2018 14:50:26 -0600 Subject: add a turnon script for TeleLCO v2.0 --- ao-bringup/turnon_telelco | 76 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100755 ao-bringup/turnon_telelco (limited to 'ao-bringup') diff --git a/ao-bringup/turnon_telelco b/ao-bringup/turnon_telelco new file mode 100755 index 00000000..dafa2131 --- /dev/null +++ b/ao-bringup/turnon_telelco @@ -0,0 +1,76 @@ +#!/bin/sh + +if [ -x /usr/bin/ao-flash-stm ]; then + FLASH_STM=/usr/bin/ao-flash-stm +else + echo "Can't find ao-flash-stm! Aborting." + exit 1 +fi + +if [ -x /usr/bin/ao-usbload ]; then + USBLOAD=/usr/bin/ao-usbload +else + echo "Can't find ao-usbload! Aborting." + exit 1 +fi + +VERSION=2.0 +REPO=~/altusmetrumllc/Binaries +PRODUCT=TeleLCO + +echo "$PRODUCT v$VERSION Turn-On and Calibration Program" +echo "Copyright 2018 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 "\t\twith coax from UHF to frequency counter" +echo + +case $# in + 1) + SERIAL="$1" + echo "$PRODUCT-$VERSION serial number: $SERIAL" + ;; + 0) + echo -n "$PRODUCT-$VERSION serial number: " + read SERIAL + ;; + *) + echo "Usage: $0 " 1>&2 + exit 1; + ;; +esac + +echo $FLASH_STM + +$FLASH_STM $REPO/loaders/telelco-v$VERSION*.elf + +sleep 3 + +$USBLOAD --serial=$SERIAL --force $REPO/telelco-v$VERSION*.elf || exit 1 + +sleep 5 + +dev=`ao-list | awk '/'"$PRODUCT-v$VERSION"'/ { print $3; exit(0); }'` + +case "$dev" in +/dev/tty*) + echo "$PRODUCT"' found on $dev' + ;; +*) + echo 'No '"$PRODUCT-v$VERSION"' found' + exit 1 + ;; +esac + +echo 'E 0' > $dev + +SERIAL=$SERIAL ./cal-freq $dev + +echo 'E 1' > $dev + +echo "$PRODUCT-v$VERSION" serial "$serial" is ready to ship +echo "\007" + +exit $? -- cgit v1.2.3