plietar / dfuse-tool Goto Github PK
View Code? Open in Web Editor NEWA set of python scripts to create dfu files and upload them to stm32 boards
A set of python scripts to create dfu files and upload them to stm32 boards
I want to build a dfu file from 2 binaries, i tried the build option: python dfu-convert -b [address:path1, address:path2] -D vid:pid outfile.dfu
.
But when i tried that i got this error:
Traceback (most recent call last): File "dfu-convert", line 143, in <module> build ( outfile, [target], device ) File "dfu-convert", line 75, in build tdata=struct.pack ( '<6s2Is2I', 'Target', 0, 1, 'ST...', len ( tdata ), len ( target ) ) + tdata struct.error: argument for 's' must be a bytes object
Am i using the build option in a wrong way??
Where is the documentation to use these scripts?
Hello,
I am a user of the ODrive Motor Controller, which is open source. I was wondering if you could clarify the licence of the dfuse-tool; is it also open source?
Thank you,
Alex
Hi,
I have a question about your dfu-convert.py, for the sake of attribution. Your dfu-convert.py has support for intel hex files, which was not in Antonio's original version (which we, with Antonio's blessing, host in our dfu-util.sf.net project). Did you add this yourself?
I am considering merging this functionality back into ours, and I would prefer to attribute the change to its original author.
Thanks in advance!
Tormod
Traceback (most recent call last):
File "./dfuse-tool.py", line 147, in <module>
flash(args)
File "./dfuse-tool.py", line 63, in flash
dfu = find_device(args)
File "./dfuse-tool.py", line 14, in find_device
for _,alt in dfu.alternates():
File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 28, in alternates
return [(self.get_string(intf.iInterface), intf) for intf in self.cfg]
File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 28, in <listcomp>
return [(self.get_string(intf.iInterface), intf) for intf in self.cfg]
File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 73, in get_string
return usb.util.get_string(self.dev, 256, index)
File "/usr/lib/python3.5/site-packages/usb/util.py", line 318, in get_string
raise ValueError("The device does not support the specified langid")
ValueError: The device does not support the specified langid
This is because usb.util.get_string() fails. And this appears to be failing because the args are wrong.
This occurs on Fedora 24 with:
python3-pyusb-1.0.0-1.fc24.noarch
Hello.
Please tell me how I can decompile the file .dfu to file .hex?
I have system unit Dell Vostro 3267 which has a network module DW1707. Module DW1707 integrated Wi fi and bluetooth QCA9565.
I installed hackintosh on this computer, but in this bluetooth module the firmware is loaded only by drivers, when Windows starts. In order for the firmware in the bluetooth module to load when you start macOS, you need to take the firmware in the format .hex.
I downloaded the official drivers for my bluetooth module, but there are firmware files only in the format .dfu.
Here is the link to the drivers:
https://yadi.sk/d/cYGax0NEdoCF3w
https://www.dell.com/support/home/us/en/19/drivers/driversdetails?driverid=g66t8&oscode=wt64a&productcode=vostro-3267-desktop&lwp=rt
Please help me convert or decompile .dfu to .hex.
Thanks.
Flashing block 6
Traceback (most recent call last):
File "./dfuse-tool.py", line 147, in <module>
flash(args)
File "./dfuse-tool.py", line 103, in flash
status = dfu.wait_while_state(dfuse.DfuState.DFU_DOWNLOAD_BUSY)
File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 84, in wait_while_state
status = self.get_status()
File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 51, in get_status
status = self.control_msg(DFU_REQUEST_RECEIVE, DFU_GETSTATUS, 0, 6)
File "/home/rob/dfuse-tool/dfuse/DfuDevice.py", line 39, in control_msg
return self.dev.ctrl_transfer(requestType, request, value, self.intf.bInterfaceNumber, buffer)
File "/usr/lib/python3.5/site-packages/usb/core.py", line 1043, in ctrl_transfer
self.__get_timeout(timeout))
File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line 883, in ctrl_transfer
timeout))
File "/usr/lib/python3.5/site-packages/usb/backend/libusb1.py", line 595, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 32] Pipe error
This is apparently because the EPIPE is not being handled properly at a lower level and converted into a stall status.
I'm interested in using this code in a project but wanted to make sure the open source licenses would be compatible. Any chance of getting an explicit license added to the source?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.