Giter Site home page Giter Site logo

libusbdfu's People

Contributors

benedekkupper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libusbdfu's Issues

STM32F730 Memory descriptor fails

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.)

crossplatform / multitarget release

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.