-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
STM32F407: st-trace can't reconnect #1272
Comments
Could you recreate the issue with verbose output using the following command? Could you give some information about libusb with the following command? |
@simplerobot: if that’s Windows, there’s no apt-cache. |
Here it is starting correctly in verbose mode. I also updated STLink via ST-Link Utility on firmware
Here it is reconnecting in verbose mode and getting stuck. I did not pulled out USB, I only let it timeout.
Here I made exactly same test with 64-bit version of binaries
Also what I see on ST-Link itself:
Additionally tested connecting directly to USB on motherboard (ST-Link is usually connected via the USB-Hub), got same issue with stuck ST-Link.
|
@gszy @simplerobot Any ideas on how to proceed here? |
I think the problem is with the windows signal handling. I think the fix is simple, but I don't have a good way to reproduce this issue or verify the fix. Issue details: Note: I believe st-util should have the same issue: windows signal handler |
@simplerobot I'll have a look at it soon. |
Ok, so we'd need someone to test this. |
I can test it, I will be available next weekend for it. |
@jared52005 We believe this is fixed now. |
Ping @jared52005 |
Yes we can continue seems to work for me. |
Thank you for giving feedback to the stlink project.
NOTE: In order to offer sufficient and the best possible support, please read /CONTRIBUTING.md and follow the given instructions before submitting a ticket.
Bug reports and/or feature requests will be deleted, if they violate our contribution guidelines and if no issue-template is used! Thank you for your support.
In order to allow developers to isolate and target your respective issue, please take some time to select the check boxes below and fill out each of the following items appropriate to your specific problem.
st-trace
]Further we kindly ask you to describe the detected problem as detailed as possible and to add debug output if available, by using the following template:
Step 1:
Begin reading a trace and then end the application using Ctrl+C
Step 2:
Reconnect. Sometimes
st-trace
is able to get through and it will reconnect correctly, usually I will end up withLIBUSB_ERROR_TIMEOUT
error and thenLIBUSB_ERROR_PIPE
when I will pull USB cable out of ST-Link deviceBy sending termination signal using
ctrl+c
thest-trace.exe
will be left hanging in the memory or it won't send ST-Link itself a signal to stop logging. This means thatst-trace
is unable to reconnect to the busy ST-Link. Pulling USB out of ST-Link and connecting it back will cause that it is possible to reconnect and log again.Expected action: Some cleanup code, which would close / stop ST-Link logging before exiting the
st-trace.exe
program.The text was updated successfully, but these errors were encountered: