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

st-flash: respect --connect-under-reset option #1051

Merged

Conversation

timothytylee
Copy link
Collaborator

The --connect-under-reset option is already parsed by src/st-flash/flash_opts.c. Respect this option when opening the USB connection.

@Nightwalker-87
Copy link
Member

Can you verify that this closes some related issues to --connect-under-reset ? There were some previous approaches to address this issue already. It would be good to know why they obviously failed.

@geoffreymbrown
Copy link
Collaborator

geoffreymbrown commented Oct 17, 2020 via email

@Nightwalker-87
Copy link
Member

#62, #468 may be related to this issue. Is there any possibility for verification and testing?

@timothytylee
Copy link
Collaborator Author

So the reason for this patch, is that I'm reviving the patches from #1033 to add STM32H7 support. What I have found is that unless I connect to the target board under reset, the chip ID would be read back incorrectly.

I cannot comment on other STM32 targets.

@Nightwalker-87
Copy link
Member

@timothytylee: Thx for the feedback. Maybe someone else can look at it with the focus on some other targets as well. Thus I'll leave this PR open to feedback for another few days.

@Nightwalker-87 Nightwalker-87 merged commit fd77d70 into stlink-org:develop Oct 21, 2020
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Dec 5, 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.

None yet

4 participants