Issue
Flashing Moonlander on Ubuntu (I am using 21.04) caused following error in console.
warning OpenDevices: libusb: bad access [code -3]
Fixes
- Install dependency
sudo apt install libusb-dev
- Create a udev rule file
sudo touch /etc/udev/rules.d/50-wally.rules
- Add Moonlander configuration in the rule file
1# STM32 rules for the Moonlander and Planck EZ2SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", \3 MODE:="0666", \4 SYMLINK+="stm32_dfu"
Now reboot!!!