Skip to main content
Visitor II
December 16, 2024
Question

Cube CLT install location on Mac

  • December 16, 2024
  • 5 replies
  • 4816 views

I am trying to get the SMT32 VS Code extension working and have installed the dependencies on my Mac. However, the extension doesn't seem to find Cube CLT.

I ran into a couple issues during the install. First, it said that 

st-stm32cubeclt_1.17.0_23554_20241124_1810-macosx_x86_64.pkg” cannot be opened because it is from an unidentified developer.

I had to go into security and privacy settings and allow the install. After that, the installer was successful, but I can't seem to find where it installs. Anyone have an idea?

    This topic has been closed for replies.

    5 replies

    Technical Moderator
    December 18, 2024

    It sounds like you've taken the right steps to install the STM32CubeCLT package, but the issue might be related to the system not recognizing the installation path. Here are some steps to help you troubleshoot and resolve the issue:

    Step-by-Step Guide:

    1. Verify Installation Path:

      • Open a terminal and run the following command to see if the stm32cubeclt command is available:
        sh
         
        stm32cubeclt --version
        
      • If this command returns the version of STM32CubeCLT, it means the installation was successful and the path is set correctly.
    2. Locate the Installation Directory:

      • If the command is not found, you need to locate where STM32CubeCLT was installed. Common installation directories include /usr/local/bin or /Applications.
      • You can use the find command to search for the executable:
        sh
         
        sudo find / -name stm32cubeclt
        
    3. Add to PATH:

      • Once you locate the installation directory, you need to add it to your PATH environment variable. For example, if stm32cubeclt is located in /usr/local/bin, you can add this to your PATH by editing your shell profile file (~/.bash_profile, ~/.zshrc, or ~/.bashrc depending on the shell you are using).
      • Open the profile file in a text editor:
        sh
         
        nano ~/.zshrc
        
      • Add the following line to the file:
        sh
         
        export PATH=$PATH:/usr/local/bin
        
      • Save the file and reload the profile:
        sh
         
        source ~/.zshrc
        
    4. Configure VS Code Extension:

      • Open VS Code and go to the settings (you can open settings by pressing Cmd + ,).
      • Search for "STM32" to find the STM32 VS Code extension settings.
      • Ensure that the path to stm32cubeclt is correctly set in the extension settings. If it is not, manually set the path to the directory where stm32cubeclt is installed.

    Additional Tips:

    • Security Settings:

      • If you encounter issues with unidentified developers again, you can temporarily allow apps from unidentified developers by going to System Preferences > Security & Privacy > General and selecting "Allow apps downloaded from: Anywhere". Remember to change this back to a more secure setting after the installation is complete.
    • Reinstalling:

      • If you continue to face issues, consider reinstalling the STM32CubeCLT package and carefully follow any prompts during the installation process.

    By following these steps, you should be able to resolve the issue and get the STM32 VS Code extension working with Cube CLT on your Mac. If you encounter any specific error messages, please provide them for more detailed troubleshooting.

    Graduate
    February 2, 2025

    Hey @btater 

    It's at 

    /opt/ST/

     I took this from the instalation guide (on the uninstall part) that points to the path: https://www.st.com/resource/en/user_manual/um3089-stm32cubeclt-installation-guide-stmicroelectronics.pdf

     

    @Nawres GHARBI chan you please open an internal ticket requesting the details to be clearer (or at least show during the instalation on the UI?)

     

    Best,

    Alessandro

    Graduate II
    May 10, 2025

    I have the same issue trying to install CubeCLT on Mac - the installation appears to be successful, but I cannot find where it is installed. anardinelli says it is at 

    /opt/ST/

    but I am unable to locate this.

    I'm trying to migrate my code to VS code, so I need the path for the settings there.

    Thanks!

    Graduate II
    May 10, 2025

    Have you got a chance to try brand new released solution ? STM32CubeCLT is not required anymore ! Some brand new integrated solution is promoted instead so called STM32Cube bundles serving the same but revisited experience. May help possibly.

    Visitor II
    July 12, 2025

    The same trouble too. maybe because the CLT is x86 form

     

    ST Employee
    July 15, 2025

    Did you give a chance to the pre-release version of the extension ? CLT installation won't be required anymore soon.

    Graduate
    July 20, 2025

    Thank so much guys in this thread! Spent hours on trying to implement everything to work with the VS Code extension on Mac. With the pre-release version it was a super easy one click installation and everything is working