Question
Could not update ST-Link firmware with latest STLinkUpgrade on macOS Catalina with Java 14 because libusb not found.
Here is an error:
java -jar STLinkUpgrade.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/yes/Downloads/stsw-link007/AllPlatforms/native/mac_x64/libSTLinkUSBDriver.dylib: dlopen(/Users/yes/Downloads/stsw-link007/AllPlatforms/native/mac_x64/libSTLinkUSBDriver.dylib, 1): Library not loaded: @rpath/libusb-1.0.0.dylib
Referenced from: /Users/yes/Downloads/stsw-link007/AllPlatforms/native/mac_x64/libSTLinkUSBDriver.dylib
Reason: image not found
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2452)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2508)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2704)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2637)
at java.base/java.lang.Runtime.load0(Runtime.java:745)
at java.base/java.lang.System.load(System.java:1871)
at com.st.stlinkinterface.e.a(SourceFile:127)
at com.st.stlinkupgrade.app.b.a(SourceFile:62)
at com.st.stlinkupgrade.app.MainApp.main(SourceFile:16)I also tried to replace provided libusb with installed with brew without luck. So how can I upgrade firmware? Am I missing something?
