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
I just tried the update here on a real linux machine. It installed an update of the Cube to V5.6.1 without issues.
Priviliges can be of concern.
I made sure to install the CubeMx here with my user priviliges on a folder with my user acces rights.
A popup with adminstrator restart came up but I safely ignored that one. No need no login or sudo, I just restarted the CubeMX GUI as my regular user and it worked for me.
Addendum I also did not a sudo install of the original package IIRC.