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

Conversation

grevaillot
Copy link
Collaborator

stlink_open_usb now returns without failure when no target is detected, or when target is not fully handled. Fix behaviour of tools in that case.

nb: st-util handling should maybe be discussed. currently it allows to start with no supported flash, which is what i would expected from a debugging tool, but flashing wont work obvs.

refs #432

@grevaillot grevaillot force-pushed the to_merge/probe_unconnected_target branch from e77d561 to e90f809 Compare April 19, 2020 07:08
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
check flash type before attempting to continue flash operations
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..
Release v1.6.1 automation moved this from In progress to Reviewer approved Apr 20, 2020
@Nightwalker-87 Nightwalker-87 merged commit 4445e1c into stlink-org:develop Apr 20, 2020
Release v1.6.1 automation moved this from Reviewer approved to Done Apr 20, 2020
@Nightwalker-87
Copy link
Member

@grevaillot: Thx for addressing this.

@grevaillot grevaillot deleted the to_merge/probe_unconnected_target branch April 21, 2020 15:04
@stlink-org stlink-org locked as resolved and limited conversation to collaborators May 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[feature] Programmer serial should be displayed when no target is connected
2 participants