Cube CLT install location on Mac
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-12-16 2:02 PM
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?
- Labels:
-
VSCode for STM32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-12-18 12:15 AM
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:
-
Verify Installation Path:
- Open a terminal and run the following command to see if the
stm32cubeclt
command is available:shcontent_copyfullscreenstm32cubeclt --version
- If this command returns the version of STM32CubeCLT, it means the installation was successful and the path is set correctly.
- Open a terminal and run the following command to see if the
-
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:shcontent_copyfullscreensudo find / -name stm32cubeclt
- If the command is not found, you need to locate where STM32CubeCLT was installed. Common installation directories include
-
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:
shcontent_copyfullscreen
nano ~/.zshrc
- Add the following line to the file:
shcontent_copyfullscreen
export PATH=$PATH:/usr/local/bin
- Save the file and reload the profile:
shcontent_copyfullscreen
source ~/.zshrc
- Once you locate the installation directory, you need to add it to your PATH environment variable. For example, if
-
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 wherestm32cubeclt
is installed.
- Open VS Code and go to the settings (you can open settings by pressing
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.
- If you encounter issues with unidentified developers again, you can temporarily allow apps from unidentified developers by going to
-
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-02-01 4:50 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-10 10:43 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-05-10 10:53 AM
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.
