cancel
Showing results for 
Search instead for 
Did you mean: 

VScode with STM32cubeIDE extensions on Ubuntu cannot see my development boards

R-I-S-O
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3
Julien D
ST Employee

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.

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.

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

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.