cancel
Showing results for 
Search instead for 
Did you mean: 

Cube CLT install location on Mac

btater
Associate

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?

1 REPLY 1
Nawres GHARBI
ST Employee

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.