{"action":"created","issue":{"url":"https://api.github.com/repos/texane/stlink/issues/331","labels_url":"https://api.github.com/repos/texane/stlink/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/texane/stlink/issues/331/comments","events_url":"https://api.github.com/repos/texane/stlink/issues/331/events","html_url":"https://github.com/texane/stlink/issues/331","id":101574744,"number":331,"title":"Can't use StLink on OS X: libusb timeouts","user":{"login":"rhaamo","id":8625,"avatar_url":"https://avatars.githubusercontent.com/u/8625?v=3","gravatar_id":"","url":"https://api.github.com/users/rhaamo","html_url":"https://github.com/rhaamo","followers_url":"https://api.github.com/users/rhaamo/followers","following_url":"https://api.github.com/users/rhaamo/following{/other_user}","gists_url":"https://api.github.com/users/rhaamo/gists{/gist_id}","starred_url":"https://api.github.com/users/rhaamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhaamo/subscriptions","organizations_url":"https://api.github.com/users/rhaamo/orgs","repos_url":"https://api.github.com/users/rhaamo/repos","events_url":"https://api.github.com/users/rhaamo/events{/privacy}","received_events_url":"https://api.github.com/users/rhaamo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-18T05:32:09Z","updated_at":"2015-08-18T06:08:48Z","closed_at":null,"body":"Hi,\r\n\r\nI got approximately one response for -a very long shot of runs-, so StLink CANT be used on OSX...\r\n\r\n```\r\n➜  stlink git:(master) ✗ ./st-info --descr\r\nlibusb_handle_events() timeout\r\n[!] send_recv\r\n^C\r\n```\r\n\r\nEven tried stable libusb or HEAD, no success.\r\n\r\nAccording to wiki https://github.com/texane/stlink/wiki \"After downgrading the firmware, flashing works ST-Link/V2 debugger with downgraded V2.14.3 firmware\".\r\n\r\nTried that and it doesn't works, also 2.14 is really old...\r\n\r\nAlso \"openocd\" doesn't works too.\r\n(And that's not a problem with my adapter, it works perfectly on windows using stlink or linux with openocd or stlink)\r\n\r\nAny 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..."},"comment":{"url":"https://api.github.com/repos/texane/stlink/issues/comments/132085081","html_url":"https://github.com/texane/stlink/issues/331#issuecomment-132085081","issue_url":"https://api.github.com/repos/texane/stlink/issues/331","id":132085081,"user":{"login":"rhaamo","id":8625,"avatar_url":"https://avatars.githubusercontent.com/u/8625?v=3","gravatar_id":"","url":"https://api.github.com/users/rhaamo","html_url":"https://github.com/rhaamo","followers_url":"https://api.github.com/users/rhaamo/followers","following_url":"https://api.github.com/users/rhaamo/following{/other_user}","gists_url":"https://api.github.com/users/rhaamo/gists{/gist_id}","starred_url":"https://api.github.com/users/rhaamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhaamo/subscriptions","organizations_url":"https://api.github.com/users/rhaamo/orgs","repos_url":"https://api.github.com/users/rhaamo/repos","events_url":"https://api.github.com/users/rhaamo/events{/privacy}","received_events_url":"https://api.github.com/users/rhaamo/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T06:08:48Z","updated_at":"2015-08-18T06:08:48Z","body":"i only have \"libusb: stable 1.0.19, HEAD // Built from source\" here, also tried --HEAD but that doesn't changed anything.\r\nMy StLink is git-cloned and built handy (not using brew even if it seems to exist).\r\n\r\nI've previously tried fw:\r\n  - 2.J14.S0 (from wiki dropbox link)\r\n  - 2.J15.S0 (same)\r\n  - 2.J16.S0 (same)\r\n  - 2.J17.S0 (same)\r\n  - 2.J21.S0 (same)\r\n  - 2.J24.S0 (from StLink windows utility, official)\r\n\r\nNo success at all. First plug in mac works, latests runs fails, openocd doesn't even get working on first launch.\r\n\r\n```\r\n➜  stlink git:(master) ✗ ./st-info --descr\r\nF4 device (low power) - stm32f411re\r\n➜  stlink git:(master) ✗ ./st-info --descr\r\nlibusb_handle_events() timeout\r\n[!] send_recv\r\n--stuck here, can only ^C--\r\n```\r\n\r\nI have only a stm32f4-discovery, I can try to see if a friend have another boards with on-board splittable StLink tonight.\r\n\r\nI 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."}}