Commit Graph

13 Commits

Author SHA1 Message Date
iabdalkader
fe59c25e22 PYDFU: Send clear status only if DFU is not idle.
* H7 bootloader doesn't seem to like it.
2017-12-24 20:43:23 +02:00
iabdalkader
31fa996649 Support loading binary images from pydfu.py 2016-05-03 16:13:37 +02:00
iabdalkader
fc2a5bb1c7 Use python2 to run openmv.py, pydfu.py and openmv-ide.py 2015-10-03 23:53:03 +02:00
Ibrahim Abd Elkader
65bb893790 Merge pull request #48 from dhylands/pydfu-improvement
pydfu - minor improvement in list construction.
2015-07-01 23:44:00 +03:00
Dave Hylands
1790d04c87 pydfu - minor improvement in list construction.
This was a change done by @dpgeorge in the micropython tree and
I'm basically migrating back to openmv.
2015-07-01 12:40:09 -07:00
Dave Hylands
2e27055f69 Fix pydfu.py to work with Beta 1 and Beta 2 versions of PyUSB
In PyUSB 1.0.0.b1, the usb.util.get_string function takes a lenght argument.
In PyUSB 1.0.0.b2, it no longer takes a length argument.

Since python2 seems to come with PyUSB 1.0.0.b1 and python3 seems to come
with 1.0.0.b2, this change allows the same source to work with either
version of PyUSB.
2015-06-21 06:41:01 -07:00
iabdalkader
80740ed910 Catch device disconnected except when exiting DFU 2015-04-29 00:01:59 +03:00
iabdalkader
b9d96dab42 Fix pydfu/libusb issue
* See https://github.com/walac/pyusb/issues/94
2015-04-22 02:28:12 +02:00
iabdalkader
46bbb691ca Make get_dfu_devices compatible with pyusb 1.0.0b2 2014-10-31 13:43:18 +02:00
iabdalkader
c15fc85786 Decode byte string for Python3 2014-10-22 17:03:45 +02:00
Dave Hylands
bdf8b7bde8 Rework pydfu.py to support .dfu files.
You can now use ./pydfu.py -l to list available DFU devices.
You can now use ./pydfu.py -u firmware.dfu to program .dfu files.
Made --mass-storage be an option, and it now erases pages as needed
by default rather than erasing everything.

I didn't maintain support for raw binary files, but that would be
easy to add back if needed.

The file is now mostly pep8 and pylint clean.
2014-10-12 13:30:22 -07:00
iabdalkader
619bc14fa1 Fix exit_dfu 2014-10-03 03:51:48 +02:00
iabdalkader
0573d0726d Add Python DFU Util 2014-10-03 03:32:20 +02:00