cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 6.16.1 linux installer issuers (Bazzite/Fedora 43)

DClif.1
Associate II

I'm running Bazzite (Fedora 43) and tried to install STM32CubeMX on a Fedora distrobox and was met with some issues.

First, the installer is unable use /bin/chmod, this is fixed by switching out the installer's `jre\bin` directory for OpenJDK.

Second, if you run as a normal user it fails with:

com.izforge.izpack.api.exception.IzPackException: An error occured in java.lang.Thread.run() at Thread.java:1583 in com.izforge.izpack.installer.unpacker.UnpackerBase.run() at UnpackerBase.java:241 in com.izforge.izpack.installer.unpacker.UnpackerBase.unpack() at UnpackerBase.java:319 Caused by: com.izforge.izpack.api.exception.InstallerException: File execution failed in com.izforge.izpack.installer.unpacker.UnpackerBase.unpack() at UnpackerBase.java:299 in com.izforge.izpack.installer.unpacker.UnpackerBase.unpack() at UnpackerBase.java:483 in com.izforge.izpack.installer.unpacker.UnpackerBase.executeFiles() at UnpackerBase.java:959


This is fixed by running the installer via sudo.

This is what I did to get it running in distrobox:

  • Installing STM32CubeMX on linux
    • Unpack the .zip file.
    • Install it:
    • 	  cd 
      	  distrobox create --name stm32cubemx
      	  distrobox enter stm32cubemx
      	  sudo dnf install java-latest-openjdk.x86_64
      	  mv jre jre.st
      	  mkdir jre
      	  ln -s /usr/bin jre/bin
      	  chmod +x SetupSTM32CubeMX-6.16.1
      	  sudo ./SetupSTM32CubeMX-6.16.1
    • Create a desktop file (in the container)
      • 		  cd /usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/
        		  sudo nano STM32CubeMX.desktop
      • Add the content as follows:
      • 		  [Desktop Entry]
        		  Version=6.16.1
        		  Name=STM32CubeMX-6.16.1
        		  Comment=STM32CubeMX Application for STM32 development
        		  Exec=/usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX
        		  Icon=stm32cubemx
        		  Terminal=false
        		  Type=Application
        		  Categories=Development;
    • Export the desktop file (in the container)
      • 		  distrobox-export --app /usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX.desktop
    • Then run the app from the host's app launcher, e.g. KRunner. It will appear as STM32CubeMX (on stm32cubemx)


With this, I'm able to run 6.16.1, but the MCU selector, board selected and various other progress dialog windows are just empty with a white background.  It does load up existing projects however.

Other users report that 6.16 has rendering issues on Fedora 43.

I was able to install CubeMX 6.15 from the Baazar store (flatpak) just fine, and that doesn't have any issues rendering the MCU selector or other dialog windows.

2 REPLIES 2
Souhaib MAZHOUD
ST Employee

Hello @DClif.1 

Based on RN0094 : 1.2 Host PC system requirements, Fedora 43 is not yet supported with STM32CubeMX.

Below are the supported operating systems and architectures for CubeMX 6.16.1:

• Windows® 10 and 11, 64 bits (x64)(b)
• Linux®: Ubuntu® LTS 22.04 and LTS 24.04, and Fedora® 42(c) (d) (e)
• macOS® 15 (Sequoia), macOS® 26 (Tahoe)(f)

KR, Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Yes, I became aware of the Fedora 43 limitation.

However, related to this, I tried using 6.15.0 via distrobox and had no installer errors, but still had the same missing window content issues as 6.16.1 did.  that is: every pop-up window was empty - window frame, but with no content and just a white background.

flathub has a version of CubeMX, but it is out of date, the version there is 6.15.0 - https://flathub.org/en/apps/com.st.STM32CubeMX

Can you could pass on my experience to the developers so that these issues can be fixed in a future version, or do I need to open a ticket somewhere?