Skip to content

Instantly share code, notes, and snippets.

@Lanchon
Last active September 5, 2024 11:06
Show Gist options
  • Save Lanchon/2156953d18f7534a926b to your computer and use it in GitHub Desktop.
Save Lanchon/2156953d18f7534a926b to your computer and use it in GitHub Desktop.
Installing STM32CubeMX on Linux

Installing STM32CubeMX on Linux

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:

  1. sudo java -jar SetupSTM32CubeMX-4.11.0.exe
  2. install the tool somewhere in your home, eg: /home/you/stm32/cubemx
  3. 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
@gpmontt
Copy link

gpmontt commented Sep 5, 2024

@VictorTagayun Save the following code in ~/.local/share/applications/stm32cubemx.desktop:

[Desktop Entry]
Name=STM32CubeMX
GenericName=STM32CubeMX
Comment=Graphical tool for configuration of STM32 Microcontrollers
Exec=/usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/home/<USERNAME>/.local/share/applications/icons/stm32cubemx.png
StartupWMClass=STM32CubeMX
StartupNotify=true

And don't forget the icon in ~/.local/share/applications/icons/stm32cubemx.png or change the paths in the .desktop-file accordingly. stm32cubemx

Hope this helps :)

It works like a charm 👍 .
it amazes me that the stm32cubemx installer does not perform that option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment