Lucas De Marchi
f9795ccbab
px_uploader: support multiple baud rates
...
We may need to change the baud rate from one version to the other.
Allowing the script to try multiple baud rates makes the transition a
little bit less painful.
This also fixes a bug in which it would go the next port before trying
to identify the board after asking it to reboot.
8 years ago
Julian Oes
c91b36bf1f
px_uploader.py: try to follow PEP8 ( #6278 )
...
This fixes some non-Pythonic things and unneccessary semicolons.
Still to fix are line-length and multiple spaces before operators.
8 years ago
Julian Oes
d57e9f13d7
px_uploader.py: catch exception in except block
...
This could lead to an exception if serial is not available.
8 years ago
Julian Oes
d1822699a9
px_uploader.py: remove unused variable
8 years ago
Julian Oes
a14c565ab1
px_uploader.py: trailing whitespace
8 years ago
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.
8 years ago
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.
8 years ago
Lorenz Meier
71fd4b9e98
Uploader tool: Try MAVLink reboot command first
9 years ago
Lorenz Meier
f918b0c992
Uploader: Make sure to warn about wrong board type
9 years ago
David Sidrane
923a43b67f
Support for Rev 5 of Bootloader
9 years ago
Andrew Tridgell
2c2359dcf0
px_uploader.py: added --boot-delay option
...
this sets the bootloader delay
10 years ago
Andrew Tridgell
332d42b105
px_uploader: print chip version
10 years ago
Andrew Tridgell
d9b4f5b170
px_loader: added --force option
...
this can be used to override the board type check. Useful when
changing bootloaders
10 years ago
Lorenz Meier
200f0e9a93
Better error handling for multi-board setups
10 years ago
Lorenz Meier
a31fccb0b0
Uploader: Fix flashing if multiple board types are connected
10 years ago
Lorenz Meier
6d2e8b9d08
Reduce delay between board search attempts, code style
10 years ago
Johan Jansen
74177a2688
px4_uploader: Push program bytes faster by using bigger blocks
10 years ago
Johan Jansen
a8f9caaaa5
px4_uploader: Prevent spin-lock from hogging CPU
10 years ago
Simon Wilks
0a99a26fcc
Cleanup uploader output.
10 years ago
Johan Jansen
11469ad9b5
px_uploader: Small fix to properly display timeouts
10 years ago
Johan Jansen
1eda1f816b
px_uploader: Minor code cleanup
10 years ago
Johan Jansen
2aa7b3038a
px_uploader: Added progress bar for erasing and uploading firmware
10 years ago
Lorenz Meier
8e8dd62fbd
Let the uploader print the binary size
10 years ago
Lorenz Meier
72977ee909
Better error handling instructions
10 years ago
Lorenz Meier
44a2473632
Fix up reboot logic
10 years ago
Lorenz Meier
5862f4ffe6
Fix error handling
10 years ago
Lorenz Meier
166580b8f7
Time out on serial instead of just hanging there
10 years ago
Lorenz Meier
9825ed8f3c
Attempt at fixing programming timeouts
11 years ago
Lorenz Meier
3f4aef60c8
Increase timeout in an attempt to prevent timout python failure
11 years ago
Lorenz Meier
d6999384ce
Improve modem manager warning to avoid having smart people tell us we have Linux compatibility issues while we actually do not.
11 years ago
Andrew Tridgell
0785512026
px_uploader: added ModemManager warning
11 years ago
Andrew Tridgell
ec2197fd1b
uploader: ignore bad character encodings for older bootloaders
...
this prevents the uploader from throwing an exception with older
bootloaders
11 years ago
Lorenz Meier
70964dd87c
Update upload script from bootloader repo
11 years ago
Lorenz Meier
080b2da214
Updated uploader from Bootloader repo
11 years ago
Lorenz Meier
dc2f40b80d
Updated uploader from Bootloader repo
11 years ago
Julian Oes
dcfd5bdbe7
Python uploader: Ignore exceptions when sending reboot tries
11 years ago
Lorenz Meier
8aaf285ac5
Python exception handling from muggenhor
11 years ago
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
12 years ago
Lorenz Meier
57769ec437
Reducing timeout to 0.5 seconds
12 years ago
Julian Oes
d30ba44f46
The python uploader can now reboot the board
12 years ago
Julian Oes
59373399ff
Uploader works now with Python 2.7 and 3.3
12 years ago
Lorenz Meier
3c0c11aec3
v4 compatibility
12 years ago
Julian Oes
1fed9ef1b1
Make px_mkfw.py and px_upload.py compatible with both python 2.7 and 3.3
12 years ago
px4dev
01e427b17c
Merge working changes into export-build branch.
12 years ago
px4dev
7e0f8b3eda
Formatting changes to make the Python style checker happy (copied from the bootloader project).
...
Increase the erase timeout to avoid issues with large/slow flash.
12 years ago
px4dev
a7cf9e2a36
Make 'make upload' work
12 years ago
Lorenz Meier
3ea44e4a29
Hotfix: Make firmware generator and uploader python scripts Python 2 AND Python 3 compatible.
12 years ago
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
12 years ago
Thomas Gubler
e0376fc375
archlinux compatibility
12 years ago
Lorenz Meier
c7616f89a3
Hotfix: Made uploader more verbose on errors
12 years ago