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

st-flash: dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib #596

Closed
sstaub opened this Issue Mar 25, 2016 · 13 comments

Comments

Projects
None yet
2 participants
@sstaub

sstaub commented Mar 25, 2016

I can't upload code to my Seeeduino Arch Max. Here a screenshot with the error code. OS X 10.10.5
Last version of Plarformio, IDE and mbed framework. I can compile the code on the mbed online IDE.
upload seed arch max

@ivankravets ivankravets added the bug label Mar 25, 2016

@ivankravets ivankravets changed the title from Can't upload code to seeeduino Arch Max to ST Link doesn't work under Mac Mar 25, 2016

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 25, 2016

Mac OS doesn't allow via GCC to build program with -static libs. Temporary solution:

  1. Install Homebrew
  2. $ brew install libusb

@ivankravets ivankravets changed the title from ST Link doesn't work under Mac to st-flash: dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib Mar 25, 2016

@sstaub

This comment has been minimized.

sstaub commented Mar 26, 2016

I installed libusb via macports, but it doesn't work.

@sstaub

This comment has been minimized.

sstaub commented Mar 26, 2016

Maybe that is problem with OS X yosemite.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 26, 2016

Please try brew

@sstaub

This comment has been minimized.

sstaub commented Mar 26, 2016

I installed with homebrew, but I get another error. The board has the last firmware installed.
upload error

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 27, 2016

I've just rebuilt tool-stlink for Mac. Please download tool-stlink.zip manually. Unzip it. Replace with files in /Users/sstaub/.platformio/packages/tool-stlink.

If it works for you, I'll update package globally.

@ivankravets ivankravets self-assigned this Mar 27, 2016

@ivankravets ivankravets added help wanted and removed bug labels Mar 27, 2016

@sstaub

This comment has been minimized.

sstaub commented Mar 27, 2016

It doesn't work, I get the same error again. Maybe that is a board specific problem. I can upload
to a STM32F303 Nucleo board without a problem.
I think on installation for mac, the 'libusb' should also installed.

@ivankravets ivankravets removed their assignment Mar 27, 2016

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 27, 2016

@valeros do you have any ideas?

@sstaub

This comment has been minimized.

sstaub commented Mar 27, 2016

I think the upload must work like on other mbed boards like the Arch Pro. The code is uploaded to USB-drive 'mbed', It seems that the ST-Link don't use this way.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 27, 2016

Do you have mbed disk drive?

@sstaub

This comment has been minimized.

sstaub commented Mar 27, 2016

Yes. The board doesn't have an ST-Link debugger. See: http://www.seeedstudio.com/wiki/Arch_Max

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 27, 2016

It looks strange because mbed should be used. See https://github.com/platformio/platformio/blob/develop/platformio/builder/scripts/ststm32.py#L106

Please contact me@ikravets.com with TeamViewer session.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Mar 29, 2016

Fixed in bc3d8d2

@ivankravets ivankravets self-assigned this Mar 29, 2016

@ivankravets ivankravets added this to the 2.8.7 milestone Mar 29, 2016

@ivankravets ivankravets added bug and removed help wanted labels Mar 29, 2016

ivankravets added a commit that referenced this issue Apr 28, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment