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

[feature] Added connect under reset to stlink_open_usb( ) #963

Merged
merged 3 commits into from
May 28, 2020

Conversation

geoffreymbrown
Copy link
Collaborator

I've added a small change to stlink_open_usb to support connect under reset. In addition, I added an option to tests/usb.c (--reset or --no-reset) to use this mode.

@Nightwalker-87 Nightwalker-87 linked an issue May 22, 2020 that may be closed by this pull request
6 tasks
@Nightwalker-87 Nightwalker-87 self-requested a review May 22, 2020 20:00
@geoffreymbrown
Copy link
Collaborator Author

geoffreymbrown commented May 22, 2020 via email

@Nightwalker-87 Nightwalker-87 added this to the v1.6.1 milestone May 22, 2020
@Nightwalker-87 Nightwalker-87 changed the title added connect under reset code [feature] Added connect under reset to stlink_open_usb( ) May 22, 2020
@chenguokai
Copy link
Collaborator

As far as I have seen, the code added a new argument to tests/usb.c, not to the existing utilities like st-flash, while the original issue refers to st-flash. Would you be kind enough to add this argument for st-flash?

Relevant files are tools/flash_opts.c, tools/flash.c and some relevant headers.

@geoffreymbrown
Copy link
Collaborator Author

geoffreymbrown commented May 23, 2020 via email

@chenguokai
Copy link
Collaborator

@Nightwalker-87 Maybe you are the best person to make decisions on this kind of issues:-)

@geoffreymbrown
Copy link
Collaborator Author

geoffreymbrown commented May 23, 2020 via email

@Nightwalker-87
Copy link
Member

I can but I need a bit more guidance. What flag should I add ? --connect-under-reset ?

I think that is what @chenguokai referred to. You can proceed as proposed, but we will need someone to test it before merging.

@geoffreymbrown
Copy link
Collaborator Author

geoffreymbrown commented May 23, 2020 via email

@Nightwalker-87
Copy link
Member

@geoffreymbrown: This PR has been updated automatically with the update to your branch. Thx for testing and the related description. Looks good to me. 👍

@Nightwalker-87
Copy link
Member

@chenguokai: Can you review the updated changes as well?

@Nightwalker-87 Nightwalker-87 merged commit 8d8eb0d into stlink-org:develop May 28, 2020
@Nightwalker-87
Copy link
Member

Thx for your contribution @geoffreymbrown.

@stlink-org stlink-org locked as resolved and limited conversation to collaborators Jun 28, 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] Add "Connect under Reset" option
3 participants