How to install/use STM32CubeProgrammer on Debian Linux?
I was unable to run the setup program. I found this gist on how to do an install of
STM32CubeMX:
https://gist.github.com/Lanchon/2156953d18f7534a926b
Using that method I could run the installer via this method:
sudo java -jar SetupSTM32CubeProgrammer-2.8.0.exeThat enabled a nice dialog based install to /usr/local. However afterwards I am unable to run the programmer. It has a similar problem as the installer.
davis@twenty:/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer
$ ls bin
ExternalLoader libcrypto.so libstp11_SAM.so.conf STM32CubeProgrammer STM32_Programmer_CLI STM32WLScripts
FlashLoader libcrypto.so.1.0.0 PersoPackages STM32CubeProgrammerLauncher STM32_Programmer.sh version
HSM libssl.so platforms STM32MP_KeyGen_CLI STM32TrustedPackageCreator
jre libstp11_SAM.so RSSe STM32MP_SigningTool_CLI STM32TrustedPackageCreator_CLI
davis@twenty:/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer
$ ./bin/STM32CubeProgrammerLauncher
./bin/STM32CubeProgrammerLauncher
/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin
chdir /usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/./bin
current dir /usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin
<JAVA_HOME>/lib/ext exists, extensions mechanism no longer supported; Use -classpath instead.
.Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
davis@twenty:/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammerOther bit on info
On this box I have the STM32CubeMX installed. If I compare the java jre's on this system I notice the one with STM32CubeProgrammer is different.
The CubeMX JRE
davis@twenty:/usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/jre/bin
$ ./java --version
openjdk 11.0.10 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode)
The default installed JRE
$ java --version
openjdk 11.0.12 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2)
OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2, mixed mode, sharing)The JRE for CubeProgrammer
davis@twenty:/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/jre/bin
$ ./java --version
<JAVA_HOME>/lib/ext exists, extensions mechanism no longer supported; Use -classpath instead.
.Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.