-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32_Programmer.sh not found #63
Comments
Seems strange. |
version: 1.8.12 |
So STM32cubeprogrammer is not in the path. |
The PATH that I showed is at the beginning of One issue is that this PATH is different from the PATH in the user environment. I have installed Arduino IDE through "Software" in Ubuntu and I run it from the start menu. I also tried running it from the terminal. In both cases, the PATH in The |
Try to launch arduino from the terminal. |
From:
Lauching from desktop application has a different env. |
It seems that the issue originates from the fact that Ubuntu installs Arduino IDE using snap. This is how PATH is defined in snap (https://snapcraft.io/docs/environment-variables): If you want to use STM32duino, do not install Arduino IDE through Software in Ubuntu or Thank you @fpistm for your time! |
Ok , anyway you need to have the cube programmer in the path. There is no bug. This works as expected and warn user that it cannot be found. |
It would be great if a new user could follow these steps to use STM32duino:
Currently, there are two issues with this workflow:
|
As far as I can tell is this is not the default location.
Yes, so up to end user to provide the correct environment.
Yes, as it is the default path as far as I can tell. How did you install the CubeProgrammer? |
@fpistm, I checked again. You are absolutely right. I had changed the default installation folder. STM32duino works just fine. My main problem was the Arduino IDE installed by snap. Thank you! |
Welcome. |
@bsamadi What was your solution then? Uninstall the Arduino IDE and reinstall it though command line? |
Yes, I followed the instructions here. |
Or change file stm32CubeProg.sh: |
I noticed that when running from arduino in a snap, HOME is set to: By installing STMicroelectronics into /home/my_user_name/snap/arduino/85 instead of /home/my_user_name, the snap version of arduino was able to find it just fine. You can probably do this automatically by running |
The problem is caused when installing SetupSTM32CubeProgrammer-x.xx.x.linux using sudo or root. If installed without elevation, it will be installed in the user's home. Wrong:
Correct:
|
STM32_Programmer.sh
is in/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin
and this folder is added to the path. I can runSTM32_Programmer.sh
in the terminal with no issues.However, Arduino IDE complains that
STM32_Programmer.sh
was not found.When I checked, the PATH inside
stm32CubeProg.sh
was different from the one in the terminal.I even changed
$HOME
to/usr/local
instm32CubeProg.sh
but the error is still the same.The text was updated successfully, but these errors were encountered: