-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
MCU hotplug - Stlink can't recover from MCU hotplug #449
Comments
I think this has something todo with the programmer firmware itself, as it is in a state where it has the old target remembered and you hot-plug your target. Currently the tools can not recover from this, as the programmer needs probably a jtag reset. Normaly when this occurs the tools should try to recover and reset the programmer into a know state. I have seen this kind of behaviour. When you reset the usb port with a script it reinitialized the programmer and the stlink tools then run from a clean state. This is related to the older issue #244. |
Thank you for your answer.
|
|
Ok. |
I'm not 100% how the reset will behave with the programmer when calling |
I don't know how often typical Stlink Tools user deals with this bug, but for me it happens dozens of times every day and takes tens minutes daily. Also I still don't understand if it possible to create real fix (not workaround) without complete rewrite of programmers firmware (which looks almost impossible). |
You could try to patch and add I'm not sure where in the flow we should place the reset currently. |
Not many people use it this way, and it is not a very easy fix. I will close it for now. If somebody feels like to implement this feature feel free and I will reopen this issue. Thanks for reporting! |
Reopening this "lost" request. |
This issue is now closed due to inactivity. |
st-info
,st-flash
, probably anySteps to reproduce:
Output:
Expected/description:
If disconnect programmer from USB and connect again error goes away. Now I use special script from here to reset USB port before flashing: http://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line
The text was updated successfully, but these errors were encountered: