Hello !
I have a problem when i’m building my project which was working few weeks ago.
Here the configuration loaded :
Processing l0 (platform: ststm32; board: l0; framework: stm32cube)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/l0.html
PLATFORM: ST STM32 (15.4.1) > L0
HARDWARE: STM32F072VBT6 48MHz, 16KB RAM, 128KB Flash
DEBUG: Current (stlink) External (stlink)
PACKAGES:
- framework-stm32cubef0 @ 1.11.3
- tool-dfuutil @ 1.11.0
- tool-ldscripts-ststm32 @ 0.2.0
- toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ off, Compatibility ~ soft
Here is the error i get :
Building .pio/build/l0/firmware.bin
Adding dfu suffix to firmware.bin
dyld[2872]: Library not loaded: '/usr/local/opt/libusb/lib/libusb-1.0.0.dylib'
Referenced from: '/Users/benjamin/.platformio/packages/tool-dfuutil/bin/dfu-suffix'
Reason: tried: '/usr/local/opt/libusb/lib/libusb-1.0.0.dylib' (no such file), '/usr/local/lib/libusb-1.0.0.dylib' (no such file), '/usr/lib/libusb-1.0.0.dylib' (no such file)
*** [.pio/build/l0/firmware.bin] Error -6
I tried to brew uninstall libusb then brew install libusb again. I tried also to clean my local packages under : ~/Users/benjamin/.platformio/packages to force PlatformIO to download latest version.
But still the same error; have you any idea how to fix this ?
Yes it’s maybe a compatibility issue since i’m using a M1 ARM Mac, but i’m not sure what to do even after reading the GitHub issue
The command arch -x86_64 brew install libhidapi lead me to a “Not found Formula” and suggest ‘libhid’, which Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)! … The suggestion is to reinstall homebrew…