2022-04-28 03:23 AM
Hi,
I tried to install STM32CubeProgrammer v2.10.0 on my Kubuntu 20.04.4.
The error I get is CubeProgrammer_API or one of its dependencies is missing.
What I could find from the forum is that could mean the installer used a different Java/OpenJDK version that what the programmer tries to run on. (https://community.st.com/s/question/0D53W0000057GXWSA2/error-cubeprogrammerapi-or-one-of-its-dependencies-is-missing-with-programmer-version-240)
The output from the installer looks like it installed with 1.8.0_265
$ ./SetupSTM32CubeProgrammer-2.10.0.linux
./SetupSTM32CubeProgrammer-2.10.0.linux
/home/arno/Downloads
chdir /home/arno/Downloads/.
current dir /home/arno/Downloads
Command line arguments:
====================
Installation started
Framework: 1.8.0_192-BellSoft-b03 (Oracle Corporation)
Platform: ubuntu_linux,version=5.13.0-40-generic,arch=x64,symbolicName=null,javaVersion=1.8.0_265
Installation finished
[ Writing the uninstaller data ... ]
However, the official repositories show only 8u252 and 8u312. So the installer must have come with its own JRE.
I also noticed the programmer comes with its own JRE in <installdir>/STM32CubeProgrammer/bin/jre/
$ .local/STMicroelectronics/STM32Cube_2.10.0/STM32CubeProgrammer/bin/jre/bin/java -version
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)
This is also 1.8.0_265 but maybe the programmer does not use its own included JRE?
The CLI works though.
What could be the issue here?
Thanks and best regards,
Arno
Solved! Go to Solution.
2022-04-28 05:34 AM
I got it running. The programme has to be run from <installdir> as command bin/STM32CubeProgrammer
So if it is installed in $HOME/.local/STMicroelectronics/STM32Cube_2.10.0/STM32CubeProgrammer
you must run it as bin/STM32CubeProgrammer.
After changing the desktop shortcut as follows it works. Running it directly from home folder for example as ./.local/STMicroelectronics/STM32Cube_2.10.0/STM32CubeProgrammer/bin/STM32CubeProgrammer does not work.
[Desktop Entry]
Comment[en_GB]=
Comment=
Exec=bin/STM32CubeProgrammer
GenericName[en_GB]=
GenericName=
Icon=/home/arno/.local/STMicroelectronics/STM32Cube_2.10.0/STM32CubeProgrammer/util/Programmer.ico
MimeType=
Name[en_GB]=STM32CubeProgrammer 2.10
Name=STM32CubeProgrammer 2.10
Path=/home/arno/.local/STMicroelectronics/STM32Cube_2.10.0/STM32CubeProgrammer
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
(note values for Path and Exec)
2022-04-28 05:34 AM
I got it running. The programme has to be run from <installdir> as command bin/STM32CubeProgrammer
So if it is installed in $HOME/.local/STMicroelectronics/STM32Cube_2.10.0/STM32CubeProgrammer
you must run it as bin/STM32CubeProgrammer.
After changing the desktop shortcut as follows it works. Running it directly from home folder for example as ./.local/STMicroelectronics/STM32Cube_2.10.0/STM32CubeProgrammer/bin/STM32CubeProgrammer does not work.
[Desktop Entry]
Comment[en_GB]=
Comment=
Exec=bin/STM32CubeProgrammer
GenericName[en_GB]=
GenericName=
Icon=/home/arno/.local/STMicroelectronics/STM32Cube_2.10.0/STM32CubeProgrammer/util/Programmer.ico
MimeType=
Name[en_GB]=STM32CubeProgrammer 2.10
Name=STM32CubeProgrammer 2.10
Path=/home/arno/.local/STMicroelectronics/STM32Cube_2.10.0/STM32CubeProgrammer
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
(note values for Path and Exec)