Giter Club home page Giter Club logo

Comments (5)

kevinmehall avatar kevinmehall commented on June 2, 2024 2

FWIW, this is a WinUSB limitation, not just nusb.

libusb's WinUSB backend just cancels transfers and clears the data toggles but that's not at all the same as a full reset of the port. nusb's design philosophy is that it should tell you when you when it can't do something instead of poorly trying to emulate it.

from probe-rs.

bugadani avatar bugadani commented on June 2, 2024

cc @Dirbaio

nusb errors when calling reset here. I'm not sure what we can do here except not trying to reset the probe and hoping it all works out.

from probe-rs.

Dirbaio avatar Dirbaio commented on June 2, 2024

this seems to be a fallback to get the stlink "unstuck", see

// Reset the device, and try to enter idle mode again
self.device.reset()?;

in normal operation stlink shouldn't need a reset, and it works fine for me on Windows. I'd guess there's something else wrong with that stlink, that not even a reset can fix. the fact that it doesn't work on 0.22 either (which can do the reset) fits in with that.

it's a bug that we show that error, we should ignore if reset fails with "not supported" errors.

from probe-rs.

Dirbaio avatar Dirbaio commented on June 2, 2024

When connecting to a onboard ST-LINK V2-1 nucleo board which has not closed proberby by the previous program.

@vDorst could you provide exact steps to reproduce this? Maybe there's another way to get the probe unstuck.

from probe-rs.

vDorst avatar vDorst commented on June 2, 2024

I think I can make a simple program for that.
May take a week.

from probe-rs.

Related Issues (20)

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.