Problem

Error while programming Blackpill on macOS through USB

Details

Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib

Solution

Install libusb x86_64

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

arch -x86_64 /usr/local/bin/brew install libusb

arduino blackpill STM32 platformio vscode
Follow me on Twitter! It's free!