-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Can't use StLink on OS X: libusb timeouts #331
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
Comments
I am using stlink on OSX 10.9.5. The board is a STM32F7 Discovery with the supplied firmware, and both flashing from st-flash and debugging with st-util works. |
Well here it doesn't works at all. Also as you can probably understand, sticking with an old firmware and using recent MCU isn't the best recommended way to help working with them. |
8000
I will test some other boards later today and also check firmware versions My libusb setup from brew: libusb: stable 1.0.19 (bottled), HEAD libusb-compat: stable 0.1.5 (bottled) |
i only have "libusb: stable 1.0.19, HEAD // Built from source" here, also tried --HEAD but that doesn't changed anything. I've previously tried fw:
No success at all. First plug in mac works, latests runs fails, openocd doesn't even get working on first launch.
I have only a stm32f4-discovery, I can try to see if a friend have another boards with on-board splittable StLink tonight. I doesn't know StLink nor libusb code but if provided patchs/commits/whatever to see/display debugs things that can help i can do it. |
For some more debug info try |
First run:
Second run (not disconnected, just after ^C):
Usb reported as:
Each time it "crashes" it just stay as-is, no output, nothing, can just ^C and reconnect and retry |
I've rebuilt libusb with --with-default-log-level-debug, here is the output of st-info --descr on first run and second run : https://gist.github.com/rhaamo/15d7cb2f7f4f7dc5c810 |
I cannot replicate your problems on my system, tried with STM32F4 Discovery straight out of the package, works, upgraded to latest STLink firmware works. (I do find some other weirdness but thats for a different thread) |
Tried a STM32L0538-DISCO (stock fw i think), and a StLink/v2 clone and same problem everytime, i got timeouts after second run... |
What osx version ? |
10.11 beta 4, i'm updating to beta 5 and will retry tonight. |
I have the same issue with 10.11 release version. Basically st-link will not work with El Capitan which is a rather major issue as I can no longer do anything since upgrading. mlu I'm guessing you're still on 10.10 or 10.9? |
Yes I am still at 10.9.5 |
just wanted to throw in here and say I'm experiencing the exact same problem with my STLink v2 mini. OSX 10.11 (15A284). I'm using OpenOCD, custom hardware with an STM32F411 core. Works once and then I have to power cycle the STLink in order to program again. Worked fine in Yosemite. |
Same here. |
Same problem, using OSX 10.11.1 |
As per libusb developers this is not a libusb issue libusb/libusb#111 |
I have re-opened libusb issue 111. |
As mentioned in libusb/libusb#111, the work-around seems to be read the ST-Link version twice. Please try that. As per the report in the OpenOCD mailing list, that seems to sort out the problem. |
As per report in libusb ticket, this is an Apple USB Stack bug and Apple Mac OS X A10.11.4 beta seems to sort out this issue. |
Confirmed, fixed in OSX 10.11.4 beta. |
Is it worth updating to the beta on my main machine for this fix? Wondering if there are other stability issues to keep in mind. |
As mentioned by @Cheong2K i'm closing this for now. Reopen when there are still problems related to this issue. |
Hi,
I got approximately one response for -a very long shot of runs-, so StLink CANT be used on OSX...
Even tried stable libusb or HEAD, no success.
According to wiki https://github.com/texane/stlink/wiki "After downgrading the firmware, flashing works ST-Link/V2 debugger with downgraded V2.14.3 firmware".
Tried that and it doesn't works, also 2.14 is really old...
Also "openocd" doesn't works too.
(And that's not a problem with my adapter, it works perfectly on windows using stlink or linux with openocd or stlink)
Any plans to take a look about this issue ? Since this make any development on OS X impossible unless playing with two laptops only for StLink...
The text was updated successfully, but these errors were encountered: