2026-06-05 1:37 AM
Hello,
I trying to program my development boards (NUCLEO-L073RZ and NUCLEO-F767ZI) using VScode (1.123.0) on Ubuntu (I tried 26.04 and 22.04.3). Installation of STM32cubeIDE for VScode extensions (3.9.0) went without errors, all libraries like CMake were installed automatically. But when I connect development board to USB, start VScode and look at STM32CUBE DEVICES AND BOARDS card, there is still: No device detected.
When I try build some example project, build is successful, but when I click on Run and Debug, it's end with timeout error. I was tried this on two different computers with same result.
When I do the same thing on the same computer under Windows 11, VScode finds the board without any problems.
Is there some known issue with STM32cubeIDE for VScode extension in Ubuntu or is something else needed under Ubuntu?
Solved! Go to Solution.
2026-06-07 11:10 PM
Hello Julien,
Thanks for the quick reply. I clicked on the link with ST-LINK udev rules and something happened without reporting an error, but thanks to your reply I thought more deeply about what that link actually does. And I started to wonder if it was supposed to change the permissions settings in Linux, how could it do it without asking me for the superuser password. And this was the problem. After further searching the internet I found a way to solve it:
Install STM32CubeProgrammer
Run the following commands in the terminal:
sudo cp ~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/Drivers/rules/*.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger
And after this it started working correctly for me...
2026-06-05 1:51 AM
Hi @R-I-S-O,
I’m wondering whether you forgot to install the ST-LINK udev rules.
There is a shortcut to install them in the Resources view.
2026-06-07 11:10 PM
Hello Julien,
Thanks for the quick reply. I clicked on the link with ST-LINK udev rules and something happened without reporting an error, but thanks to your reply I thought more deeply about what that link actually does. And I started to wonder if it was supposed to change the permissions settings in Linux, how could it do it without asking me for the superuser password. And this was the problem. After further searching the internet I found a way to solve it:
Install STM32CubeProgrammer
Run the following commands in the terminal:
sudo cp ~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/Drivers/rules/*.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger
And after this it started working correctly for me...
2026-06-07 11:30 PM - edited 2026-06-08 7:28 AM
Great that you find a working path to install the udev rules.
Did you tried the shortcut on both 26.04 and 22.04.3?
There is a known limitation with Ubuntu 26.04 because xterm is missing from this distribution.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.