2025-10-06 1:00 AM - last edited on 2025-10-06 4:39 AM by Andrew Neil
I'm trying to work with a STM32F4-Discovery board, and previously it connected perfectly okay, but a couple weeks ago something, seemingly out of nowhere, broke and CubeIDE stopped detecting the board and writing programs to it showing this message:
I tried reinstalling the IDE, downgraging the toolchain, upgrading the IDE, creating a fresh project and so on.
I'm running version 1.19.0 CubeIDE, using EndeavourOS (Arch-based).
Here are my udev rules for a relevant device:
# stm32 nucleo boards, with onboard st/linkv2-1
# ie, STM32F0, STM32F4.
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", \
MODE="660", GROUP="plugdev", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1", \
SYMLINK+="stlinkv2-1_%n"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3752", \
MODE="660", GROUP="plugdev", TAG+="uaccess", ENV{ID_MM_DEVICE_IGNORE}="1", \
SYMLINK+="stlinkv2-1_%n"
My user is a member of the plugdev group.
But the important detail is that if I run `stm32cubeide_wayland` as root through `sudo` it is able to detect the board. (Still doesn't run the project, but that's because I don't have it setup for root either way.)
2025-10-06 2:56 AM
I would say, dialout.
2025-10-06 3:01 AM
As said, perhaps dialout is missing.
I use to use the groups command for that purpose, by the way.
2025-10-06 3:31 AM
Added dialout and then myself to it, didn't help either.
2025-10-06 3:48 AM
If you needed to create the group in the first place, it is understandable.
With the Debian/Mint systems I use, this falls into the dialout category. ttyACM is a modem port AFAIK.
But to be honest, I have no eperience with Arch Linux.
Perhaps do a "cat /etc/group", and try if any of the listed groups does the trick.
The groups that work for me (Mint 22.1)
adm dialout cdrom sudo dip plugdev users lpadmin sambashare
2025-10-06 4:37 AM
Doesn't seem to help, sadly, from what I've tried.
2025-10-06 4:42 AM - edited 2025-10-06 4:43 AM
One of the possibility is that the board is not powered properly. So check the jumpers on the board make sure it gets power from the cable. The jumper should be on ST-LINK.
2025-10-06 5:05 AM
Assuming this is the jumper you mean, it seems in order.