Commit Graph

104 Commits

Author SHA1 Message Date
Julian Oes d1822699a9 px_uploader.py: remove unused variable 2016-10-20 23:18:56 +02:00
Julian Oes a14c565ab1 px_uploader.py: trailing whitespace 2016-10-20 23:18:56 +02:00
José Roberto de Souza b9728ecf39 Uploader tool: Add option to set different baudrates for bootloader and flight stack
By default the baudrate in flight stack (Mavlink or NSH) 57600 and the default
baudrate of bootloader is 115200. So we may need to set different
baudrates.
2016-10-05 11:25:14 +02:00
José Roberto de Souza 7e0946466e Uploader tool: Reboot board and keep it in bootloader
The Mavlink reboot messages was only requesting the board to reboot.
If the flashed bootloader has a small or no timeout user will
never be able to update firmware.
2016-10-05 11:25:14 +02:00
Lorenz Meier 71fd4b9e98 Uploader tool: Try MAVLink reboot command first 2016-09-17 23:49:41 +02:00
Lorenz Meier f918b0c992 Uploader: Make sure to warn about wrong board type 2016-01-21 09:34:54 +01:00
David Sidrane 923a43b67f Support for Rev 5 of Bootloader 2015-12-04 13:10:29 -10:00
Andrew Tridgell 2c2359dcf0 px_uploader.py: added --boot-delay option
this sets the bootloader delay
2015-03-14 21:12:21 +11:00
Andrew Tridgell 332d42b105 px_uploader: print chip version 2015-03-07 09:46:27 +01:00
Andrew Tridgell d9b4f5b170 px_loader: added --force option
this can be used to override the board type check. Useful when
changing bootloaders
2015-03-07 09:45:51 +01:00
Lorenz Meier 200f0e9a93 Better error handling for multi-board setups 2015-03-02 23:05:03 +01:00
Lorenz Meier a31fccb0b0 Uploader: Fix flashing if multiple board types are connected 2015-03-02 22:36:48 +01:00
Lorenz Meier 6d2e8b9d08 Reduce delay between board search attempts, code style 2015-02-26 13:07:43 +01:00
Johan Jansen 74177a2688 px4_uploader: Push program bytes faster by using bigger blocks 2015-02-26 11:14:54 +01:00
Johan Jansen a8f9caaaa5 px4_uploader: Prevent spin-lock from hogging CPU 2015-02-26 11:14:06 +01:00
Simon Wilks 0a99a26fcc Cleanup uploader output. 2015-01-19 16:51:08 +01:00
Johan Jansen 11469ad9b5 px_uploader: Small fix to properly display timeouts 2015-01-12 12:25:30 +01:00
Johan Jansen 1eda1f816b px_uploader: Minor code cleanup 2015-01-08 16:30:47 +01:00
Johan Jansen 2aa7b3038a px_uploader: Added progress bar for erasing and uploading firmware 2015-01-08 13:18:50 +01:00
Lorenz Meier 8e8dd62fbd Let the uploader print the binary size 2014-11-15 13:49:06 +01:00
Lorenz Meier 72977ee909 Better error handling instructions 2014-11-02 22:13:59 +01:00
Lorenz Meier 44a2473632 Fix up reboot logic 2014-11-02 22:03:49 +01:00
Lorenz Meier 5862f4ffe6 Fix error handling 2014-11-02 22:00:42 +01:00
Lorenz Meier 166580b8f7 Time out on serial instead of just hanging there 2014-11-02 21:41:55 +01:00
Lorenz Meier 9825ed8f3c Attempt at fixing programming timeouts 2014-08-25 10:21:26 +02:00
Lorenz Meier 3f4aef60c8 Increase timeout in an attempt to prevent timout python failure 2014-08-12 08:21:38 +02:00
Lorenz Meier d6999384ce Improve modem manager warning to avoid having smart people tell us we have Linux compatibility issues while we actually do not. 2014-07-08 11:42:46 +02:00
Andrew Tridgell 0785512026 px_uploader: added ModemManager warning 2014-07-08 11:41:04 +02:00
Andrew Tridgell ec2197fd1b uploader: ignore bad character encodings for older bootloaders
this prevents the uploader from throwing an exception with older
bootloaders
2014-04-05 12:07:27 +02:00
Lorenz Meier 70964dd87c Update upload script from bootloader repo 2014-02-09 18:34:54 +01:00
Lorenz Meier 080b2da214 Updated uploader from Bootloader repo 2014-02-05 14:24:01 +01:00
Julian Oes dcfd5bdbe7 Python uploader: Ignore exceptions when sending reboot tries 2013-12-02 23:07:36 +01:00
Lorenz Meier 8aaf285ac5 Python exception handling from muggenhor 2013-10-13 12:38:26 +02:00
Andrew Tridgell 1f19a27e3c make upload on Linux much more reliable
Upload on Linux now only tries usb-3D_Robotics boards. This should
also make it handle more ports on MacOS
2013-09-12 00:47:08 +02:00
Lorenz Meier 57769ec437 Reducing timeout to 0.5 seconds 2013-09-10 14:09:09 +02:00
Julian Oes d30ba44f46 The python uploader can now reboot the board 2013-09-04 14:54:16 +02:00
Julian Oes 59373399ff Uploader works now with Python 2.7 and 3.3 2013-09-04 13:30:00 +02:00
Julian Oes 96e7f42844 Merge branch 'master' into python3_compat 2013-09-03 09:34:25 +02:00
Lorenz Meier 3c0c11aec3 v4 compatibility 2013-09-03 07:49:57 +02:00
Julian Oes 1fed9ef1b1 Make px_mkfw.py and px_upload.py compatible with both python 2.7 and 3.3 2013-08-23 13:37:58 +02:00
px4dev 01e427b17c Merge working changes into export-build branch. 2013-04-26 16:14:32 -07:00
Lorenz Meier 3ea44e4a29 Hotfix: Make firmware generator and uploader python scripts Python 2 AND Python 3 compatible. 2013-03-18 15:11:02 +01:00
Lorenz Meier a03a2f9231 Hotfix: Roll back an attempt to let the system know we want Python 2. Its better to make the uploader Python 3 compatible 2013-03-18 09:38:35 +01:00
Thomas Gubler e0376fc375 archlinux compatibility 2013-03-09 15:22:24 +01:00
Lorenz Meier c7616f89a3 Hotfix: Made uploader more verbose on errors 2012-12-01 02:03:30 +01:00
Lorenz Meier 21b86cba26 Updated upload script 2012-10-02 10:41:21 +02:00
Lorenz Meier 9de6a81543 Updated EKF filter, fixed uploader (reverted to master) 2012-10-02 09:23:47 +02:00
tnaegeli c9f27cbdc9 f 2012-09-24 18:23:00 +02:00
px4dev e3f0b8f255 Add support for a range of bootloader protocols. 2012-09-19 21:52:42 -07:00
px4dev 0ad1834242 Minor correctness fixes. 2012-09-16 12:26:14 -07:00
px4dev b871d28c6d Avoid trying to adjust the port timeout once it's open; Windows apparently doesn't like this. 2012-09-09 22:09:17 -07:00
px4dev be85f895a0 Use a much shorter timeout for normal communication, and stretch it only when we are waiting for erase. 2012-08-22 17:06:58 -07:00
px4dev 67ae727365 Bootloader requires images be a multiple of 4 bytes; pad to comply. 2012-08-11 19:42:24 -07:00
px4dev 8a365179ea Fresh import of the PX4 firmware sources. 2012-08-04 15:12:36 -07:00