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

handle probed stlink with unconnected target properly #933

Merged

Commits on Apr 19, 2020

  1. stlink_open_usb: load device param returning -1 is not an usb issue.

    do not abort in case of load device param "error" :  this is supposed to return -1
    if device is "unknown" or not detected, which is not reaaally an error.
    
    we want probe to tell us what is the connected device even if we can not operate it
    we want probe to tell us that it can not operate it, not to hide the connected stlink
    grevaillot committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    1986173 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    784ea36 View commit details
    Browse the repository at this point in the history
  3. flash.c: stlink_open_usb can now return a sl with no, or unknown target.

    check flash type before attempting to continue flash operations
    grevaillot committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    5aa001c View commit details
    Browse the repository at this point in the history
  4. st-util: open usb can return sl pointer with no target connected.

    Check if connected target chip id is known. Some more info regarding
    connected chip should be set in chipid to know if debugging / attach
    is possible, but not yet. some more checks should be done to generate
    flash map / handle flashing if flash type is not supported..
    grevaillot committed Apr 19, 2020
    Configuration menu
    Copy the full SHA
    8f778b2 View commit details
    Browse the repository at this point in the history