intergatedcircuits / libusbdfu Goto Github PK
View Code? Open in Web Editor NEWC# USB DFU firmware upgrade utility using LibUsbDotNet
License: MIT License
C# USB DFU firmware upgrade utility using LibUsbDotNet
License: MIT License
hi, please manage docs how to communicate with iboot ios. like send file, send command, etc
When connecting to an STM32F730, the usbDevice gives a descriptor string of:
"@internal Flash /0x08000000/04016Kg,0164Kg,03*128Kg\0"
for the Memory description.
In the STM device itself, the descriptor string includes a single trailing '\0' character within the length of the string, and this is interpreted by the usbDevice as a trailing "\0" (2 characters) on the end of the string, as seen above.
This then fails the SeMemoryLayoutRegex and aborts the process.
Editing the string to remove the "\0" in debug 'fixes' the problem.
So, this appears to be a failure to handle unexpected descriptor string contents as parsed by LibUsbDotNet.
I don't know if there are options for IUsbInterface to parse this differently (and just truncate the string at the zero) or if it could be stripped off in LibUsbDfu.
(Strictly speaking, the actual zero in the descriptor itself shouldn't really be there, but it is.)
Hello, at first cool and fine work to bring dfu capability to c#.
It works in windows with zadics winusb drivers very good. In linux with rules
(SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="df11", MODE="0666")
the libusbdotnet can't open the dfu device and device.cs throws "The device doesn't have valid DFU interface".
I used the same arguments on both platforms, other dfu-tools like dfu-util or the stm programmer works with
user rights. For me, it seems to be a problem with libusbdotnet, but maybe you can make a workaround or fix
it.
Best regard, Martin
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.