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

Added SIGINT handler for stlink cleanup #135

Merged
merged 1 commit into from
Mar 6, 2013

Conversation

prattmic
Copy link
Contributor

@prattmic prattmic commented Mar 6, 2013

SIGINT causes st-util to immediately exit, without closing the open
stlink. This leaves devices (at least the F4 Discovery) in a state
where they are unable to reset. st-util could still connect and control
them, but a power cycle was required before they could reset on their
own.

A signal handler is added for SIGINT, which performs cleanup and closing
of the open stlink device, allowing it to function normally on
disconnect.

SIGINT causes st-util to immediately exit, without closing the open
stlink.  This leaves devices (at least the F4 Discovery) in a state
where they are unable to reset.  st-util could still connect and control
them, but a power cycle was required before they could reset on their
own.

A signal handler is added for SIGINT, which performs cleanup and closing
of the open stlink device, allowing it to function normally on
disconnect.
texane added a commit that referenced this pull request Mar 6, 2013
Add SIGINT handler for stlink cleanup
@texane texane merged commit 5be889e into stlink-org:master Mar 6, 2013
@Nightwalker-87 Nightwalker-87 added this to the v1.2.0 and older milestone Feb 25, 2020
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 13, 2020
@Nightwalker-87 Nightwalker-87 linked an issue Jun 21, 2020 that may be closed by this pull request
@Nightwalker-87 Nightwalker-87 changed the title Add SIGINT handler for stlink cleanup Added SIGINT handler for stlink cleanup Jun 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

second session on OSX fails without a power cycle
3 participants