-
Notifications
You must be signed in to change notification settings - Fork 67
STM32_Programmer.sh not found in Ubuntu 18.04. Edited PATH, and still can't find it. #64
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
Comments
I have exactly this issue. usr/local/STMicroelectronics.... is the default installation location when installing the software. For some reason (maybe it's outdated) stm32duino uses $HOME/STM.... as the default location, which is not. What's curious is that the correct directory IS in the PATH variable, but the Arduino IDE can't find it. I think the first issue is a bug, as it's looking somewhere that it's not on the default location of installation. The second issue seems to be an issue with the Arduino IDE, and should be addressed in the wiki. Now I have to find out how to uninstall the damn program, as the uninstaller does nothing, so I can install it in the proper location ($HOME/...). Do you think there's a way to change the location from $HOME/... to the proper /usr/local/...? |
I've retested and /usr/... is not the default... so, how did you install it? I guess there is a reason whivh can explain why we don't have the same default path. |
Ok, so I deleted the installation of the STM32CubeProgrammer, and installed it again, and now it installed it automatically on the $HOME directory. So something went wrong on the original installation. I had a directory path named STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin before installation on the $HOME directory so maybe that had something to do with it. Regardless, I reinstalled it in the proper default directory, and I keep having the same issue. Any ideas? |
Same issue, I guess Arduino IDE was installed using snap then env is not the same anyway I don't know why it does not find it if it is in your HOME as expected. Your best bet is to debug by adsing some test in the shell script. |
Well, as mentioned in #63 could you try to install Arduino IDE following official recommendations: |
Ok, I reinstalled the Arduino IDE not from the store, but from the file on the arduino.cc website and it works. For people having this sort of issue in the future: Make sure that the STM32CubeProgrammer is installed in the right spot. Sometimes it doesn't pick the correct default path. It should work fine after that! Thanks @fpistm for the help! :) |
STM32CubeProgrammer picks /usr/local/ path when installed as root (or with sudo). Just run script without sudo. |
Ah this can explain several thing. So, I guess I could add this path in the script. |
If someone can improve the script to support both locations ($HOME and /usr/local and /opt maybe too) it will be great because I don't want to install everything on my $HOME. For now I tried with a symlink and it is working. So, another workaround can be make a symlink.
|
I guess the path you have is not the default path for STMCube as you can see form this part of this document: So, if you installed it on the default path the below code could help you
|
Hello,
I'm having issues uploading code to my STM32F103C8 board. When I try to upload the file, it throws out this error:
I installed the STM32CubeProgrammer, to it's default location, which ended up being:
/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin
Then I tried editing my .bashrc file, and added the following line to the end of the file:
export PATH="/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin:$PATH"
I updated the .bashrc by using the following command:
It still gives me the same error when I'm uploading the code.
Am I doing something wrong? I could use some help.
Thank you.
The text was updated successfully, but these errors were encountered: