2024-12-16 02: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?
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:
Verify Installation Path:
stm32cubeclt
command is available:
stm32cubeclt --version
Locate the Installation Directory:
/usr/local/bin
or /Applications
.find
command to search for the executable:
sudo find / -name stm32cubeclt
Add to PATH:
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).nano ~/.zshrc
export PATH=$PATH:/usr/local/bin
source ~/.zshrc
Configure VS Code Extension:
Cmd + ,
).stm32cubeclt
is correctly set in the extension settings. If it is not, manually set the path to the directory where stm32cubeclt
is installed.Security Settings:
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:
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.