cancel
Showing results for 
Search instead for 
Did you mean: 

stm32cubeclt prepending itself to path when vs code is opened

obj87
Associate II

Good afternoon,

I'm using Ubuntu 24.04 and whenever I start vs code while stm32cubeclt is installed then my path is filled with paths to stm32cubeclt and it's different tools. I don't have any ST related extensions.

- How do I stop stm32cubeclt from prepending my path with itself?
- When does this happen?
- Is it only with vs code or other software as well?
- Is there any other solution which allows programming stm32 MCU's using cli?

If this is intended behaviour I hope it will be changed in the future. I don't know how to remove it because whenever I start vs code again it's back and I have no idea where it's being set since I can't find it in any typical configuration file like .bashrc, .profile or similar. I don't know what to do except changing all my other settings or remove cubeclt altogether.

1 REPLY 1
Sarra.S
ST Employee

Hello  @obj87

Try starting other software that uses the CLI (like a terminal) and check if the PATH is modified. If it’s only happening with VS Code, then it’s confirmed that it's related to VS Code’s configuration or extensions

>>Is there any other solution which allows programming stm32 MCU's using cli?

Yes, using OpenOCD or stlink 

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.