Skip to main content
Associate
August 22, 2026
Solved

VScode with STM32cubeIDE extensions on Ubuntu cannot see my development boards

  • August 22, 2026
  • 3 replies
  • 41 views

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?

Best answer by R-I-S-O

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...

3 replies

Julien D
ST Employee
August 22, 2026

Hi ,

Im wondering whether you forgot to install the ST-LINK udev rules.

There is a shortcut to install them in the Resources view.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
R-I-S-OAuthorBest answer
Associate
August 22, 2026

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...

Julien D
ST Employee
August 22, 2026

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.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.