2025-05-16 9:38 AM
Hi, When I run st-info --probe as a normal user, I get:
$ st-info --probe
libusb: warning [darwin_detach_kernel_driver] USB device capture requires either an entitlement (com.apple.vm.device-access) or root privilege
Found 0 stlink programmer
Only when I prefix with sudo do I see my ST-Link appear:
$ sudo st-info --probe
Found 1 stlink programmer
version: 2
...
Platform & Environment:
Host: Apple M1 MacBook Air
macOS Version: Monterey / Ventura (tested both)
ST-Link Tools: Installed via Homebrew (brew install stlink)
libusb: system-provided (no special libusb-compat)
I reinstalled stlink via Homebrew and tried other versions, but the problem still occurs intermittently: sometimes I can probe normally as a non-root user, and other times I need to use sudo. On top of that, PlatformIO also requires sudo to upload code. Any help would be greatly appreciated.
My Question:
How can I grant non-root access to ST-Link on Apple Silicon so that st-info --probe works as a normal user? Is there an official codeless kext or entitlement plist I should use, or another Homebrew-friendly workaround?