Hello everyone,
I’ve installed STM32CubeIDE using flatpak and ran into a problem when flashing to my Nucleo-32 board. First the IDE asks me to update the Firmware of the detected board but when I press “Open in update mode” I get the error:
Unexpected error during opening (1).
Device 004E...3538 not found. No device connected."
I investigated and found this information on the app’s page on flathub:
For flashing to work properly you will need to add udev rules according to your device. If your device has an id of 0483:374b (check lsusb), you will need to create a file in /etc/udev/rules.d/ with the contents: SUBSYSTEMS==“usb”, ATTRS{idVendor}==“0483”, ATTRS{idProduct}==“374b”, GROUP=“users”, MODE=“0666” and either reboot or run: sudo udevadm control --reload
So I checked the board’s ID, created the udev-rule, ran the command, rebooted, did just about everything but the problem persists. First I see the board then it disappears when trying to “open in update mode”.
Meanwhile this is the output of the console running flatpak:
libusb: error [get_usbfs_fd] File doesn't exist, wait 10 ms and try again
libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/005, errno=2
I run Arch Linux, here’s the content of my 99-usb.rules:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374e", GROUP="users", MODE="0666"
I’ve renamed the file trying many different numbers just for the heck of it, but to no avail. Permissions on the rule file are 644.
I’m obviously not familiar with udev-rules so any help would be appreciated.