The STM32CubeMX tool is written in portable java, but unfortunately it is distributed as a Windows executable embedded in a Windows installer.
To install it on Linux:
sudo java -jar SetupSTM32CubeMX-4.11.0.exe
- install the tool somewhere in your home, eg:
/home/you/stm32/cubemx
sudo chown -R you:you /home/you/stm32/cubemx
To run it:
java -jar /home/you/stm32/cubemx/STM32CubeMX.exe
- or mark that file as executable, rename it to
STM32CubeMX.jar
, and double click it
Current version (6.2.0) installs normally on Ubuntu, however you need to install JDK 11 first:
sudo apt install openjdk-11-jre
Then start installer with sudo and at the end change the ownership of all files in the selected folder
chown -R user.user STM32CubeMX
Note, that you will need to start CubeMX as root in order to finish the update to version 6.2.1 and repeat
chown -R ...
afterwards.