Package Details: stm32cubemx 6.11.0-1

Git Clone URL: https://aur.archlinux.org/stm32cubemx.git (read-only, click to copy)
Package Base: stm32cubemx
Description: graphical software configuration tool for STM32 microcontrollers that allows generating C initialization code
Upstream URL: https://www.st.com/en/development-tools/stm32cubemx.html
Keywords: arm cortex cortex-m stm32
Licenses: custom
Submitter: laserk3000
Maintainer: laserk3000
Last Packager: laserk3000
Votes: 48
Popularity: 0.99
First Submitted: 2016-06-04 10:14 (UTC)
Last Updated: 2024-03-21 13:51 (UTC)

Dependencies (4)

Required by (0)

Sources (3)

Latest Comments

1 2 3 4 5 6 .. 8 Next › Last »

yandibanyu commented on 2024-04-25 19:07 (UTC)

Just to let someone else know if they encounter the same issue when selecting MCU and then the app suddenly closed. It is caused by java segmentation fault shenanigans but I didn't investigate much further and instead just installed it directly. I didn't even try to check if it is working without AUR helper so be warned.

Q: What system are you running? A: aurutils, KDE Plasma 6, JDK 22 OpenJDK, AMD Ryzen 7 5### with iGPU

Q: How do I check if I have the same issue? A: Run it from the commandline with stm32cubemx and inspecting its output. You should see something like "SIGSEGV" somewhere.

Q: What workaround did you use? A: Download the installer from ST website, and download Java 22 JDK from the OpenJDK website (only used for installing to make things easier for me). Extract the installer of the STM32CubeMX and extract the JDK to the same directory. Rename the extracted JDK directory to jre since the installer is searching for that. Run the installer as regular user is fine if you didn't need to install it system wide. After that, you can safely remove the installer and the Java 22 used for installing it.

malsyned commented on 2024-04-16 20:10 (UTC)

The installers ST distributes for Linux and Windows add an STM32CubeMX_PATH variable to the environment that points to the directory containing the STM32CubeMX binary.

Could this recipe create that as well for consistency, maybe with /etc/profile.d drop-ins that export STM32CubeMX_PATH=/opt/stm32cubemx?

I would personally find this useful because I'm working on a cross-platform CMake script that needs to be able to locate the STM32CubeMX binary.

scyrmion commented on 2023-09-28 19:23 (UTC) (edited on 2023-09-28 19:23 (UTC) by scyrmion)

This was fixed and working, but then my java version updated and I had to change the script to have --max 21 for it to work.

pfannenhans commented on 2023-08-08 12:54 (UTC)

They updated the Java Version of CubeMX. Updating the /usr/bin/stm32cubemx script from

#!/bin/sh
exec archlinux-java-run --min 11 --max 20 -- -jar /opt/stm32cubemx/STM32CubeMX "$@"

to

#!/bin/sh
exec archlinux-java-run --min 17 --max 20 -- -jar /opt/stm32cubemx/STM32CubeMX "$@"

does the trick.

scyrmion commented on 2023-08-01 20:05 (UTC)

@laserk3000

$ java --version
openjdk 11.0.20 2023-07-18
OpenJDK Runtime Environment (build 11.0.20+8)
OpenJDK 64-Bit Server VM (build 11.0.20+8, mixed mode)

laserk3000 commented on 2023-08-01 19:55 (UTC)

@scyrmion: What Java version are you using? I had tried a couple of different ones and had no such problems.

scyrmion commented on 2023-08-01 18:55 (UTC)

With the latest version, I get this error when running /usr/bin/stm32cubemx:

Error: LinkageError occurred while loading main class com.st.microxplorer.maingui.STM32CubeMX
    java.lang.UnsupportedClassVersionError: com/st/microxplorer/maingui/STM32CubeMX has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

laserk3000 commented on 2023-07-26 08:36 (UTC)

@Sven we don't launch the app directly but through archlinux-java-run. Can you try /usr/bin/stm32cubemx and tell if the problem persists?

Sven commented on 2023-07-25 21:54 (UTC) (edited on 2023-07-25 21:54 (UTC) by Sven)

Since the upgrade 6.9.0-1 I just see the following error:

$ /opt/stm32cubemx/STM32CubeMX 
Check exe path on linux
FullExe path1 is: /opt/stm32cubemx/STM32CubeMX
Exe path is: /opt/stm32cubemx
Search java from relative path ----
Checking java in /opt/stm32cubemx/./jre/bin/java
Checking java in /opt/stm32cubemx/../jre/bin/java
Checking java in /opt/stm32cubemx/../../jre/bin/java
Checking java in /opt/stm32cubemx/../../../jre/bin/java
Please install Java JRE 17.0.6 or a more recent version

maat commented on 2023-07-25 07:47 (UTC)

stm32cubemx no longer requires Java 11. It runs fine with the latest Java 20. It would be nice if that dependency were updated.