Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed st-info --probe mechanism #918

Merged
merged 7 commits into from
Apr 10, 2020

Commits on Apr 10, 2020

  1. usb.h: define some stlink usb pid macros, stop copypasting.

    ease v1/v2/v2.1/v3 identification and supported devices filtering
    grevaillot committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    90081dd View commit details
    Browse the repository at this point in the history
  2. usb.c: align probe code.

    actually open all counted devices - the two vid check need to be aligned.
    also now display if some st device has been skipped.
    grevaillot committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    8fba7ab View commit details
    Browse the repository at this point in the history
  3. usb.c: rework probe loop to _not_ free all stuff without closing if _…

    …one_ probe failed.
    
    we return count and list of successfully probed devices, no need to free
    everything if some libusb call of the last probe attempt failed.
    grevaillot committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    6b03c7f View commit details
    Browse the repository at this point in the history
  4. stlink_probe_usb_devs: return number of successfully opened devices, …

    …not number of probed devices.
    grevaillot committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    aff1df2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    512999d View commit details
    Browse the repository at this point in the history
  6. stlink_open_usb: fix serial lookup mecanism when a v1 device is conne…

    …cted.
    
    serial match was not done for v1 device, resulting in attempting to open it systematically,
    leading to some libusb device claim call failure.
    Lookup device serial for all chips, compare it if needed, and continue.
    grevaillot committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    395eee5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cec61aa View commit details
    Browse the repository at this point in the history