Skip to main content
Visitor II
February 11, 2025
Question

stm32cubeclt prepending itself to path when vs code is opened

  • February 11, 2025
  • 1 reply
  • 767 views

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.

    This topic has been closed for replies.

    1 reply

    ST Employee
    February 12, 2025

    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 

    obj87Author
    Visitor II
    February 13, 2025

    The path is not modified when I use the system terminal. Only the integrated terminal in vs code.
    I also tried uninstalling stm32cubeclt which caused it to stop. Reinstalled it, and it was back.

    I solved my immediate problem using 'STM32_Programmer.sh' in the STM32CubeProgrammer bin folder.

    I'd also like to clarify that I don't use any VS code extensions related to ST or ST's products.