aboutsummaryrefslogtreecommitdiff
path: root/Tools/px_uploader.py
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-11-02 22:13:59 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-11-02 22:13:59 +0100
commit72977ee9098758b5e00d9ac8df916bb221b2953f (patch)
tree34c430a6a5370879db056744360c1e4fd798e869 /Tools/px_uploader.py
parent44a247363248caadecc4518048ab513d2dfd202e (diff)
downloadpx4-firmware-72977ee9098758b5e00d9ac8df916bb221b2953f.tar.gz
px4-firmware-72977ee9098758b5e00d9ac8df916bb221b2953f.tar.bz2
px4-firmware-72977ee9098758b5e00d9ac8df916bb221b2953f.zip
Better error handling instructions
Diffstat (limited to 'Tools/px_uploader.py')
-rwxr-xr-xTools/px_uploader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py
index 8a89fdf06..d4e461226 100755
--- a/Tools/px_uploader.py
+++ b/Tools/px_uploader.py
@@ -459,6 +459,7 @@ if os.path.exists("/usr/sbin/ModemManager"):
# Load the firmware file
fw = firmware(args.firmware)
print("Loaded firmware for %x,%x, waiting for the bootloader..." % (fw.property('board_id'), fw.property('board_revision')))
+print("If the board does not respond within 1-2 seconds, unplug and re-plug the USB connector.")
# Spin waiting for a device to show up
while True:
@@ -508,6 +509,7 @@ while True:
except Exception:
# most probably a timeout talking to the port, no bootloader, try to reboot the board
print("attempting reboot on %s..." % port)
+ print("if the board does not respond, unplug and re-plug the USB connector.")
up.send_reboot()
# wait for the reboot, without we might run into Serial I/O Error 5
time.sleep(0.5)